@tamagui/code-to-html 1.88.13 → 1.88.15
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/LICENSE +21 -0
- package/dist/esm/index.mjs +1189 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1189 @@
|
|
|
1
|
+
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports;};var __export=(target,all3)=>{for(var name in all3)__defProp(target,name,{get:all3[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to;};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
2
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
3
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
5
|
+
isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));// ../../node_modules/parse-numeric-range/index.js
|
|
6
|
+
var require_parse_numeric_range=__commonJS({"../../node_modules/parse-numeric-range/index.js"(exports,module){function parsePart(string){let res=[],m;for(let str of string.split(",").map(str2=>str2.trim()))if(/^-?\d+$/.test(str))res.push(parseInt(str,10));else if(m=str.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[_2,lhs,sep,rhs]=m;if(lhs&&rhs){lhs=parseInt(lhs),rhs=parseInt(rhs);let incr=lhs<rhs?1:-1;(sep==="-"||sep===".."||sep==="\u2025")&&(rhs+=incr);for(let i=lhs;i!==rhs;i+=incr)res.push(i);}}return res;}exports.default=parsePart;module.exports=parsePart;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/common/unicode.js
|
|
7
|
+
var require_unicode=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/common/unicode.js"(exports){"use strict";var UNDEFINED_CODE_POINTS=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];exports.REPLACEMENT_CHARACTER="\uFFFD";exports.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};exports.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],//--
|
|
8
|
+
DOCTYPE_STRING:[68,79,67,84,89,80,69],//DOCTYPE
|
|
9
|
+
CDATA_START_STRING:[91,67,68,65,84,65,91],//[CDATA[
|
|
10
|
+
SCRIPT_STRING:[115,99,114,105,112,116],//script
|
|
11
|
+
PUBLIC_STRING:[80,85,66,76,73,67],//PUBLIC
|
|
12
|
+
SYSTEM_STRING:[83,89,83,84,69,77]//SYSTEM
|
|
13
|
+
};exports.isSurrogate=function(cp){return cp>=55296&&cp<=57343;};exports.isSurrogatePair=function(cp){return cp>=56320&&cp<=57343;};exports.getSurrogatePairCodePoint=function(cp1,cp2){return(cp1-55296)*1024+9216+cp2;};exports.isControlCodePoint=function(cp){return cp!==32&&cp!==10&&cp!==13&&cp!==9&&cp!==12&&cp>=1&&cp<=31||cp>=127&&cp<=159;};exports.isUndefinedCodePoint=function(cp){return cp>=64976&&cp<=65007||UNDEFINED_CODE_POINTS.indexOf(cp)>-1;};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/common/error-codes.js
|
|
14
|
+
var require_error_codes=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/common/error-codes.js"(exports,module){"use strict";module.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/preprocessor.js
|
|
15
|
+
var require_preprocessor=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/preprocessor.js"(exports,module){"use strict";var unicode=require_unicode(),ERR=require_error_codes(),$=unicode.CODE_POINTS,DEFAULT_BUFFER_WATERLINE=65536,Preprocessor=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE;}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos;}_processSurrogate(cp){if(this.pos!==this.lastCharPos){let nextCp=this.html.charCodeAt(this.pos+1);if(unicode.isSurrogatePair(nextCp))return this.pos++,this._addGap(),unicode.getSurrogatePairCodePoint(cp,nextCp);}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(ERR.surrogateInInputStream),cp;}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[]);}write(chunk,isLastChunk){this.html?this.html+=chunk:this.html=chunk,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=isLastChunk;}insertHtmlAtCurrentPos(chunk){this.html=this.html.substring(0,this.pos+1)+chunk+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1;}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let cp=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&cp===$.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):cp===$.CARRIAGE_RETURN?(this.skipNextNewLine=!0,$.LINE_FEED):(this.skipNextNewLine=!1,unicode.isSurrogate(cp)&&(cp=this._processSurrogate(cp)),cp>31&&cp<127||cp===$.LINE_FEED||cp===$.CARRIAGE_RETURN||cp>159&&cp<64976||this._checkForProblematicCharacters(cp),cp);}_checkForProblematicCharacters(cp){unicode.isControlCodePoint(cp)?this._err(ERR.controlCharacterInInputStream):unicode.isUndefinedCodePoint(cp)&&this._err(ERR.noncharacterInInputStream);}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--;}};module.exports=Preprocessor;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/named-entity-data.js
|
|
16
|
+
var require_named_entity_data=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/named-entity-data.js"(exports,module){"use strict";module.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/index.js
|
|
17
|
+
var require_tokenizer=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/tokenizer/index.js"(exports,module){"use strict";var Preprocessor=require_preprocessor(),unicode=require_unicode(),neTree=require_named_entity_data(),ERR=require_error_codes(),$=unicode.CODE_POINTS,$$=unicode.CODE_POINT_SEQUENCES,C1_CONTROLS_REFERENCE_REPLACEMENTS={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},HAS_DATA_FLAG=1,DATA_DUPLET_FLAG=2,HAS_BRANCHES_FLAG=4,MAX_BRANCH_MARKER_VALUE=HAS_DATA_FLAG|DATA_DUPLET_FLAG|HAS_BRANCHES_FLAG,DATA_STATE="DATA_STATE",RCDATA_STATE="RCDATA_STATE",RAWTEXT_STATE="RAWTEXT_STATE",SCRIPT_DATA_STATE="SCRIPT_DATA_STATE",PLAINTEXT_STATE="PLAINTEXT_STATE",TAG_OPEN_STATE="TAG_OPEN_STATE",END_TAG_OPEN_STATE="END_TAG_OPEN_STATE",TAG_NAME_STATE="TAG_NAME_STATE",RCDATA_LESS_THAN_SIGN_STATE="RCDATA_LESS_THAN_SIGN_STATE",RCDATA_END_TAG_OPEN_STATE="RCDATA_END_TAG_OPEN_STATE",RCDATA_END_TAG_NAME_STATE="RCDATA_END_TAG_NAME_STATE",RAWTEXT_LESS_THAN_SIGN_STATE="RAWTEXT_LESS_THAN_SIGN_STATE",RAWTEXT_END_TAG_OPEN_STATE="RAWTEXT_END_TAG_OPEN_STATE",RAWTEXT_END_TAG_NAME_STATE="RAWTEXT_END_TAG_NAME_STATE",SCRIPT_DATA_LESS_THAN_SIGN_STATE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",SCRIPT_DATA_END_TAG_OPEN_STATE="SCRIPT_DATA_END_TAG_OPEN_STATE",SCRIPT_DATA_END_TAG_NAME_STATE="SCRIPT_DATA_END_TAG_NAME_STATE",SCRIPT_DATA_ESCAPE_START_STATE="SCRIPT_DATA_ESCAPE_START_STATE",SCRIPT_DATA_ESCAPE_START_DASH_STATE="SCRIPT_DATA_ESCAPE_START_DASH_STATE",SCRIPT_DATA_ESCAPED_STATE="SCRIPT_DATA_ESCAPED_STATE",SCRIPT_DATA_ESCAPED_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_STATE",SCRIPT_DATA_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",BEFORE_ATTRIBUTE_NAME_STATE="BEFORE_ATTRIBUTE_NAME_STATE",ATTRIBUTE_NAME_STATE="ATTRIBUTE_NAME_STATE",AFTER_ATTRIBUTE_NAME_STATE="AFTER_ATTRIBUTE_NAME_STATE",BEFORE_ATTRIBUTE_VALUE_STATE="BEFORE_ATTRIBUTE_VALUE_STATE",ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ATTRIBUTE_VALUE_UNQUOTED_STATE="ATTRIBUTE_VALUE_UNQUOTED_STATE",AFTER_ATTRIBUTE_VALUE_QUOTED_STATE="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",SELF_CLOSING_START_TAG_STATE="SELF_CLOSING_START_TAG_STATE",BOGUS_COMMENT_STATE="BOGUS_COMMENT_STATE",MARKUP_DECLARATION_OPEN_STATE="MARKUP_DECLARATION_OPEN_STATE",COMMENT_START_STATE="COMMENT_START_STATE",COMMENT_START_DASH_STATE="COMMENT_START_DASH_STATE",COMMENT_STATE="COMMENT_STATE",COMMENT_LESS_THAN_SIGN_STATE="COMMENT_LESS_THAN_SIGN_STATE",COMMENT_LESS_THAN_SIGN_BANG_STATE="COMMENT_LESS_THAN_SIGN_BANG_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",COMMENT_END_DASH_STATE="COMMENT_END_DASH_STATE",COMMENT_END_STATE="COMMENT_END_STATE",COMMENT_END_BANG_STATE="COMMENT_END_BANG_STATE",DOCTYPE_STATE="DOCTYPE_STATE",BEFORE_DOCTYPE_NAME_STATE="BEFORE_DOCTYPE_NAME_STATE",DOCTYPE_NAME_STATE="DOCTYPE_NAME_STATE",AFTER_DOCTYPE_NAME_STATE="AFTER_DOCTYPE_NAME_STATE",AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",BOGUS_DOCTYPE_STATE="BOGUS_DOCTYPE_STATE",CDATA_SECTION_STATE="CDATA_SECTION_STATE",CDATA_SECTION_BRACKET_STATE="CDATA_SECTION_BRACKET_STATE",CDATA_SECTION_END_STATE="CDATA_SECTION_END_STATE",CHARACTER_REFERENCE_STATE="CHARACTER_REFERENCE_STATE",NAMED_CHARACTER_REFERENCE_STATE="NAMED_CHARACTER_REFERENCE_STATE",AMBIGUOUS_AMPERSAND_STATE="AMBIGUOS_AMPERSAND_STATE",NUMERIC_CHARACTER_REFERENCE_STATE="NUMERIC_CHARACTER_REFERENCE_STATE",HEXADEMICAL_CHARACTER_REFERENCE_START_STATE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",DECIMAL_CHARACTER_REFERENCE_START_STATE="DECIMAL_CHARACTER_REFERENCE_START_STATE",HEXADEMICAL_CHARACTER_REFERENCE_STATE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",DECIMAL_CHARACTER_REFERENCE_STATE="DECIMAL_CHARACTER_REFERENCE_STATE",NUMERIC_CHARACTER_REFERENCE_END_STATE="NUMERIC_CHARACTER_REFERENCE_END_STATE";function isWhitespace(cp){return cp===$.SPACE||cp===$.LINE_FEED||cp===$.TABULATION||cp===$.FORM_FEED;}function isAsciiDigit(cp){return cp>=$.DIGIT_0&&cp<=$.DIGIT_9;}function isAsciiUpper(cp){return cp>=$.LATIN_CAPITAL_A&&cp<=$.LATIN_CAPITAL_Z;}function isAsciiLower(cp){return cp>=$.LATIN_SMALL_A&&cp<=$.LATIN_SMALL_Z;}function isAsciiLetter(cp){return isAsciiLower(cp)||isAsciiUpper(cp);}function isAsciiAlphaNumeric(cp){return isAsciiLetter(cp)||isAsciiDigit(cp);}function isAsciiUpperHexDigit(cp){return cp>=$.LATIN_CAPITAL_A&&cp<=$.LATIN_CAPITAL_F;}function isAsciiLowerHexDigit(cp){return cp>=$.LATIN_SMALL_A&&cp<=$.LATIN_SMALL_F;}function isAsciiHexDigit(cp){return isAsciiDigit(cp)||isAsciiUpperHexDigit(cp)||isAsciiLowerHexDigit(cp);}function toAsciiLowerCodePoint(cp){return cp+32;}function toChar(cp){return cp<=65535?String.fromCharCode(cp):(cp-=65536,String.fromCharCode(cp>>>10&1023|55296)+String.fromCharCode(56320|cp&1023));}function toAsciiLowerChar(cp){return String.fromCharCode(toAsciiLowerCodePoint(cp));}function findNamedEntityTreeBranch(nodeIx,cp){let branchCount=neTree[++nodeIx],lo=++nodeIx,hi=lo+branchCount-1;for(;lo<=hi;){let mid=lo+hi>>>1,midCp=neTree[mid];if(midCp<cp)lo=mid+1;else if(midCp>cp)hi=mid-1;else return neTree[mid+branchCount];}return-1;}var Tokenizer=class _Tokenizer{constructor(){this.preprocessor=new Preprocessor(),this.tokenQueue=[],this.allowCDATA=!1,this.state=DATA_STATE,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null;}//Errors
|
|
18
|
+
_err(){}_errOnNextCodePoint(err){this._consume(),this._err(err),this._unconsume();}//API
|
|
19
|
+
getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let cp=this._consume();this._ensureHibernation()||this[this.state](cp);}return this.tokenQueue.shift();}write(chunk,isLastChunk){this.active=!0,this.preprocessor.write(chunk,isLastChunk);}insertHtmlAtCurrentPos(chunk){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(chunk);}//Hibernation
|
|
20
|
+
_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:_Tokenizer.HIBERNATION_TOKEN}),!0;}return!1;}//Consumption
|
|
21
|
+
_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance();}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat();}_reconsumeInState(state){this.state=state,this._unconsume();}_consumeSequenceIfMatch(pattern,startCp,caseSensitive){let consumedCount=0,isMatch=!0,patternLength=pattern.length,patternPos=0,cp=startCp,patternCp;for(;patternPos<patternLength;patternPos++){if(patternPos>0&&(cp=this._consume(),consumedCount++),cp===$.EOF){isMatch=!1;break;}if(patternCp=pattern[patternPos],cp!==patternCp&&(caseSensitive||cp!==toAsciiLowerCodePoint(patternCp))){isMatch=!1;break;}}if(!isMatch)for(;consumedCount--;)this._unconsume();return isMatch;}//Temp buffer
|
|
22
|
+
_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==$$.SCRIPT_STRING.length)return!1;for(let i=0;i<this.tempBuff.length;i++)if(this.tempBuff[i]!==$$.SCRIPT_STRING[i])return!1;return!0;}//Token creation
|
|
23
|
+
_createStartTagToken(){this.currentToken={type:_Tokenizer.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]};}_createEndTagToken(){this.currentToken={type:_Tokenizer.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]};}_createCommentToken(){this.currentToken={type:_Tokenizer.COMMENT_TOKEN,data:""};}_createDoctypeToken(initialName){this.currentToken={type:_Tokenizer.DOCTYPE_TOKEN,name:initialName,forceQuirks:!1,publicId:null,systemId:null};}_createCharacterToken(type,ch){this.currentCharacterToken={type,chars:ch};}_createEOFToken(){this.currentToken={type:_Tokenizer.EOF_TOKEN};}//Tag attributes
|
|
24
|
+
_createAttr(attrNameFirstCh){this.currentAttr={name:attrNameFirstCh,value:""};}_leaveAttrName(toState){_Tokenizer.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(ERR.duplicateAttribute),this.state=toState;}_leaveAttrValue(toState){this.state=toState;}//Token emission
|
|
25
|
+
_emitCurrentToken(){this._emitCurrentCharacterToken();let ct=this.currentToken;this.currentToken=null,ct.type===_Tokenizer.START_TAG_TOKEN?this.lastStartTagName=ct.tagName:ct.type===_Tokenizer.END_TAG_TOKEN&&(ct.attrs.length>0&&this._err(ERR.endTagWithAttributes),ct.selfClosing&&this._err(ERR.endTagWithTrailingSolidus)),this.tokenQueue.push(ct);}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null);}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken();}//Characters emission
|
|
26
|
+
//OPTIMIZATION: specification uses only one type of character tokens (one token per character).
|
|
27
|
+
//This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.
|
|
28
|
+
//If we have a sequence of characters that belong to the same group, parser can process it
|
|
29
|
+
//as a single solid character token.
|
|
30
|
+
//So, there are 3 types of character tokens in parse5:
|
|
31
|
+
//1)NULL_CHARACTER_TOKEN - \u0000-character sequences (e.g. '\u0000\u0000\u0000')
|
|
32
|
+
//2)WHITESPACE_CHARACTER_TOKEN - any whitespace/new-line character sequences (e.g. '\n \r\t \f')
|
|
33
|
+
//3)CHARACTER_TOKEN - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')
|
|
34
|
+
_appendCharToCurrentCharacterToken(type,ch){this.currentCharacterToken&&this.currentCharacterToken.type!==type&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=ch:this._createCharacterToken(type,ch);}_emitCodePoint(cp){let type=_Tokenizer.CHARACTER_TOKEN;isWhitespace(cp)?type=_Tokenizer.WHITESPACE_CHARACTER_TOKEN:cp===$.NULL&&(type=_Tokenizer.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(type,toChar(cp));}_emitSeveralCodePoints(codePoints){for(let i=0;i<codePoints.length;i++)this._emitCodePoint(codePoints[i]);}//NOTE: used then we emit character explicitly. This is always a non-whitespace and a non-null character.
|
|
35
|
+
//So we can avoid additional checks here.
|
|
36
|
+
_emitChars(ch){this._appendCharToCurrentCharacterToken(_Tokenizer.CHARACTER_TOKEN,ch);}// Character reference helpers
|
|
37
|
+
_matchNamedCharacterReference(startCp){let result=null,excess=1,i=findNamedEntityTreeBranch(0,startCp);for(this.tempBuff.push(startCp);i>-1;){let current=neTree[i],inNode=current<MAX_BRANCH_MARKER_VALUE;inNode&¤t&HAS_DATA_FLAG&&(result=current&DATA_DUPLET_FLAG?[neTree[++i],neTree[++i]]:[neTree[++i]],excess=0);let cp=this._consume();if(this.tempBuff.push(cp),excess++,cp===$.EOF)break;inNode?i=current&HAS_BRANCHES_FLAG?findNamedEntityTreeBranch(i,cp):-1:i=cp===current?++i:-1;}for(;excess--;)this.tempBuff.pop(),this._unconsume();return result;}_isCharacterReferenceInAttribute(){return this.returnState===ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE||this.returnState===ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE||this.returnState===ATTRIBUTE_VALUE_UNQUOTED_STATE;}_isCharacterReferenceAttributeQuirk(withSemicolon){if(!withSemicolon&&this._isCharacterReferenceInAttribute()){let nextCp=this._consume();return this._unconsume(),nextCp===$.EQUALS_SIGN||isAsciiAlphaNumeric(nextCp);}return!1;}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let i=0;i<this.tempBuff.length;i++)this.currentAttr.value+=toChar(this.tempBuff[i]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[];}// State machine
|
|
38
|
+
// Data state
|
|
39
|
+
//------------------------------------------------------------------
|
|
40
|
+
[DATA_STATE](cp){this.preprocessor.dropParsedChunk(),cp===$.LESS_THAN_SIGN?this.state=TAG_OPEN_STATE:cp===$.AMPERSAND?(this.returnState=DATA_STATE,this.state=CHARACTER_REFERENCE_STATE):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(cp)):cp===$.EOF?this._emitEOFToken():this._emitCodePoint(cp);}// RCDATA state
|
|
41
|
+
//------------------------------------------------------------------
|
|
42
|
+
[RCDATA_STATE](cp){this.preprocessor.dropParsedChunk(),cp===$.AMPERSAND?(this.returnState=RCDATA_STATE,this.state=CHARACTER_REFERENCE_STATE):cp===$.LESS_THAN_SIGN?this.state=RCDATA_LESS_THAN_SIGN_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?this._emitEOFToken():this._emitCodePoint(cp);}// RAWTEXT state
|
|
43
|
+
//------------------------------------------------------------------
|
|
44
|
+
[RAWTEXT_STATE](cp){this.preprocessor.dropParsedChunk(),cp===$.LESS_THAN_SIGN?this.state=RAWTEXT_LESS_THAN_SIGN_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?this._emitEOFToken():this._emitCodePoint(cp);}// Script data state
|
|
45
|
+
//------------------------------------------------------------------
|
|
46
|
+
[SCRIPT_DATA_STATE](cp){this.preprocessor.dropParsedChunk(),cp===$.LESS_THAN_SIGN?this.state=SCRIPT_DATA_LESS_THAN_SIGN_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?this._emitEOFToken():this._emitCodePoint(cp);}// PLAINTEXT state
|
|
47
|
+
//------------------------------------------------------------------
|
|
48
|
+
[PLAINTEXT_STATE](cp){this.preprocessor.dropParsedChunk(),cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?this._emitEOFToken():this._emitCodePoint(cp);}// Tag open state
|
|
49
|
+
//------------------------------------------------------------------
|
|
50
|
+
[TAG_OPEN_STATE](cp){cp===$.EXCLAMATION_MARK?this.state=MARKUP_DECLARATION_OPEN_STATE:cp===$.SOLIDUS?this.state=END_TAG_OPEN_STATE:isAsciiLetter(cp)?(this._createStartTagToken(),this._reconsumeInState(TAG_NAME_STATE)):cp===$.QUESTION_MARK?(this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(BOGUS_COMMENT_STATE)):cp===$.EOF?(this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(DATA_STATE));}// End tag open state
|
|
51
|
+
//------------------------------------------------------------------
|
|
52
|
+
[END_TAG_OPEN_STATE](cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState(TAG_NAME_STATE)):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingEndTagName),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(ERR.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(BOGUS_COMMENT_STATE));}// Tag name state
|
|
53
|
+
//------------------------------------------------------------------
|
|
54
|
+
[TAG_NAME_STATE](cp){isWhitespace(cp)?this.state=BEFORE_ATTRIBUTE_NAME_STATE:cp===$.SOLIDUS?this.state=SELF_CLOSING_START_TAG_STATE:cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):isAsciiUpper(cp)?this.currentToken.tagName+=toAsciiLowerChar(cp):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.tagName+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=toChar(cp);}// RCDATA less-than sign state
|
|
55
|
+
//------------------------------------------------------------------
|
|
56
|
+
[RCDATA_LESS_THAN_SIGN_STATE](cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state=RCDATA_END_TAG_OPEN_STATE):(this._emitChars("<"),this._reconsumeInState(RCDATA_STATE));}// RCDATA end tag open state
|
|
57
|
+
//------------------------------------------------------------------
|
|
58
|
+
[RCDATA_END_TAG_OPEN_STATE](cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState(RCDATA_END_TAG_NAME_STATE)):(this._emitChars("</"),this._reconsumeInState(RCDATA_STATE));}// RCDATA end tag name state
|
|
59
|
+
//------------------------------------------------------------------
|
|
60
|
+
[RCDATA_END_TAG_NAME_STATE](cp){if(isAsciiUpper(cp))this.currentToken.tagName+=toAsciiLowerChar(cp),this.tempBuff.push(cp);else if(isAsciiLower(cp))this.currentToken.tagName+=toChar(cp),this.tempBuff.push(cp);else{if(this.lastStartTagName===this.currentToken.tagName){if(isWhitespace(cp)){this.state=BEFORE_ATTRIBUTE_NAME_STATE;return;}if(cp===$.SOLIDUS){this.state=SELF_CLOSING_START_TAG_STATE;return;}if(cp===$.GREATER_THAN_SIGN){this.state=DATA_STATE,this._emitCurrentToken();return;}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(RCDATA_STATE);}}// RAWTEXT less-than sign state
|
|
61
|
+
//------------------------------------------------------------------
|
|
62
|
+
[RAWTEXT_LESS_THAN_SIGN_STATE](cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state=RAWTEXT_END_TAG_OPEN_STATE):(this._emitChars("<"),this._reconsumeInState(RAWTEXT_STATE));}// RAWTEXT end tag open state
|
|
63
|
+
//------------------------------------------------------------------
|
|
64
|
+
[RAWTEXT_END_TAG_OPEN_STATE](cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState(RAWTEXT_END_TAG_NAME_STATE)):(this._emitChars("</"),this._reconsumeInState(RAWTEXT_STATE));}// RAWTEXT end tag name state
|
|
65
|
+
//------------------------------------------------------------------
|
|
66
|
+
[RAWTEXT_END_TAG_NAME_STATE](cp){if(isAsciiUpper(cp))this.currentToken.tagName+=toAsciiLowerChar(cp),this.tempBuff.push(cp);else if(isAsciiLower(cp))this.currentToken.tagName+=toChar(cp),this.tempBuff.push(cp);else{if(this.lastStartTagName===this.currentToken.tagName){if(isWhitespace(cp)){this.state=BEFORE_ATTRIBUTE_NAME_STATE;return;}if(cp===$.SOLIDUS){this.state=SELF_CLOSING_START_TAG_STATE;return;}if(cp===$.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=DATA_STATE;return;}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(RAWTEXT_STATE);}}// Script data less-than sign state
|
|
67
|
+
//------------------------------------------------------------------
|
|
68
|
+
[SCRIPT_DATA_LESS_THAN_SIGN_STATE](cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_END_TAG_OPEN_STATE):cp===$.EXCLAMATION_MARK?(this.state=SCRIPT_DATA_ESCAPE_START_STATE,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_STATE));}// Script data end tag open state
|
|
69
|
+
//------------------------------------------------------------------
|
|
70
|
+
[SCRIPT_DATA_END_TAG_OPEN_STATE](cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState(SCRIPT_DATA_END_TAG_NAME_STATE)):(this._emitChars("</"),this._reconsumeInState(SCRIPT_DATA_STATE));}// Script data end tag name state
|
|
71
|
+
//------------------------------------------------------------------
|
|
72
|
+
[SCRIPT_DATA_END_TAG_NAME_STATE](cp){if(isAsciiUpper(cp))this.currentToken.tagName+=toAsciiLowerChar(cp),this.tempBuff.push(cp);else if(isAsciiLower(cp))this.currentToken.tagName+=toChar(cp),this.tempBuff.push(cp);else{if(this.lastStartTagName===this.currentToken.tagName){if(isWhitespace(cp)){this.state=BEFORE_ATTRIBUTE_NAME_STATE;return;}else if(cp===$.SOLIDUS){this.state=SELF_CLOSING_START_TAG_STATE;return;}else if(cp===$.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=DATA_STATE;return;}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(SCRIPT_DATA_STATE);}}// Script data escape start state
|
|
73
|
+
//------------------------------------------------------------------
|
|
74
|
+
[SCRIPT_DATA_ESCAPE_START_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_ESCAPE_START_DASH_STATE,this._emitChars("-")):this._reconsumeInState(SCRIPT_DATA_STATE);}// Script data escape start dash state
|
|
75
|
+
//------------------------------------------------------------------
|
|
76
|
+
[SCRIPT_DATA_ESCAPE_START_DASH_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_ESCAPED_DASH_DASH_STATE,this._emitChars("-")):this._reconsumeInState(SCRIPT_DATA_STATE);}// Script data escaped state
|
|
77
|
+
//------------------------------------------------------------------
|
|
78
|
+
[SCRIPT_DATA_ESCAPED_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_ESCAPED_DASH_STATE,this._emitChars("-")):cp===$.LESS_THAN_SIGN?this.state=SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(cp);}// Script data escaped dash state
|
|
79
|
+
//------------------------------------------------------------------
|
|
80
|
+
[SCRIPT_DATA_ESCAPED_DASH_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_ESCAPED_DASH_DASH_STATE,this._emitChars("-")):cp===$.LESS_THAN_SIGN?this.state=SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitCodePoint(cp));}// Script data escaped dash dash state
|
|
81
|
+
//------------------------------------------------------------------
|
|
82
|
+
[SCRIPT_DATA_ESCAPED_DASH_DASH_STATE](cp){cp===$.HYPHEN_MINUS?this._emitChars("-"):cp===$.LESS_THAN_SIGN?this.state=SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE:cp===$.GREATER_THAN_SIGN?(this.state=SCRIPT_DATA_STATE,this._emitChars(">")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_ESCAPED_STATE,this._emitCodePoint(cp));}// Script data escaped less-than sign state
|
|
83
|
+
//------------------------------------------------------------------
|
|
84
|
+
[SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE](cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE):isAsciiLetter(cp)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE)):(this._emitChars("<"),this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE));}// Script data escaped end tag open state
|
|
85
|
+
//------------------------------------------------------------------
|
|
86
|
+
[SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE](cp){isAsciiLetter(cp)?(this._createEndTagToken(),this._reconsumeInState(SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE)):(this._emitChars("</"),this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE));}// Script data escaped end tag name state
|
|
87
|
+
//------------------------------------------------------------------
|
|
88
|
+
[SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE](cp){if(isAsciiUpper(cp))this.currentToken.tagName+=toAsciiLowerChar(cp),this.tempBuff.push(cp);else if(isAsciiLower(cp))this.currentToken.tagName+=toChar(cp),this.tempBuff.push(cp);else{if(this.lastStartTagName===this.currentToken.tagName){if(isWhitespace(cp)){this.state=BEFORE_ATTRIBUTE_NAME_STATE;return;}if(cp===$.SOLIDUS){this.state=SELF_CLOSING_START_TAG_STATE;return;}if(cp===$.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=DATA_STATE;return;}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE);}}// Script data double escape start state
|
|
89
|
+
//------------------------------------------------------------------
|
|
90
|
+
[SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE](cp){isWhitespace(cp)||cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?SCRIPT_DATA_DOUBLE_ESCAPED_STATE:SCRIPT_DATA_ESCAPED_STATE,this._emitCodePoint(cp)):isAsciiUpper(cp)?(this.tempBuff.push(toAsciiLowerCodePoint(cp)),this._emitCodePoint(cp)):isAsciiLower(cp)?(this.tempBuff.push(cp),this._emitCodePoint(cp)):this._reconsumeInState(SCRIPT_DATA_ESCAPED_STATE);}// Script data double escaped state
|
|
91
|
+
//------------------------------------------------------------------
|
|
92
|
+
[SCRIPT_DATA_DOUBLE_ESCAPED_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE,this._emitChars("-")):cp===$.LESS_THAN_SIGN?(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE,this._emitChars("<")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(cp);}// Script data double escaped dash state
|
|
93
|
+
//------------------------------------------------------------------
|
|
94
|
+
[SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE](cp){cp===$.HYPHEN_MINUS?(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE,this._emitChars("-")):cp===$.LESS_THAN_SIGN?(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE,this._emitChars("<")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(cp));}// Script data double escaped dash dash state
|
|
95
|
+
//------------------------------------------------------------------
|
|
96
|
+
[SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE](cp){cp===$.HYPHEN_MINUS?this._emitChars("-"):cp===$.LESS_THAN_SIGN?(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE,this._emitChars("<")):cp===$.GREATER_THAN_SIGN?(this.state=SCRIPT_DATA_STATE,this._emitChars(">")):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitChars(unicode.REPLACEMENT_CHARACTER)):cp===$.EOF?(this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(cp));}// Script data double escaped less-than sign state
|
|
97
|
+
//------------------------------------------------------------------
|
|
98
|
+
[SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE](cp){cp===$.SOLIDUS?(this.tempBuff=[],this.state=SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE,this._emitChars("/")):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE);}// Script data double escape end state
|
|
99
|
+
//------------------------------------------------------------------
|
|
100
|
+
[SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE](cp){isWhitespace(cp)||cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?SCRIPT_DATA_ESCAPED_STATE:SCRIPT_DATA_DOUBLE_ESCAPED_STATE,this._emitCodePoint(cp)):isAsciiUpper(cp)?(this.tempBuff.push(toAsciiLowerCodePoint(cp)),this._emitCodePoint(cp)):isAsciiLower(cp)?(this.tempBuff.push(cp),this._emitCodePoint(cp)):this._reconsumeInState(SCRIPT_DATA_DOUBLE_ESCAPED_STATE);}// Before attribute name state
|
|
101
|
+
//------------------------------------------------------------------
|
|
102
|
+
[BEFORE_ATTRIBUTE_NAME_STATE](cp){isWhitespace(cp)||(cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN||cp===$.EOF?this._reconsumeInState(AFTER_ATTRIBUTE_NAME_STATE):cp===$.EQUALS_SIGN?(this._err(ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ATTRIBUTE_NAME_STATE):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)));}// Attribute name state
|
|
103
|
+
//------------------------------------------------------------------
|
|
104
|
+
[ATTRIBUTE_NAME_STATE](cp){isWhitespace(cp)||cp===$.SOLIDUS||cp===$.GREATER_THAN_SIGN||cp===$.EOF?(this._leaveAttrName(AFTER_ATTRIBUTE_NAME_STATE),this._unconsume()):cp===$.EQUALS_SIGN?this._leaveAttrName(BEFORE_ATTRIBUTE_VALUE_STATE):isAsciiUpper(cp)?this.currentAttr.name+=toAsciiLowerChar(cp):cp===$.QUOTATION_MARK||cp===$.APOSTROPHE||cp===$.LESS_THAN_SIGN?(this._err(ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=toChar(cp)):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.name+=unicode.REPLACEMENT_CHARACTER):this.currentAttr.name+=toChar(cp);}// After attribute name state
|
|
105
|
+
//------------------------------------------------------------------
|
|
106
|
+
[AFTER_ATTRIBUTE_NAME_STATE](cp){isWhitespace(cp)||(cp===$.SOLIDUS?this.state=SELF_CLOSING_START_TAG_STATE:cp===$.EQUALS_SIGN?this.state=BEFORE_ATTRIBUTE_VALUE_STATE:cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ATTRIBUTE_NAME_STATE)));}// Before attribute value state
|
|
107
|
+
//------------------------------------------------------------------
|
|
108
|
+
[BEFORE_ATTRIBUTE_VALUE_STATE](cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?this.state=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE:cp===$.APOSTROPHE?this.state=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE:cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingAttributeValue),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(ATTRIBUTE_VALUE_UNQUOTED_STATE));}// Attribute value (double-quoted) state
|
|
109
|
+
//------------------------------------------------------------------
|
|
110
|
+
[ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE](cp){cp===$.QUOTATION_MARK?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:cp===$.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp);}// Attribute value (single-quoted) state
|
|
111
|
+
//------------------------------------------------------------------
|
|
112
|
+
[ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE](cp){cp===$.APOSTROPHE?this.state=AFTER_ATTRIBUTE_VALUE_QUOTED_STATE:cp===$.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp);}// Attribute value (unquoted) state
|
|
113
|
+
//------------------------------------------------------------------
|
|
114
|
+
[ATTRIBUTE_VALUE_UNQUOTED_STATE](cp){isWhitespace(cp)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):cp===$.AMPERSAND?(this.returnState=ATTRIBUTE_VALUE_UNQUOTED_STATE,this.state=CHARACTER_REFERENCE_STATE):cp===$.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=unicode.REPLACEMENT_CHARACTER):cp===$.QUOTATION_MARK||cp===$.APOSTROPHE||cp===$.LESS_THAN_SIGN||cp===$.EQUALS_SIGN||cp===$.GRAVE_ACCENT?(this._err(ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=toChar(cp)):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):this.currentAttr.value+=toChar(cp);}// After attribute value (quoted) state
|
|
115
|
+
//------------------------------------------------------------------
|
|
116
|
+
[AFTER_ATTRIBUTE_VALUE_QUOTED_STATE](cp){isWhitespace(cp)?this._leaveAttrValue(BEFORE_ATTRIBUTE_NAME_STATE):cp===$.SOLIDUS?this._leaveAttrValue(SELF_CLOSING_START_TAG_STATE):cp===$.GREATER_THAN_SIGN?(this._leaveAttrValue(DATA_STATE),this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._err(ERR.missingWhitespaceBetweenAttributes),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE));}// Self-closing start tag state
|
|
117
|
+
//------------------------------------------------------------------
|
|
118
|
+
[SELF_CLOSING_START_TAG_STATE](cp){cp===$.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInTag),this._emitEOFToken()):(this._err(ERR.unexpectedSolidusInTag),this._reconsumeInState(BEFORE_ATTRIBUTE_NAME_STATE));}// Bogus comment state
|
|
119
|
+
//------------------------------------------------------------------
|
|
120
|
+
[BOGUS_COMMENT_STATE](cp){cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._emitCurrentToken(),this._emitEOFToken()):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.data+=unicode.REPLACEMENT_CHARACTER):this.currentToken.data+=toChar(cp);}// Markup declaration open state
|
|
121
|
+
//------------------------------------------------------------------
|
|
122
|
+
[MARKUP_DECLARATION_OPEN_STATE](cp){this._consumeSequenceIfMatch($$.DASH_DASH_STRING,cp,!0)?(this._createCommentToken(),this.state=COMMENT_START_STATE):this._consumeSequenceIfMatch($$.DOCTYPE_STRING,cp,!1)?this.state=DOCTYPE_STATE:this._consumeSequenceIfMatch($$.CDATA_START_STRING,cp,!0)?this.allowCDATA?this.state=CDATA_SECTION_STATE:(this._err(ERR.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=BOGUS_COMMENT_STATE):this._ensureHibernation()||(this._err(ERR.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(BOGUS_COMMENT_STATE));}// Comment start state
|
|
123
|
+
//------------------------------------------------------------------
|
|
124
|
+
[COMMENT_START_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_START_DASH_STATE:cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):this._reconsumeInState(COMMENT_STATE);}// Comment start dash state
|
|
125
|
+
//------------------------------------------------------------------
|
|
126
|
+
[COMMENT_START_DASH_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_END_STATE:cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptClosingOfEmptyComment),this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE));}// Comment state
|
|
127
|
+
//------------------------------------------------------------------
|
|
128
|
+
[COMMENT_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_END_DASH_STATE:cp===$.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=COMMENT_LESS_THAN_SIGN_STATE):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.data+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=toChar(cp);}// Comment less-than sign state
|
|
129
|
+
//------------------------------------------------------------------
|
|
130
|
+
[COMMENT_LESS_THAN_SIGN_STATE](cp){cp===$.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=COMMENT_LESS_THAN_SIGN_BANG_STATE):cp===$.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(COMMENT_STATE);}// Comment less-than sign bang state
|
|
131
|
+
//------------------------------------------------------------------
|
|
132
|
+
[COMMENT_LESS_THAN_SIGN_BANG_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE:this._reconsumeInState(COMMENT_STATE);}// Comment less-than sign bang dash state
|
|
133
|
+
//------------------------------------------------------------------
|
|
134
|
+
[COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE:this._reconsumeInState(COMMENT_END_DASH_STATE);}// Comment less-than sign bang dash dash state
|
|
135
|
+
//------------------------------------------------------------------
|
|
136
|
+
[COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE](cp){cp!==$.GREATER_THAN_SIGN&&cp!==$.EOF&&this._err(ERR.nestedComment),this._reconsumeInState(COMMENT_END_STATE);}// Comment end dash state
|
|
137
|
+
//------------------------------------------------------------------
|
|
138
|
+
[COMMENT_END_DASH_STATE](cp){cp===$.HYPHEN_MINUS?this.state=COMMENT_END_STATE:cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(COMMENT_STATE));}// Comment end state
|
|
139
|
+
//------------------------------------------------------------------
|
|
140
|
+
[COMMENT_END_STATE](cp){cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EXCLAMATION_MARK?this.state=COMMENT_END_BANG_STATE:cp===$.HYPHEN_MINUS?this.currentToken.data+="-":cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(COMMENT_STATE));}// Comment end bang state
|
|
141
|
+
//------------------------------------------------------------------
|
|
142
|
+
[COMMENT_END_BANG_STATE](cp){cp===$.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=COMMENT_END_DASH_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.incorrectlyClosedComment),this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(COMMENT_STATE));}// DOCTYPE state
|
|
143
|
+
//------------------------------------------------------------------
|
|
144
|
+
[DOCTYPE_STATE](cp){isWhitespace(cp)?this.state=BEFORE_DOCTYPE_NAME_STATE:cp===$.GREATER_THAN_SIGN?this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(BEFORE_DOCTYPE_NAME_STATE));}// Before DOCTYPE name state
|
|
145
|
+
//------------------------------------------------------------------
|
|
146
|
+
[BEFORE_DOCTYPE_NAME_STATE](cp){isWhitespace(cp)||(isAsciiUpper(cp)?(this._createDoctypeToken(toAsciiLowerChar(cp)),this.state=DOCTYPE_NAME_STATE):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this._createDoctypeToken(unicode.REPLACEMENT_CHARACTER),this.state=DOCTYPE_NAME_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(toChar(cp)),this.state=DOCTYPE_NAME_STATE));}// DOCTYPE name state
|
|
147
|
+
//------------------------------------------------------------------
|
|
148
|
+
[DOCTYPE_NAME_STATE](cp){isWhitespace(cp)?this.state=AFTER_DOCTYPE_NAME_STATE:cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):isAsciiUpper(cp)?this.currentToken.name+=toAsciiLowerChar(cp):cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.name+=unicode.REPLACEMENT_CHARACTER):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=toChar(cp);}// After DOCTYPE name state
|
|
149
|
+
//------------------------------------------------------------------
|
|
150
|
+
[AFTER_DOCTYPE_NAME_STATE](cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch($$.PUBLIC_STRING,cp,!1)?this.state=AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE:this._consumeSequenceIfMatch($$.SYSTEM_STRING,cp,!1)?this.state=AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE:this._ensureHibernation()||(this._err(ERR.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)));}// After DOCTYPE public keyword state
|
|
151
|
+
//------------------------------------------------------------------
|
|
152
|
+
[AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE](cp){isWhitespace(cp)?this.state=BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE:cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE));}// Before DOCTYPE public identifier state
|
|
153
|
+
//------------------------------------------------------------------
|
|
154
|
+
[BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE](cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this.currentToken.publicId="",this.state=DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)));}// DOCTYPE public identifier (double-quoted) state
|
|
155
|
+
//------------------------------------------------------------------
|
|
156
|
+
[DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE](cp){cp===$.QUOTATION_MARK?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.publicId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(cp);}// DOCTYPE public identifier (single-quoted) state
|
|
157
|
+
//------------------------------------------------------------------
|
|
158
|
+
[DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE](cp){cp===$.APOSTROPHE?this.state=AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.publicId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=toChar(cp);}// After DOCTYPE public identifier state
|
|
159
|
+
//------------------------------------------------------------------
|
|
160
|
+
[AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE](cp){isWhitespace(cp)?this.state=BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE:cp===$.GREATER_THAN_SIGN?(this.state=DATA_STATE,this._emitCurrentToken()):cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE));}// Between DOCTYPE public and system identifiers state
|
|
161
|
+
//------------------------------------------------------------------
|
|
162
|
+
[BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE](cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)));}// After DOCTYPE system keyword state
|
|
163
|
+
//------------------------------------------------------------------
|
|
164
|
+
[AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE](cp){isWhitespace(cp)?this.state=BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE:cp===$.QUOTATION_MARK?(this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE));}// Before DOCTYPE system identifier state
|
|
165
|
+
//------------------------------------------------------------------
|
|
166
|
+
[BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE](cp){isWhitespace(cp)||(cp===$.QUOTATION_MARK?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE):cp===$.APOSTROPHE?(this.currentToken.systemId="",this.state=DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE):cp===$.GREATER_THAN_SIGN?(this._err(ERR.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=DATA_STATE,this._emitCurrentToken()):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(BOGUS_DOCTYPE_STATE)));}// DOCTYPE system identifier (double-quoted) state
|
|
167
|
+
//------------------------------------------------------------------
|
|
168
|
+
[DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE](cp){cp===$.QUOTATION_MARK?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.systemId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(cp);}// DOCTYPE system identifier (single-quoted) state
|
|
169
|
+
//------------------------------------------------------------------
|
|
170
|
+
[DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE](cp){cp===$.APOSTROPHE?this.state=AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE:cp===$.NULL?(this._err(ERR.unexpectedNullCharacter),this.currentToken.systemId+=unicode.REPLACEMENT_CHARACTER):cp===$.GREATER_THAN_SIGN?(this._err(ERR.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=toChar(cp);}// After DOCTYPE system identifier state
|
|
171
|
+
//------------------------------------------------------------------
|
|
172
|
+
[AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE](cp){isWhitespace(cp)||(cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.EOF?(this._err(ERR.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(BOGUS_DOCTYPE_STATE)));}// Bogus DOCTYPE state
|
|
173
|
+
//------------------------------------------------------------------
|
|
174
|
+
[BOGUS_DOCTYPE_STATE](cp){cp===$.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=DATA_STATE):cp===$.NULL?this._err(ERR.unexpectedNullCharacter):cp===$.EOF&&(this._emitCurrentToken(),this._emitEOFToken());}// CDATA section state
|
|
175
|
+
//------------------------------------------------------------------
|
|
176
|
+
[CDATA_SECTION_STATE](cp){cp===$.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_BRACKET_STATE:cp===$.EOF?(this._err(ERR.eofInCdata),this._emitEOFToken()):this._emitCodePoint(cp);}// CDATA section bracket state
|
|
177
|
+
//------------------------------------------------------------------
|
|
178
|
+
[CDATA_SECTION_BRACKET_STATE](cp){cp===$.RIGHT_SQUARE_BRACKET?this.state=CDATA_SECTION_END_STATE:(this._emitChars("]"),this._reconsumeInState(CDATA_SECTION_STATE));}// CDATA section end state
|
|
179
|
+
//------------------------------------------------------------------
|
|
180
|
+
[CDATA_SECTION_END_STATE](cp){cp===$.GREATER_THAN_SIGN?this.state=DATA_STATE:cp===$.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(CDATA_SECTION_STATE));}// Character reference state
|
|
181
|
+
//------------------------------------------------------------------
|
|
182
|
+
[CHARACTER_REFERENCE_STATE](cp){this.tempBuff=[$.AMPERSAND],cp===$.NUMBER_SIGN?(this.tempBuff.push(cp),this.state=NUMERIC_CHARACTER_REFERENCE_STATE):isAsciiAlphaNumeric(cp)?this._reconsumeInState(NAMED_CHARACTER_REFERENCE_STATE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState));}// Named character reference state
|
|
183
|
+
//------------------------------------------------------------------
|
|
184
|
+
[NAMED_CHARACTER_REFERENCE_STATE](cp){let matchResult=this._matchNamedCharacterReference(cp);if(this._ensureHibernation())this.tempBuff=[$.AMPERSAND];else if(matchResult){let withSemicolon=this.tempBuff[this.tempBuff.length-1]===$.SEMICOLON;this._isCharacterReferenceAttributeQuirk(withSemicolon)||(withSemicolon||this._errOnNextCodePoint(ERR.missingSemicolonAfterCharacterReference),this.tempBuff=matchResult),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState;}else this._flushCodePointsConsumedAsCharacterReference(),this.state=AMBIGUOUS_AMPERSAND_STATE;}// Ambiguos ampersand state
|
|
185
|
+
//------------------------------------------------------------------
|
|
186
|
+
[AMBIGUOUS_AMPERSAND_STATE](cp){isAsciiAlphaNumeric(cp)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=toChar(cp):this._emitCodePoint(cp):(cp===$.SEMICOLON&&this._err(ERR.unknownNamedCharacterReference),this._reconsumeInState(this.returnState));}// Numeric character reference state
|
|
187
|
+
//------------------------------------------------------------------
|
|
188
|
+
[NUMERIC_CHARACTER_REFERENCE_STATE](cp){this.charRefCode=0,cp===$.LATIN_SMALL_X||cp===$.LATIN_CAPITAL_X?(this.tempBuff.push(cp),this.state=HEXADEMICAL_CHARACTER_REFERENCE_START_STATE):this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_START_STATE);}// Hexademical character reference start state
|
|
189
|
+
//------------------------------------------------------------------
|
|
190
|
+
[HEXADEMICAL_CHARACTER_REFERENCE_START_STATE](cp){isAsciiHexDigit(cp)?this._reconsumeInState(HEXADEMICAL_CHARACTER_REFERENCE_STATE):(this._err(ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState));}// Decimal character reference start state
|
|
191
|
+
//------------------------------------------------------------------
|
|
192
|
+
[DECIMAL_CHARACTER_REFERENCE_START_STATE](cp){isAsciiDigit(cp)?this._reconsumeInState(DECIMAL_CHARACTER_REFERENCE_STATE):(this._err(ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState));}// Hexademical character reference state
|
|
193
|
+
//------------------------------------------------------------------
|
|
194
|
+
[HEXADEMICAL_CHARACTER_REFERENCE_STATE](cp){isAsciiUpperHexDigit(cp)?this.charRefCode=this.charRefCode*16+cp-55:isAsciiLowerHexDigit(cp)?this.charRefCode=this.charRefCode*16+cp-87:isAsciiDigit(cp)?this.charRefCode=this.charRefCode*16+cp-48:cp===$.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE));}// Decimal character reference state
|
|
195
|
+
//------------------------------------------------------------------
|
|
196
|
+
[DECIMAL_CHARACTER_REFERENCE_STATE](cp){isAsciiDigit(cp)?this.charRefCode=this.charRefCode*10+cp-48:cp===$.SEMICOLON?this.state=NUMERIC_CHARACTER_REFERENCE_END_STATE:(this._err(ERR.missingSemicolonAfterCharacterReference),this._reconsumeInState(NUMERIC_CHARACTER_REFERENCE_END_STATE));}// Numeric character reference end state
|
|
197
|
+
//------------------------------------------------------------------
|
|
198
|
+
[NUMERIC_CHARACTER_REFERENCE_END_STATE](){if(this.charRefCode===$.NULL)this._err(ERR.nullCharacterReference),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(unicode.isSurrogate(this.charRefCode))this._err(ERR.surrogateCharacterReference),this.charRefCode=$.REPLACEMENT_CHARACTER;else if(unicode.isUndefinedCodePoint(this.charRefCode))this._err(ERR.noncharacterCharacterReference);else if(unicode.isControlCodePoint(this.charRefCode)||this.charRefCode===$.CARRIAGE_RETURN){this._err(ERR.controlCharacterReference);let replacement=C1_CONTROLS_REFERENCE_REPLACEMENTS[this.charRefCode];replacement&&(this.charRefCode=replacement);}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState);}};Tokenizer.CHARACTER_TOKEN="CHARACTER_TOKEN";Tokenizer.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Tokenizer.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Tokenizer.START_TAG_TOKEN="START_TAG_TOKEN";Tokenizer.END_TAG_TOKEN="END_TAG_TOKEN";Tokenizer.COMMENT_TOKEN="COMMENT_TOKEN";Tokenizer.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Tokenizer.EOF_TOKEN="EOF_TOKEN";Tokenizer.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Tokenizer.MODE={DATA:DATA_STATE,RCDATA:RCDATA_STATE,RAWTEXT:RAWTEXT_STATE,SCRIPT_DATA:SCRIPT_DATA_STATE,PLAINTEXT:PLAINTEXT_STATE};Tokenizer.getTokenAttr=function(token,attrName){for(let i=token.attrs.length-1;i>=0;i--)if(token.attrs[i].name===attrName)return token.attrs[i].value;return null;};module.exports=Tokenizer;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/common/html.js
|
|
199
|
+
var require_html=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/common/html.js"(exports){"use strict";var NS=exports.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};exports.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};exports.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var $=exports.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};exports.SPECIAL_ELEMENTS={[NS.HTML]:{[$.ADDRESS]:!0,[$.APPLET]:!0,[$.AREA]:!0,[$.ARTICLE]:!0,[$.ASIDE]:!0,[$.BASE]:!0,[$.BASEFONT]:!0,[$.BGSOUND]:!0,[$.BLOCKQUOTE]:!0,[$.BODY]:!0,[$.BR]:!0,[$.BUTTON]:!0,[$.CAPTION]:!0,[$.CENTER]:!0,[$.COL]:!0,[$.COLGROUP]:!0,[$.DD]:!0,[$.DETAILS]:!0,[$.DIR]:!0,[$.DIV]:!0,[$.DL]:!0,[$.DT]:!0,[$.EMBED]:!0,[$.FIELDSET]:!0,[$.FIGCAPTION]:!0,[$.FIGURE]:!0,[$.FOOTER]:!0,[$.FORM]:!0,[$.FRAME]:!0,[$.FRAMESET]:!0,[$.H1]:!0,[$.H2]:!0,[$.H3]:!0,[$.H4]:!0,[$.H5]:!0,[$.H6]:!0,[$.HEAD]:!0,[$.HEADER]:!0,[$.HGROUP]:!0,[$.HR]:!0,[$.HTML]:!0,[$.IFRAME]:!0,[$.IMG]:!0,[$.INPUT]:!0,[$.LI]:!0,[$.LINK]:!0,[$.LISTING]:!0,[$.MAIN]:!0,[$.MARQUEE]:!0,[$.MENU]:!0,[$.META]:!0,[$.NAV]:!0,[$.NOEMBED]:!0,[$.NOFRAMES]:!0,[$.NOSCRIPT]:!0,[$.OBJECT]:!0,[$.OL]:!0,[$.P]:!0,[$.PARAM]:!0,[$.PLAINTEXT]:!0,[$.PRE]:!0,[$.SCRIPT]:!0,[$.SECTION]:!0,[$.SELECT]:!0,[$.SOURCE]:!0,[$.STYLE]:!0,[$.SUMMARY]:!0,[$.TABLE]:!0,[$.TBODY]:!0,[$.TD]:!0,[$.TEMPLATE]:!0,[$.TEXTAREA]:!0,[$.TFOOT]:!0,[$.TH]:!0,[$.THEAD]:!0,[$.TITLE]:!0,[$.TR]:!0,[$.TRACK]:!0,[$.UL]:!0,[$.WBR]:!0,[$.XMP]:!0},[NS.MATHML]:{[$.MI]:!0,[$.MO]:!0,[$.MN]:!0,[$.MS]:!0,[$.MTEXT]:!0,[$.ANNOTATION_XML]:!0},[NS.SVG]:{[$.TITLE]:!0,[$.FOREIGN_OBJECT]:!0,[$.DESC]:!0}};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/parser/open-element-stack.js
|
|
200
|
+
var require_open_element_stack=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/parser/open-element-stack.js"(exports,module){"use strict";var HTML=require_html(),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES;function isImpliedEndTagRequired(tn){switch(tn.length){case 1:return tn===$.P;case 2:return tn===$.RB||tn===$.RP||tn===$.RT||tn===$.DD||tn===$.DT||tn===$.LI;case 3:return tn===$.RTC;case 6:return tn===$.OPTION;case 8:return tn===$.OPTGROUP;}return!1;}function isImpliedEndTagRequiredThoroughly(tn){switch(tn.length){case 1:return tn===$.P;case 2:return tn===$.RB||tn===$.RP||tn===$.RT||tn===$.DD||tn===$.DT||tn===$.LI||tn===$.TD||tn===$.TH||tn===$.TR;case 3:return tn===$.RTC;case 5:return tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD;case 6:return tn===$.OPTION;case 7:return tn===$.CAPTION;case 8:return tn===$.OPTGROUP||tn===$.COLGROUP;}return!1;}function isScopingElement(tn,ns){switch(tn.length){case 2:if(tn===$.TD||tn===$.TH)return ns===NS.HTML;if(tn===$.MI||tn===$.MO||tn===$.MN||tn===$.MS)return ns===NS.MATHML;break;case 4:if(tn===$.HTML)return ns===NS.HTML;if(tn===$.DESC)return ns===NS.SVG;break;case 5:if(tn===$.TABLE)return ns===NS.HTML;if(tn===$.MTEXT)return ns===NS.MATHML;if(tn===$.TITLE)return ns===NS.SVG;break;case 6:return(tn===$.APPLET||tn===$.OBJECT)&&ns===NS.HTML;case 7:return(tn===$.CAPTION||tn===$.MARQUEE)&&ns===NS.HTML;case 8:return tn===$.TEMPLATE&&ns===NS.HTML;case 13:return tn===$.FOREIGN_OBJECT&&ns===NS.SVG;case 14:return tn===$.ANNOTATION_XML&&ns===NS.MATHML;}return!1;}var OpenElementStack=class{constructor(document2,treeAdapter){this.stackTop=-1,this.items=[],this.current=document2,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=treeAdapter;}//Index of element
|
|
201
|
+
_indexOf(element3){let idx=-1;for(let i=this.stackTop;i>=0;i--)if(this.items[i]===element3){idx=i;break;}return idx;}//Update current element
|
|
202
|
+
_isInTemplate(){return this.currentTagName===$.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS.HTML;}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null;}//Mutations
|
|
203
|
+
push(element3){this.items[++this.stackTop]=element3,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++;}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement();}replace(oldElement,newElement){let idx=this._indexOf(oldElement);this.items[idx]=newElement,idx===this.stackTop&&this._updateCurrentElement();}insertAfter(referenceElement,newElement){let insertionIdx=this._indexOf(referenceElement)+1;this.items.splice(insertionIdx,0,newElement),insertionIdx===++this.stackTop&&this._updateCurrentElement();}popUntilTagNamePopped(tagName){for(;this.stackTop>-1;){let tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===tagName&&ns===NS.HTML)break;}}popUntilElementPopped(element3){for(;this.stackTop>-1;){let poppedElement=this.current;if(this.pop(),poppedElement===element3)break;}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6&&ns===NS.HTML)break;}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let tn=this.currentTagName,ns=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),tn===$.TD||tn===$.TH&&ns===NS.HTML)break;}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement();}clearBackToTableContext(){for(;this.currentTagName!==$.TABLE&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop();}clearBackToTableBodyContext(){for(;this.currentTagName!==$.TBODY&&this.currentTagName!==$.TFOOT&&this.currentTagName!==$.THEAD&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop();}clearBackToTableRowContext(){for(;this.currentTagName!==$.TR&&this.currentTagName!==$.TEMPLATE&&this.currentTagName!==$.HTML||this.treeAdapter.getNamespaceURI(this.current)!==NS.HTML;)this.pop();}remove(element3){for(let i=this.stackTop;i>=0;i--)if(this.items[i]===element3){this.items.splice(i,1),this.stackTop--,this._updateCurrentElement();break;}}//Search
|
|
204
|
+
tryPeekProperlyNestedBodyElement(){let element3=this.items[1];return element3&&this.treeAdapter.getTagName(element3)===$.BODY?element3:null;}contains(element3){return this._indexOf(element3)>-1;}getCommonAncestor(element3){let elementIdx=this._indexOf(element3);return--elementIdx>=0?this.items[elementIdx]:null;}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===$.HTML;}//Element in scope
|
|
205
|
+
hasInScope(tagName){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]),ns=this.treeAdapter.getNamespaceURI(this.items[i]);if(tn===tagName&&ns===NS.HTML)return!0;if(isScopingElement(tn,ns))return!1;}return!0;}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]),ns=this.treeAdapter.getNamespaceURI(this.items[i]);if((tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6)&&ns===NS.HTML)return!0;if(isScopingElement(tn,ns))return!1;}return!0;}hasInListItemScope(tagName){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]),ns=this.treeAdapter.getNamespaceURI(this.items[i]);if(tn===tagName&&ns===NS.HTML)return!0;if((tn===$.UL||tn===$.OL)&&ns===NS.HTML||isScopingElement(tn,ns))return!1;}return!0;}hasInButtonScope(tagName){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]),ns=this.treeAdapter.getNamespaceURI(this.items[i]);if(tn===tagName&&ns===NS.HTML)return!0;if(tn===$.BUTTON&&ns===NS.HTML||isScopingElement(tn,ns))return!1;}return!0;}hasInTableScope(tagName){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]);if(this.treeAdapter.getNamespaceURI(this.items[i])===NS.HTML){if(tn===tagName)return!0;if(tn===$.TABLE||tn===$.TEMPLATE||tn===$.HTML)return!1;}}return!0;}hasTableBodyContextInTableScope(){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]);if(this.treeAdapter.getNamespaceURI(this.items[i])===NS.HTML){if(tn===$.TBODY||tn===$.THEAD||tn===$.TFOOT)return!0;if(tn===$.TABLE||tn===$.HTML)return!1;}}return!0;}hasInSelectScope(tagName){for(let i=this.stackTop;i>=0;i--){let tn=this.treeAdapter.getTagName(this.items[i]);if(this.treeAdapter.getNamespaceURI(this.items[i])===NS.HTML){if(tn===tagName)return!0;if(tn!==$.OPTION&&tn!==$.OPTGROUP)return!1;}}return!0;}//Implied end tags
|
|
206
|
+
generateImpliedEndTags(){for(;isImpliedEndTagRequired(this.currentTagName);)this.pop();}generateImpliedEndTagsThoroughly(){for(;isImpliedEndTagRequiredThoroughly(this.currentTagName);)this.pop();}generateImpliedEndTagsWithExclusion(exclusionTagName){for(;isImpliedEndTagRequired(this.currentTagName)&&this.currentTagName!==exclusionTagName;)this.pop();}};module.exports=OpenElementStack;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/parser/formatting-element-list.js
|
|
207
|
+
var require_formatting_element_list=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/parser/formatting-element-list.js"(exports,module){"use strict";var FormattingElementList=class _FormattingElementList{constructor(treeAdapter){this.length=0,this.entries=[],this.treeAdapter=treeAdapter,this.bookmark=null;}//Noah Ark's condition
|
|
208
|
+
//OPTIMIZATION: at first we try to find possible candidates for exclusion using
|
|
209
|
+
//lightweight heuristics without thorough attributes check.
|
|
210
|
+
_getNoahArkConditionCandidates(newElement){let candidates=[];if(this.length>=3){let neAttrsLength=this.treeAdapter.getAttrList(newElement).length,neTagName=this.treeAdapter.getTagName(newElement),neNamespaceURI=this.treeAdapter.getNamespaceURI(newElement);for(let i=this.length-1;i>=0;i--){let entry=this.entries[i];if(entry.type===_FormattingElementList.MARKER_ENTRY)break;let element3=entry.element,elementAttrs=this.treeAdapter.getAttrList(element3);this.treeAdapter.getTagName(element3)===neTagName&&this.treeAdapter.getNamespaceURI(element3)===neNamespaceURI&&elementAttrs.length===neAttrsLength&&candidates.push({idx:i,attrs:elementAttrs});}}return candidates.length<3?[]:candidates;}_ensureNoahArkCondition(newElement){let candidates=this._getNoahArkConditionCandidates(newElement),cLength=candidates.length;if(cLength){let neAttrs=this.treeAdapter.getAttrList(newElement),neAttrsLength=neAttrs.length,neAttrsMap=/* @__PURE__ */Object.create(null);for(let i=0;i<neAttrsLength;i++){let neAttr=neAttrs[i];neAttrsMap[neAttr.name]=neAttr.value;}for(let i=0;i<neAttrsLength;i++)for(let j=0;j<cLength;j++){let cAttr=candidates[j].attrs[i];if(neAttrsMap[cAttr.name]!==cAttr.value&&(candidates.splice(j,1),cLength--),candidates.length<3)return;}for(let i=cLength-1;i>=2;i--)this.entries.splice(candidates[i].idx,1),this.length--;}}//Mutations
|
|
211
|
+
insertMarker(){this.entries.push({type:_FormattingElementList.MARKER_ENTRY}),this.length++;}pushElement(element3,token){this._ensureNoahArkCondition(element3),this.entries.push({type:_FormattingElementList.ELEMENT_ENTRY,element:element3,token}),this.length++;}insertElementAfterBookmark(element3,token){let bookmarkIdx=this.length-1;for(;bookmarkIdx>=0&&this.entries[bookmarkIdx]!==this.bookmark;bookmarkIdx--);this.entries.splice(bookmarkIdx+1,0,{type:_FormattingElementList.ELEMENT_ENTRY,element:element3,token}),this.length++;}removeEntry(entry){for(let i=this.length-1;i>=0;i--)if(this.entries[i]===entry){this.entries.splice(i,1),this.length--;break;}}clearToLastMarker(){for(;this.length;){let entry=this.entries.pop();if(this.length--,entry.type===_FormattingElementList.MARKER_ENTRY)break;}}//Search
|
|
212
|
+
getElementEntryInScopeWithTagName(tagName){for(let i=this.length-1;i>=0;i--){let entry=this.entries[i];if(entry.type===_FormattingElementList.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(entry.element)===tagName)return entry;}return null;}getElementEntry(element3){for(let i=this.length-1;i>=0;i--){let entry=this.entries[i];if(entry.type===_FormattingElementList.ELEMENT_ENTRY&&entry.element===element3)return entry;}return null;}};FormattingElementList.MARKER_ENTRY="MARKER_ENTRY";FormattingElementList.ELEMENT_ENTRY="ELEMENT_ENTRY";module.exports=FormattingElementList;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/utils/mixin.js
|
|
213
|
+
var require_mixin=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/utils/mixin.js"(exports,module){"use strict";var Mixin=class{constructor(host){let originalMethods={},overriddenMethods=this._getOverriddenMethods(this,originalMethods);for(let key2 of Object.keys(overriddenMethods))typeof overriddenMethods[key2]=="function"&&(originalMethods[key2]=host[key2],host[key2]=overriddenMethods[key2]);}_getOverriddenMethods(){throw new Error("Not implemented");}};Mixin.install=function(host,Ctor,opts){host.__mixins||(host.__mixins=[]);for(let i=0;i<host.__mixins.length;i++)if(host.__mixins[i].constructor===Ctor)return host.__mixins[i];let mixin=new Ctor(host,opts);return host.__mixins.push(mixin),mixin;};module.exports=Mixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js
|
|
214
|
+
var require_preprocessor_mixin=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js"(exports,module){"use strict";var Mixin=require_mixin(),PositionTrackingPreprocessorMixin=class extends Mixin{constructor(preprocessor){super(preprocessor),this.preprocessor=preprocessor,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1;}_getOverriddenMethods(mxn,orig){return{advance(){let pos=this.pos+1,ch=this.html[pos];return mxn.isEol&&(mxn.isEol=!1,mxn.line++,mxn.lineStartPos=pos),(ch===`
|
|
215
|
+
`||ch==="\r"&&this.html[pos+1]!==`
|
|
216
|
+
`)&&(mxn.isEol=!0),mxn.col=pos-mxn.lineStartPos+1,mxn.offset=mxn.droppedBufferSize+pos,orig.advance.call(this);},retreat(){orig.retreat.call(this),mxn.isEol=!1,mxn.col=this.pos-mxn.lineStartPos+1;},dropParsedChunk(){let prevPos=this.pos;orig.dropParsedChunk.call(this);let reduction=prevPos-this.pos;mxn.lineStartPos-=reduction,mxn.droppedBufferSize+=reduction,mxn.offset=mxn.droppedBufferSize+this.pos;}};}};module.exports=PositionTrackingPreprocessorMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js
|
|
217
|
+
var require_tokenizer_mixin=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js"(exports,module){"use strict";var Mixin=require_mixin(),Tokenizer=require_tokenizer(),PositionTrackingPreprocessorMixin=require_preprocessor_mixin(),LocationInfoTokenizerMixin=class extends Mixin{constructor(tokenizer){super(tokenizer),this.tokenizer=tokenizer,this.posTracker=Mixin.install(tokenizer.preprocessor,PositionTrackingPreprocessorMixin),this.currentAttrLocation=null,this.ctLoc=null;}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1};}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;let currentToken=this.tokenizer.currentToken,currentAttr=this.tokenizer.currentAttr;currentToken.location.attrs||(currentToken.location.attrs=/* @__PURE__ */Object.create(null)),currentToken.location.attrs[currentAttr.name]=this.currentAttrLocation;}_getOverriddenMethods(mxn,orig){let methods={_createStartTagToken(){orig._createStartTagToken.call(this),this.currentToken.location=mxn.ctLoc;},_createEndTagToken(){orig._createEndTagToken.call(this),this.currentToken.location=mxn.ctLoc;},_createCommentToken(){orig._createCommentToken.call(this),this.currentToken.location=mxn.ctLoc;},_createDoctypeToken(initialName){orig._createDoctypeToken.call(this,initialName),this.currentToken.location=mxn.ctLoc;},_createCharacterToken(type,ch){orig._createCharacterToken.call(this,type,ch),this.currentCharacterToken.location=mxn.ctLoc;},_createEOFToken(){orig._createEOFToken.call(this),this.currentToken.location=mxn._getCurrentLocation();},_createAttr(attrNameFirstCh){orig._createAttr.call(this,attrNameFirstCh),mxn.currentAttrLocation=mxn._getCurrentLocation();},_leaveAttrName(toState){orig._leaveAttrName.call(this,toState),mxn._attachCurrentAttrLocationInfo();},_leaveAttrValue(toState){orig._leaveAttrValue.call(this,toState),mxn._attachCurrentAttrLocationInfo();},_emitCurrentToken(){let ctLoc=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=ctLoc.startLine,this.currentCharacterToken.location.endCol=ctLoc.startCol,this.currentCharacterToken.location.endOffset=ctLoc.startOffset),this.currentToken.type===Tokenizer.EOF_TOKEN?(ctLoc.endLine=ctLoc.startLine,ctLoc.endCol=ctLoc.startCol,ctLoc.endOffset=ctLoc.startOffset):(ctLoc.endLine=mxn.posTracker.line,ctLoc.endCol=mxn.posTracker.col+1,ctLoc.endOffset=mxn.posTracker.offset+1),orig._emitCurrentToken.call(this);},_emitCurrentCharacterToken(){let ctLoc=this.currentCharacterToken&&this.currentCharacterToken.location;ctLoc&&ctLoc.endOffset===-1&&(ctLoc.endLine=mxn.posTracker.line,ctLoc.endCol=mxn.posTracker.col,ctLoc.endOffset=mxn.posTracker.offset),orig._emitCurrentCharacterToken.call(this);}};return Object.keys(Tokenizer.MODE).forEach(modeName=>{let state=Tokenizer.MODE[modeName];methods[state]=function(cp){mxn.ctLoc=mxn._getCurrentLocation(),orig[state].call(this,cp);};}),methods;}};module.exports=LocationInfoTokenizerMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js
|
|
218
|
+
var require_open_element_stack_mixin=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js"(exports,module){"use strict";var Mixin=require_mixin(),LocationInfoOpenElementStackMixin=class extends Mixin{constructor(stack,opts){super(stack),this.onItemPop=opts.onItemPop;}_getOverriddenMethods(mxn,orig){return{pop(){mxn.onItemPop(this.current),orig.pop.call(this);},popAllUpToHtmlElement(){for(let i=this.stackTop;i>0;i--)mxn.onItemPop(this.items[i]);orig.popAllUpToHtmlElement.call(this);},remove(element3){mxn.onItemPop(this.current),orig.remove.call(this,element3);}};}};module.exports=LocationInfoOpenElementStackMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/parser-mixin.js
|
|
219
|
+
var require_parser_mixin=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/location-info/parser-mixin.js"(exports,module){"use strict";var Mixin=require_mixin(),Tokenizer=require_tokenizer(),LocationInfoTokenizerMixin=require_tokenizer_mixin(),LocationInfoOpenElementStackMixin=require_open_element_stack_mixin(),HTML=require_html(),$=HTML.TAG_NAMES,LocationInfoParserMixin=class extends Mixin{constructor(parser){super(parser),this.parser=parser,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null;}_setStartLocation(element3){let loc=null;this.lastStartTagToken&&(loc=Object.assign({},this.lastStartTagToken.location),loc.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(element3,loc);}_setEndLocation(element3,closingToken){if(this.treeAdapter.getNodeSourceCodeLocation(element3)&&closingToken.location){let ctLoc=closingToken.location,tn=this.treeAdapter.getTagName(element3),isClosingEndTag=closingToken.type===Tokenizer.END_TAG_TOKEN&&tn===closingToken.tagName,endLoc={};isClosingEndTag?(endLoc.endTag=Object.assign({},ctLoc),endLoc.endLine=ctLoc.endLine,endLoc.endCol=ctLoc.endCol,endLoc.endOffset=ctLoc.endOffset):(endLoc.endLine=ctLoc.startLine,endLoc.endCol=ctLoc.startCol,endLoc.endOffset=ctLoc.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(element3,endLoc);}}_getOverriddenMethods(mxn,orig){return{_bootstrap(document2,fragmentContext){orig._bootstrap.call(this,document2,fragmentContext),mxn.lastStartTagToken=null,mxn.lastFosterParentingLocation=null,mxn.currentToken=null;let tokenizerMixin=Mixin.install(this.tokenizer,LocationInfoTokenizerMixin);mxn.posTracker=tokenizerMixin.posTracker,Mixin.install(this.openElements,LocationInfoOpenElementStackMixin,{onItemPop:function(element3){mxn._setEndLocation(element3,mxn.currentToken);}});},_runParsingLoop(scriptHandler){orig._runParsingLoop.call(this,scriptHandler);for(let i=this.openElements.stackTop;i>=0;i--)mxn._setEndLocation(this.openElements.items[i],mxn.currentToken);},//Token processing
|
|
220
|
+
_processTokenInForeignContent(token){mxn.currentToken=token,orig._processTokenInForeignContent.call(this,token);},_processToken(token){if(mxn.currentToken=token,orig._processToken.call(this,token),token.type===Tokenizer.END_TAG_TOKEN&&(token.tagName===$.HTML||token.tagName===$.BODY&&this.openElements.hasInScope($.BODY)))for(let i=this.openElements.stackTop;i>=0;i--){let element3=this.openElements.items[i];if(this.treeAdapter.getTagName(element3)===token.tagName){mxn._setEndLocation(element3,token);break;}}},//Doctype
|
|
221
|
+
_setDocumentType(token){orig._setDocumentType.call(this,token);let documentChildren=this.treeAdapter.getChildNodes(this.document),cnLength=documentChildren.length;for(let i=0;i<cnLength;i++){let node=documentChildren[i];if(this.treeAdapter.isDocumentTypeNode(node)){this.treeAdapter.setNodeSourceCodeLocation(node,token.location);break;}}},//Elements
|
|
222
|
+
_attachElementToTree(element3){mxn._setStartLocation(element3),mxn.lastStartTagToken=null,orig._attachElementToTree.call(this,element3);},_appendElement(token,namespaceURI){mxn.lastStartTagToken=token,orig._appendElement.call(this,token,namespaceURI);},_insertElement(token,namespaceURI){mxn.lastStartTagToken=token,orig._insertElement.call(this,token,namespaceURI);},_insertTemplate(token){mxn.lastStartTagToken=token,orig._insertTemplate.call(this,token);let tmplContent=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(tmplContent,null);},_insertFakeRootElement(){orig._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null);},//Comments
|
|
223
|
+
_appendCommentNode(token,parent){orig._appendCommentNode.call(this,token,parent);let children=this.treeAdapter.getChildNodes(parent),commentNode=children[children.length-1];this.treeAdapter.setNodeSourceCodeLocation(commentNode,token.location);},//Text
|
|
224
|
+
_findFosterParentingLocation(){return mxn.lastFosterParentingLocation=orig._findFosterParentingLocation.call(this),mxn.lastFosterParentingLocation;},_insertCharacters(token){orig._insertCharacters.call(this,token);let hasFosterParent=this._shouldFosterParentOnInsertion(),parent=hasFosterParent&&mxn.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,siblings2=this.treeAdapter.getChildNodes(parent),textNodeIdx=hasFosterParent&&mxn.lastFosterParentingLocation.beforeElement?siblings2.indexOf(mxn.lastFosterParentingLocation.beforeElement)-1:siblings2.length-1,textNode=siblings2[textNodeIdx];if(this.treeAdapter.getNodeSourceCodeLocation(textNode)){let{endLine,endCol,endOffset}=token.location;this.treeAdapter.updateNodeSourceCodeLocation(textNode,{endLine,endCol,endOffset});}else this.treeAdapter.setNodeSourceCodeLocation(textNode,token.location);}};}};module.exports=LocationInfoParserMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js
|
|
225
|
+
var require_mixin_base=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js"(exports,module){"use strict";var Mixin=require_mixin(),ErrorReportingMixinBase=class extends Mixin{constructor(host,opts){super(host),this.posTracker=null,this.onParseError=opts.onParseError;}_setErrorLocation(err){err.startLine=err.endLine=this.posTracker.line,err.startCol=err.endCol=this.posTracker.col,err.startOffset=err.endOffset=this.posTracker.offset;}_reportError(code){let err={code,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(err),this.onParseError(err);}_getOverriddenMethods(mxn){return{_err(code){mxn._reportError(code);}};}};module.exports=ErrorReportingMixinBase;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js
|
|
226
|
+
var require_preprocessor_mixin2=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js"(exports,module){"use strict";var ErrorReportingMixinBase=require_mixin_base(),PositionTrackingPreprocessorMixin=require_preprocessor_mixin(),Mixin=require_mixin(),ErrorReportingPreprocessorMixin=class extends ErrorReportingMixinBase{constructor(preprocessor,opts){super(preprocessor,opts),this.posTracker=Mixin.install(preprocessor,PositionTrackingPreprocessorMixin),this.lastErrOffset=-1;}_reportError(code){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(code));}};module.exports=ErrorReportingPreprocessorMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js
|
|
227
|
+
var require_tokenizer_mixin2=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js"(exports,module){"use strict";var ErrorReportingMixinBase=require_mixin_base(),ErrorReportingPreprocessorMixin=require_preprocessor_mixin2(),Mixin=require_mixin(),ErrorReportingTokenizerMixin=class extends ErrorReportingMixinBase{constructor(tokenizer,opts){super(tokenizer,opts);let preprocessorMixin=Mixin.install(tokenizer.preprocessor,ErrorReportingPreprocessorMixin,opts);this.posTracker=preprocessorMixin.posTracker;}};module.exports=ErrorReportingTokenizerMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js
|
|
228
|
+
var require_parser_mixin2=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js"(exports,module){"use strict";var ErrorReportingMixinBase=require_mixin_base(),ErrorReportingTokenizerMixin=require_tokenizer_mixin2(),LocationInfoTokenizerMixin=require_tokenizer_mixin(),Mixin=require_mixin(),ErrorReportingParserMixin=class extends ErrorReportingMixinBase{constructor(parser,opts){super(parser,opts),this.opts=opts,this.ctLoc=null,this.locBeforeToken=!1;}_setErrorLocation(err){this.ctLoc&&(err.startLine=this.ctLoc.startLine,err.startCol=this.ctLoc.startCol,err.startOffset=this.ctLoc.startOffset,err.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,err.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,err.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset);}_getOverriddenMethods(mxn,orig){return{_bootstrap(document2,fragmentContext){orig._bootstrap.call(this,document2,fragmentContext),Mixin.install(this.tokenizer,ErrorReportingTokenizerMixin,mxn.opts),Mixin.install(this.tokenizer,LocationInfoTokenizerMixin);},_processInputToken(token){mxn.ctLoc=token.location,orig._processInputToken.call(this,token);},_err(code,options){mxn.locBeforeToken=options&&options.beforeToken,mxn._reportError(code);}};}};module.exports=ErrorReportingParserMixin;}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/tree-adapters/default.js
|
|
229
|
+
var require_default=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/tree-adapters/default.js"(exports){"use strict";var{DOCUMENT_MODE}=require_html();exports.createDocument=function(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]};};exports.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]};};exports.createElement=function(tagName,namespaceURI,attrs){return{nodeName:tagName,tagName,attrs,namespaceURI,childNodes:[],parentNode:null};};exports.createCommentNode=function(data){return{nodeName:"#comment",data,parentNode:null};};var createTextNode=function(value){return{nodeName:"#text",value,parentNode:null};},appendChild=exports.appendChild=function(parentNode,newNode){parentNode.childNodes.push(newNode),newNode.parentNode=parentNode;},insertBefore=exports.insertBefore=function(parentNode,newNode,referenceNode){let insertionIdx=parentNode.childNodes.indexOf(referenceNode);parentNode.childNodes.splice(insertionIdx,0,newNode),newNode.parentNode=parentNode;};exports.setTemplateContent=function(templateElement,contentElement){templateElement.content=contentElement;};exports.getTemplateContent=function(templateElement){return templateElement.content;};exports.setDocumentType=function(document2,name,publicId,systemId){let doctypeNode=null;for(let i=0;i<document2.childNodes.length;i++)if(document2.childNodes[i].nodeName==="#documentType"){doctypeNode=document2.childNodes[i];break;}doctypeNode?(doctypeNode.name=name,doctypeNode.publicId=publicId,doctypeNode.systemId=systemId):appendChild(document2,{nodeName:"#documentType",name,publicId,systemId});};exports.setDocumentMode=function(document2,mode){document2.mode=mode;};exports.getDocumentMode=function(document2){return document2.mode;};exports.detachNode=function(node){if(node.parentNode){let idx=node.parentNode.childNodes.indexOf(node);node.parentNode.childNodes.splice(idx,1),node.parentNode=null;}};exports.insertText=function(parentNode,text2){if(parentNode.childNodes.length){let prevNode=parentNode.childNodes[parentNode.childNodes.length-1];if(prevNode.nodeName==="#text"){prevNode.value+=text2;return;}}appendChild(parentNode,createTextNode(text2));};exports.insertTextBefore=function(parentNode,text2,referenceNode){let prevNode=parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode)-1];prevNode&&prevNode.nodeName==="#text"?prevNode.value+=text2:insertBefore(parentNode,createTextNode(text2),referenceNode);};exports.adoptAttributes=function(recipient,attrs){let recipientAttrsMap=[];for(let i=0;i<recipient.attrs.length;i++)recipientAttrsMap.push(recipient.attrs[i].name);for(let j=0;j<attrs.length;j++)recipientAttrsMap.indexOf(attrs[j].name)===-1&&recipient.attrs.push(attrs[j]);};exports.getFirstChild=function(node){return node.childNodes[0];};exports.getChildNodes=function(node){return node.childNodes;};exports.getParentNode=function(node){return node.parentNode;};exports.getAttrList=function(element3){return element3.attrs;};exports.getTagName=function(element3){return element3.tagName;};exports.getNamespaceURI=function(element3){return element3.namespaceURI;};exports.getTextNodeContent=function(textNode){return textNode.value;};exports.getCommentNodeContent=function(commentNode){return commentNode.data;};exports.getDocumentTypeNodeName=function(doctypeNode){return doctypeNode.name;};exports.getDocumentTypeNodePublicId=function(doctypeNode){return doctypeNode.publicId;};exports.getDocumentTypeNodeSystemId=function(doctypeNode){return doctypeNode.systemId;};exports.isTextNode=function(node){return node.nodeName==="#text";};exports.isCommentNode=function(node){return node.nodeName==="#comment";};exports.isDocumentTypeNode=function(node){return node.nodeName==="#documentType";};exports.isElementNode=function(node){return!!node.tagName;};exports.setNodeSourceCodeLocation=function(node,location2){node.sourceCodeLocation=location2;};exports.getNodeSourceCodeLocation=function(node){return node.sourceCodeLocation;};exports.updateNodeSourceCodeLocation=function(node,endLocation){node.sourceCodeLocation=Object.assign(node.sourceCodeLocation,endLocation);};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/utils/merge-options.js
|
|
230
|
+
var require_merge_options=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/utils/merge-options.js"(exports,module){"use strict";module.exports=function(defaults,options){return options=options||/* @__PURE__ */Object.create(null),[defaults,options].reduce((merged,optObj)=>(Object.keys(optObj).forEach(key2=>{merged[key2]=optObj[key2];}),merged),/* @__PURE__ */Object.create(null));};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/common/doctype.js
|
|
231
|
+
var require_doctype=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/common/doctype.js"(exports){"use strict";var{DOCUMENT_MODE}=require_html(),VALID_DOCTYPE_NAME="html",VALID_SYSTEM_ID="about:legacy-compat",QUIRKS_MODE_SYSTEM_ID="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=QUIRKS_MODE_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),QUIRKS_MODE_PUBLIC_IDS=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=LIMITED_QUIRKS_PUBLIC_ID_PREFIXES.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function enquoteDoctypeId(id){let quote=id.indexOf('"')!==-1?"'":'"';return quote+id+quote;}function hasPrefix(publicId,prefixes){for(let i=0;i<prefixes.length;i++)if(publicId.indexOf(prefixes[i])===0)return!0;return!1;}exports.isConforming=function(token){return token.name===VALID_DOCTYPE_NAME&&token.publicId===null&&(token.systemId===null||token.systemId===VALID_SYSTEM_ID);};exports.getDocumentMode=function(token){if(token.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;let systemId=token.systemId;if(systemId&&systemId.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let publicId=token.publicId;if(publicId!==null){if(publicId=publicId.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.indexOf(publicId)>-1)return DOCUMENT_MODE.QUIRKS;let prefixes=systemId===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(publicId,prefixes))return DOCUMENT_MODE.QUIRKS;if(prefixes=systemId===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(publicId,prefixes))return DOCUMENT_MODE.LIMITED_QUIRKS;}return DOCUMENT_MODE.NO_QUIRKS;};exports.serializeContent=function(name,publicId,systemId){let str="!DOCTYPE ";return name&&(str+=name),publicId?str+=" PUBLIC "+enquoteDoctypeId(publicId):systemId&&(str+=" SYSTEM"),systemId!==null&&(str+=" "+enquoteDoctypeId(systemId)),str;};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/common/foreign-content.js
|
|
232
|
+
var require_foreign_content=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/common/foreign-content.js"(exports){"use strict";var Tokenizer=require_tokenizer(),HTML=require_html(),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES,ATTRS=HTML.ATTRS,MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},XML_ATTRS_ADJUSTMENT_MAP={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:NS.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:NS.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:NS.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:NS.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:NS.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:NS.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:NS.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:NS.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:NS.XML},"xml:space":{prefix:"xml",name:"space",namespace:NS.XML},xmlns:{prefix:"",name:"xmlns",namespace:NS.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}},SVG_TAG_NAMES_ADJUSTMENT_MAP=exports.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},EXITS_FOREIGN_CONTENT={[$.B]:!0,[$.BIG]:!0,[$.BLOCKQUOTE]:!0,[$.BODY]:!0,[$.BR]:!0,[$.CENTER]:!0,[$.CODE]:!0,[$.DD]:!0,[$.DIV]:!0,[$.DL]:!0,[$.DT]:!0,[$.EM]:!0,[$.EMBED]:!0,[$.H1]:!0,[$.H2]:!0,[$.H3]:!0,[$.H4]:!0,[$.H5]:!0,[$.H6]:!0,[$.HEAD]:!0,[$.HR]:!0,[$.I]:!0,[$.IMG]:!0,[$.LI]:!0,[$.LISTING]:!0,[$.MENU]:!0,[$.META]:!0,[$.NOBR]:!0,[$.OL]:!0,[$.P]:!0,[$.PRE]:!0,[$.RUBY]:!0,[$.S]:!0,[$.SMALL]:!0,[$.SPAN]:!0,[$.STRONG]:!0,[$.STRIKE]:!0,[$.SUB]:!0,[$.SUP]:!0,[$.TABLE]:!0,[$.TT]:!0,[$.U]:!0,[$.UL]:!0,[$.VAR]:!0};exports.causesExit=function(startTagToken){let tn=startTagToken.tagName;return tn===$.FONT&&(Tokenizer.getTokenAttr(startTagToken,ATTRS.COLOR)!==null||Tokenizer.getTokenAttr(startTagToken,ATTRS.SIZE)!==null||Tokenizer.getTokenAttr(startTagToken,ATTRS.FACE)!==null)?!0:EXITS_FOREIGN_CONTENT[tn];};exports.adjustTokenMathMLAttrs=function(token){for(let i=0;i<token.attrs.length;i++)if(token.attrs[i].name===DEFINITION_URL_ATTR){token.attrs[i].name=ADJUSTED_DEFINITION_URL_ATTR;break;}};exports.adjustTokenSVGAttrs=function(token){for(let i=0;i<token.attrs.length;i++){let adjustedAttrName=SVG_ATTRS_ADJUSTMENT_MAP[token.attrs[i].name];adjustedAttrName&&(token.attrs[i].name=adjustedAttrName);}};exports.adjustTokenXMLAttrs=function(token){for(let i=0;i<token.attrs.length;i++){let adjustedAttrEntry=XML_ATTRS_ADJUSTMENT_MAP[token.attrs[i].name];adjustedAttrEntry&&(token.attrs[i].prefix=adjustedAttrEntry.prefix,token.attrs[i].name=adjustedAttrEntry.name,token.attrs[i].namespace=adjustedAttrEntry.namespace);}};exports.adjustTokenSVGTagName=function(token){let adjustedTagName=SVG_TAG_NAMES_ADJUSTMENT_MAP[token.tagName];adjustedTagName&&(token.tagName=adjustedTagName);};function isMathMLTextIntegrationPoint(tn,ns){return ns===NS.MATHML&&(tn===$.MI||tn===$.MO||tn===$.MN||tn===$.MS||tn===$.MTEXT);}function isHtmlIntegrationPoint(tn,ns,attrs){if(ns===NS.MATHML&&tn===$.ANNOTATION_XML){for(let i=0;i<attrs.length;i++)if(attrs[i].name===ATTRS.ENCODING){let value=attrs[i].value.toLowerCase();return value===MIME_TYPES.TEXT_HTML||value===MIME_TYPES.APPLICATION_XML;}}return ns===NS.SVG&&(tn===$.FOREIGN_OBJECT||tn===$.DESC||tn===$.TITLE);}exports.isIntegrationPoint=function(tn,ns,attrs,foreignNS){return!!((!foreignNS||foreignNS===NS.HTML)&&isHtmlIntegrationPoint(tn,ns,attrs)||(!foreignNS||foreignNS===NS.MATHML)&&isMathMLTextIntegrationPoint(tn,ns));};}});// ../../node_modules/rehype-parse/node_modules/parse5/lib/parser/index.js
|
|
233
|
+
var require_parser=__commonJS({"../../node_modules/rehype-parse/node_modules/parse5/lib/parser/index.js"(exports,module){"use strict";var Tokenizer=require_tokenizer(),OpenElementStack=require_open_element_stack(),FormattingElementList=require_formatting_element_list(),LocationInfoParserMixin=require_parser_mixin(),ErrorReportingParserMixin=require_parser_mixin2(),Mixin=require_mixin(),defaultTreeAdapter=require_default(),mergeOptions=require_merge_options(),doctype2=require_doctype(),foreignContent=require_foreign_content(),ERR=require_error_codes(),unicode=require_unicode(),HTML=require_html(),$=HTML.TAG_NAMES,NS=HTML.NAMESPACES,ATTRS=HTML.ATTRS,DEFAULT_OPTIONS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:defaultTreeAdapter},HIDDEN_INPUT_TYPE="hidden",AA_OUTER_LOOP_ITER=8,AA_INNER_LOOP_ITER=3,INITIAL_MODE="INITIAL_MODE",BEFORE_HTML_MODE="BEFORE_HTML_MODE",BEFORE_HEAD_MODE="BEFORE_HEAD_MODE",IN_HEAD_MODE="IN_HEAD_MODE",IN_HEAD_NO_SCRIPT_MODE="IN_HEAD_NO_SCRIPT_MODE",AFTER_HEAD_MODE="AFTER_HEAD_MODE",IN_BODY_MODE="IN_BODY_MODE",TEXT_MODE="TEXT_MODE",IN_TABLE_MODE="IN_TABLE_MODE",IN_TABLE_TEXT_MODE="IN_TABLE_TEXT_MODE",IN_CAPTION_MODE="IN_CAPTION_MODE",IN_COLUMN_GROUP_MODE="IN_COLUMN_GROUP_MODE",IN_TABLE_BODY_MODE="IN_TABLE_BODY_MODE",IN_ROW_MODE="IN_ROW_MODE",IN_CELL_MODE="IN_CELL_MODE",IN_SELECT_MODE="IN_SELECT_MODE",IN_SELECT_IN_TABLE_MODE="IN_SELECT_IN_TABLE_MODE",IN_TEMPLATE_MODE="IN_TEMPLATE_MODE",AFTER_BODY_MODE="AFTER_BODY_MODE",IN_FRAMESET_MODE="IN_FRAMESET_MODE",AFTER_FRAMESET_MODE="AFTER_FRAMESET_MODE",AFTER_AFTER_BODY_MODE="AFTER_AFTER_BODY_MODE",AFTER_AFTER_FRAMESET_MODE="AFTER_AFTER_FRAMESET_MODE",INSERTION_MODE_RESET_MAP={[$.TR]:IN_ROW_MODE,[$.TBODY]:IN_TABLE_BODY_MODE,[$.THEAD]:IN_TABLE_BODY_MODE,[$.TFOOT]:IN_TABLE_BODY_MODE,[$.CAPTION]:IN_CAPTION_MODE,[$.COLGROUP]:IN_COLUMN_GROUP_MODE,[$.TABLE]:IN_TABLE_MODE,[$.BODY]:IN_BODY_MODE,[$.FRAMESET]:IN_FRAMESET_MODE},TEMPLATE_INSERTION_MODE_SWITCH_MAP={[$.CAPTION]:IN_TABLE_MODE,[$.COLGROUP]:IN_TABLE_MODE,[$.TBODY]:IN_TABLE_MODE,[$.TFOOT]:IN_TABLE_MODE,[$.THEAD]:IN_TABLE_MODE,[$.COL]:IN_COLUMN_GROUP_MODE,[$.TR]:IN_TABLE_BODY_MODE,[$.TD]:IN_ROW_MODE,[$.TH]:IN_ROW_MODE},TOKEN_HANDLERS={[INITIAL_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenInInitialMode,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInInitialMode,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:doctypeInInitialMode,[Tokenizer.START_TAG_TOKEN]:tokenInInitialMode,[Tokenizer.END_TAG_TOKEN]:tokenInInitialMode,[Tokenizer.EOF_TOKEN]:tokenInInitialMode},[BEFORE_HTML_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenBeforeHtml,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenBeforeHtml,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagBeforeHtml,[Tokenizer.END_TAG_TOKEN]:endTagBeforeHtml,[Tokenizer.EOF_TOKEN]:tokenBeforeHtml},[BEFORE_HEAD_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenBeforeHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenBeforeHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagBeforeHead,[Tokenizer.END_TAG_TOKEN]:endTagBeforeHead,[Tokenizer.EOF_TOKEN]:tokenBeforeHead},[IN_HEAD_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenInHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagInHead,[Tokenizer.END_TAG_TOKEN]:endTagInHead,[Tokenizer.EOF_TOKEN]:tokenInHead},[IN_HEAD_NO_SCRIPT_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenInHeadNoScript,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInHeadNoScript,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagInHeadNoScript,[Tokenizer.END_TAG_TOKEN]:endTagInHeadNoScript,[Tokenizer.EOF_TOKEN]:tokenInHeadNoScript},[AFTER_HEAD_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterHead,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterHead,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:misplacedDoctype,[Tokenizer.START_TAG_TOKEN]:startTagAfterHead,[Tokenizer.END_TAG_TOKEN]:endTagAfterHead,[Tokenizer.EOF_TOKEN]:tokenAfterHead},[IN_BODY_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInBody,[Tokenizer.END_TAG_TOKEN]:endTagInBody,[Tokenizer.EOF_TOKEN]:eofInBody},[TEXT_MODE]:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:ignoreToken,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:ignoreToken,[Tokenizer.END_TAG_TOKEN]:endTagInText,[Tokenizer.EOF_TOKEN]:eofInText},[IN_TABLE_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTable,[Tokenizer.END_TAG_TOKEN]:endTagInTable,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_TABLE_TEXT_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInTableText,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInTableText,[Tokenizer.COMMENT_TOKEN]:tokenInTableText,[Tokenizer.DOCTYPE_TOKEN]:tokenInTableText,[Tokenizer.START_TAG_TOKEN]:tokenInTableText,[Tokenizer.END_TAG_TOKEN]:tokenInTableText,[Tokenizer.EOF_TOKEN]:tokenInTableText},[IN_CAPTION_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInCaption,[Tokenizer.END_TAG_TOKEN]:endTagInCaption,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_COLUMN_GROUP_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenInColumnGroup,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenInColumnGroup,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInColumnGroup,[Tokenizer.END_TAG_TOKEN]:endTagInColumnGroup,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_TABLE_BODY_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTableBody,[Tokenizer.END_TAG_TOKEN]:endTagInTableBody,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_ROW_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInTable,[Tokenizer.NULL_CHARACTER_TOKEN]:characterInTable,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:characterInTable,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInRow,[Tokenizer.END_TAG_TOKEN]:endTagInRow,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_CELL_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInCell,[Tokenizer.END_TAG_TOKEN]:endTagInCell,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_SELECT_MODE]:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInSelect,[Tokenizer.END_TAG_TOKEN]:endTagInSelect,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_SELECT_IN_TABLE_MODE]:{[Tokenizer.CHARACTER_TOKEN]:insertCharacters,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInSelectInTable,[Tokenizer.END_TAG_TOKEN]:endTagInSelectInTable,[Tokenizer.EOF_TOKEN]:eofInBody},[IN_TEMPLATE_MODE]:{[Tokenizer.CHARACTER_TOKEN]:characterInBody,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInTemplate,[Tokenizer.END_TAG_TOKEN]:endTagInTemplate,[Tokenizer.EOF_TOKEN]:eofInTemplate},[AFTER_BODY_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterBody,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterBody,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToRootHtmlElement,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterBody,[Tokenizer.END_TAG_TOKEN]:endTagAfterBody,[Tokenizer.EOF_TOKEN]:stopParsing},[IN_FRAMESET_MODE]:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagInFrameset,[Tokenizer.END_TAG_TOKEN]:endTagInFrameset,[Tokenizer.EOF_TOKEN]:stopParsing},[AFTER_FRAMESET_MODE]:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:insertCharacters,[Tokenizer.COMMENT_TOKEN]:appendComment,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterFrameset,[Tokenizer.END_TAG_TOKEN]:endTagAfterFrameset,[Tokenizer.EOF_TOKEN]:stopParsing},[AFTER_AFTER_BODY_MODE]:{[Tokenizer.CHARACTER_TOKEN]:tokenAfterAfterBody,[Tokenizer.NULL_CHARACTER_TOKEN]:tokenAfterAfterBody,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToDocument,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterAfterBody,[Tokenizer.END_TAG_TOKEN]:tokenAfterAfterBody,[Tokenizer.EOF_TOKEN]:stopParsing},[AFTER_AFTER_FRAMESET_MODE]:{[Tokenizer.CHARACTER_TOKEN]:ignoreToken,[Tokenizer.NULL_CHARACTER_TOKEN]:ignoreToken,[Tokenizer.WHITESPACE_CHARACTER_TOKEN]:whitespaceCharacterInBody,[Tokenizer.COMMENT_TOKEN]:appendCommentToDocument,[Tokenizer.DOCTYPE_TOKEN]:ignoreToken,[Tokenizer.START_TAG_TOKEN]:startTagAfterAfterFrameset,[Tokenizer.END_TAG_TOKEN]:ignoreToken,[Tokenizer.EOF_TOKEN]:stopParsing}},Parser=class{constructor(options){this.options=mergeOptions(DEFAULT_OPTIONS,options),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Mixin.install(this,LocationInfoParserMixin),this.options.onParseError&&Mixin.install(this,ErrorReportingParserMixin,{onParseError:this.options.onParseError});}// API
|
|
234
|
+
parse(html5){let document2=this.treeAdapter.createDocument();return this._bootstrap(document2,null),this.tokenizer.write(html5,!0),this._runParsingLoop(null),document2;}parseFragment(html5,fragmentContext){fragmentContext||(fragmentContext=this.treeAdapter.createElement($.TEMPLATE,NS.HTML,[]));let documentMock=this.treeAdapter.createElement("documentmock",NS.HTML,[]);this._bootstrap(documentMock,fragmentContext),this.treeAdapter.getTagName(fragmentContext)===$.TEMPLATE&&this._pushTmplInsertionMode(IN_TEMPLATE_MODE),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(html5,!0),this._runParsingLoop(null);let rootElement=this.treeAdapter.getFirstChild(documentMock),fragment=this.treeAdapter.createDocumentFragment();return this._adoptNodes(rootElement,fragment),fragment;}//Bootstrap parser
|
|
235
|
+
_bootstrap(document2,fragmentContext){this.tokenizer=new Tokenizer(this.options),this.stopped=!1,this.insertionMode=INITIAL_MODE,this.originalInsertionMode="",this.document=document2,this.fragmentContext=fragmentContext,this.headElement=null,this.formElement=null,this.openElements=new OpenElementStack(this.document,this.treeAdapter),this.activeFormattingElements=new FormattingElementList(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1;}//Errors
|
|
236
|
+
_err(){}//Parsing loop
|
|
237
|
+
_runParsingLoop(scriptHandler){for(;!this.stopped;){this._setupTokenizerCDATAMode();let token=this.tokenizer.getNextToken();if(token.type===Tokenizer.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN&&token.chars[0]===`
|
|
238
|
+
`)){if(token.chars.length===1)continue;token.chars=token.chars.substr(1);}if(this._processInputToken(token),scriptHandler&&this.pendingScript)break;}}runParsingLoopForCurrentChunk(writeCallback,scriptHandler){if(this._runParsingLoop(scriptHandler),scriptHandler&&this.pendingScript){let script=this.pendingScript;this.pendingScript=null,scriptHandler(script);return;}writeCallback&&writeCallback();}//Text parsing
|
|
239
|
+
_setupTokenizerCDATAMode(){let current=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=current&¤t!==this.document&&this.treeAdapter.getNamespaceURI(current)!==NS.HTML&&!this._isIntegrationPoint(current);}_switchToTextParsing(currentToken,nextTokenizerState){this._insertElement(currentToken,NS.HTML),this.tokenizer.state=nextTokenizerState,this.originalInsertionMode=this.insertionMode,this.insertionMode=TEXT_MODE;}switchToPlaintextParsing(){this.insertionMode=TEXT_MODE,this.originalInsertionMode=IN_BODY_MODE,this.tokenizer.state=Tokenizer.MODE.PLAINTEXT;}//Fragment parsing
|
|
240
|
+
_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current;}_findFormInFragmentContext(){let node=this.fragmentContext;do{if(this.treeAdapter.getTagName(node)===$.FORM){this.formElement=node;break;}node=this.treeAdapter.getParentNode(node);}while(node);}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===NS.HTML){let tn=this.treeAdapter.getTagName(this.fragmentContext);tn===$.TITLE||tn===$.TEXTAREA?this.tokenizer.state=Tokenizer.MODE.RCDATA:tn===$.STYLE||tn===$.XMP||tn===$.IFRAME||tn===$.NOEMBED||tn===$.NOFRAMES||tn===$.NOSCRIPT?this.tokenizer.state=Tokenizer.MODE.RAWTEXT:tn===$.SCRIPT?this.tokenizer.state=Tokenizer.MODE.SCRIPT_DATA:tn===$.PLAINTEXT&&(this.tokenizer.state=Tokenizer.MODE.PLAINTEXT);}}//Tree mutation
|
|
241
|
+
_setDocumentType(token){let name=token.name||"",publicId=token.publicId||"",systemId=token.systemId||"";this.treeAdapter.setDocumentType(this.document,name,publicId,systemId);}_attachElementToTree(element3){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(element3);else{let parent=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(parent,element3);}}_appendElement(token,namespaceURI){let element3=this.treeAdapter.createElement(token.tagName,namespaceURI,token.attrs);this._attachElementToTree(element3);}_insertElement(token,namespaceURI){let element3=this.treeAdapter.createElement(token.tagName,namespaceURI,token.attrs);this._attachElementToTree(element3),this.openElements.push(element3);}_insertFakeElement(tagName){let element3=this.treeAdapter.createElement(tagName,NS.HTML,[]);this._attachElementToTree(element3),this.openElements.push(element3);}_insertTemplate(token){let tmpl=this.treeAdapter.createElement(token.tagName,NS.HTML,token.attrs),content=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(tmpl,content),this._attachElementToTree(tmpl),this.openElements.push(tmpl);}_insertFakeRootElement(){let element3=this.treeAdapter.createElement($.HTML,NS.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,element3),this.openElements.push(element3);}_appendCommentNode(token,parent){let commentNode=this.treeAdapter.createCommentNode(token.data);this.treeAdapter.appendChild(parent,commentNode);}_insertCharacters(token){if(this._shouldFosterParentOnInsertion())this._fosterParentText(token.chars);else{let parent=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(parent,token.chars);}}_adoptNodes(donor,recipient){for(let child=this.treeAdapter.getFirstChild(donor);child;child=this.treeAdapter.getFirstChild(donor))this.treeAdapter.detachNode(child),this.treeAdapter.appendChild(recipient,child);}//Token processing
|
|
242
|
+
_shouldProcessTokenInForeignContent(token){let current=this._getAdjustedCurrentElement();if(!current||current===this.document)return!1;let ns=this.treeAdapter.getNamespaceURI(current);if(ns===NS.HTML||this.treeAdapter.getTagName(current)===$.ANNOTATION_XML&&ns===NS.MATHML&&token.type===Tokenizer.START_TAG_TOKEN&&token.tagName===$.SVG)return!1;let isCharacterToken=token.type===Tokenizer.CHARACTER_TOKEN||token.type===Tokenizer.NULL_CHARACTER_TOKEN||token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN;return(token.type===Tokenizer.START_TAG_TOKEN&&token.tagName!==$.MGLYPH&&token.tagName!==$.MALIGNMARK||isCharacterToken)&&this._isIntegrationPoint(current,NS.MATHML)||(token.type===Tokenizer.START_TAG_TOKEN||isCharacterToken)&&this._isIntegrationPoint(current,NS.HTML)?!1:token.type!==Tokenizer.EOF_TOKEN;}_processToken(token){TOKEN_HANDLERS[this.insertionMode][token.type](this,token);}_processTokenInBodyMode(token){TOKEN_HANDLERS[IN_BODY_MODE][token.type](this,token);}_processTokenInForeignContent(token){token.type===Tokenizer.CHARACTER_TOKEN?characterInForeignContent(this,token):token.type===Tokenizer.NULL_CHARACTER_TOKEN?nullCharacterInForeignContent(this,token):token.type===Tokenizer.WHITESPACE_CHARACTER_TOKEN?insertCharacters(this,token):token.type===Tokenizer.COMMENT_TOKEN?appendComment(this,token):token.type===Tokenizer.START_TAG_TOKEN?startTagInForeignContent(this,token):token.type===Tokenizer.END_TAG_TOKEN&&endTagInForeignContent(this,token);}_processInputToken(token){this._shouldProcessTokenInForeignContent(token)?this._processTokenInForeignContent(token):this._processToken(token),token.type===Tokenizer.START_TAG_TOKEN&&token.selfClosing&&!token.ackSelfClosing&&this._err(ERR.nonVoidHtmlElementStartTagWithTrailingSolidus);}//Integration points
|
|
243
|
+
_isIntegrationPoint(element3,foreignNS){let tn=this.treeAdapter.getTagName(element3),ns=this.treeAdapter.getNamespaceURI(element3),attrs=this.treeAdapter.getAttrList(element3);return foreignContent.isIntegrationPoint(tn,ns,attrs,foreignNS);}//Active formatting elements reconstruction
|
|
244
|
+
_reconstructActiveFormattingElements(){let listLength=this.activeFormattingElements.length;if(listLength){let unopenIdx=listLength,entry=null;do if(unopenIdx--,entry=this.activeFormattingElements.entries[unopenIdx],entry.type===FormattingElementList.MARKER_ENTRY||this.openElements.contains(entry.element)){unopenIdx++;break;}while(unopenIdx>0);for(let i=unopenIdx;i<listLength;i++)entry=this.activeFormattingElements.entries[i],this._insertElement(entry.token,this.treeAdapter.getNamespaceURI(entry.element)),entry.element=this.openElements.current;}}//Close elements
|
|
245
|
+
_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=IN_ROW_MODE;}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion($.P),this.openElements.popUntilTagNamePopped($.P);}//Insertion modes
|
|
246
|
+
_resetInsertionMode(){for(let i=this.openElements.stackTop,last=!1;i>=0;i--){let element3=this.openElements.items[i];i===0&&(last=!0,this.fragmentContext&&(element3=this.fragmentContext));let tn=this.treeAdapter.getTagName(element3),newInsertionMode=INSERTION_MODE_RESET_MAP[tn];if(newInsertionMode){this.insertionMode=newInsertionMode;break;}else if(!last&&(tn===$.TD||tn===$.TH)){this.insertionMode=IN_CELL_MODE;break;}else if(!last&&tn===$.HEAD){this.insertionMode=IN_HEAD_MODE;break;}else if(tn===$.SELECT){this._resetInsertionModeForSelect(i);break;}else if(tn===$.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break;}else if(tn===$.HTML){this.insertionMode=this.headElement?AFTER_HEAD_MODE:BEFORE_HEAD_MODE;break;}else if(last){this.insertionMode=IN_BODY_MODE;break;}}}_resetInsertionModeForSelect(selectIdx){if(selectIdx>0)for(let i=selectIdx-1;i>0;i--){let ancestor=this.openElements.items[i],tn=this.treeAdapter.getTagName(ancestor);if(tn===$.TEMPLATE)break;if(tn===$.TABLE){this.insertionMode=IN_SELECT_IN_TABLE_MODE;return;}}this.insertionMode=IN_SELECT_MODE;}_pushTmplInsertionMode(mode){this.tmplInsertionModeStack.push(mode),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=mode;}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop];}//Foster parenting
|
|
247
|
+
_isElementCausesFosterParenting(element3){let tn=this.treeAdapter.getTagName(element3);return tn===$.TABLE||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR;}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current);}_findFosterParentingLocation(){let location2={parent:null,beforeElement:null};for(let i=this.openElements.stackTop;i>=0;i--){let openElement=this.openElements.items[i],tn=this.treeAdapter.getTagName(openElement),ns=this.treeAdapter.getNamespaceURI(openElement);if(tn===$.TEMPLATE&&ns===NS.HTML){location2.parent=this.treeAdapter.getTemplateContent(openElement);break;}else if(tn===$.TABLE){location2.parent=this.treeAdapter.getParentNode(openElement),location2.parent?location2.beforeElement=openElement:location2.parent=this.openElements.items[i-1];break;}}return location2.parent||(location2.parent=this.openElements.items[0]),location2;}_fosterParentElement(element3){let location2=this._findFosterParentingLocation();location2.beforeElement?this.treeAdapter.insertBefore(location2.parent,element3,location2.beforeElement):this.treeAdapter.appendChild(location2.parent,element3);}_fosterParentText(chars){let location2=this._findFosterParentingLocation();location2.beforeElement?this.treeAdapter.insertTextBefore(location2.parent,chars,location2.beforeElement):this.treeAdapter.insertText(location2.parent,chars);}//Special elements
|
|
248
|
+
_isSpecialElement(element3){let tn=this.treeAdapter.getTagName(element3),ns=this.treeAdapter.getNamespaceURI(element3);return HTML.SPECIAL_ELEMENTS[ns][tn];}};module.exports=Parser;function aaObtainFormattingElementEntry(p2,token){let formattingElementEntry=p2.activeFormattingElements.getElementEntryInScopeWithTagName(token.tagName);return formattingElementEntry?p2.openElements.contains(formattingElementEntry.element)?p2.openElements.hasInScope(token.tagName)||(formattingElementEntry=null):(p2.activeFormattingElements.removeEntry(formattingElementEntry),formattingElementEntry=null):genericEndTagInBody(p2,token),formattingElementEntry;}function aaObtainFurthestBlock(p2,formattingElementEntry){let furthestBlock=null;for(let i=p2.openElements.stackTop;i>=0;i--){let element3=p2.openElements.items[i];if(element3===formattingElementEntry.element)break;p2._isSpecialElement(element3)&&(furthestBlock=element3);}return furthestBlock||(p2.openElements.popUntilElementPopped(formattingElementEntry.element),p2.activeFormattingElements.removeEntry(formattingElementEntry)),furthestBlock;}function aaInnerLoop(p2,furthestBlock,formattingElement){let lastElement=furthestBlock,nextElement=p2.openElements.getCommonAncestor(furthestBlock);for(let i=0,element3=nextElement;element3!==formattingElement;i++,element3=nextElement){nextElement=p2.openElements.getCommonAncestor(element3);let elementEntry=p2.activeFormattingElements.getElementEntry(element3),counterOverflow=elementEntry&&i>=AA_INNER_LOOP_ITER;!elementEntry||counterOverflow?(counterOverflow&&p2.activeFormattingElements.removeEntry(elementEntry),p2.openElements.remove(element3)):(element3=aaRecreateElementFromEntry(p2,elementEntry),lastElement===furthestBlock&&(p2.activeFormattingElements.bookmark=elementEntry),p2.treeAdapter.detachNode(lastElement),p2.treeAdapter.appendChild(element3,lastElement),lastElement=element3);}return lastElement;}function aaRecreateElementFromEntry(p2,elementEntry){let ns=p2.treeAdapter.getNamespaceURI(elementEntry.element),newElement=p2.treeAdapter.createElement(elementEntry.token.tagName,ns,elementEntry.token.attrs);return p2.openElements.replace(elementEntry.element,newElement),elementEntry.element=newElement,newElement;}function aaInsertLastNodeInCommonAncestor(p2,commonAncestor,lastElement){if(p2._isElementCausesFosterParenting(commonAncestor))p2._fosterParentElement(lastElement);else{let tn=p2.treeAdapter.getTagName(commonAncestor),ns=p2.treeAdapter.getNamespaceURI(commonAncestor);tn===$.TEMPLATE&&ns===NS.HTML&&(commonAncestor=p2.treeAdapter.getTemplateContent(commonAncestor)),p2.treeAdapter.appendChild(commonAncestor,lastElement);}}function aaReplaceFormattingElement(p2,furthestBlock,formattingElementEntry){let ns=p2.treeAdapter.getNamespaceURI(formattingElementEntry.element),token=formattingElementEntry.token,newElement=p2.treeAdapter.createElement(token.tagName,ns,token.attrs);p2._adoptNodes(furthestBlock,newElement),p2.treeAdapter.appendChild(furthestBlock,newElement),p2.activeFormattingElements.insertElementAfterBookmark(newElement,formattingElementEntry.token),p2.activeFormattingElements.removeEntry(formattingElementEntry),p2.openElements.remove(formattingElementEntry.element),p2.openElements.insertAfter(furthestBlock,newElement);}function callAdoptionAgency(p2,token){let formattingElementEntry;for(let i=0;i<AA_OUTER_LOOP_ITER&&(formattingElementEntry=aaObtainFormattingElementEntry(p2,token,formattingElementEntry),!!formattingElementEntry);i++){let furthestBlock=aaObtainFurthestBlock(p2,formattingElementEntry);if(!furthestBlock)break;p2.activeFormattingElements.bookmark=formattingElementEntry;let lastElement=aaInnerLoop(p2,furthestBlock,formattingElementEntry.element),commonAncestor=p2.openElements.getCommonAncestor(formattingElementEntry.element);p2.treeAdapter.detachNode(lastElement),aaInsertLastNodeInCommonAncestor(p2,commonAncestor,lastElement),aaReplaceFormattingElement(p2,furthestBlock,formattingElementEntry);}}function ignoreToken(){}function misplacedDoctype(p2){p2._err(ERR.misplacedDoctype);}function appendComment(p2,token){p2._appendCommentNode(token,p2.openElements.currentTmplContent||p2.openElements.current);}function appendCommentToRootHtmlElement(p2,token){p2._appendCommentNode(token,p2.openElements.items[0]);}function appendCommentToDocument(p2,token){p2._appendCommentNode(token,p2.document);}function insertCharacters(p2,token){p2._insertCharacters(token);}function stopParsing(p2){p2.stopped=!0;}function doctypeInInitialMode(p2,token){p2._setDocumentType(token);let mode=token.forceQuirks?HTML.DOCUMENT_MODE.QUIRKS:doctype2.getDocumentMode(token);doctype2.isConforming(token)||p2._err(ERR.nonConformingDoctype),p2.treeAdapter.setDocumentMode(p2.document,mode),p2.insertionMode=BEFORE_HTML_MODE;}function tokenInInitialMode(p2,token){p2._err(ERR.missingDoctype,{beforeToken:!0}),p2.treeAdapter.setDocumentMode(p2.document,HTML.DOCUMENT_MODE.QUIRKS),p2.insertionMode=BEFORE_HTML_MODE,p2._processToken(token);}function startTagBeforeHtml(p2,token){token.tagName===$.HTML?(p2._insertElement(token,NS.HTML),p2.insertionMode=BEFORE_HEAD_MODE):tokenBeforeHtml(p2,token);}function endTagBeforeHtml(p2,token){let tn=token.tagName;(tn===$.HTML||tn===$.HEAD||tn===$.BODY||tn===$.BR)&&tokenBeforeHtml(p2,token);}function tokenBeforeHtml(p2,token){p2._insertFakeRootElement(),p2.insertionMode=BEFORE_HEAD_MODE,p2._processToken(token);}function startTagBeforeHead(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.HEAD?(p2._insertElement(token,NS.HTML),p2.headElement=p2.openElements.current,p2.insertionMode=IN_HEAD_MODE):tokenBeforeHead(p2,token);}function endTagBeforeHead(p2,token){let tn=token.tagName;tn===$.HEAD||tn===$.BODY||tn===$.HTML||tn===$.BR?tokenBeforeHead(p2,token):p2._err(ERR.endTagWithoutMatchingOpenElement);}function tokenBeforeHead(p2,token){p2._insertFakeElement($.HEAD),p2.headElement=p2.openElements.current,p2.insertionMode=IN_HEAD_MODE,p2._processToken(token);}function startTagInHead(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.BASE||tn===$.BASEFONT||tn===$.BGSOUND||tn===$.LINK||tn===$.META?(p2._appendElement(token,NS.HTML),token.ackSelfClosing=!0):tn===$.TITLE?p2._switchToTextParsing(token,Tokenizer.MODE.RCDATA):tn===$.NOSCRIPT?p2.options.scriptingEnabled?p2._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT):(p2._insertElement(token,NS.HTML),p2.insertionMode=IN_HEAD_NO_SCRIPT_MODE):tn===$.NOFRAMES||tn===$.STYLE?p2._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT):tn===$.SCRIPT?p2._switchToTextParsing(token,Tokenizer.MODE.SCRIPT_DATA):tn===$.TEMPLATE?(p2._insertTemplate(token,NS.HTML),p2.activeFormattingElements.insertMarker(),p2.framesetOk=!1,p2.insertionMode=IN_TEMPLATE_MODE,p2._pushTmplInsertionMode(IN_TEMPLATE_MODE)):tn===$.HEAD?p2._err(ERR.misplacedStartTagForHeadElement):tokenInHead(p2,token);}function endTagInHead(p2,token){let tn=token.tagName;tn===$.HEAD?(p2.openElements.pop(),p2.insertionMode=AFTER_HEAD_MODE):tn===$.BODY||tn===$.BR||tn===$.HTML?tokenInHead(p2,token):tn===$.TEMPLATE&&p2.openElements.tmplCount>0?(p2.openElements.generateImpliedEndTagsThoroughly(),p2.openElements.currentTagName!==$.TEMPLATE&&p2._err(ERR.closingOfElementWithOpenChildElements),p2.openElements.popUntilTagNamePopped($.TEMPLATE),p2.activeFormattingElements.clearToLastMarker(),p2._popTmplInsertionMode(),p2._resetInsertionMode()):p2._err(ERR.endTagWithoutMatchingOpenElement);}function tokenInHead(p2,token){p2.openElements.pop(),p2.insertionMode=AFTER_HEAD_MODE,p2._processToken(token);}function startTagInHeadNoScript(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.BASEFONT||tn===$.BGSOUND||tn===$.HEAD||tn===$.LINK||tn===$.META||tn===$.NOFRAMES||tn===$.STYLE?startTagInHead(p2,token):tn===$.NOSCRIPT?p2._err(ERR.nestedNoscriptInHead):tokenInHeadNoScript(p2,token);}function endTagInHeadNoScript(p2,token){let tn=token.tagName;tn===$.NOSCRIPT?(p2.openElements.pop(),p2.insertionMode=IN_HEAD_MODE):tn===$.BR?tokenInHeadNoScript(p2,token):p2._err(ERR.endTagWithoutMatchingOpenElement);}function tokenInHeadNoScript(p2,token){let errCode=token.type===Tokenizer.EOF_TOKEN?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;p2._err(errCode),p2.openElements.pop(),p2.insertionMode=IN_HEAD_MODE,p2._processToken(token);}function startTagAfterHead(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.BODY?(p2._insertElement(token,NS.HTML),p2.framesetOk=!1,p2.insertionMode=IN_BODY_MODE):tn===$.FRAMESET?(p2._insertElement(token,NS.HTML),p2.insertionMode=IN_FRAMESET_MODE):tn===$.BASE||tn===$.BASEFONT||tn===$.BGSOUND||tn===$.LINK||tn===$.META||tn===$.NOFRAMES||tn===$.SCRIPT||tn===$.STYLE||tn===$.TEMPLATE||tn===$.TITLE?(p2._err(ERR.abandonedHeadElementChild),p2.openElements.push(p2.headElement),startTagInHead(p2,token),p2.openElements.remove(p2.headElement)):tn===$.HEAD?p2._err(ERR.misplacedStartTagForHeadElement):tokenAfterHead(p2,token);}function endTagAfterHead(p2,token){let tn=token.tagName;tn===$.BODY||tn===$.HTML||tn===$.BR?tokenAfterHead(p2,token):tn===$.TEMPLATE?endTagInHead(p2,token):p2._err(ERR.endTagWithoutMatchingOpenElement);}function tokenAfterHead(p2,token){p2._insertFakeElement($.BODY),p2.insertionMode=IN_BODY_MODE,p2._processToken(token);}function whitespaceCharacterInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertCharacters(token);}function characterInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertCharacters(token),p2.framesetOk=!1;}function htmlStartTagInBody(p2,token){p2.openElements.tmplCount===0&&p2.treeAdapter.adoptAttributes(p2.openElements.items[0],token.attrs);}function bodyStartTagInBody(p2,token){let bodyElement=p2.openElements.tryPeekProperlyNestedBodyElement();bodyElement&&p2.openElements.tmplCount===0&&(p2.framesetOk=!1,p2.treeAdapter.adoptAttributes(bodyElement,token.attrs));}function framesetStartTagInBody(p2,token){let bodyElement=p2.openElements.tryPeekProperlyNestedBodyElement();p2.framesetOk&&bodyElement&&(p2.treeAdapter.detachNode(bodyElement),p2.openElements.popAllUpToHtmlElement(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_FRAMESET_MODE);}function addressStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML);}function numberedHeaderStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement();let tn=p2.openElements.currentTagName;(tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6)&&p2.openElements.pop(),p2._insertElement(token,NS.HTML);}function preStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML),p2.skipNextNewLine=!0,p2.framesetOk=!1;}function formStartTagInBody(p2,token){let inTemplate=p2.openElements.tmplCount>0;(!p2.formElement||inTemplate)&&(p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML),inTemplate||(p2.formElement=p2.openElements.current));}function listItemStartTagInBody(p2,token){p2.framesetOk=!1;let tn=token.tagName;for(let i=p2.openElements.stackTop;i>=0;i--){let element3=p2.openElements.items[i],elementTn=p2.treeAdapter.getTagName(element3),closeTn=null;if(tn===$.LI&&elementTn===$.LI?closeTn=$.LI:(tn===$.DD||tn===$.DT)&&(elementTn===$.DD||elementTn===$.DT)&&(closeTn=elementTn),closeTn){p2.openElements.generateImpliedEndTagsWithExclusion(closeTn),p2.openElements.popUntilTagNamePopped(closeTn);break;}if(elementTn!==$.ADDRESS&&elementTn!==$.DIV&&elementTn!==$.P&&p2._isSpecialElement(element3))break;}p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML);}function plaintextStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML),p2.tokenizer.state=Tokenizer.MODE.PLAINTEXT;}function buttonStartTagInBody(p2,token){p2.openElements.hasInScope($.BUTTON)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped($.BUTTON)),p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML),p2.framesetOk=!1;}function aStartTagInBody(p2,token){let activeElementEntry=p2.activeFormattingElements.getElementEntryInScopeWithTagName($.A);activeElementEntry&&(callAdoptionAgency(p2,token),p2.openElements.remove(activeElementEntry.element),p2.activeFormattingElements.removeEntry(activeElementEntry)),p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML),p2.activeFormattingElements.pushElement(p2.openElements.current,token);}function bStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML),p2.activeFormattingElements.pushElement(p2.openElements.current,token);}function nobrStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2.openElements.hasInScope($.NOBR)&&(callAdoptionAgency(p2,token),p2._reconstructActiveFormattingElements()),p2._insertElement(token,NS.HTML),p2.activeFormattingElements.pushElement(p2.openElements.current,token);}function appletStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML),p2.activeFormattingElements.insertMarker(),p2.framesetOk=!1;}function tableStartTagInBody(p2,token){p2.treeAdapter.getDocumentMode(p2.document)!==HTML.DOCUMENT_MODE.QUIRKS&&p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML),p2.framesetOk=!1,p2.insertionMode=IN_TABLE_MODE;}function areaStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._appendElement(token,NS.HTML),p2.framesetOk=!1,token.ackSelfClosing=!0;}function inputStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._appendElement(token,NS.HTML);let inputType=Tokenizer.getTokenAttr(token,ATTRS.TYPE);(!inputType||inputType.toLowerCase()!==HIDDEN_INPUT_TYPE)&&(p2.framesetOk=!1),token.ackSelfClosing=!0;}function paramStartTagInBody(p2,token){p2._appendElement(token,NS.HTML),token.ackSelfClosing=!0;}function hrStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._appendElement(token,NS.HTML),p2.framesetOk=!1,token.ackSelfClosing=!0;}function imageStartTagInBody(p2,token){token.tagName=$.IMG,areaStartTagInBody(p2,token);}function textareaStartTagInBody(p2,token){p2._insertElement(token,NS.HTML),p2.skipNextNewLine=!0,p2.tokenizer.state=Tokenizer.MODE.RCDATA,p2.originalInsertionMode=p2.insertionMode,p2.framesetOk=!1,p2.insertionMode=TEXT_MODE;}function xmpStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._reconstructActiveFormattingElements(),p2.framesetOk=!1,p2._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT);}function iframeStartTagInBody(p2,token){p2.framesetOk=!1,p2._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT);}function noembedStartTagInBody(p2,token){p2._switchToTextParsing(token,Tokenizer.MODE.RAWTEXT);}function selectStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML),p2.framesetOk=!1,p2.insertionMode===IN_TABLE_MODE||p2.insertionMode===IN_CAPTION_MODE||p2.insertionMode===IN_TABLE_BODY_MODE||p2.insertionMode===IN_ROW_MODE||p2.insertionMode===IN_CELL_MODE?p2.insertionMode=IN_SELECT_IN_TABLE_MODE:p2.insertionMode=IN_SELECT_MODE;}function optgroupStartTagInBody(p2,token){p2.openElements.currentTagName===$.OPTION&&p2.openElements.pop(),p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML);}function rbStartTagInBody(p2,token){p2.openElements.hasInScope($.RUBY)&&p2.openElements.generateImpliedEndTags(),p2._insertElement(token,NS.HTML);}function rtStartTagInBody(p2,token){p2.openElements.hasInScope($.RUBY)&&p2.openElements.generateImpliedEndTagsWithExclusion($.RTC),p2._insertElement(token,NS.HTML);}function menuStartTagInBody(p2,token){p2.openElements.hasInButtonScope($.P)&&p2._closePElement(),p2._insertElement(token,NS.HTML);}function mathStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),foreignContent.adjustTokenMathMLAttrs(token),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p2._appendElement(token,NS.MATHML):p2._insertElement(token,NS.MATHML),token.ackSelfClosing=!0;}function svgStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),foreignContent.adjustTokenSVGAttrs(token),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p2._appendElement(token,NS.SVG):p2._insertElement(token,NS.SVG),token.ackSelfClosing=!0;}function genericStartTagInBody(p2,token){p2._reconstructActiveFormattingElements(),p2._insertElement(token,NS.HTML);}function startTagInBody(p2,token){let tn=token.tagName;switch(tn.length){case 1:tn===$.I||tn===$.S||tn===$.B||tn===$.U?bStartTagInBody(p2,token):tn===$.P?addressStartTagInBody(p2,token):tn===$.A?aStartTagInBody(p2,token):genericStartTagInBody(p2,token);break;case 2:tn===$.DL||tn===$.OL||tn===$.UL?addressStartTagInBody(p2,token):tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6?numberedHeaderStartTagInBody(p2,token):tn===$.LI||tn===$.DD||tn===$.DT?listItemStartTagInBody(p2,token):tn===$.EM||tn===$.TT?bStartTagInBody(p2,token):tn===$.BR?areaStartTagInBody(p2,token):tn===$.HR?hrStartTagInBody(p2,token):tn===$.RB?rbStartTagInBody(p2,token):tn===$.RT||tn===$.RP?rtStartTagInBody(p2,token):tn!==$.TH&&tn!==$.TD&&tn!==$.TR&&genericStartTagInBody(p2,token);break;case 3:tn===$.DIV||tn===$.DIR||tn===$.NAV?addressStartTagInBody(p2,token):tn===$.PRE?preStartTagInBody(p2,token):tn===$.BIG?bStartTagInBody(p2,token):tn===$.IMG||tn===$.WBR?areaStartTagInBody(p2,token):tn===$.XMP?xmpStartTagInBody(p2,token):tn===$.SVG?svgStartTagInBody(p2,token):tn===$.RTC?rbStartTagInBody(p2,token):tn!==$.COL&&genericStartTagInBody(p2,token);break;case 4:tn===$.HTML?htmlStartTagInBody(p2,token):tn===$.BASE||tn===$.LINK||tn===$.META?startTagInHead(p2,token):tn===$.BODY?bodyStartTagInBody(p2,token):tn===$.MAIN||tn===$.MENU?addressStartTagInBody(p2,token):tn===$.FORM?formStartTagInBody(p2,token):tn===$.CODE||tn===$.FONT?bStartTagInBody(p2,token):tn===$.NOBR?nobrStartTagInBody(p2,token):tn===$.AREA?areaStartTagInBody(p2,token):tn===$.MATH?mathStartTagInBody(p2,token):tn===$.MENU?menuStartTagInBody(p2,token):tn!==$.HEAD&&genericStartTagInBody(p2,token);break;case 5:tn===$.STYLE||tn===$.TITLE?startTagInHead(p2,token):tn===$.ASIDE?addressStartTagInBody(p2,token):tn===$.SMALL?bStartTagInBody(p2,token):tn===$.TABLE?tableStartTagInBody(p2,token):tn===$.EMBED?areaStartTagInBody(p2,token):tn===$.INPUT?inputStartTagInBody(p2,token):tn===$.PARAM||tn===$.TRACK?paramStartTagInBody(p2,token):tn===$.IMAGE?imageStartTagInBody(p2,token):tn!==$.FRAME&&tn!==$.TBODY&&tn!==$.TFOOT&&tn!==$.THEAD&&genericStartTagInBody(p2,token);break;case 6:tn===$.SCRIPT?startTagInHead(p2,token):tn===$.CENTER||tn===$.FIGURE||tn===$.FOOTER||tn===$.HEADER||tn===$.HGROUP||tn===$.DIALOG?addressStartTagInBody(p2,token):tn===$.BUTTON?buttonStartTagInBody(p2,token):tn===$.STRIKE||tn===$.STRONG?bStartTagInBody(p2,token):tn===$.APPLET||tn===$.OBJECT?appletStartTagInBody(p2,token):tn===$.KEYGEN?areaStartTagInBody(p2,token):tn===$.SOURCE?paramStartTagInBody(p2,token):tn===$.IFRAME?iframeStartTagInBody(p2,token):tn===$.SELECT?selectStartTagInBody(p2,token):tn===$.OPTION?optgroupStartTagInBody(p2,token):genericStartTagInBody(p2,token);break;case 7:tn===$.BGSOUND?startTagInHead(p2,token):tn===$.DETAILS||tn===$.ADDRESS||tn===$.ARTICLE||tn===$.SECTION||tn===$.SUMMARY?addressStartTagInBody(p2,token):tn===$.LISTING?preStartTagInBody(p2,token):tn===$.MARQUEE?appletStartTagInBody(p2,token):tn===$.NOEMBED?noembedStartTagInBody(p2,token):tn!==$.CAPTION&&genericStartTagInBody(p2,token);break;case 8:tn===$.BASEFONT?startTagInHead(p2,token):tn===$.FRAMESET?framesetStartTagInBody(p2,token):tn===$.FIELDSET?addressStartTagInBody(p2,token):tn===$.TEXTAREA?textareaStartTagInBody(p2,token):tn===$.TEMPLATE?startTagInHead(p2,token):tn===$.NOSCRIPT?p2.options.scriptingEnabled?noembedStartTagInBody(p2,token):genericStartTagInBody(p2,token):tn===$.OPTGROUP?optgroupStartTagInBody(p2,token):tn!==$.COLGROUP&&genericStartTagInBody(p2,token);break;case 9:tn===$.PLAINTEXT?plaintextStartTagInBody(p2,token):genericStartTagInBody(p2,token);break;case 10:tn===$.BLOCKQUOTE||tn===$.FIGCAPTION?addressStartTagInBody(p2,token):genericStartTagInBody(p2,token);break;default:genericStartTagInBody(p2,token);}}function bodyEndTagInBody(p2){p2.openElements.hasInScope($.BODY)&&(p2.insertionMode=AFTER_BODY_MODE);}function htmlEndTagInBody(p2,token){p2.openElements.hasInScope($.BODY)&&(p2.insertionMode=AFTER_BODY_MODE,p2._processToken(token));}function addressEndTagInBody(p2,token){let tn=token.tagName;p2.openElements.hasInScope(tn)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped(tn));}function formEndTagInBody(p2){let inTemplate=p2.openElements.tmplCount>0,formElement=p2.formElement;inTemplate||(p2.formElement=null),(formElement||inTemplate)&&p2.openElements.hasInScope($.FORM)&&(p2.openElements.generateImpliedEndTags(),inTemplate?p2.openElements.popUntilTagNamePopped($.FORM):p2.openElements.remove(formElement));}function pEndTagInBody(p2){p2.openElements.hasInButtonScope($.P)||p2._insertFakeElement($.P),p2._closePElement();}function liEndTagInBody(p2){p2.openElements.hasInListItemScope($.LI)&&(p2.openElements.generateImpliedEndTagsWithExclusion($.LI),p2.openElements.popUntilTagNamePopped($.LI));}function ddEndTagInBody(p2,token){let tn=token.tagName;p2.openElements.hasInScope(tn)&&(p2.openElements.generateImpliedEndTagsWithExclusion(tn),p2.openElements.popUntilTagNamePopped(tn));}function numberedHeaderEndTagInBody(p2){p2.openElements.hasNumberedHeaderInScope()&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilNumberedHeaderPopped());}function appletEndTagInBody(p2,token){let tn=token.tagName;p2.openElements.hasInScope(tn)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped(tn),p2.activeFormattingElements.clearToLastMarker());}function brEndTagInBody(p2){p2._reconstructActiveFormattingElements(),p2._insertFakeElement($.BR),p2.openElements.pop(),p2.framesetOk=!1;}function genericEndTagInBody(p2,token){let tn=token.tagName;for(let i=p2.openElements.stackTop;i>0;i--){let element3=p2.openElements.items[i];if(p2.treeAdapter.getTagName(element3)===tn){p2.openElements.generateImpliedEndTagsWithExclusion(tn),p2.openElements.popUntilElementPopped(element3);break;}if(p2._isSpecialElement(element3))break;}}function endTagInBody(p2,token){let tn=token.tagName;switch(tn.length){case 1:tn===$.A||tn===$.B||tn===$.I||tn===$.S||tn===$.U?callAdoptionAgency(p2,token):tn===$.P?pEndTagInBody(p2,token):genericEndTagInBody(p2,token);break;case 2:tn===$.DL||tn===$.UL||tn===$.OL?addressEndTagInBody(p2,token):tn===$.LI?liEndTagInBody(p2,token):tn===$.DD||tn===$.DT?ddEndTagInBody(p2,token):tn===$.H1||tn===$.H2||tn===$.H3||tn===$.H4||tn===$.H5||tn===$.H6?numberedHeaderEndTagInBody(p2,token):tn===$.BR?brEndTagInBody(p2,token):tn===$.EM||tn===$.TT?callAdoptionAgency(p2,token):genericEndTagInBody(p2,token);break;case 3:tn===$.BIG?callAdoptionAgency(p2,token):tn===$.DIR||tn===$.DIV||tn===$.NAV||tn===$.PRE?addressEndTagInBody(p2,token):genericEndTagInBody(p2,token);break;case 4:tn===$.BODY?bodyEndTagInBody(p2,token):tn===$.HTML?htmlEndTagInBody(p2,token):tn===$.FORM?formEndTagInBody(p2,token):tn===$.CODE||tn===$.FONT||tn===$.NOBR?callAdoptionAgency(p2,token):tn===$.MAIN||tn===$.MENU?addressEndTagInBody(p2,token):genericEndTagInBody(p2,token);break;case 5:tn===$.ASIDE?addressEndTagInBody(p2,token):tn===$.SMALL?callAdoptionAgency(p2,token):genericEndTagInBody(p2,token);break;case 6:tn===$.CENTER||tn===$.FIGURE||tn===$.FOOTER||tn===$.HEADER||tn===$.HGROUP||tn===$.DIALOG?addressEndTagInBody(p2,token):tn===$.APPLET||tn===$.OBJECT?appletEndTagInBody(p2,token):tn===$.STRIKE||tn===$.STRONG?callAdoptionAgency(p2,token):genericEndTagInBody(p2,token);break;case 7:tn===$.ADDRESS||tn===$.ARTICLE||tn===$.DETAILS||tn===$.SECTION||tn===$.SUMMARY||tn===$.LISTING?addressEndTagInBody(p2,token):tn===$.MARQUEE?appletEndTagInBody(p2,token):genericEndTagInBody(p2,token);break;case 8:tn===$.FIELDSET?addressEndTagInBody(p2,token):tn===$.TEMPLATE?endTagInHead(p2,token):genericEndTagInBody(p2,token);break;case 10:tn===$.BLOCKQUOTE||tn===$.FIGCAPTION?addressEndTagInBody(p2,token):genericEndTagInBody(p2,token);break;default:genericEndTagInBody(p2,token);}}function eofInBody(p2,token){p2.tmplInsertionModeStackTop>-1?eofInTemplate(p2,token):p2.stopped=!0;}function endTagInText(p2,token){token.tagName===$.SCRIPT&&(p2.pendingScript=p2.openElements.current),p2.openElements.pop(),p2.insertionMode=p2.originalInsertionMode;}function eofInText(p2,token){p2._err(ERR.eofInElementThatCanContainOnlyText),p2.openElements.pop(),p2.insertionMode=p2.originalInsertionMode,p2._processToken(token);}function characterInTable(p2,token){let curTn=p2.openElements.currentTagName;curTn===$.TABLE||curTn===$.TBODY||curTn===$.TFOOT||curTn===$.THEAD||curTn===$.TR?(p2.pendingCharacterTokens=[],p2.hasNonWhitespacePendingCharacterToken=!1,p2.originalInsertionMode=p2.insertionMode,p2.insertionMode=IN_TABLE_TEXT_MODE,p2._processToken(token)):tokenInTable(p2,token);}function captionStartTagInTable(p2,token){p2.openElements.clearBackToTableContext(),p2.activeFormattingElements.insertMarker(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_CAPTION_MODE;}function colgroupStartTagInTable(p2,token){p2.openElements.clearBackToTableContext(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_COLUMN_GROUP_MODE;}function colStartTagInTable(p2,token){p2.openElements.clearBackToTableContext(),p2._insertFakeElement($.COLGROUP),p2.insertionMode=IN_COLUMN_GROUP_MODE,p2._processToken(token);}function tbodyStartTagInTable(p2,token){p2.openElements.clearBackToTableContext(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_TABLE_BODY_MODE;}function tdStartTagInTable(p2,token){p2.openElements.clearBackToTableContext(),p2._insertFakeElement($.TBODY),p2.insertionMode=IN_TABLE_BODY_MODE,p2._processToken(token);}function tableStartTagInTable(p2,token){p2.openElements.hasInTableScope($.TABLE)&&(p2.openElements.popUntilTagNamePopped($.TABLE),p2._resetInsertionMode(),p2._processToken(token));}function inputStartTagInTable(p2,token){let inputType=Tokenizer.getTokenAttr(token,ATTRS.TYPE);inputType&&inputType.toLowerCase()===HIDDEN_INPUT_TYPE?p2._appendElement(token,NS.HTML):tokenInTable(p2,token),token.ackSelfClosing=!0;}function formStartTagInTable(p2,token){!p2.formElement&&p2.openElements.tmplCount===0&&(p2._insertElement(token,NS.HTML),p2.formElement=p2.openElements.current,p2.openElements.pop());}function startTagInTable(p2,token){let tn=token.tagName;switch(tn.length){case 2:tn===$.TD||tn===$.TH||tn===$.TR?tdStartTagInTable(p2,token):tokenInTable(p2,token);break;case 3:tn===$.COL?colStartTagInTable(p2,token):tokenInTable(p2,token);break;case 4:tn===$.FORM?formStartTagInTable(p2,token):tokenInTable(p2,token);break;case 5:tn===$.TABLE?tableStartTagInTable(p2,token):tn===$.STYLE?startTagInHead(p2,token):tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD?tbodyStartTagInTable(p2,token):tn===$.INPUT?inputStartTagInTable(p2,token):tokenInTable(p2,token);break;case 6:tn===$.SCRIPT?startTagInHead(p2,token):tokenInTable(p2,token);break;case 7:tn===$.CAPTION?captionStartTagInTable(p2,token):tokenInTable(p2,token);break;case 8:tn===$.COLGROUP?colgroupStartTagInTable(p2,token):tn===$.TEMPLATE?startTagInHead(p2,token):tokenInTable(p2,token);break;default:tokenInTable(p2,token);}}function endTagInTable(p2,token){let tn=token.tagName;tn===$.TABLE?p2.openElements.hasInTableScope($.TABLE)&&(p2.openElements.popUntilTagNamePopped($.TABLE),p2._resetInsertionMode()):tn===$.TEMPLATE?endTagInHead(p2,token):tn!==$.BODY&&tn!==$.CAPTION&&tn!==$.COL&&tn!==$.COLGROUP&&tn!==$.HTML&&tn!==$.TBODY&&tn!==$.TD&&tn!==$.TFOOT&&tn!==$.TH&&tn!==$.THEAD&&tn!==$.TR&&tokenInTable(p2,token);}function tokenInTable(p2,token){let savedFosterParentingState=p2.fosterParentingEnabled;p2.fosterParentingEnabled=!0,p2._processTokenInBodyMode(token),p2.fosterParentingEnabled=savedFosterParentingState;}function whitespaceCharacterInTableText(p2,token){p2.pendingCharacterTokens.push(token);}function characterInTableText(p2,token){p2.pendingCharacterTokens.push(token),p2.hasNonWhitespacePendingCharacterToken=!0;}function tokenInTableText(p2,token){let i=0;if(p2.hasNonWhitespacePendingCharacterToken)for(;i<p2.pendingCharacterTokens.length;i++)tokenInTable(p2,p2.pendingCharacterTokens[i]);else for(;i<p2.pendingCharacterTokens.length;i++)p2._insertCharacters(p2.pendingCharacterTokens[i]);p2.insertionMode=p2.originalInsertionMode,p2._processToken(token);}function startTagInCaption(p2,token){let tn=token.tagName;tn===$.CAPTION||tn===$.COL||tn===$.COLGROUP||tn===$.TBODY||tn===$.TD||tn===$.TFOOT||tn===$.TH||tn===$.THEAD||tn===$.TR?p2.openElements.hasInTableScope($.CAPTION)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped($.CAPTION),p2.activeFormattingElements.clearToLastMarker(),p2.insertionMode=IN_TABLE_MODE,p2._processToken(token)):startTagInBody(p2,token);}function endTagInCaption(p2,token){let tn=token.tagName;tn===$.CAPTION||tn===$.TABLE?p2.openElements.hasInTableScope($.CAPTION)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped($.CAPTION),p2.activeFormattingElements.clearToLastMarker(),p2.insertionMode=IN_TABLE_MODE,tn===$.TABLE&&p2._processToken(token)):tn!==$.BODY&&tn!==$.COL&&tn!==$.COLGROUP&&tn!==$.HTML&&tn!==$.TBODY&&tn!==$.TD&&tn!==$.TFOOT&&tn!==$.TH&&tn!==$.THEAD&&tn!==$.TR&&endTagInBody(p2,token);}function startTagInColumnGroup(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.COL?(p2._appendElement(token,NS.HTML),token.ackSelfClosing=!0):tn===$.TEMPLATE?startTagInHead(p2,token):tokenInColumnGroup(p2,token);}function endTagInColumnGroup(p2,token){let tn=token.tagName;tn===$.COLGROUP?p2.openElements.currentTagName===$.COLGROUP&&(p2.openElements.pop(),p2.insertionMode=IN_TABLE_MODE):tn===$.TEMPLATE?endTagInHead(p2,token):tn!==$.COL&&tokenInColumnGroup(p2,token);}function tokenInColumnGroup(p2,token){p2.openElements.currentTagName===$.COLGROUP&&(p2.openElements.pop(),p2.insertionMode=IN_TABLE_MODE,p2._processToken(token));}function startTagInTableBody(p2,token){let tn=token.tagName;tn===$.TR?(p2.openElements.clearBackToTableBodyContext(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_ROW_MODE):tn===$.TH||tn===$.TD?(p2.openElements.clearBackToTableBodyContext(),p2._insertFakeElement($.TR),p2.insertionMode=IN_ROW_MODE,p2._processToken(token)):tn===$.CAPTION||tn===$.COL||tn===$.COLGROUP||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD?p2.openElements.hasTableBodyContextInTableScope()&&(p2.openElements.clearBackToTableBodyContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_MODE,p2._processToken(token)):startTagInTable(p2,token);}function endTagInTableBody(p2,token){let tn=token.tagName;tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD?p2.openElements.hasInTableScope(tn)&&(p2.openElements.clearBackToTableBodyContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_MODE):tn===$.TABLE?p2.openElements.hasTableBodyContextInTableScope()&&(p2.openElements.clearBackToTableBodyContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_MODE,p2._processToken(token)):(tn!==$.BODY&&tn!==$.CAPTION&&tn!==$.COL&&tn!==$.COLGROUP||tn!==$.HTML&&tn!==$.TD&&tn!==$.TH&&tn!==$.TR)&&endTagInTable(p2,token);}function startTagInRow(p2,token){let tn=token.tagName;tn===$.TH||tn===$.TD?(p2.openElements.clearBackToTableRowContext(),p2._insertElement(token,NS.HTML),p2.insertionMode=IN_CELL_MODE,p2.activeFormattingElements.insertMarker()):tn===$.CAPTION||tn===$.COL||tn===$.COLGROUP||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR?p2.openElements.hasInTableScope($.TR)&&(p2.openElements.clearBackToTableRowContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_BODY_MODE,p2._processToken(token)):startTagInTable(p2,token);}function endTagInRow(p2,token){let tn=token.tagName;tn===$.TR?p2.openElements.hasInTableScope($.TR)&&(p2.openElements.clearBackToTableRowContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_BODY_MODE):tn===$.TABLE?p2.openElements.hasInTableScope($.TR)&&(p2.openElements.clearBackToTableRowContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_BODY_MODE,p2._processToken(token)):tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD?(p2.openElements.hasInTableScope(tn)||p2.openElements.hasInTableScope($.TR))&&(p2.openElements.clearBackToTableRowContext(),p2.openElements.pop(),p2.insertionMode=IN_TABLE_BODY_MODE,p2._processToken(token)):(tn!==$.BODY&&tn!==$.CAPTION&&tn!==$.COL&&tn!==$.COLGROUP||tn!==$.HTML&&tn!==$.TD&&tn!==$.TH)&&endTagInTable(p2,token);}function startTagInCell(p2,token){let tn=token.tagName;tn===$.CAPTION||tn===$.COL||tn===$.COLGROUP||tn===$.TBODY||tn===$.TD||tn===$.TFOOT||tn===$.TH||tn===$.THEAD||tn===$.TR?(p2.openElements.hasInTableScope($.TD)||p2.openElements.hasInTableScope($.TH))&&(p2._closeTableCell(),p2._processToken(token)):startTagInBody(p2,token);}function endTagInCell(p2,token){let tn=token.tagName;tn===$.TD||tn===$.TH?p2.openElements.hasInTableScope(tn)&&(p2.openElements.generateImpliedEndTags(),p2.openElements.popUntilTagNamePopped(tn),p2.activeFormattingElements.clearToLastMarker(),p2.insertionMode=IN_ROW_MODE):tn===$.TABLE||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR?p2.openElements.hasInTableScope(tn)&&(p2._closeTableCell(),p2._processToken(token)):tn!==$.BODY&&tn!==$.CAPTION&&tn!==$.COL&&tn!==$.COLGROUP&&tn!==$.HTML&&endTagInBody(p2,token);}function startTagInSelect(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.OPTION?(p2.openElements.currentTagName===$.OPTION&&p2.openElements.pop(),p2._insertElement(token,NS.HTML)):tn===$.OPTGROUP?(p2.openElements.currentTagName===$.OPTION&&p2.openElements.pop(),p2.openElements.currentTagName===$.OPTGROUP&&p2.openElements.pop(),p2._insertElement(token,NS.HTML)):tn===$.INPUT||tn===$.KEYGEN||tn===$.TEXTAREA||tn===$.SELECT?p2.openElements.hasInSelectScope($.SELECT)&&(p2.openElements.popUntilTagNamePopped($.SELECT),p2._resetInsertionMode(),tn!==$.SELECT&&p2._processToken(token)):(tn===$.SCRIPT||tn===$.TEMPLATE)&&startTagInHead(p2,token);}function endTagInSelect(p2,token){let tn=token.tagName;if(tn===$.OPTGROUP){let prevOpenElement=p2.openElements.items[p2.openElements.stackTop-1],prevOpenElementTn=prevOpenElement&&p2.treeAdapter.getTagName(prevOpenElement);p2.openElements.currentTagName===$.OPTION&&prevOpenElementTn===$.OPTGROUP&&p2.openElements.pop(),p2.openElements.currentTagName===$.OPTGROUP&&p2.openElements.pop();}else tn===$.OPTION?p2.openElements.currentTagName===$.OPTION&&p2.openElements.pop():tn===$.SELECT&&p2.openElements.hasInSelectScope($.SELECT)?(p2.openElements.popUntilTagNamePopped($.SELECT),p2._resetInsertionMode()):tn===$.TEMPLATE&&endTagInHead(p2,token);}function startTagInSelectInTable(p2,token){let tn=token.tagName;tn===$.CAPTION||tn===$.TABLE||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR||tn===$.TD||tn===$.TH?(p2.openElements.popUntilTagNamePopped($.SELECT),p2._resetInsertionMode(),p2._processToken(token)):startTagInSelect(p2,token);}function endTagInSelectInTable(p2,token){let tn=token.tagName;tn===$.CAPTION||tn===$.TABLE||tn===$.TBODY||tn===$.TFOOT||tn===$.THEAD||tn===$.TR||tn===$.TD||tn===$.TH?p2.openElements.hasInTableScope(tn)&&(p2.openElements.popUntilTagNamePopped($.SELECT),p2._resetInsertionMode(),p2._processToken(token)):endTagInSelect(p2,token);}function startTagInTemplate(p2,token){let tn=token.tagName;if(tn===$.BASE||tn===$.BASEFONT||tn===$.BGSOUND||tn===$.LINK||tn===$.META||tn===$.NOFRAMES||tn===$.SCRIPT||tn===$.STYLE||tn===$.TEMPLATE||tn===$.TITLE)startTagInHead(p2,token);else{let newInsertionMode=TEMPLATE_INSERTION_MODE_SWITCH_MAP[tn]||IN_BODY_MODE;p2._popTmplInsertionMode(),p2._pushTmplInsertionMode(newInsertionMode),p2.insertionMode=newInsertionMode,p2._processToken(token);}}function endTagInTemplate(p2,token){token.tagName===$.TEMPLATE&&endTagInHead(p2,token);}function eofInTemplate(p2,token){p2.openElements.tmplCount>0?(p2.openElements.popUntilTagNamePopped($.TEMPLATE),p2.activeFormattingElements.clearToLastMarker(),p2._popTmplInsertionMode(),p2._resetInsertionMode(),p2._processToken(token)):p2.stopped=!0;}function startTagAfterBody(p2,token){token.tagName===$.HTML?startTagInBody(p2,token):tokenAfterBody(p2,token);}function endTagAfterBody(p2,token){token.tagName===$.HTML?p2.fragmentContext||(p2.insertionMode=AFTER_AFTER_BODY_MODE):tokenAfterBody(p2,token);}function tokenAfterBody(p2,token){p2.insertionMode=IN_BODY_MODE,p2._processToken(token);}function startTagInFrameset(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.FRAMESET?p2._insertElement(token,NS.HTML):tn===$.FRAME?(p2._appendElement(token,NS.HTML),token.ackSelfClosing=!0):tn===$.NOFRAMES&&startTagInHead(p2,token);}function endTagInFrameset(p2,token){token.tagName===$.FRAMESET&&!p2.openElements.isRootHtmlElementCurrent()&&(p2.openElements.pop(),!p2.fragmentContext&&p2.openElements.currentTagName!==$.FRAMESET&&(p2.insertionMode=AFTER_FRAMESET_MODE));}function startTagAfterFrameset(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.NOFRAMES&&startTagInHead(p2,token);}function endTagAfterFrameset(p2,token){token.tagName===$.HTML&&(p2.insertionMode=AFTER_AFTER_FRAMESET_MODE);}function startTagAfterAfterBody(p2,token){token.tagName===$.HTML?startTagInBody(p2,token):tokenAfterAfterBody(p2,token);}function tokenAfterAfterBody(p2,token){p2.insertionMode=IN_BODY_MODE,p2._processToken(token);}function startTagAfterAfterFrameset(p2,token){let tn=token.tagName;tn===$.HTML?startTagInBody(p2,token):tn===$.NOFRAMES&&startTagInHead(p2,token);}function nullCharacterInForeignContent(p2,token){token.chars=unicode.REPLACEMENT_CHARACTER,p2._insertCharacters(token);}function characterInForeignContent(p2,token){p2._insertCharacters(token),p2.framesetOk=!1;}function startTagInForeignContent(p2,token){if(foreignContent.causesExit(token)&&!p2.fragmentContext){for(;p2.treeAdapter.getNamespaceURI(p2.openElements.current)!==NS.HTML&&!p2._isIntegrationPoint(p2.openElements.current);)p2.openElements.pop();p2._processToken(token);}else{let current=p2._getAdjustedCurrentElement(),currentNs=p2.treeAdapter.getNamespaceURI(current);currentNs===NS.MATHML?foreignContent.adjustTokenMathMLAttrs(token):currentNs===NS.SVG&&(foreignContent.adjustTokenSVGTagName(token),foreignContent.adjustTokenSVGAttrs(token)),foreignContent.adjustTokenXMLAttrs(token),token.selfClosing?p2._appendElement(token,currentNs):p2._insertElement(token,currentNs),token.ackSelfClosing=!0;}}function endTagInForeignContent(p2,token){for(let i=p2.openElements.stackTop;i>0;i--){let element3=p2.openElements.items[i];if(p2.treeAdapter.getNamespaceURI(element3)===NS.HTML){p2._processToken(token);break;}if(p2.treeAdapter.getTagName(element3).toLowerCase()===token.tagName){p2.openElements.popUntilElementPopped(element3);break;}}}}});// ../../node_modules/unified/node_modules/is-buffer/index.js
|
|
249
|
+
var require_is_buffer=__commonJS({"../../node_modules/unified/node_modules/is-buffer/index.js"(exports,module){module.exports=function(obj){return obj!=null&&obj.constructor!=null&&typeof obj.constructor.isBuffer=="function"&&obj.constructor.isBuffer(obj);};}});// ../../node_modules/extend/index.js
|
|
250
|
+
var require_extend=__commonJS({"../../node_modules/extend/index.js"(exports,module){"use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD=Object.getOwnPropertyDescriptor,isArray=function(arr){return typeof Array.isArray=="function"?Array.isArray(arr):toStr.call(arr)==="[object Array]";},isPlainObject2=function(obj){if(!obj||toStr.call(obj)!=="[object Object]")return!1;var hasOwnConstructor=hasOwn.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return!1;var key2;for(key2 in obj);return typeof key2>"u"||hasOwn.call(obj,key2);},setProperty=function(target,options){defineProperty&&options.name==="__proto__"?defineProperty(target,options.name,{enumerable:!0,configurable:!0,value:options.newValue,writable:!0}):target[options.name]=options.newValue;},getProperty=function(obj,name){if(name==="__proto__")if(hasOwn.call(obj,name)){if(gOPD)return gOPD(obj,name).value;}else return;return obj[name];};module.exports=function extend2(){var options,name,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for(typeof target=="boolean"&&(deep=target,target=arguments[1]||{},i=2),(target==null||typeof target!="object"&&typeof target!="function")&&(target={});i<length;++i)if(options=arguments[i],options!=null)for(name in options)src=getProperty(target,name),copy=getProperty(options,name),target!==copy&&(deep&©&&(isPlainObject2(copy)||(copyIsArray=isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray(src)?src:[]):clone=src&&isPlainObject2(src)?src:{},setProperty(target,{name,newValue:extend2(deep,clone,copy)})):typeof copy<"u"&&setProperty(target,{name,newValue:copy}));return target;};}});// ../../node_modules/vfile/node_modules/is-buffer/index.js
|
|
251
|
+
var require_is_buffer2=__commonJS({"../../node_modules/vfile/node_modules/is-buffer/index.js"(exports,module){module.exports=function(obj){return obj!=null&&obj.constructor!=null&&typeof obj.constructor.isBuffer=="function"&&obj.constructor.isBuffer(obj);};}});// ../../node_modules/property-information/lib/util/schema.js
|
|
252
|
+
var Schema=class{/**
|
|
253
|
+
* @constructor
|
|
254
|
+
* @param {Properties} property
|
|
255
|
+
* @param {Normal} normal
|
|
256
|
+
* @param {string} [space]
|
|
257
|
+
*/constructor(property,normal,space){this.property=property,this.normal=normal,space&&(this.space=space);}};Schema.prototype.property={};Schema.prototype.normal={};Schema.prototype.space=null;// ../../node_modules/property-information/lib/util/merge.js
|
|
258
|
+
function merge(definitions,space){let property={},normal={},index2=-1;for(;++index2<definitions.length;)Object.assign(property,definitions[index2].property),Object.assign(normal,definitions[index2].normal);return new Schema(property,normal,space);}// ../../node_modules/property-information/lib/normalize.js
|
|
259
|
+
function normalize(value){return value.toLowerCase();}// ../../node_modules/property-information/lib/util/info.js
|
|
260
|
+
var Info=class{/**
|
|
261
|
+
* @constructor
|
|
262
|
+
* @param {string} property
|
|
263
|
+
* @param {string} attribute
|
|
264
|
+
*/constructor(property,attribute){this.property=property,this.attribute=attribute;}};Info.prototype.space=null;Info.prototype.boolean=!1;Info.prototype.booleanish=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.number=!1;Info.prototype.commaSeparated=!1;Info.prototype.spaceSeparated=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.mustUseProperty=!1;Info.prototype.defined=!1;// ../../node_modules/property-information/lib/util/types.js
|
|
265
|
+
var types_exports={};__export(types_exports,{boolean:()=>boolean,booleanish:()=>booleanish,commaOrSpaceSeparated:()=>commaOrSpaceSeparated,commaSeparated:()=>commaSeparated,number:()=>number,overloadedBoolean:()=>overloadedBoolean,spaceSeparated:()=>spaceSeparated});var powers=0,boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers;}// ../../node_modules/property-information/lib/util/defined-info.js
|
|
266
|
+
var checks=Object.keys(types_exports),DefinedInfo=class extends Info{/**
|
|
267
|
+
* @constructor
|
|
268
|
+
* @param {string} property
|
|
269
|
+
* @param {string} attribute
|
|
270
|
+
* @param {number|null} [mask]
|
|
271
|
+
* @param {string} [space]
|
|
272
|
+
*/constructor(property,attribute,mask,space){let index2=-1;if(super(property,attribute),mark(this,"space",space),typeof mask=="number")for(;++index2<checks.length;){let check=checks[index2];mark(this,checks[index2],(mask&types_exports[check])===types_exports[check]);}}};DefinedInfo.prototype.defined=!0;function mark(values,key2,value){value&&(values[key2]=value);}// ../../node_modules/property-information/lib/util/create.js
|
|
273
|
+
var own={}.hasOwnProperty;function create(definition){let property={},normal={},prop;for(prop in definition.properties)if(own.call(definition.properties,prop)){let value=definition.properties[prop],info=new DefinedInfo(prop,definition.transform(definition.attributes||{},prop),value,definition.space);definition.mustUseProperty&&definition.mustUseProperty.includes(prop)&&(info.mustUseProperty=!0),property[prop]=info,normal[normalize(prop)]=prop,normal[normalize(info.attribute)]=prop;}return new Schema(property,normal,definition.space);}// ../../node_modules/property-information/lib/xlink.js
|
|
274
|
+
var xlink=create({space:"xlink",transform(_2,prop){return"xlink:"+prop.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});// ../../node_modules/property-information/lib/xml.js
|
|
275
|
+
var xml=create({space:"xml",transform(_2,prop){return"xml:"+prop.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});// ../../node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
276
|
+
function caseSensitiveTransform(attributes2,attribute){return attribute in attributes2?attributes2[attribute]:attribute;}// ../../node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
277
|
+
function caseInsensitiveTransform(attributes2,property){return caseSensitiveTransform(attributes2,property.toLowerCase());}// ../../node_modules/property-information/lib/xmlns.js
|
|
278
|
+
var xmlns=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}});// ../../node_modules/property-information/lib/aria.js
|
|
279
|
+
var aria=create({transform(_2,prop){return prop==="role"?prop:"aria-"+prop.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null}});// ../../node_modules/property-information/lib/html.js
|
|
280
|
+
var html=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{// Standard Properties.
|
|
281
|
+
abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,capture:boolean,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:boolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,// Legacy.
|
|
282
|
+
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
283
|
+
align:null,// Several. Use CSS `text-align` instead,
|
|
284
|
+
aLink:null,// `<body>`. Use CSS `a:active {color}` instead
|
|
285
|
+
archive:spaceSeparated,// `<object>`. List of URIs to archives
|
|
286
|
+
axis:null,// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
287
|
+
background:null,// `<body>`. Use CSS `background-image` instead
|
|
288
|
+
bgColor:null,// `<body>` and table elements. Use CSS `background-color` instead
|
|
289
|
+
border:number,// `<table>`. Use CSS `border-width` instead,
|
|
290
|
+
borderColor:null,// `<table>`. Use CSS `border-color` instead,
|
|
291
|
+
bottomMargin:number,// `<body>`
|
|
292
|
+
cellPadding:null,// `<table>`
|
|
293
|
+
cellSpacing:null,// `<table>`
|
|
294
|
+
char:null,// Several table elements. When `align=char`, sets the character to align on
|
|
295
|
+
charOff:null,// Several table elements. When `char`, offsets the alignment
|
|
296
|
+
classId:null,// `<object>`
|
|
297
|
+
clear:null,// `<br>`. Use CSS `clear` instead
|
|
298
|
+
code:null,// `<object>`
|
|
299
|
+
codeBase:null,// `<object>`
|
|
300
|
+
codeType:null,// `<object>`
|
|
301
|
+
color:null,// `<font>` and `<hr>`. Use CSS instead
|
|
302
|
+
compact:boolean,// Lists. Use CSS to reduce space between items instead
|
|
303
|
+
declare:boolean,// `<object>`
|
|
304
|
+
event:null,// `<script>`
|
|
305
|
+
face:null,// `<font>`. Use CSS instead
|
|
306
|
+
frame:null,// `<table>`
|
|
307
|
+
frameBorder:null,// `<iframe>`. Use CSS `border` instead
|
|
308
|
+
hSpace:number,// `<img>` and `<object>`
|
|
309
|
+
leftMargin:number,// `<body>`
|
|
310
|
+
link:null,// `<body>`. Use CSS `a:link {color: *}` instead
|
|
311
|
+
longDesc:null,// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
312
|
+
lowSrc:null,// `<img>`. Use a `<picture>`
|
|
313
|
+
marginHeight:number,// `<body>`
|
|
314
|
+
marginWidth:number,// `<body>`
|
|
315
|
+
noResize:boolean,// `<frame>`
|
|
316
|
+
noHref:boolean,// `<area>`. Use no href instead of an explicit `nohref`
|
|
317
|
+
noShade:boolean,// `<hr>`. Use background-color and height instead of borders
|
|
318
|
+
noWrap:boolean,// `<td>` and `<th>`
|
|
319
|
+
object:null,// `<applet>`
|
|
320
|
+
profile:null,// `<head>`
|
|
321
|
+
prompt:null,// `<isindex>`
|
|
322
|
+
rev:null,// `<link>`
|
|
323
|
+
rightMargin:number,// `<body>`
|
|
324
|
+
rules:null,// `<table>`
|
|
325
|
+
scheme:null,// `<meta>`
|
|
326
|
+
scrolling:booleanish,// `<frame>`. Use overflow in the child context
|
|
327
|
+
standby:null,// `<object>`
|
|
328
|
+
summary:null,// `<table>`
|
|
329
|
+
text:null,// `<body>`. Use CSS `color` instead
|
|
330
|
+
topMargin:number,// `<body>`
|
|
331
|
+
valueType:null,// `<param>`
|
|
332
|
+
version:null,// `<html>`. Use a doctype.
|
|
333
|
+
vAlign:null,// Several. Use CSS `vertical-align` instead
|
|
334
|
+
vLink:null,// `<body>`. Use CSS `a:visited {color}` instead
|
|
335
|
+
vSpace:number,// `<img>` and `<object>`
|
|
336
|
+
// Non-standard Properties.
|
|
337
|
+
allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null}});// ../../node_modules/property-information/lib/svg.js
|
|
338
|
+
var svg=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",// These were camelcased in Tiny. Now lowercased in SVG 2
|
|
339
|
+
playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,// SEMI_COLON_SEPARATED
|
|
340
|
+
keySplines:null,// SEMI_COLON_SEPARATED
|
|
341
|
+
keyTimes:null,// SEMI_COLON_SEPARATED
|
|
342
|
+
kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});// ../../node_modules/property-information/lib/find.js
|
|
343
|
+
var valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g;function find(schema,value){let normal=normalize(value),prop=value,Type=Info;if(normal in schema.normal)return schema.property[schema.normal[normal]];if(normal.length>4&&normal.slice(0,4)==="data"&&valid.test(value)){if(value.charAt(4)==="-"){let rest=value.slice(5).replace(dash,camelcase);prop="data"+rest.charAt(0).toUpperCase()+rest.slice(1);}else{let rest=value.slice(4);if(!dash.test(rest)){let dashes=rest.replace(cap,kebab);dashes.charAt(0)!=="-"&&(dashes="-"+dashes),value="data"+dashes;}}Type=DefinedInfo;}return new Type(prop,value);}function kebab($0){return"-"+$0.toLowerCase();}function camelcase($0){return $0.charAt(1).toUpperCase();}// ../../node_modules/property-information/index.js
|
|
344
|
+
var html2=merge([xml,xlink,xmlns,aria,html],"html"),svg2=merge([xml,xlink,xmlns,aria,svg],"svg");// ../../node_modules/html-void-elements/index.js
|
|
345
|
+
var htmlVoidElements=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];// ../../node_modules/zwitch/index.js
|
|
346
|
+
var own2={}.hasOwnProperty;function zwitch(key2,options){let settings=options||{};function one3(value,...parameters){let fn=one3.invalid,handlers=one3.handlers;if(value&&own2.call(value,key2)){let id=String(value[key2]);fn=own2.call(handlers,id)?handlers[id]:one3.unknown;}if(fn)return fn.call(this,value,...parameters);}return one3.handlers=settings.handlers||{},one3.invalid=settings.invalid,one3.unknown=settings.unknown,one3;}// ../../node_modules/stringify-entities/lib/core.js
|
|
347
|
+
function core(value,options){if(value=value.replace(options.subset?charactersToExpression(options.subset):/["&'<>`]/g,basic2),options.subset||options.escapeOnly)return value;return value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,surrogate).replace(// eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
|
|
348
|
+
/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,basic2);function surrogate(pair,index2,all3){return options.format((pair.charCodeAt(0)-55296)*1024+pair.charCodeAt(1)-56320+65536,all3.charCodeAt(index2+2),options);}function basic2(character,index2,all3){return options.format(character.charCodeAt(0),all3.charCodeAt(index2+1),options);}}function charactersToExpression(subset){let groups=[],index2=-1;for(;++index2<subset.length;)groups.push(subset[index2].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+groups.join("|")+")","g");}// ../../node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
349
|
+
function toHexadecimal(code,next,omit){let value="&#x"+code.toString(16).toUpperCase();return omit&&next&&!/[\dA-Fa-f]/.test(String.fromCharCode(next))?value:value+";";}// ../../node_modules/stringify-entities/lib/util/to-decimal.js
|
|
350
|
+
function toDecimal(code,next,omit){let value="&#"+String(code);return omit&&next&&!/\d/.test(String.fromCharCode(next))?value:value+";";}// ../../node_modules/character-entities-legacy/index.js
|
|
351
|
+
var characterEntitiesLegacy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];// ../../node_modules/character-entities-html4/index.js
|
|
352
|
+
var characterEntitiesHtml4={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};// ../../node_modules/stringify-entities/lib/constant/dangerous.js
|
|
353
|
+
var dangerous=["cent","copy","divide","gt","lt","not","para","times"];// ../../node_modules/stringify-entities/lib/util/to-named.js
|
|
354
|
+
var own3={}.hasOwnProperty,characters={},key;for(key in characterEntitiesHtml4)own3.call(characterEntitiesHtml4,key)&&(characters[characterEntitiesHtml4[key]]=key);function toNamed(code,next,omit,attribute){let character=String.fromCharCode(code);if(own3.call(characters,character)){let name=characters[character],value="&"+name;return omit&&characterEntitiesLegacy.includes(name)&&!dangerous.includes(name)&&(!attribute||next&&next!==61&&/[^\da-z]/i.test(String.fromCharCode(next)))?value:value+";";}return"";}// ../../node_modules/stringify-entities/lib/util/format-smart.js
|
|
355
|
+
function formatSmart(code,next,options){let numeric=toHexadecimal(code,next,options.omitOptionalSemicolons),named;if((options.useNamedReferences||options.useShortestReferences)&&(named=toNamed(code,next,options.omitOptionalSemicolons,options.attribute)),(options.useShortestReferences||!named)&&options.useShortestReferences){let decimal=toDecimal(code,next,options.omitOptionalSemicolons);decimal.length<numeric.length&&(numeric=decimal);}return named&&(!options.useShortestReferences||named.length<numeric.length)?named:numeric;}// ../../node_modules/stringify-entities/lib/index.js
|
|
356
|
+
function stringifyEntities(value,options){return core(value,Object.assign({format:formatSmart},options));}// ../../node_modules/hast-util-to-html/lib/handle/comment.js
|
|
357
|
+
function comment(node,_1,_2,state){return state.settings.bogusComments?"<?"+stringifyEntities(node.value,Object.assign({},state.settings.characterReferences,{subset:[">"]}))+">":"<!--"+node.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,encode2)+"-->";function encode2($0){return stringifyEntities($0,Object.assign({},state.settings.characterReferences,{subset:["<",">"]}));}}// ../../node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
358
|
+
function doctype(_1,_2,_3,state){return"<!"+(state.settings.upperDoctype?"DOCTYPE":"doctype")+(state.settings.tightDoctype?"":" ")+"html>";}// ../../node_modules/ccount/index.js
|
|
359
|
+
function ccount(value,character){let source=String(value);if(typeof character!="string")throw new TypeError("Expected character");let count=0,index2=source.indexOf(character);for(;index2!==-1;)count++,index2=source.indexOf(character,index2+character.length);return count;}// ../../node_modules/comma-separated-tokens/index.js
|
|
360
|
+
function parse(value){let tokens=[],input=String(value||""),index2=input.indexOf(","),start=0,end=!1;for(;!end;){index2===-1&&(index2=input.length,end=!0);let token=input.slice(start,index2).trim();(token||!end)&&tokens.push(token),start=index2+1,index2=input.indexOf(",",start);}return tokens;}function stringify(values,options){let settings=options||{};return(values[values.length-1]===""?[...values,""]:values).join((settings.padRight?" ":"")+","+(settings.padLeft===!1?"":" ")).trim();}// ../../node_modules/space-separated-tokens/index.js
|
|
361
|
+
function parse2(value){let input=String(value||"").trim();return input?input.split(/[ \t\n\r\f]+/g):[];}function stringify2(values){return values.join(" ").trim();}// ../../node_modules/hast-util-whitespace/index.js
|
|
362
|
+
function whitespace(thing){let value=// @ts-expect-error looks like a node.
|
|
363
|
+
thing&&typeof thing=="object"&&thing.type==="text"?// @ts-expect-error looks like a text.
|
|
364
|
+
thing.value||"":thing;return typeof value=="string"&&value.replace(/[ \t\n\f\r]/g,"")==="";}// ../../node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
365
|
+
var siblingAfter=siblings(1),siblingBefore=siblings(-1);function siblings(increment2){return sibling;function sibling(parent,index2,includeWhitespace){let siblings2=parent?parent.children:[],offset=(index2||0)+increment2,next=siblings2&&siblings2[offset];if(!includeWhitespace)for(;next&&whitespace(next);)offset+=increment2,next=siblings2[offset];return next;}}// ../../node_modules/hast-util-to-html/lib/omission/omission.js
|
|
366
|
+
var own4={}.hasOwnProperty;function omission(handlers){return omit;function omit(node,index2,parent){return own4.call(handlers,node.tagName)&&handlers[node.tagName](node,index2,parent);}}// ../../node_modules/hast-util-to-html/lib/omission/closing.js
|
|
367
|
+
var closing=omission({html:html3,head:headOrColgroupOrCaption,body,p,li,dt,dd,rt:rubyElement,rp:rubyElement,optgroup,option,menuitem,colgroup:headOrColgroupOrCaption,caption:headOrColgroupOrCaption,thead,tbody,tfoot,tr,td:cells,th:cells});function headOrColgroupOrCaption(_2,index2,parent){let next=siblingAfter(parent,index2,!0);return!next||next.type!=="comment"&&!(next.type==="text"&&whitespace(next.value.charAt(0)));}function html3(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type!=="comment";}function body(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type!=="comment";}function p(_2,index2,parent){let next=siblingAfter(parent,index2);return next?next.type==="element"&&(next.tagName==="address"||next.tagName==="article"||next.tagName==="aside"||next.tagName==="blockquote"||next.tagName==="details"||next.tagName==="div"||next.tagName==="dl"||next.tagName==="fieldset"||next.tagName==="figcaption"||next.tagName==="figure"||next.tagName==="footer"||next.tagName==="form"||next.tagName==="h1"||next.tagName==="h2"||next.tagName==="h3"||next.tagName==="h4"||next.tagName==="h5"||next.tagName==="h6"||next.tagName==="header"||next.tagName==="hgroup"||next.tagName==="hr"||next.tagName==="main"||next.tagName==="menu"||next.tagName==="nav"||next.tagName==="ol"||next.tagName==="p"||next.tagName==="pre"||next.tagName==="section"||next.tagName==="table"||next.tagName==="ul"):!parent||// Confusing parent.
|
|
368
|
+
!(parent.type==="element"&&(parent.tagName==="a"||parent.tagName==="audio"||parent.tagName==="del"||parent.tagName==="ins"||parent.tagName==="map"||parent.tagName==="noscript"||parent.tagName==="video"));}function li(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&next.tagName==="li";}function dt(_2,index2,parent){let next=siblingAfter(parent,index2);return next&&next.type==="element"&&(next.tagName==="dt"||next.tagName==="dd");}function dd(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="dt"||next.tagName==="dd");}function rubyElement(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="rp"||next.tagName==="rt");}function optgroup(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&next.tagName==="optgroup";}function option(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="option"||next.tagName==="optgroup");}function menuitem(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="menuitem"||next.tagName==="hr"||next.tagName==="menu");}function thead(_2,index2,parent){let next=siblingAfter(parent,index2);return next&&next.type==="element"&&(next.tagName==="tbody"||next.tagName==="tfoot");}function tbody(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="tbody"||next.tagName==="tfoot");}function tfoot(_2,index2,parent){return!siblingAfter(parent,index2);}function tr(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&next.tagName==="tr";}function cells(_2,index2,parent){let next=siblingAfter(parent,index2);return!next||next.type==="element"&&(next.tagName==="td"||next.tagName==="th");}// ../../node_modules/hast-util-to-html/lib/omission/opening.js
|
|
369
|
+
var opening=omission({html:html4,head,body:body2,colgroup,tbody:tbody2});function html4(node){let head2=siblingAfter(node,-1);return!head2||head2.type!=="comment";}function head(node){let children=node.children,seen=[],index2=-1;for(;++index2<children.length;){let child=children[index2];if(child.type==="element"&&(child.tagName==="title"||child.tagName==="base")){if(seen.includes(child.tagName))return!1;seen.push(child.tagName);}}return children.length>0;}function body2(node){let head2=siblingAfter(node,-1,!0);return!head2||head2.type!=="comment"&&!(head2.type==="text"&&whitespace(head2.value.charAt(0)))&&!(head2.type==="element"&&(head2.tagName==="meta"||head2.tagName==="link"||head2.tagName==="script"||head2.tagName==="style"||head2.tagName==="template"));}function colgroup(node,index2,parent){let previous=siblingBefore(parent,index2),head2=siblingAfter(node,-1,!0);return parent&&previous&&previous.type==="element"&&previous.tagName==="colgroup"&&closing(previous,parent.children.indexOf(previous),parent)?!1:head2&&head2.type==="element"&&head2.tagName==="col";}function tbody2(node,index2,parent){let previous=siblingBefore(parent,index2),head2=siblingAfter(node,-1);return parent&&previous&&previous.type==="element"&&(previous.tagName==="thead"||previous.tagName==="tbody")&&closing(previous,parent.children.indexOf(previous),parent)?!1:head2&&head2.type==="element"&&head2.tagName==="tr";}// ../../node_modules/hast-util-to-html/lib/handle/element.js
|
|
370
|
+
var constants={// See: <https://html.spec.whatwg.org/#attribute-name-state>.
|
|
371
|
+
name:[[`
|
|
372
|
+
\f\r &/=>`.split(""),`
|
|
373
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
374
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
375
|
+
\f\r "&'/<=>\``.split("")]],// See: <https://html.spec.whatwg.org/#attribute-value-(unquoted)-state>.
|
|
376
|
+
unquoted:[[`
|
|
377
|
+
\f\r &>`.split(""),`\0
|
|
378
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
379
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
380
|
+
\f\r "&'<=>\``.split("")]],// See: <https://html.spec.whatwg.org/#attribute-value-(single-quoted)-state>.
|
|
381
|
+
single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],// See: <https://html.spec.whatwg.org/#attribute-value-(double-quoted)-state>.
|
|
382
|
+
double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function element(node,index2,parent,state){let schema=state.schema,omit=schema.space==="svg"?!1:state.settings.omitOptionalTags,selfClosing=schema.space==="svg"?state.settings.closeEmptyElements:state.settings.voids.includes(node.tagName.toLowerCase()),parts=[],last;schema.space==="html"&&node.tagName==="svg"&&(state.schema=svg2);let attrs=serializeAttributes(state,node.properties),content=state.all(schema.space==="html"&&node.tagName==="template"?node.content:node);return state.schema=schema,content&&(selfClosing=!1),(attrs||!omit||!opening(node,index2,parent))&&(parts.push("<",node.tagName,attrs?" "+attrs:""),selfClosing&&(schema.space==="svg"||state.settings.closeSelfClosing)&&(last=attrs.charAt(attrs.length-1),(!state.settings.tightSelfClosing||last==="/"||last&&last!=='"'&&last!=="'")&&parts.push(" "),parts.push("/")),parts.push(">")),parts.push(content),!selfClosing&&(!omit||!closing(node,index2,parent))&&parts.push("</"+node.tagName+">"),parts.join("");}function serializeAttributes(state,props){let values=[],index2=-1,key2;if(props){for(key2 in props)if(props[key2]!==void 0&&props[key2]!==null){let value=serializeAttribute(state,key2,props[key2]);value&&values.push(value);}}for(;++index2<values.length;){let last=state.settings.tightAttributes?values[index2].charAt(values[index2].length-1):null;index2!==values.length-1&&last!=='"'&&last!=="'"&&(values[index2]+=" ");}return values.join("");}function serializeAttribute(state,key2,value){let info=find(state.schema,key2),x=state.settings.allowParseErrors&&state.schema.space==="html"?0:1,y=state.settings.allowDangerousCharacters?0:1,quote=state.quote,result;if(info.overloadedBoolean&&(value===info.attribute||value==="")?value=!0:(info.boolean||info.overloadedBoolean&&typeof value!="string")&&(value=!!value),value==null||value===!1||typeof value=="number"&&Number.isNaN(value))return"";let name=stringifyEntities(info.attribute,Object.assign({},state.settings.characterReferences,{// Always encode without parse errors in non-HTML.
|
|
383
|
+
subset:constants.name[x][y]}));return value===!0||(value=Array.isArray(value)?(info.commaSeparated?stringify:stringify2)(value,{padLeft:!state.settings.tightCommaSeparatedLists}):String(value),state.settings.collapseEmptyAttributes&&!value)?name:(state.settings.preferUnquoted&&(result=stringifyEntities(value,Object.assign({},state.settings.characterReferences,{subset:constants.unquoted[x][y],attribute:!0}))),result!==value&&(state.settings.quoteSmart&&ccount(value,quote)>ccount(value,state.alternative)&&(quote=state.alternative),result=quote+stringifyEntities(value,Object.assign({},state.settings.characterReferences,{// Always encode without parse errors in non-HTML.
|
|
384
|
+
subset:(quote==="'"?constants.single:constants.double)[x][y],attribute:!0}))+quote),name+(result&&"="+result));}// ../../node_modules/hast-util-to-html/lib/handle/text.js
|
|
385
|
+
function text(node,_2,parent,state){return parent&&parent.type==="element"&&(parent.tagName==="script"||parent.tagName==="style")?node.value:stringifyEntities(node.value,Object.assign({},state.settings.characterReferences,{subset:["<","&"]}));}// ../../node_modules/hast-util-to-html/lib/handle/raw.js
|
|
386
|
+
function raw(node,index2,parent,state){return state.settings.allowDangerousHtml?node.value:text(node,index2,parent,state);}// ../../node_modules/hast-util-to-html/lib/handle/root.js
|
|
387
|
+
function root(node,_1,_2,state){return state.all(node);}// ../../node_modules/hast-util-to-html/lib/handle/index.js
|
|
388
|
+
var handle=zwitch("type",{invalid,unknown,handlers:{comment,doctype,element,raw,root,text}});function invalid(node){throw new Error("Expected node, not `"+node+"`");}function unknown(node){throw new Error("Cannot compile unknown node `"+node.type+"`");}// ../../node_modules/hast-util-to-html/lib/index.js
|
|
389
|
+
function toHtml(tree,options){let options_=options||{},quote=options_.quote||'"',alternative=quote==='"'?"'":'"';if(quote!=='"'&"e!=="'")throw new Error("Invalid quote `"+quote+"`, expected `'` or `\"`");return{one,all,settings:{omitOptionalTags:options_.omitOptionalTags||!1,allowParseErrors:options_.allowParseErrors||!1,allowDangerousCharacters:options_.allowDangerousCharacters||!1,quoteSmart:options_.quoteSmart||!1,preferUnquoted:options_.preferUnquoted||!1,tightAttributes:options_.tightAttributes||!1,upperDoctype:options_.upperDoctype||!1,tightDoctype:options_.tightDoctype||!1,bogusComments:options_.bogusComments||!1,tightCommaSeparatedLists:options_.tightCommaSeparatedLists||!1,tightSelfClosing:options_.tightSelfClosing||!1,collapseEmptyAttributes:options_.collapseEmptyAttributes||!1,allowDangerousHtml:options_.allowDangerousHtml||!1,voids:options_.voids||htmlVoidElements,characterReferences:options_.characterReferences||options_.entities||{},closeSelfClosing:options_.closeSelfClosing||!1,closeEmptyElements:options_.closeEmptyElements||!1},schema:options_.space==="svg"?svg2:html2,quote,alternative}.one(Array.isArray(tree)?{type:"root",children:tree}:tree,void 0,void 0);}function one(node,index2,parent){return handle(node,index2,parent,this);}function all(parent){let results=[],children=parent&&parent.children||[],index2=-1;for(;++index2<children.length;)results[index2]=this.one(children[index2],index2,parent);return results.join("");}// src/index.ts
|
|
390
|
+
var import_parse_numeric_range=__toESM(require_parse_numeric_range());// ../../node_modules/refractor/lang/clike.js
|
|
391
|
+
clike.displayName="clike";clike.aliases=[];function clike(Prism2){Prism2.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};}// ../../node_modules/refractor/lang/c.js
|
|
392
|
+
c.displayName="c";c.aliases=[];function c(Prism2){Prism2.register(clike),Prism2.languages.c=Prism2.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{// https://en.cppreference.com/w/c/language/string_literal
|
|
393
|
+
pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism2.languages.insertBefore("c","string",{char:{// https://en.cppreference.com/w/c/language/character_constant
|
|
394
|
+
pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism2.languages.insertBefore("c","string",{macro:{// allow for multiline macro definitions
|
|
395
|
+
// spaces after the # character compile fine with gcc
|
|
396
|
+
pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{// highlight the path of the include statement as a string
|
|
397
|
+
pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism2.languages.c.string],char:Prism2.languages.c.char,comment:Prism2.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],// highlight macro directives as keywords
|
|
398
|
+
directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism2.languages.c}}}}),Prism2.languages.insertBefore("c","function",{// highlight predefined macros as constants
|
|
399
|
+
constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism2.languages.c.boolean;}// ../../node_modules/refractor/lang/cpp.js
|
|
400
|
+
cpp.displayName="cpp";cpp.aliases=[];function cpp(Prism2){Prism2.register(c),function(Prism3){var keyword=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,modName=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return keyword.source;});Prism3.languages.cpp=Prism3.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return keyword.source;})),lookbehind:!0},// This is intended to capture the class name of method implementations like:
|
|
401
|
+
// void foo::bar() const {}
|
|
402
|
+
// However! The `foo` in the above example could also be a namespace, so we only capture the class name if
|
|
403
|
+
// it starts with an uppercase letter. This approximation should give decent results.
|
|
404
|
+
/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,// This will capture the class name before destructors like:
|
|
405
|
+
// Foo::~Foo() {}
|
|
406
|
+
/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,// This also intends to capture the class name of method implementations but here the class has template
|
|
407
|
+
// parameters, so it can't be a namespace (until C++ adds generic namespaces).
|
|
408
|
+
/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Prism3.languages.insertBefore("cpp","string",{module:{// https://en.cppreference.com/w/cpp/language/modules
|
|
409
|
+
pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+// header-name
|
|
410
|
+
/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+// module name or partition or both
|
|
411
|
+
/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return modName;})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Prism3.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Prism3.languages.cpp}}}}),Prism3.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Prism3.languages.insertBefore("cpp","class-name",{// the base clause is an optional list of parent classes
|
|
412
|
+
// https://en.cppreference.com/w/cpp/language/class
|
|
413
|
+
"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism3.languages.extend("cpp",{})}}),Prism3.languages.insertBefore("inside","double-colon",{// All untokenized words that are not namespaces should be class names
|
|
414
|
+
"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism3.languages.cpp["base-clause"]);}(Prism2);}// ../../node_modules/refractor/lang/arduino.js
|
|
415
|
+
arduino.displayName="arduino";arduino.aliases=["ino"];function arduino(Prism2){Prism2.register(cpp),Prism2.languages.arduino=Prism2.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),Prism2.languages.ino=Prism2.languages.arduino;}// ../../node_modules/refractor/lang/bash.js
|
|
416
|
+
bash.displayName="bash";bash.aliases=["sh","shell"];function bash(Prism2){(function(Prism3){var envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",// this looks reasonably well in all themes
|
|
417
|
+
inside:null// see below
|
|
418
|
+
},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[// [0]: Arithmetic Environment
|
|
419
|
+
{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
420
|
+
variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
421
|
+
operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
422
|
+
punctuation:/\(\(?|\)\)?|,|;/}},// [1]: Command Substitution
|
|
423
|
+
{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},// [2]: Brace expansion
|
|
424
|
+
{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
425
|
+
entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism3.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[// a) function foo {
|
|
426
|
+
// b) foo() {
|
|
427
|
+
// c) function foo() {
|
|
428
|
+
// but not “foo {”
|
|
429
|
+
{// a) and c)
|
|
430
|
+
pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{// b)
|
|
431
|
+
pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],// Highlight variable names as variables in for and select beginnings.
|
|
432
|
+
"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},// Highlight variable names as variables in the left-hand part
|
|
433
|
+
// of assignments (“=” and “+=”).
|
|
434
|
+
"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},// Highlight parameter names as variables
|
|
435
|
+
parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
436
|
+
{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},// Here-document with quotes around the tag
|
|
437
|
+
// → No expansion (so no “inside”).
|
|
438
|
+
{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},// “Normal” string
|
|
439
|
+
{// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
440
|
+
pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
441
|
+
pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
442
|
+
pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
443
|
+
builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,// Alias added to make those easier to distinguish from strings.
|
|
444
|
+
alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{// Lots of redirections here, but not just that.
|
|
445
|
+
pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism3.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i<toBeCopied.length;i++)inside[toBeCopied[i]]=Prism3.languages.bash[toBeCopied[i]];Prism3.languages.sh=Prism3.languages.bash,Prism3.languages.shell=Prism3.languages.bash;})(Prism2);}// ../../node_modules/refractor/lang/csharp.js
|
|
446
|
+
csharp.displayName="csharp";csharp.aliases=["cs","dotnet"];function csharp(Prism2){Prism2.register(clike),function(Prism3){function replace(pattern,replacements){return pattern.replace(/<<(\d+)>>/g,function(m,index2){return"(?:"+replacements[+index2]+")";});}function re(pattern,replacements,flags){return RegExp(replace(pattern,replacements),flags||"");}function nested(pattern,depthLog2){for(var i=0;i<depthLog2;i++)pattern=pattern.replace(/<<self>>/g,function(){return"(?:"+pattern+")";});return pattern.replace(/<<self>>/g,"[^\\s\\S]");}var keywordKinds={// keywords which represent a return or variable type
|
|
447
|
+
type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",// keywords which are used to declare a type
|
|
448
|
+
typeDeclaration:"class enum interface record struct",// contextual keywords
|
|
449
|
+
// ("var" and "dynamic" are missing because they are used like types)
|
|
450
|
+
contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",// all other keywords
|
|
451
|
+
other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function keywordsToPattern(words){return"\\b(?:"+words.trim().replace(/ /g,"|")+")\\b";}var typeDeclarationKeywords=keywordsToPattern(keywordKinds.typeDeclaration),keywords=RegExp(keywordsToPattern(keywordKinds.type+" "+keywordKinds.typeDeclaration+" "+keywordKinds.contextual+" "+keywordKinds.other)),nonTypeKeywords=keywordsToPattern(keywordKinds.typeDeclaration+" "+keywordKinds.contextual+" "+keywordKinds.other),nonContextualKeywords=keywordsToPattern(keywordKinds.type+" "+keywordKinds.typeDeclaration+" "+keywordKinds.other),generic=nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),nestedRound=nested(/\((?:[^()]|<<self>>)*\)/.source,2),name=/@?\b[A-Za-z_]\w*\b/.source,genericName=replace(/<<0>>(?:\s*<<1>>)?/.source,[name,generic]),identifier=replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[nonTypeKeywords,genericName]),array=/\[\s*(?:,\s*)*\]/.source,typeExpressionWithoutTuple=replace(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[identifier,array]),tupleElement=replace(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[generic,nestedRound,array]),tuple=replace(/\(<<0>>+(?:,<<0>>+)+\)/.source,[tupleElement]),typeExpression=replace(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[tuple,identifier,array]),typeInside={keyword:keywords,punctuation:/[<>()?,.:[\]]/},character=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,regularString=/"(?:\\.|[^\\"\r\n])*"/.source,verbatimString=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;Prism3.languages.csharp=Prism3.languages.extend("clike",{string:[{pattern:re(/(^|[^$\\])<<0>>/.source,[verbatimString]),lookbehind:!0,greedy:!0},{pattern:re(/(^|[^@$\\])<<0>>/.source,[regularString]),lookbehind:!0,greedy:!0}],"class-name":[{// Using static
|
|
452
|
+
// using static System.Math;
|
|
453
|
+
pattern:re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[identifier]),lookbehind:!0,inside:typeInside},{// Using alias (type)
|
|
454
|
+
// using Project = PC.MyCompany.Project;
|
|
455
|
+
pattern:re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[name,typeExpression]),lookbehind:!0,inside:typeInside},{// Using alias (alias)
|
|
456
|
+
// using Project = PC.MyCompany.Project;
|
|
457
|
+
pattern:re(/(\busing\s+)<<0>>(?=\s*=)/.source,[name]),lookbehind:!0},{// Type declarations
|
|
458
|
+
// class Foo<A, B>
|
|
459
|
+
// interface Foo<out A, B>
|
|
460
|
+
pattern:re(/(\b<<0>>\s+)<<1>>/.source,[typeDeclarationKeywords,genericName]),lookbehind:!0,inside:typeInside},{// Single catch exception declaration
|
|
461
|
+
// catch(Foo)
|
|
462
|
+
// (things like catch(Foo e) is covered by variable declaration)
|
|
463
|
+
pattern:re(/(\bcatch\s*\(\s*)<<0>>/.source,[identifier]),lookbehind:!0,inside:typeInside},{// Name of the type parameter of generic constraints
|
|
464
|
+
// where Foo : class
|
|
465
|
+
pattern:re(/(\bwhere\s+)<<0>>/.source,[name]),lookbehind:!0},{// Casts and checks via as and is.
|
|
466
|
+
// as Foo<A>, is Bar<B>
|
|
467
|
+
// (things like if(a is Foo b) is covered by variable declaration)
|
|
468
|
+
pattern:re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[typeExpressionWithoutTuple]),lookbehind:!0,inside:typeInside},{// Variable, field and parameter declaration
|
|
469
|
+
// (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
|
|
470
|
+
pattern:re(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[typeExpression,nonContextualKeywords,name]),inside:typeInside}],keyword:keywords,// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
|
|
471
|
+
number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),Prism3.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),Prism3.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:re(/([(,]\s*)<<0>>(?=\s*:)/.source,[name]),lookbehind:!0,alias:"punctuation"}}),Prism3.languages.insertBefore("csharp","class-name",{namespace:{// namespace Foo.Bar {}
|
|
472
|
+
// using Foo.Bar;
|
|
473
|
+
pattern:re(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[name]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{// default(Foo), typeof(Foo<Bar>), sizeof(int)
|
|
474
|
+
pattern:re(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[nestedRound]),lookbehind:!0,alias:"class-name",inside:typeInside},"return-type":{// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
475
|
+
// int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
|
|
476
|
+
// int Foo => 0; int Foo { get; set } = 0;
|
|
477
|
+
pattern:re(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[typeExpression,identifier]),inside:typeInside,alias:"class-name"},"constructor-invocation":{// new List<Foo<Bar[]>> { }
|
|
478
|
+
pattern:re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[typeExpression]),lookbehind:!0,inside:typeInside,alias:"class-name"},/*'explicit-implementation': {
|
|
479
|
+
// int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
|
|
480
|
+
pattern: replace(/\b<<0>>(?=\.<<1>>)/, className, methodOrPropertyDeclaration),
|
|
481
|
+
inside: classNameInside,
|
|
482
|
+
alias: 'class-name'
|
|
483
|
+
},*/"generic-method":{// foo<Bar>()
|
|
484
|
+
pattern:re(/<<0>>\s*<<1>>(?=\s*\()/.source,[name,generic]),inside:{function:re(/^<<0>>/.source,[name]),generic:{pattern:RegExp(generic),alias:"class-name",inside:typeInside}}},"type-list":{// The list of types inherited or of generic constraints
|
|
485
|
+
// class Foo<F> : Bar, IList<FooBar>
|
|
486
|
+
// where F : Bar, IList<int>
|
|
487
|
+
pattern:re(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[typeDeclarationKeywords,genericName,name,typeExpression,keywords.source,nestedRound,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[genericName,nestedRound]),lookbehind:!0,greedy:!0,inside:Prism3.languages.csharp},keyword:keywords,"class-name":{pattern:RegExp(typeExpression),greedy:!0,inside:typeInside},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{// highlight preprocessor directives as keywords
|
|
488
|
+
directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var regularStringOrCharacter=regularString+"|"+character,regularStringCharacterOrComment=replace(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[regularStringOrCharacter]),roundExpression=nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[regularStringCharacterOrComment]),2),attrTarget=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,attr=replace(/<<0>>(?:\s*\(<<1>>*\))?/.source,[identifier,roundExpression]);Prism3.languages.insertBefore("csharp","class-name",{attribute:{// Attributes
|
|
489
|
+
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
490
|
+
pattern:re(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[attrTarget,attr]),lookbehind:!0,greedy:!0,inside:{target:{pattern:re(/^<<0>>(?=\s*:)/.source,[attrTarget]),alias:"keyword"},"attribute-arguments":{pattern:re(/\(<<0>>*\)/.source,[roundExpression]),inside:Prism3.languages.csharp},"class-name":{pattern:RegExp(identifier),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var formatString=/:[^}\r\n]+/.source,mInterpolationRound=nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[regularStringCharacterOrComment]),2),mInterpolation=replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[mInterpolationRound,formatString]),sInterpolationRound=nested(replace(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[regularStringOrCharacter]),2),sInterpolation=replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[sInterpolationRound,formatString]);function createInterpolationInside(interpolation,interpolationRound){return{interpolation:{pattern:re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[interpolation]),lookbehind:!0,inside:{"format-string":{pattern:re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[interpolationRound,formatString]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:Prism3.languages.csharp}}},string:/[\s\S]+/};}Prism3.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:re(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[mInterpolation]),lookbehind:!0,greedy:!0,inside:createInterpolationInside(mInterpolation,mInterpolationRound)},{pattern:re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[sInterpolation]),lookbehind:!0,greedy:!0,inside:createInterpolationInside(sInterpolation,sInterpolationRound)}],char:{pattern:RegExp(character),greedy:!0}}),Prism3.languages.dotnet=Prism3.languages.cs=Prism3.languages.csharp;}(Prism2);}// ../../node_modules/refractor/lang/markup.js
|
|
491
|
+
markup.displayName="markup";markup.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function markup(Prism2){Prism2.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
492
|
+
pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null// see below
|
|
493
|
+
},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism2.languages.markup.tag.inside["attr-value"].inside.entity=Prism2.languages.markup.entity,Prism2.languages.markup.doctype.inside["internal-subset"].inside=Prism2.languages.markup,Prism2.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"));}),Object.defineProperty(Prism2.languages.markup.tag,"addInlined",{/**
|
|
494
|
+
* Adds an inlined language to markup.
|
|
495
|
+
*
|
|
496
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
497
|
+
*
|
|
498
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
499
|
+
* case insensitive.
|
|
500
|
+
* @param {string} lang The language key.
|
|
501
|
+
* @example
|
|
502
|
+
* addInlined('style', 'css');
|
|
503
|
+
*/value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism2.languages[lang]},includedCdataInside.cdata=/^<!\[CDATA\[|\]\]>$/i;var inside={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism2.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return tagName;}),"i"),lookbehind:!0,greedy:!0,inside},Prism2.languages.insertBefore("markup","cdata",def);}}),Object.defineProperty(Prism2.languages.markup.tag,"addAttribute",{/**
|
|
504
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
505
|
+
*
|
|
506
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
507
|
+
*
|
|
508
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
509
|
+
* case insensitive.
|
|
510
|
+
* @param {string} lang The language key.
|
|
511
|
+
* @example
|
|
512
|
+
* addAttribute('style', 'css');
|
|
513
|
+
*/value:function(attrName,lang){Prism2.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism2.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}});}}),Prism2.languages.html=Prism2.languages.markup,Prism2.languages.mathml=Prism2.languages.markup,Prism2.languages.svg=Prism2.languages.markup,Prism2.languages.xml=Prism2.languages.extend("markup",{}),Prism2.languages.ssml=Prism2.languages.xml,Prism2.languages.atom=Prism2.languages.xml,Prism2.languages.rss=Prism2.languages.xml;}// ../../node_modules/refractor/lang/css.js
|
|
514
|
+
css.displayName="css";css.aliases=[];function css(Prism2){(function(Prism3){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism3.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}// See rest below
|
|
515
|
+
}},url:{// https://drafts.csswg.org/css-values-3/#urls
|
|
516
|
+
pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism3.languages.css.atrule.inside.rest=Prism3.languages.css;var markup2=Prism3.languages.markup;markup2&&(markup2.tag.addInlined("style","css"),markup2.tag.addAttribute("style","css"));})(Prism2);}// ../../node_modules/refractor/lang/diff.js
|
|
517
|
+
diff.displayName="diff";diff.aliases=[];function diff(Prism2){(function(Prism3){Prism3.languages.diff={coord:[// Match all kinds of coord lines (prefixed by "+++", "---" or "***").
|
|
518
|
+
/^(?:\*{3}|-{3}|\+{3}).*$/m,// Match "@@ ... @@" coord lines in unified diff.
|
|
519
|
+
/^@@.*@@$/m,// Match coord lines in normal diff (starts with a number).
|
|
520
|
+
/^\d.*$/m]// deleted, inserted, unchanged, diff
|
|
521
|
+
};var PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(name){var prefix=PREFIXES[name],alias2=[];/^\w+$/.test(name)||alias2.push(/\w+/.exec(name)[0]),name==="diff"&&alias2.push("bold"),Prism3.languages.diff[name]={pattern:RegExp("^(?:["+prefix+`].*(?:\r
|
|
522
|
+
?|
|
|
523
|
+
|(?![\\s\\S])))+`,"m"),alias:alias2,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(name)[0]}}};}),Object.defineProperty(Prism3.languages.diff,"PREFIXES",{value:PREFIXES});})(Prism2);}// ../../node_modules/refractor/lang/go.js
|
|
524
|
+
go.displayName="go";go.aliases=[];function go(Prism2){Prism2.register(clike),Prism2.languages.go=Prism2.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[// binary and octal integers
|
|
525
|
+
/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,// hexadecimal integers and floats
|
|
526
|
+
/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,// decimal integers and floats
|
|
527
|
+
/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism2.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism2.languages.go["class-name"];}// ../../node_modules/refractor/lang/ini.js
|
|
528
|
+
ini.displayName="ini";ini.aliases=[];function ini(Prism2){Prism2.languages.ini={/**
|
|
529
|
+
* The component mimics the behavior of the Win32 API parser.
|
|
530
|
+
*
|
|
531
|
+
* @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723}
|
|
532
|
+
*/comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/};}// ../../node_modules/refractor/lang/java.js
|
|
533
|
+
java.displayName="java";java.aliases=[];function java(Prism2){Prism2.register(clike),function(Prism3){var keywords=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};Prism3.languages.java=Prism3.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{// variables, parameters, and constructor references
|
|
534
|
+
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
535
|
+
pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{// class names based on keyword
|
|
536
|
+
// this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
|
|
537
|
+
pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism3.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Prism3.languages.insertBefore("java","string",{"triple-quoted-string":{// http://openjdk.java.net/jeps/355#Description
|
|
538
|
+
pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Prism3.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return keywords.source;})),lookbehind:!0,inside:{punctuation:/\./}}});}(Prism2);}// ../../node_modules/refractor/lang/regex.js
|
|
539
|
+
regex.displayName="regex";regex.aliases=[];function regex(Prism2){(function(Prism3){var specialEscape={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},escape=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,charSet={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},charSetWithoutDot={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},rangeChar="(?:[^\\\\-]|"+escape.source+")",range=RegExp(rangeChar+"-"+rangeChar),groupName={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};Prism3.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:range,inside:{escape,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":specialEscape,"char-set":charSetWithoutDot,escape}},"special-escape":specialEscape,"char-set":charSet,backreference:[{// a backreference which is not an octal escape
|
|
540
|
+
pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":groupName}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape,group:[{// https://docs.oracle.com/javase/10/docs/api/java/util/regex/Pattern.html
|
|
541
|
+
// https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference?view=netframework-4.7.2#grouping-constructs
|
|
542
|
+
// (), (?<name>), (?'name'), (?>), (?:), (?=), (?!), (?<=), (?<!), (?is-m), (?i-m:)
|
|
543
|
+
pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":groupName}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}};})(Prism2);}// ../../node_modules/refractor/lang/javascript.js
|
|
544
|
+
javascript.displayName="javascript";javascript.aliases=["js"];function javascript(Prism2){Prism2.register(clike),Prism2.languages.javascript=Prism2.languages.extend("clike",{"class-name":[Prism2.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
|
|
545
|
+
function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(// constant
|
|
546
|
+
/NaN|Infinity/.source+"|"+// binary integer
|
|
547
|
+
/0[bB][01]+(?:_[01]+)*n?/.source+"|"+// octal integer
|
|
548
|
+
/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+// hexadecimal integer
|
|
549
|
+
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+// decimal bigint
|
|
550
|
+
/\d+(?:_\d+)*n/.source+"|"+// decimal number (integer or float) but no bigint
|
|
551
|
+
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism2.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism2.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(// lookbehind
|
|
552
|
+
// eslint-disable-next-line regexp/no-dupe-characters-character-class
|
|
553
|
+
/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+// Regex pattern:
|
|
554
|
+
// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
|
|
555
|
+
// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
|
|
556
|
+
// with the only syntax, so we have to define 2 different regex patterns.
|
|
557
|
+
/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+// `v` flag syntax. This supports 3 levels of nested character classes.
|
|
558
|
+
/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+// lookahead
|
|
559
|
+
/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism2.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},// This must be declared before keyword because we use "function" inside the look-forward
|
|
560
|
+
"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism2.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism2.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism2.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism2.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism2.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism2.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism2.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism2.languages.markup&&(Prism2.languages.markup.tag.addInlined("script","javascript"),Prism2.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism2.languages.js=Prism2.languages.javascript;}// ../../node_modules/refractor/lang/json.js
|
|
561
|
+
json.displayName="json";json.aliases=["webmanifest"];function json(Prism2){Prism2.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism2.languages.webmanifest=Prism2.languages.json;}// ../../node_modules/refractor/lang/kotlin.js
|
|
562
|
+
kotlin.displayName="kotlin";kotlin.aliases=["kt","kts"];function kotlin(Prism2){Prism2.register(clike),function(Prism3){Prism3.languages.kotlin=Prism3.languages.extend("clike",{keyword:{// The lookbehind prevents wrong highlighting of e.g. kotlin.properties.get
|
|
563
|
+
pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete Prism3.languages.kotlin["class-name"];var interpolationInside={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:Prism3.languages.kotlin}};Prism3.languages.insertBefore("kotlin","string",{// https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
|
|
564
|
+
"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:interpolationInside},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:interpolationInside},string:/[\s\S]+/}}],char:{// https://kotlinlang.org/spec/expressions.html#character-literals
|
|
565
|
+
pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete Prism3.languages.kotlin.string,Prism3.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),Prism3.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),Prism3.languages.kt=Prism3.languages.kotlin,Prism3.languages.kts=Prism3.languages.kotlin;}(Prism2);}// ../../node_modules/refractor/lang/less.js
|
|
566
|
+
less.displayName="less";less.aliases=[];function less(Prism2){Prism2.register(css),Prism2.languages.less=Prism2.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},// selectors and mixins are considered the same
|
|
567
|
+
selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{// mixin parameters
|
|
568
|
+
variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism2.languages.insertBefore("less","property",{variable:[// Variable declaration (the colon must be consumed!)
|
|
569
|
+
{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},// Variable usage
|
|
570
|
+
/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}});}// ../../node_modules/refractor/lang/lua.js
|
|
571
|
+
lua.displayName="lua";lua.aliases=[];function lua(Prism2){Prism2.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,// \z may be used to skip the following space
|
|
572
|
+
string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{// Match ".." but don't break "..."
|
|
573
|
+
pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/};}// ../../node_modules/refractor/lang/makefile.js
|
|
574
|
+
makefile.displayName="makefile";makefile.aliases=[];function makefile(Prism2){Prism2.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,// Directives
|
|
575
|
+
keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};}// ../../node_modules/refractor/lang/yaml.js
|
|
576
|
+
yaml.displayName="yaml";yaml.aliases=["yml"];function yaml(Prism2){(function(Prism3){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;}),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return properties;}).replace(/<<value>>/g,function(){return value;});return RegExp(pattern,flags);}Prism3.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return properties;})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return properties;}).replace(/<<key>>/g,function(){return"(?:"+plainKey+"|"+string+")";})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism3.languages.yml=Prism3.languages.yaml;})(Prism2);}// ../../node_modules/refractor/lang/markdown.js
|
|
577
|
+
markdown.displayName="markdown";markdown.aliases=["md"];function markdown(Prism2){Prism2.register(markup),function(Prism3){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(/<inner>/g,function(){return inner;}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")");}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell;}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism3.languages.markdown=Prism3.languages.extend("markup",{}),Prism3.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism3.languages.yaml}}},blockquote:{// > ...
|
|
578
|
+
pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism3.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism3.languages.markdown},punctuation:/\|/}}}},code:[{// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
|
579
|
+
pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{// ```optional language
|
|
580
|
+
// code block
|
|
581
|
+
// ```
|
|
582
|
+
pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{// title 1
|
|
583
|
+
// =======
|
|
584
|
+
// title 2
|
|
585
|
+
// -------
|
|
586
|
+
pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{// # title 1
|
|
587
|
+
// ###### title 6
|
|
588
|
+
pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{// ***
|
|
589
|
+
// ---
|
|
590
|
+
// * * *
|
|
591
|
+
// -----------
|
|
592
|
+
pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{// * item
|
|
593
|
+
// + item
|
|
594
|
+
// - item
|
|
595
|
+
// 1. item
|
|
596
|
+
pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{// [id]: http://example.com "Optional title"
|
|
597
|
+
// [id]: http://example.com 'Optional title'
|
|
598
|
+
// [id]: http://example.com (Optional title)
|
|
599
|
+
// [id]: <http://example.com> "Optional title"
|
|
600
|
+
pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{// **strong**
|
|
601
|
+
// __strong__
|
|
602
|
+
// allow one nested instance of italic text using the same delimiter
|
|
603
|
+
pattern:createInline(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}// see below
|
|
604
|
+
},punctuation:/\*\*|__/}},italic:{// *em*
|
|
605
|
+
// _em_
|
|
606
|
+
// allow one nested instance of bold text using the same delimiter
|
|
607
|
+
pattern:createInline(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}// see below
|
|
608
|
+
},punctuation:/[*_]/}},strike:{// ~~strike through~~
|
|
609
|
+
// ~strike~
|
|
610
|
+
// eslint-disable-next-line regexp/strict
|
|
611
|
+
pattern:createInline(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}// see below
|
|
612
|
+
},punctuation:/~~?/}},"code-snippet":{// `code`
|
|
613
|
+
// ``code``
|
|
614
|
+
pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{// [example](http://example.com "Optional title")
|
|
615
|
+
// [example][id]
|
|
616
|
+
// [example] [id]
|
|
617
|
+
pattern:createInline(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}// see below
|
|
618
|
+
},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(token){["url","bold","italic","strike","code-snippet"].forEach(function(inside){token!==inside&&(Prism3.languages.markdown[token].inside.content.inside[inside]=Prism3.languages.markdown[inside]);});}),Prism3.hooks.add("after-tokenize",function(env){if(env.language!=="markdown"&&env.language!=="md")return;function walkTokens(tokens){if(!(!tokens||typeof tokens=="string"))for(var i=0,l=tokens.length;i<l;i++){var token=tokens[i];if(token.type!=="code"){walkTokens(token.content);continue;}var codeLang=token.content[1],codeBlock=token.content[3];if(codeLang&&codeBlock&&codeLang.type==="code-language"&&codeBlock.type==="code-block"&&typeof codeLang.content=="string"){var lang=codeLang.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");lang=(/[a-z][\w-]*/i.exec(lang)||[""])[0].toLowerCase();var alias2="language-"+lang;codeBlock.alias?typeof codeBlock.alias=="string"?codeBlock.alias=[codeBlock.alias,alias2]:codeBlock.alias.push(alias2):codeBlock.alias=[alias2];}}}walkTokens(env.tokens);}),Prism3.hooks.add("wrap",function(env){if(env.type==="code-block"){for(var codeLang="",i=0,l=env.classes.length;i<l;i++){var cls=env.classes[i],match=/language-(.+)/.exec(cls);if(match){codeLang=match[1];break;}}var grammar=Prism3.languages[codeLang];if(grammar)env.content=Prism3.highlight(env.content.value,grammar,codeLang);else if(codeLang&&codeLang!=="none"&&Prism3.plugins.autoloader){var id="md-"+/* @__PURE__ */new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);env.attributes.id=id,Prism3.plugins.autoloader.loadLanguages(codeLang,function(){var ele=document.getElementById(id);ele&&(ele.innerHTML=Prism3.highlight(ele.textContent,Prism3.languages[codeLang],codeLang));});}}});var tagPattern=RegExp(Prism3.languages.markup.tag.pattern.source,"gi"),KNOWN_ENTITY_NAMES={amp:"&",lt:"<",gt:">",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(html5){var text2=html5.replace(tagPattern,"");return text2=text2.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,code){if(code=code.toLowerCase(),code[0]==="#"){var value;return code[1]==="x"?value=parseInt(code.slice(2),16):value=Number(code.slice(1)),fromCodePoint(value);}else{var known=KNOWN_ENTITY_NAMES[code];return known||m;}}),text2;}Prism3.languages.md=Prism3.languages.markdown;}(Prism2);}// ../../node_modules/refractor/lang/objectivec.js
|
|
619
|
+
objectivec.displayName="objectivec";objectivec.aliases=["objc"];function objectivec(Prism2){Prism2.register(c),Prism2.languages.objectivec=Prism2.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism2.languages.objectivec["class-name"],Prism2.languages.objc=Prism2.languages.objectivec;}// ../../node_modules/refractor/lang/perl.js
|
|
620
|
+
perl.displayName="perl";perl.aliases=[];function perl(Prism2){(function(Prism3){var brackets=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;Prism3.languages.perl={comment:[{// POD
|
|
621
|
+
pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],// TODO Could be nice to handle Heredoc too.
|
|
622
|
+
string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[// q/.../
|
|
623
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,// q a...a
|
|
624
|
+
// eslint-disable-next-line regexp/strict
|
|
625
|
+
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,// q(...)
|
|
626
|
+
// q{...}
|
|
627
|
+
// q[...]
|
|
628
|
+
// q<...>
|
|
629
|
+
brackets].join("|")+")"),greedy:!0},// "...", `...`
|
|
630
|
+
{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},// '...'
|
|
631
|
+
// FIXME Multi-line single-quoted strings are not supported as they would break variables containing '
|
|
632
|
+
{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[// m/.../
|
|
633
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,// m a...a
|
|
634
|
+
// eslint-disable-next-line regexp/strict
|
|
635
|
+
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,// m(...)
|
|
636
|
+
// m{...}
|
|
637
|
+
// m[...]
|
|
638
|
+
// m<...>
|
|
639
|
+
brackets].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},// The lookbehinds prevent -s from breaking
|
|
640
|
+
{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[// s/.../.../
|
|
641
|
+
// eslint-disable-next-line regexp/strict
|
|
642
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,// s a...a...a
|
|
643
|
+
// eslint-disable-next-line regexp/strict
|
|
644
|
+
/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,// s(...)(...)
|
|
645
|
+
// s{...}{...}
|
|
646
|
+
// s[...][...]
|
|
647
|
+
// s<...><...>
|
|
648
|
+
// s(...)[...]
|
|
649
|
+
brackets+/\s*/.source+brackets].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},// /.../
|
|
650
|
+
// The look-ahead tries to prevent two divisions on
|
|
651
|
+
// the same line from being highlighted as regex.
|
|
652
|
+
// This does not support multi-line regex.
|
|
653
|
+
{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],// FIXME Not sure about the handling of ::, ', and #
|
|
654
|
+
variable:[// ${^POSTMATCH}
|
|
655
|
+
/[&*$@%]\{\^[A-Z]+\}/,// $^V
|
|
656
|
+
/[&*$@%]\^[A-Z_]/,// ${...}
|
|
657
|
+
/[&*$@%]#?(?=\{)/,// $foo
|
|
658
|
+
/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,// $1
|
|
659
|
+
/[&*$@%]\d+/,// $_, @_, %!
|
|
660
|
+
// The negative lookahead prevents from breaking the %= operator
|
|
661
|
+
/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{// <>, <FOO>, _
|
|
662
|
+
pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{// v1.2, 1.2.3
|
|
663
|
+
pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/};})(Prism2);}// ../../node_modules/refractor/lang/markup-templating.js
|
|
664
|
+
markupTemplating.displayName="markup-templating";markupTemplating.aliases=[];function markupTemplating(Prism2){Prism2.register(markup),function(Prism3){function getPlaceholder(language,index2){return"___"+language.toUpperCase()+index2+"___";}Object.defineProperties(Prism3.languages["markup-templating"]={},{buildPlaceholders:{/**
|
|
665
|
+
* Tokenize all inline templating expressions matching `placeholderPattern`.
|
|
666
|
+
*
|
|
667
|
+
* If `replaceFilter` is provided, only matches of `placeholderPattern` for which `replaceFilter` returns
|
|
668
|
+
* `true` will be replaced.
|
|
669
|
+
*
|
|
670
|
+
* @param {object} env The environment of the `before-tokenize` hook.
|
|
671
|
+
* @param {string} language The language id.
|
|
672
|
+
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
673
|
+
* @param {(match: string) => boolean} [replaceFilter]
|
|
674
|
+
*/value:function(env,language,placeholderPattern,replaceFilter){if(env.language===language){var tokenStack=env.tokenStack=[];env.code=env.code.replace(placeholderPattern,function(match){if(typeof replaceFilter=="function"&&!replaceFilter(match))return match;for(var i=tokenStack.length,placeholder;env.code.indexOf(placeholder=getPlaceholder(language,i))!==-1;)++i;return tokenStack[i]=match,placeholder;}),env.grammar=Prism3.languages.markup;}}},tokenizePlaceholders:{/**
|
|
675
|
+
* Replace placeholders with proper tokens after tokenizing.
|
|
676
|
+
*
|
|
677
|
+
* @param {object} env The environment of the `after-tokenize` hook.
|
|
678
|
+
* @param {string} language The language id.
|
|
679
|
+
*/value:function(env,language){if(env.language!==language||!env.tokenStack)return;env.grammar=Prism3.languages[language];var j=0,keys2=Object.keys(env.tokenStack);function walkTokens(tokens){for(var i=0;i<tokens.length&&!(j>=keys2.length);i++){var token=tokens[i];if(typeof token=="string"||token.content&&typeof token.content=="string"){var k=keys2[j],t=env.tokenStack[k],s2=typeof token=="string"?token:token.content,placeholder=getPlaceholder(language,k),index2=s2.indexOf(placeholder);if(index2>-1){++j;var before=s2.substring(0,index2),middle=new Prism3.Token(language,Prism3.tokenize(t,env.grammar),"language-"+language,t),after=s2.substring(index2+placeholder.length),replacement=[];before&&replacement.push.apply(replacement,walkTokens([before])),replacement.push(middle),after&&replacement.push.apply(replacement,walkTokens([after])),typeof token=="string"?tokens.splice.apply(tokens,[i,1].concat(replacement)):token.content=replacement;}}else token.content&&walkTokens(token.content);}return tokens;}walkTokens(env.tokens);}}});}(Prism2);}// ../../node_modules/refractor/lang/php.js
|
|
680
|
+
php.displayName="php";php.aliases=[];function php(Prism2){Prism2.register(markupTemplating),function(Prism3){var comment2=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,constant=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],number2=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,punctuation=/[{}\[\](),:;]/;Prism3.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:comment2,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{// yield from
|
|
681
|
+
pattern:/(\byield\s+)from\b/i,lookbehind:!0},// `class` is always a keyword unlike other keywords
|
|
682
|
+
/\bclass\b/i,{// https://www.php.net/manual/en/reserved.keywords.php
|
|
683
|
+
//
|
|
684
|
+
// keywords cannot be preceded by "->"
|
|
685
|
+
// the complex lookbehind means `(?<!(?:->|::)\s*)`
|
|
686
|
+
pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:number2,operator,punctuation};var string_interpolation={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Prism3.languages.php},string=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:string_interpolation}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:string_interpolation}}];Prism3.languages.insertBefore("php","variable",{string,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,// inside can appear subset of php
|
|
687
|
+
inside:{comment:comment2,string,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant,number:number2,operator,punctuation}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Prism3.hooks.add("before-tokenize",function(env){if(/<\?/.test(env.code)){var phpPattern=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Prism3.languages["markup-templating"].buildPlaceholders(env,"php",phpPattern);}}),Prism3.hooks.add("after-tokenize",function(env){Prism3.languages["markup-templating"].tokenizePlaceholders(env,"php");});}(Prism2);}// ../../node_modules/refractor/lang/python.js
|
|
688
|
+
python.displayName="python";python.aliases=["py"];function python(Prism2){Prism2.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
689
|
+
pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism2.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism2.languages.python,Prism2.languages.py=Prism2.languages.python;}// ../../node_modules/refractor/lang/r.js
|
|
690
|
+
r.displayName="r";r.aliases=[];function r(Prism2){Prism2.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{// Includes user-defined operators
|
|
691
|
+
// and %%, %*%, %/%, %in%, %o%, %x%
|
|
692
|
+
pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/};}// ../../node_modules/refractor/lang/ruby.js
|
|
693
|
+
ruby.displayName="ruby";ruby.aliases=["rb"];function ruby(Prism2){Prism2.register(clike),function(Prism3){Prism3.languages.ruby=Prism3.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),Prism3.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var interpolation={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Prism3.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete Prism3.languages.ruby.function;var percentExpression="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",symbolName=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;Prism3.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+percentExpression+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+symbolName),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+symbolName+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),Prism3.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+percentExpression),greedy:!0,inside:{interpolation,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+percentExpression),greedy:!0,inside:{interpolation,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete Prism3.languages.ruby.string,Prism3.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),Prism3.languages.rb=Prism3.languages.ruby;}(Prism2);}// ../../node_modules/refractor/lang/rust.js
|
|
694
|
+
rust.displayName="rust";rust.aliases=[];function rust(Prism2){(function(Prism3){for(var multilineComment=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)multilineComment=multilineComment.replace(/<self>/g,function(){return multilineComment;});multilineComment=multilineComment.replace(/<self>/g,function(){return /[^\s\S]/.source;}),Prism3.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+multilineComment),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null// see below
|
|
695
|
+
}},// Closure params should not be confused with bitwise OR |
|
|
696
|
+
"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null// see below
|
|
697
|
+
}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[// https://github.com/rust-lang/reference/blob/master/src/keywords.md
|
|
698
|
+
/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,// primitives and str
|
|
699
|
+
// https://doc.rust-lang.org/stable/rust-by-example/primitives.html
|
|
700
|
+
/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],// functions can technically start with an upper-case letter, but this will introduce a lot of false positives
|
|
701
|
+
// and Rust's naming conventions recommend snake_case anyway.
|
|
702
|
+
// https://doc.rust-lang.org/1.0.0/style/style/naming/README.html
|
|
703
|
+
function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},// Hex, oct, bin, dec numbers with visual separators and type suffix
|
|
704
|
+
number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},Prism3.languages.rust["closure-params"].inside.rest=Prism3.languages.rust,Prism3.languages.rust.attribute.inside.string=Prism3.languages.rust.string;})(Prism2);}// ../../node_modules/refractor/lang/sass.js
|
|
705
|
+
sass.displayName="sass";sass.aliases=[];function sass(Prism2){Prism2.register(css),function(Prism3){Prism3.languages.sass=Prism3.languages.extend("css",{// Sass comments don't need to be closed, only indented
|
|
706
|
+
comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),Prism3.languages.insertBefore("sass","atrule",{// We want to consume the whole line
|
|
707
|
+
"atrule-line":{// Includes support for = and + shortcuts
|
|
708
|
+
pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete Prism3.languages.sass.atrule;var variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism3.languages.insertBefore("sass","property",{// We want to consume the whole line
|
|
709
|
+
"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator}},// We want to consume the whole line
|
|
710
|
+
"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator,important:Prism3.languages.sass.important}}}),delete Prism3.languages.sass.property,delete Prism3.languages.sass.important,Prism3.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});}(Prism2);}// ../../node_modules/refractor/lang/scss.js
|
|
711
|
+
scss.displayName="scss";scss.aliases=[];function scss(Prism2){Prism2.register(css),Prism2.languages.scss=Prism2.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/ // See rest below
|
|
712
|
+
}},// url, compassified
|
|
713
|
+
url:/(?:[-a-z]+-)?url(?=\()/i,// CSS selector regex is not appropriate for Sass
|
|
714
|
+
// since there can be lot more things (var, @ directive, nesting..)
|
|
715
|
+
// a selector must start at the end of a property or after a brace (end of other rules or nesting)
|
|
716
|
+
// it can contain some characters that aren't used for defining rules or end of selector, & (parent selector), or interpolated variable
|
|
717
|
+
// the end of a selector is found when there is no rules in it ( {} or {\s}) or if there is a property (because an interpolated var
|
|
718
|
+
// can "pass" as a selector- e.g: proper#{$erty})
|
|
719
|
+
// this one was hard to do, so please be careful if you edit this one :)
|
|
720
|
+
selector:{// Initial look-ahead is used to prevent matching of blank selectors
|
|
721
|
+
pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism2.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism2.languages.insertBefore("scss","important",{// var and interpolated vars
|
|
722
|
+
variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism2.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism2.languages.scss.atrule.inside.rest=Prism2.languages.scss;}// ../../node_modules/refractor/lang/sql.js
|
|
723
|
+
sql.displayName="sql";sql.aliases=[];function sql(Prism2){Prism2.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,// Should we highlight user defined functions too?
|
|
724
|
+
keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};}// ../../node_modules/refractor/lang/swift.js
|
|
725
|
+
swift.displayName="swift";swift.aliases=[];function swift(Prism2){Prism2.languages.swift={comment:{// Nested comments are supported up to 2 levels
|
|
726
|
+
pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[// https://docs.swift.org/swift-book/LanguageGuide/StringsAndCharacters.html
|
|
727
|
+
{pattern:RegExp(/(^|[^"#])/.source+"(?:"+// single-line string
|
|
728
|
+
/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+// multi-line string
|
|
729
|
+
/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null// see below
|
|
730
|
+
},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+// single-line string
|
|
731
|
+
/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+// multi-line string
|
|
732
|
+
/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null// see below
|
|
733
|
+
},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{// directives with conditions
|
|
734
|
+
pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+// This regex is a little complex. It's equivalent to this:
|
|
735
|
+
// (?:![ \t]*)?(?:\b\w+\b(?:[ \t]*<round>)?|<round>)(?:[ \t]*(?:&&|\|\|))?
|
|
736
|
+
// where <round> is a general parentheses expression.
|
|
737
|
+
/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{// https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html#ID141
|
|
738
|
+
pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,// A class name must start with an upper-case letter and be either 1 letter long or contain a lower-case letter.
|
|
739
|
+
"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,// Operators are generic in Swift. Developers can even create new operators (e.g. +++).
|
|
740
|
+
// https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html#ID481
|
|
741
|
+
// This regex only supports ASCII operators.
|
|
742
|
+
operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism2.languages.swift["string-literal"].forEach(function(rule){rule.inside.interpolation.inside=Prism2.languages.swift;});}// ../../node_modules/refractor/lang/typescript.js
|
|
743
|
+
typescript.displayName="typescript";typescript.aliases=["ts"];function typescript(Prism2){Prism2.register(javascript),function(Prism3){Prism3.languages.typescript=Prism3.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null// see below
|
|
744
|
+
},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism3.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,// keywords that have to be followed by an identifier
|
|
745
|
+
/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,// This is for `import type *, {}`
|
|
746
|
+
/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism3.languages.typescript.parameter,delete Prism3.languages.typescript["literal-property"];var typeInside=Prism3.languages.extend("typescript",{});delete typeInside["class-name"],Prism3.languages.typescript["class-name"].inside=typeInside,Prism3.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{// e.g. foo<T extends "bar" | "baz">( ...
|
|
747
|
+
pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,// everything after the first <
|
|
748
|
+
alias:"class-name",inside:typeInside}}}}),Prism3.languages.ts=Prism3.languages.typescript;}(Prism2);}// ../../node_modules/refractor/lang/basic.js
|
|
749
|
+
basic.displayName="basic";basic.aliases=[];function basic(Prism2){Prism2.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/};}// ../../node_modules/refractor/lang/vbnet.js
|
|
750
|
+
vbnet.displayName="vbnet";vbnet.aliases=[];function vbnet(Prism2){Prism2.register(basic),Prism2.languages.vbnet=Prism2.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/});}// ../../node_modules/hast-util-parse-selector/lib/index.js
|
|
751
|
+
var search=/[#.]/g;function parseSelector(selector,defaultTagName){let value=selector||"",props={},start=0,previous,tagName;for(;start<value.length;){search.lastIndex=start;let match=search.exec(value),subvalue=value.slice(start,match?match.index:value.length);subvalue&&(previous?previous==="#"?props.id=subvalue:Array.isArray(props.className)?props.className.push(subvalue):props.className=[subvalue]:tagName=subvalue,start+=subvalue.length),match&&(previous=match[0],start++);}return{type:"element",// @ts-expect-error: fine.
|
|
752
|
+
tagName:tagName||defaultTagName||"div",properties:props,children:[]};}// ../../node_modules/hastscript/lib/core.js
|
|
753
|
+
var buttonTypes=/* @__PURE__ */new Set(["menu","submit","reset","button"]),own5={}.hasOwnProperty;function core2(schema,defaultTagName,caseSensitive){let adjust=caseSensitive&&createAdjustMap(caseSensitive);return(/**
|
|
754
|
+
* @type {{
|
|
755
|
+
* (): Root
|
|
756
|
+
* (selector: null | undefined, ...children: Array<HChild>): Root
|
|
757
|
+
* (selector: string, properties?: HProperties, ...children: Array<HChild>): Element
|
|
758
|
+
* (selector: string, ...children: Array<HChild>): Element
|
|
759
|
+
* }}
|
|
760
|
+
*/ /**
|
|
761
|
+
* Hyperscript compatible DSL for creating virtual hast trees.
|
|
762
|
+
*
|
|
763
|
+
* @param {string | null} [selector]
|
|
764
|
+
* @param {HProperties | HChild} [properties]
|
|
765
|
+
* @param {Array<HChild>} children
|
|
766
|
+
* @returns {HResult}
|
|
767
|
+
*/function(selector,properties,...children){let index2=-1,node;if(selector==null)node={type:"root",children:[]},children.unshift(properties);else if(node=parseSelector(selector,defaultTagName),node.tagName=node.tagName.toLowerCase(),adjust&&own5.call(adjust,node.tagName)&&(node.tagName=adjust[node.tagName]),isProperties(properties,node.tagName)){let key2;for(key2 in properties)own5.call(properties,key2)&&addProperty(schema,node.properties,key2,properties[key2]);}else children.unshift(properties);for(;++index2<children.length;)addChild(node.children,children[index2]);return node.type==="element"&&node.tagName==="template"&&(node.content={type:"root",children:node.children},node.children=[]),node;});}function isProperties(value,name){return value==null||typeof value!="object"||Array.isArray(value)?!1:name==="input"||!value.type||typeof value.type!="string"?!0:"children"in value&&Array.isArray(value.children)?!1:name==="button"?buttonTypes.has(value.type.toLowerCase()):!("value"in value);}function addProperty(schema,properties,key2,value){let info=find(schema,key2),index2=-1,result;if(value!=null){if(typeof value=="number"){if(Number.isNaN(value))return;result=value;}else typeof value=="boolean"?result=value:typeof value=="string"?info.spaceSeparated?result=parse2(value):info.commaSeparated?result=parse(value):info.commaOrSpaceSeparated?result=parse2(parse(value).join(" ")):result=parsePrimitive(info,info.property,value):Array.isArray(value)?result=value.concat():result=info.property==="style"?style(value):String(value);if(Array.isArray(result)){let finalResult=[];for(;++index2<result.length;)finalResult[index2]=parsePrimitive(info,info.property,result[index2]);result=finalResult;}info.property==="className"&&Array.isArray(properties.className)&&(result=properties.className.concat(result)),properties[info.property]=result;}}function addChild(nodes,value){let index2=-1;if(value!=null)if(typeof value=="string"||typeof value=="number")nodes.push({type:"text",value:String(value)});else if(Array.isArray(value))for(;++index2<value.length;)addChild(nodes,value[index2]);else if(typeof value=="object"&&"type"in value)value.type==="root"?addChild(nodes,value.children):nodes.push(value);else throw new Error("Expected node, nodes, or string, got `"+value+"`");}function parsePrimitive(info,name,value){if(typeof value=="string"){if(info.number&&value&&!Number.isNaN(Number(value)))return Number(value);if((info.boolean||info.overloadedBoolean)&&(value===""||normalize(value)===normalize(name)))return!0;}return value;}function style(value){let result=[],key2;for(key2 in value)own5.call(value,key2)&&result.push([key2,value[key2]].join(": "));return result.join("; ");}function createAdjustMap(values){let result={},index2=-1;for(;++index2<values.length;)result[values[index2].toLowerCase()]=values[index2];return result;}// ../../node_modules/hastscript/lib/html.js
|
|
768
|
+
var h=core2(html2,"div");// ../../node_modules/hastscript/lib/svg-case-sensitive-tag-names.js
|
|
769
|
+
var svgCaseSensitiveTagNames=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];// ../../node_modules/hastscript/lib/svg.js
|
|
770
|
+
var s=core2(svg2,"g",svgCaseSensitiveTagNames);// ../../node_modules/character-reference-invalid/index.js
|
|
771
|
+
var characterReferenceInvalid={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};// ../../node_modules/is-decimal/index.js
|
|
772
|
+
function isDecimal(character){let code=typeof character=="string"?character.charCodeAt(0):character;return code>=48&&code<=57;}// ../../node_modules/is-hexadecimal/index.js
|
|
773
|
+
function isHexadecimal(character){let code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57;}// ../../node_modules/is-alphabetical/index.js
|
|
774
|
+
function isAlphabetical(character){let code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90;}// ../../node_modules/is-alphanumerical/index.js
|
|
775
|
+
function isAlphanumerical(character){return isAlphabetical(character)||isDecimal(character);}// ../../node_modules/character-entities/index.js
|
|
776
|
+
var characterEntities={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
777
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};// ../../node_modules/decode-named-character-reference/index.js
|
|
778
|
+
var own6={}.hasOwnProperty;function decodeNamedCharacterReference(value){return own6.call(characterEntities,value)?characterEntities[value]:!1;}// ../../node_modules/parse-entities/lib/index.js
|
|
779
|
+
var fromCharCode=String.fromCharCode,messages=["",/* 1: Non terminated (named) */"Named character references must be terminated by a semicolon",/* 2: Non terminated (numeric) */"Numeric character references must be terminated by a semicolon",/* 3: Empty (named) */"Named character references cannot be empty",/* 4: Empty (numeric) */"Numeric character references cannot be empty",/* 5: Unknown (named) */"Named character references must be known",/* 6: Disallowed (numeric) */"Numeric character references cannot be disallowed",/* 7: Prohibited (numeric) */"Numeric character references cannot be outside the permissible Unicode range"];function parseEntities(value,options={}){let additional=typeof options.additional=="string"?options.additional.charCodeAt(0):options.additional,result=[],index2=0,lines=-1,queue="",point3,indent;options.position&&("start"in options.position||"indent"in options.position?(indent=options.position.indent,point3=options.position.start):point3=options.position);let line=(point3?point3.line:0)||1,column=(point3?point3.column:0)||1,previous=now(),character;for(index2--;++index2<=value.length;)if(character===10&&(column=(indent?indent[lines]:0)||1),character=value.charCodeAt(index2),character===38){let following=value.charCodeAt(index2+1);if(following===9||following===10||following===12||following===32||following===38||following===60||Number.isNaN(following)||additional&&following===additional){queue+=fromCharCode(character),column++;continue;}let start=index2+1,begin=start,end=start,type;if(following===35){end=++begin;let following2=value.charCodeAt(end);following2===88||following2===120?(type="hexadecimal",end=++begin):type="decimal";}else type="named";let characterReferenceCharacters="",characterReference="",characters2="",test=type==="named"?isAlphanumerical:type==="decimal"?isDecimal:isHexadecimal;for(end--;++end<=value.length;){let following2=value.charCodeAt(end);if(!test(following2))break;characters2+=fromCharCode(following2),type==="named"&&characterEntitiesLegacy.includes(characters2)&&(characterReferenceCharacters=characters2,characterReference=decodeNamedCharacterReference(characters2));}let terminated=value.charCodeAt(end)===59;if(terminated){end++;let namedReference=type==="named"?decodeNamedCharacterReference(characters2):!1;namedReference&&(characterReferenceCharacters=characters2,characterReference=namedReference);}let diff2=1+end-start,reference="";if(!(!terminated&&options.nonTerminated===!1))if(!characters2)type!=="named"&&warning(4,diff2);else if(type==="named"){if(terminated&&!characterReference)warning(5,1);else if(characterReferenceCharacters!==characters2&&(end=begin+characterReferenceCharacters.length,diff2=1+end-begin,terminated=!1),!terminated){let reason=characterReferenceCharacters?1:3;if(options.attribute){let following2=value.charCodeAt(end);following2===61?(warning(reason,diff2),characterReference=""):isAlphanumerical(following2)?characterReference="":warning(reason,diff2);}else warning(reason,diff2);}reference=characterReference;}else{terminated||warning(2,diff2);let referenceCode=Number.parseInt(characters2,type==="hexadecimal"?16:10);if(prohibited(referenceCode))warning(7,diff2),reference=fromCharCode(65533/* `�` */);else if(referenceCode in characterReferenceInvalid)warning(6,diff2),reference=characterReferenceInvalid[referenceCode];else{let output="";disallowed(referenceCode)&&warning(6,diff2),referenceCode>65535&&(referenceCode-=65536,output+=fromCharCode(referenceCode>>>10|55296),referenceCode=56320|referenceCode&1023),reference=output+fromCharCode(referenceCode);}}if(reference){flush(),previous=now(),index2=end-1,column+=end-start+1,result.push(reference);let next=now();next.offset++,options.reference&&options.reference.call(options.referenceContext,reference,{start:previous,end:next},value.slice(start-1,end)),previous=next;}else characters2=value.slice(start-1,end),queue+=characters2,column+=characters2.length,index2=end-1;}else character===10&&(line++,lines++,column=0),Number.isNaN(character)?flush():(queue+=fromCharCode(character),column++);return result.join("");function now(){return{line,column,offset:index2+((point3?point3.offset:0)||0)};}function warning(code,offset){let position3;options.warning&&(position3=now(),position3.column+=offset,position3.offset+=offset,options.warning.call(options.warningContext,messages[code],position3,code));}function flush(){queue&&(result.push(queue),options.text&&options.text.call(options.textContext,queue,{start:previous,end:now()}),queue="");}}function prohibited(code){return code>=55296&&code<=57343||code>1114111;}function disallowed(code){return code>=1&&code<=8||code===11||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||(code&65535)===65535||(code&65535)===65534;}// ../../node_modules/refractor/lib/prism-core.js
|
|
780
|
+
var uniqueId=0,plainTextGrammar={},_={/**
|
|
781
|
+
* A namespace for utility methods.
|
|
782
|
+
*
|
|
783
|
+
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
|
784
|
+
* change or disappear at any time.
|
|
785
|
+
*
|
|
786
|
+
* @namespace
|
|
787
|
+
* @memberof Prism
|
|
788
|
+
*/util:{/**
|
|
789
|
+
* Returns the name of the type of the given value.
|
|
790
|
+
*
|
|
791
|
+
* @param {any} o
|
|
792
|
+
* @returns {string}
|
|
793
|
+
* @example
|
|
794
|
+
* type(null) === 'Null'
|
|
795
|
+
* type(undefined) === 'Undefined'
|
|
796
|
+
* type(123) === 'Number'
|
|
797
|
+
* type('foo') === 'String'
|
|
798
|
+
* type(true) === 'Boolean'
|
|
799
|
+
* type([1, 2]) === 'Array'
|
|
800
|
+
* type({}) === 'Object'
|
|
801
|
+
* type(String) === 'Function'
|
|
802
|
+
* type(/abc+/) === 'RegExp'
|
|
803
|
+
*/type:function(o){return Object.prototype.toString.call(o).slice(8,-1);},/**
|
|
804
|
+
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
805
|
+
*
|
|
806
|
+
* @param {Object} obj
|
|
807
|
+
* @returns {number}
|
|
808
|
+
*/objId:function(obj){return obj.__id||Object.defineProperty(obj,"__id",{value:++uniqueId}),obj.__id;},/**
|
|
809
|
+
* Creates a deep clone of the given object.
|
|
810
|
+
*
|
|
811
|
+
* The main intended use of this function is to clone language definitions.
|
|
812
|
+
*
|
|
813
|
+
* @param {T} o
|
|
814
|
+
* @param {Record<number, any>} [visited]
|
|
815
|
+
* @returns {T}
|
|
816
|
+
* @template T
|
|
817
|
+
*/clone:function deepClone(o,visited){visited=visited||{};var clone,id;switch(_.util.type(o)){case"Object":if(id=_.util.objId(o),visited[id])return visited[id];clone=/** @type {Record<string, any>} */{},visited[id]=clone;for(var key2 in o)o.hasOwnProperty(key2)&&(clone[key2]=deepClone(o[key2],visited));return(/** @type {any} */clone);case"Array":return id=_.util.objId(o),visited[id]?visited[id]:(clone=[],visited[id]=clone,o.forEach(function(v,i){clone[i]=deepClone(v,visited);}),/** @type {any} */clone);default:return o;}}},/**
|
|
818
|
+
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
|
819
|
+
*
|
|
820
|
+
* @namespace
|
|
821
|
+
* @memberof Prism
|
|
822
|
+
* @public
|
|
823
|
+
*/languages:{/**
|
|
824
|
+
* The grammar for plain, unformatted text.
|
|
825
|
+
*/plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,/**
|
|
826
|
+
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
827
|
+
*
|
|
828
|
+
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
|
829
|
+
* will be overwritten at its original position.
|
|
830
|
+
*
|
|
831
|
+
* ## Best practices
|
|
832
|
+
*
|
|
833
|
+
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
|
834
|
+
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
|
835
|
+
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
|
836
|
+
*
|
|
837
|
+
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
|
838
|
+
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
|
839
|
+
*
|
|
840
|
+
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
|
841
|
+
* @param {Grammar} redef The new tokens to append.
|
|
842
|
+
* @returns {Grammar} The new language created.
|
|
843
|
+
* @public
|
|
844
|
+
* @example
|
|
845
|
+
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
|
846
|
+
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
|
847
|
+
* // at its original position
|
|
848
|
+
* 'comment': { ... },
|
|
849
|
+
* // CSS doesn't have a 'color' token, so this token will be appended
|
|
850
|
+
* 'color': /\b(?:red|green|blue)\b/
|
|
851
|
+
* });
|
|
852
|
+
*/extend:function(id,redef){var lang=_.util.clone(_.languages[id]);for(var key2 in redef)lang[key2]=redef[key2];return lang;},/**
|
|
853
|
+
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
854
|
+
*
|
|
855
|
+
* ## Usage
|
|
856
|
+
*
|
|
857
|
+
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
|
858
|
+
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
|
859
|
+
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
|
860
|
+
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
|
861
|
+
* this:
|
|
862
|
+
*
|
|
863
|
+
* ```js
|
|
864
|
+
* Prism.languages.markup.style = {
|
|
865
|
+
* // token
|
|
866
|
+
* };
|
|
867
|
+
* ```
|
|
868
|
+
*
|
|
869
|
+
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
|
870
|
+
* before existing tokens. For the CSS example above, you would use it like this:
|
|
871
|
+
*
|
|
872
|
+
* ```js
|
|
873
|
+
* Prism.languages.insertBefore('markup', 'cdata', {
|
|
874
|
+
* 'style': {
|
|
875
|
+
* // token
|
|
876
|
+
* }
|
|
877
|
+
* });
|
|
878
|
+
* ```
|
|
879
|
+
*
|
|
880
|
+
* ## Special cases
|
|
881
|
+
*
|
|
882
|
+
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
|
883
|
+
* will be ignored.
|
|
884
|
+
*
|
|
885
|
+
* This behavior can be used to insert tokens after `before`:
|
|
886
|
+
*
|
|
887
|
+
* ```js
|
|
888
|
+
* Prism.languages.insertBefore('markup', 'comment', {
|
|
889
|
+
* 'comment': Prism.languages.markup.comment,
|
|
890
|
+
* // tokens after 'comment'
|
|
891
|
+
* });
|
|
892
|
+
* ```
|
|
893
|
+
*
|
|
894
|
+
* ## Limitations
|
|
895
|
+
*
|
|
896
|
+
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
|
897
|
+
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
|
898
|
+
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
|
899
|
+
* deleting properties which is necessary to insert at arbitrary positions.
|
|
900
|
+
*
|
|
901
|
+
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
|
902
|
+
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
|
903
|
+
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
|
904
|
+
*
|
|
905
|
+
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
|
906
|
+
* you hold the target object in a variable, then the value of the variable will not change.
|
|
907
|
+
*
|
|
908
|
+
* ```js
|
|
909
|
+
* var oldMarkup = Prism.languages.markup;
|
|
910
|
+
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
|
911
|
+
*
|
|
912
|
+
* assert(oldMarkup !== Prism.languages.markup);
|
|
913
|
+
* assert(newMarkup === Prism.languages.markup);
|
|
914
|
+
* ```
|
|
915
|
+
*
|
|
916
|
+
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
|
917
|
+
* object to be modified.
|
|
918
|
+
* @param {string} before The key to insert before.
|
|
919
|
+
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
|
920
|
+
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
|
921
|
+
* object to be modified.
|
|
922
|
+
*
|
|
923
|
+
* Defaults to `Prism.languages`.
|
|
924
|
+
* @returns {Grammar} The new grammar object.
|
|
925
|
+
* @public
|
|
926
|
+
*/insertBefore:function(inside,before,insert,root2){root2=root2||/** @type {any} */_.languages;var grammar=root2[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token]);}var old=root2[inside];return root2[inside]=ret,_.languages.DFS(_.languages,function(key2,value){value===old&&key2!=inside&&(this[key2]=ret);}),ret;},// Traverse a language definition with Depth First Search
|
|
927
|
+
DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);propertyType==="Object"&&!visited[objId(property)]?(visited[objId(property)]=!0,DFS(property,callback,null,visited)):propertyType==="Array"&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited));}}},plugins:{},/**
|
|
928
|
+
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
929
|
+
* and the language definitions to use, and returns a string with the HTML produced.
|
|
930
|
+
*
|
|
931
|
+
* The following hooks will be run:
|
|
932
|
+
* 1. `before-tokenize`
|
|
933
|
+
* 2. `after-tokenize`
|
|
934
|
+
* 3. `wrap`: On each {@link Token}.
|
|
935
|
+
*
|
|
936
|
+
* @param {string} text A string with the code to be highlighted.
|
|
937
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
938
|
+
*
|
|
939
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
940
|
+
* @param {string} language The name of the language definition passed to `grammar`.
|
|
941
|
+
* @returns {string} The highlighted HTML.
|
|
942
|
+
* @memberof Prism
|
|
943
|
+
* @public
|
|
944
|
+
* @example
|
|
945
|
+
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
946
|
+
*/highlight:function(text2,grammar,language){var env={code:text2,grammar,language};if(_.hooks.run("before-tokenize",env),!env.grammar)throw new Error('The language "'+env.language+'" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language);},/**
|
|
947
|
+
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
948
|
+
* and the language definitions to use, and returns an array with the tokenized code.
|
|
949
|
+
*
|
|
950
|
+
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
|
951
|
+
*
|
|
952
|
+
* This method could be useful in other contexts as well, as a very crude parser.
|
|
953
|
+
*
|
|
954
|
+
* @param {string} text A string with the code to be highlighted.
|
|
955
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
956
|
+
*
|
|
957
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
958
|
+
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
|
959
|
+
* @memberof Prism
|
|
960
|
+
* @public
|
|
961
|
+
* @example
|
|
962
|
+
* let code = `var foo = 0;`;
|
|
963
|
+
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
|
964
|
+
* tokens.forEach(token => {
|
|
965
|
+
* if (token instanceof Prism.Token && token.type === 'number') {
|
|
966
|
+
* console.log(`Found numeric literal: ${token.content}`);
|
|
967
|
+
* }
|
|
968
|
+
* });
|
|
969
|
+
*/tokenize:function(text2,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest;}var tokenList=new LinkedList();return addAfter(tokenList,tokenList.head,text2),matchGrammar(text2,tokenList,grammar,tokenList.head,0),toArray(tokenList);},/**
|
|
970
|
+
* @namespace
|
|
971
|
+
* @memberof Prism
|
|
972
|
+
* @public
|
|
973
|
+
*/hooks:{all:{},/**
|
|
974
|
+
* Adds the given callback to the list of callbacks for the given hook.
|
|
975
|
+
*
|
|
976
|
+
* The callback will be invoked when the hook it is registered for is run.
|
|
977
|
+
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
|
978
|
+
*
|
|
979
|
+
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
|
980
|
+
*
|
|
981
|
+
* @param {string} name The name of the hook.
|
|
982
|
+
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
983
|
+
* @public
|
|
984
|
+
*/add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback);},/**
|
|
985
|
+
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
986
|
+
*
|
|
987
|
+
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
|
988
|
+
*
|
|
989
|
+
* @param {string} name The name of the hook.
|
|
990
|
+
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
991
|
+
* @public
|
|
992
|
+
*/run:function(name,env){var callbacks=_.hooks.all[name];if(!(!callbacks||!callbacks.length))for(var i=0,callback;callback=callbacks[i++];)callback(env);}},Token};function Token(type,content,alias2,matchedStr){this.type=type,this.content=content,this.alias=alias2,this.length=(matchedStr||"").length|0;}function matchPattern(pattern,pos,text2,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text2);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength);}return match;}function matchGrammar(text2,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(!(!grammar.hasOwnProperty(token)||!grammar[token])){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j<patterns.length;++j){if(rematch&&rematch.cause==token+","+j)return;var patternObj=patterns[j],inside=patternObj.inside,lookbehind=!!patternObj.lookbehind,greedy=!!patternObj.greedy,alias2=patternObj.alias;if(greedy&&!patternObj.pattern.global){var flags=patternObj.pattern.toString().match(/[imsuy]*$/)[0];patternObj.pattern=RegExp(patternObj.pattern.source,flags+"g");}for(var pattern=patternObj.pattern||patternObj,currentNode=startNode.next,pos=startPos;currentNode!==tokenList.tail&&!(rematch&&pos>=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text2.length)return;if(!(str instanceof Token)){var removeCount=1,match;if(greedy){if(match=matchPattern(pattern,pos,text2,lookbehind),!match||match.index>=text2.length)break;var from=match.index,to=match.index+match[0].length,p2=pos;for(p2+=currentNode.value.length;from>=p2;)currentNode=currentNode.next,p2+=currentNode.value.length;if(p2-=currentNode.value.length,pos=p2,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(p2<to||typeof k.value=="string");k=k.next)removeCount++,p2+=k.value.length;removeCount--,str=text2.slice(pos,p2),match.index-=pos;}else if(match=matchPattern(pattern,0,str,lookbehind),!match)continue;var from=match.index,matchStr=match[0],before=str.slice(0,from),after=str.slice(from+matchStr.length),reach=pos+str.length;rematch&&reach>rematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount);var wrapped=new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias2,matchStr);if(currentNode=addAfter(tokenList,removeFrom,wrapped),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach};matchGrammar(text2,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach);}}}}}}function LinkedList(){var head2={value:null,prev:null,next:null},tail={value:null,prev:head2,next:null};head2.next=tail,this.head=head2,this.tail=tail,this.length=0;}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode;}function removeRange(list,node,count){for(var next=node.next,i=0;i<count&&next!==list.tail;i++)next=next.next;node.next=next,next.prev=node,list.length-=i;}function toArray(list){for(var array=[],node=list.head.next;node!==list.tail;)array.push(node.value),node=node.next;return array;}var Prism=_;// ../../node_modules/refractor/lib/core.js
|
|
993
|
+
var own7={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refractor=new Refractor();refractor.highlight=highlight;refractor.register=register;refractor.alias=alias;refractor.registered=registered;refractor.listLanguages=listLanguages;refractor.util.encode=encode;refractor.Token.stringify=stringify3;function highlight(value,language){if(typeof value!="string")throw new TypeError("Expected `string` for `value`, got `"+value+"`");let grammar,name;if(language&&typeof language=="object")grammar=language;else{if(name=language,typeof name!="string")throw new TypeError("Expected `string` for `name`, got `"+name+"`");if(own7.call(refractor.languages,name))grammar=refractor.languages[name];else throw new Error("Unknown language: `"+name+"` is not registered");}return{type:"root",// @ts-expect-error: we hacked Prism to accept and return the things we want.
|
|
994
|
+
children:Prism.highlight.call(refractor,value,grammar,name)};}function register(syntax){if(typeof syntax!="function"||!syntax.displayName)throw new Error("Expected `function` for `syntax`, got `"+syntax+"`");own7.call(refractor.languages,syntax.displayName)||syntax(refractor);}function alias(language,alias2){let languages=refractor.languages,map={};typeof language=="string"?alias2&&(map[language]=alias2):map=language;let key2;for(key2 in map)if(own7.call(map,key2)){let value=map[key2],list=typeof value=="string"?[value]:value,index2=-1;for(;++index2<list.length;)languages[list[index2]]=languages[key2];}}function registered(aliasOrLanguage){if(typeof aliasOrLanguage!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+aliasOrLanguage+"`");return own7.call(refractor.languages,aliasOrLanguage);}function listLanguages(){let languages=refractor.languages,list=[],language;for(language in languages)own7.call(languages,language)&&typeof languages[language]=="object"&&list.push(language);return list;}function stringify3(value,language){if(typeof value=="string")return{type:"text",value};if(Array.isArray(value)){let result=[],index2=-1;for(;++index2<value.length;)value[index2]!==""&&value[index2]!==null&&value[index2]!==void 0&&result.push(stringify3(value[index2],language));return result;}let env={type:value.type,content:stringify3(value.content,language),tag:"span",classes:["token",value.type],attributes:{},language};return value.alias&&env.classes.push(...(typeof value.alias=="string"?[value.alias]:value.alias)),refractor.hooks.run("wrap",env),h(env.tag+"."+env.classes.join("."),attributes(env.attributes),env.content);}function encode(tokens){return tokens;}function attributes(attrs){let key2;for(key2 in attrs)own7.call(attrs,key2)&&(attrs[key2]=parseEntities(attrs[key2]));return attrs;}// ../../node_modules/refractor/lib/common.js
|
|
995
|
+
refractor.register(clike);refractor.register(c);refractor.register(cpp);refractor.register(arduino);refractor.register(bash);refractor.register(csharp);refractor.register(markup);refractor.register(css);refractor.register(diff);refractor.register(go);refractor.register(ini);refractor.register(java);refractor.register(regex);refractor.register(javascript);refractor.register(json);refractor.register(kotlin);refractor.register(less);refractor.register(lua);refractor.register(makefile);refractor.register(yaml);refractor.register(markdown);refractor.register(objectivec);refractor.register(perl);refractor.register(markupTemplating);refractor.register(php);refractor.register(python);refractor.register(r);refractor.register(ruby);refractor.register(rust);refractor.register(sass);refractor.register(scss);refractor.register(sql);refractor.register(swift);refractor.register(typescript);refractor.register(basic);refractor.register(vbnet);// ../../node_modules/refractor/lang/jsx.js
|
|
996
|
+
jsx.displayName="jsx";jsx.aliases=[];function jsx(Prism2){Prism2.register(javascript),Prism2.register(markup),function(Prism3){var javascript2=Prism3.util.clone(Prism3.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function re(source,flags){return source=source.replace(/<S>/g,function(){return space;}).replace(/<BRACES>/g,function(){return braces;}).replace(/<SPREAD>/g,function(){return spread;}),RegExp(source,flags);}spread=re(spread).source,Prism3.languages.jsx=Prism3.languages.extend("markup",javascript2),Prism3.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),Prism3.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism3.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism3.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism3.languages.jsx.tag.inside.comment=javascript2.comment,Prism3.languages.insertBefore("inside","attr-name",{spread:{pattern:re(/<SPREAD>/.source),inside:Prism3.languages.jsx}},Prism3.languages.jsx.tag),Prism3.languages.insertBefore("inside","special-attr",{script:{// Allow for two levels of nesting
|
|
997
|
+
pattern:re(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism3.languages.jsx}}},Prism3.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):"";},walkTokens=function(tokens){for(var openedTags=[],i=0;i<tokens.length;i++){var token=tokens[i],notTagNorBrace=!1;if(typeof token!="string"&&(token.type==="tag"&&token.content[0]&&token.content[0].type==="tag"?token.content[0].content[0].content==="</"?openedTags.length>0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i<tokens.length-1&&(typeof tokens[i+1]=="string"||tokens[i+1].type==="plain-text")&&(plainText+=stringifyToken(tokens[i+1]),tokens.splice(i+1,1)),i>0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism3.Token("plain-text",plainText,null,plainText);}token.content&&typeof token.content!="string"&&walkTokens(token.content);}};Prism3.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens);});}(Prism2);}// ../../node_modules/refractor/lang/tsx.js
|
|
998
|
+
tsx.displayName="tsx";tsx.aliases=[];function tsx(Prism2){Prism2.register(jsx),Prism2.register(typescript),function(Prism3){var typescript2=Prism3.util.clone(Prism3.languages.typescript);Prism3.languages.tsx=Prism3.languages.extend("jsx",typescript2),delete Prism3.languages.tsx.parameter,delete Prism3.languages.tsx["literal-property"];var tag=Prism3.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0;}(Prism2);}// ../../node_modules/rehype-parse/lib/index.js
|
|
999
|
+
var import_parser=__toESM(require_parser(),1);// ../../node_modules/vfile-location/lib/index.js
|
|
1000
|
+
function location(file){let value=String(file),indices=[],search2=/\r?\n|\r/g;for(;search2.test(value);)indices.push(search2.lastIndex);return indices.push(value.length+1),{toPoint,toOffset};function toPoint(offset){let index2=-1;if(typeof offset=="number"&&offset>-1&&offset<indices[indices.length-1]){for(;++index2<indices.length;)if(indices[index2]>offset)return{line:index2+1,column:offset-(index2>0?indices[index2-1]:0)+1,offset};}return{line:void 0,column:void 0,offset:void 0};}function toOffset(point3){let line=point3&&point3.line,column=point3&&point3.column;if(typeof line=="number"&&typeof column=="number"&&!Number.isNaN(line)&&!Number.isNaN(column)&&line-1 in indices){let offset=(indices[line-2]||0)+column-1||0;if(offset>-1&&offset<indices[indices.length-1])return offset;}return-1;}}// ../../node_modules/web-namespaces/index.js
|
|
1001
|
+
var webNamespaces={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};// ../../node_modules/hast-util-from-parse5/lib/index.js
|
|
1002
|
+
var own8={}.hasOwnProperty,proto=Object.prototype;function fromParse5(tree,options){let options_=options||{},settings,file;return isFile(options_)?(file=options_,settings={}):(file=options_.file||void 0,settings=options_),one2({schema:settings.space==="svg"?svg2:html2,file,verbose:settings.verbose,location:!1},tree);}function one2(state,node){let result;switch(node.nodeName){case"#comment":{let reference=/** @type {P5Comment} */node;return result={type:"comment",value:reference.data},patch(state,reference,result),result;}case"#document":case"#document-fragment":{let reference=/** @type {P5Document | P5DocumentFragment} */node,quirksMode="mode"in reference?reference.mode==="quirks"||reference.mode==="limited-quirks":!1;if(result={type:"root",children:all2(state,node.childNodes),data:{quirksMode}},state.file&&state.location){let doc=String(state.file),loc=location(doc),start=loc.toPoint(0),end=loc.toPoint(doc.length);result.position={start,end};}return result;}case"#documentType":{let reference=/** @type {P5DocumentType} */node;return result={type:"doctype"},patch(state,reference,result),result;}case"#text":{let reference=/** @type {P5Text} */node;return result={type:"text",value:reference.value},patch(state,reference,result),result;}default:return result=element2(state,/** @type {P5Element} */node),result;}}function all2(state,nodes){let index2=-1,result=[];for(;++index2<nodes.length;)result[index2]=one2(state,nodes[index2]);return result;}function element2(state,node){let schema=state.schema;state.schema=node.namespaceURI===webNamespaces.svg?svg2:html2;let index2=-1,props={};for(;++index2<node.attrs.length;){let attribute=node.attrs[index2],name=(attribute.prefix?attribute.prefix+":":"")+attribute.name;own8.call(proto,name)||(props[name]=attribute.value);}let result=(state.schema.space==="svg"?s:h)(node.tagName,props,all2(state,node.childNodes));if(patch(state,node,result),result.tagName==="template"){let reference=/** @type {P5Template} */node,pos=reference.sourceCodeLocation,startTag=pos&&pos.startTag&&position(pos.startTag),endTag=pos&&pos.endTag&&position(pos.endTag),content=one2(state,reference.content);startTag&&endTag&&state.file&&(content.position={start:startTag.end,end:endTag.start}),result.content=content;}return state.schema=schema,result;}function patch(state,from,to){if("sourceCodeLocation"in from&&from.sourceCodeLocation&&state.file){let position3=createLocation(state,to,from.sourceCodeLocation);position3&&(state.location=!0,to.position=position3);}}function createLocation(state,node,location2){let result=position(location2);if(node.type==="element"){let tail=node.children[node.children.length-1];if(result&&!location2.endTag&&tail&&tail.position&&tail.position.end&&(result.end=Object.assign({},tail.position.end)),state.verbose){let props={},key2;if(location2.attrs)for(key2 in location2.attrs)own8.call(location2.attrs,key2)&&(props[find(state.schema,key2).property]=position(location2.attrs[key2]));node.data={position:{// @ts-expect-error: assume not `undefined`.
|
|
1003
|
+
opening:position(location2.startTag),closing:location2.endTag?position(location2.endTag):null,properties:props}};}}return result;}function position(loc){let start=point({line:loc.startLine,column:loc.startCol,offset:loc.startOffset}),end=point({line:loc.endLine,column:loc.endCol,offset:loc.endOffset});return start||end?{start,end}:void 0;}function point(point3){return point3.line&&point3.column?point3:void 0;}function isFile(value){return"messages"in value;}// ../../node_modules/rehype-parse/lib/errors.js
|
|
1004
|
+
var errors={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};// ../../node_modules/rehype-parse/lib/index.js
|
|
1005
|
+
var base="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",fatalities={2:!0,1:!1,0:null};function rehypeParse(options){let processorSettings=/** @type {Options} */this.data("settings"),settings=Object.assign({},processorSettings,options);Object.assign(this,{Parser:parser});function parser(doc,file){let fn=settings.fragment?"parseFragment":"parse",onParseError=settings.emitParseErrors?onerror:null,parse5=new import_parser.default({sourceCodeLocationInfo:!0,onParseError,scriptingEnabled:!1});return fromParse5(parse5[fn](doc),{space:settings.space,file,verbose:settings.verbose});function onerror(error){let code=error.code,name=camelcase2(code),setting=settings[name],config=setting??!0,level=typeof config=="number"?config:config?1:0,start={line:error.startLine,column:error.startCol,offset:error.startOffset},end={line:error.endLine,column:error.endCol,offset:error.endOffset};if(level){let info=errors[name]||{reason:"",description:"",url:""},message=file.message(format(info.reason),{start,end});message.source="parse-error",message.ruleId=code,message.fatal=fatalities[level],message.note=format(info.description),message.url="url"in info&&info.url===!1?null:base+code;}function format(value){return value.replace(/%c(?:-(\d+))?/g,(_2,$1)=>{let offset=$1?-Number.parseInt($1,10):0,char=doc.charAt(error.startOffset+offset);return char==="`"?"` ` `":char;}).replace(/%x/g,()=>"0x"+doc.charCodeAt(error.startOffset).toString(16).toUpperCase());}}}}function camelcase2(value){return value.replace(/-[a-z]/g,$0=>$0.charAt(1).toUpperCase());}// ../../node_modules/bail/index.js
|
|
1006
|
+
function bail(error){if(error)throw error;}// ../../node_modules/unified/lib/index.js
|
|
1007
|
+
var import_is_buffer2=__toESM(require_is_buffer(),1),import_extend=__toESM(require_extend(),1);// ../../node_modules/unified/node_modules/is-plain-obj/index.js
|
|
1008
|
+
function isPlainObject(value){if(typeof value!="object"||value===null)return!1;let prototype=Object.getPrototypeOf(value);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in value)&&!(Symbol.iterator in value);}// ../../node_modules/trough/index.js
|
|
1009
|
+
function trough(){let fns=[],pipeline={run,use};return pipeline;function run(...values){let middlewareIndex=-1,callback=values.pop();if(typeof callback!="function")throw new TypeError("Expected function as last argument, not "+callback);next(null,...values);function next(error,...output){let fn=fns[++middlewareIndex],index2=-1;if(error){callback(error);return;}for(;++index2<values.length;)(output[index2]===null||output[index2]===void 0)&&(output[index2]=values[index2]);values=output,fn?wrap(fn,next)(...output):callback(null,...output);}}function use(middelware){if(typeof middelware!="function")throw new TypeError("Expected `middelware` to be a function, not "+middelware);return fns.push(middelware),pipeline;}}function wrap(middleware,callback){let called;return wrapped;function wrapped(...parameters){let fnExpectsCallback=middleware.length>parameters.length,result;fnExpectsCallback&¶meters.push(done);try{result=middleware.apply(this,parameters);}catch(error){let exception=/** @type {Error} */error;if(fnExpectsCallback&&called)throw exception;return done(exception);}fnExpectsCallback||(result instanceof Promise?result.then(then,done):result instanceof Error?done(result):then(result));}function done(error,...output){called||(called=!0,callback(error,...output));}function then(value){done(null,value);}}// ../../node_modules/vfile/lib/index.js
|
|
1010
|
+
var import_is_buffer=__toESM(require_is_buffer2(),1);// ../../node_modules/unist-util-stringify-position/lib/index.js
|
|
1011
|
+
function stringifyPosition(value){return!value||typeof value!="object"?"":"position"in value||"type"in value?position2(value.position):"start"in value||"end"in value?position2(value):"line"in value||"column"in value?point2(value):"";}function point2(point3){return index(point3&&point3.line)+":"+index(point3&&point3.column);}function position2(pos){return point2(pos&&pos.start)+"-"+point2(pos&&pos.end);}function index(value){return value&&typeof value=="number"?value:1;}// ../../node_modules/vfile-message/lib/index.js
|
|
1012
|
+
var VFileMessage=class extends Error{/**
|
|
1013
|
+
* Create a message for `reason` at `place` from `origin`.
|
|
1014
|
+
*
|
|
1015
|
+
* When an error is passed in as `reason`, the `stack` is copied.
|
|
1016
|
+
*
|
|
1017
|
+
* @param {string | Error | VFileMessage} reason
|
|
1018
|
+
* Reason for message, uses the stack and message of the error if given.
|
|
1019
|
+
*
|
|
1020
|
+
* > 👉 **Note**: you should use markdown.
|
|
1021
|
+
* @param {Node | NodeLike | Position | Point | null | undefined} [place]
|
|
1022
|
+
* Place in file where the message occurred.
|
|
1023
|
+
* @param {string | null | undefined} [origin]
|
|
1024
|
+
* Place in code where the message originates (example:
|
|
1025
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
1026
|
+
* @returns
|
|
1027
|
+
* Instance of `VFileMessage`.
|
|
1028
|
+
*/ // To do: next major: expose `undefined` everywhere instead of `null`.
|
|
1029
|
+
constructor(reason,place,origin){let parts=[null,null],position3={// @ts-expect-error: we always follows the structure of `position`.
|
|
1030
|
+
start:{line:null,column:null},// @ts-expect-error: "
|
|
1031
|
+
end:{line:null,column:null}};if(super(),typeof place=="string"&&(origin=place,place=void 0),typeof origin=="string"){let index2=origin.indexOf(":");index2===-1?parts[1]=origin:(parts[0]=origin.slice(0,index2),parts[1]=origin.slice(index2+1));}place&&("type"in place||"position"in place?place.position&&(position3=place.position):"start"in place||"end"in place?position3=place:("line"in place||"column"in place)&&(position3.start=place)),this.name=stringifyPosition(place)||"1:1",this.message=typeof reason=="object"?reason.message:reason,this.stack="",typeof reason=="object"&&reason.stack&&(this.stack=reason.stack),this.reason=this.message,this.fatal,this.line=position3.start.line,this.column=position3.start.column,this.position=position3,this.source=parts[0],this.ruleId=parts[1],this.file,this.actual,this.expected,this.url,this.note;}};VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.fatal=null;VFileMessage.prototype.column=null;VFileMessage.prototype.line=null;VFileMessage.prototype.source=null;VFileMessage.prototype.ruleId=null;VFileMessage.prototype.position=null;// ../../node_modules/vfile/lib/minpath.js
|
|
1032
|
+
import{default as default2}from"path";// ../../node_modules/vfile/lib/minproc.js
|
|
1033
|
+
import{default as default3}from"process";// ../../node_modules/vfile/lib/minurl.js
|
|
1034
|
+
import{fileURLToPath}from"url";// ../../node_modules/vfile/lib/minurl.shared.js
|
|
1035
|
+
function isUrl(fileUrlOrPath){return fileUrlOrPath!==null&&typeof fileUrlOrPath=="object"&&// @ts-expect-error: indexable.
|
|
1036
|
+
fileUrlOrPath.href&&// @ts-expect-error: indexable.
|
|
1037
|
+
fileUrlOrPath.origin;}// ../../node_modules/vfile/lib/index.js
|
|
1038
|
+
var order=["history","path","basename","stem","extname","dirname"],VFile=class{/**
|
|
1039
|
+
* Create a new virtual file.
|
|
1040
|
+
*
|
|
1041
|
+
* `options` is treated as:
|
|
1042
|
+
*
|
|
1043
|
+
* * `string` or `Buffer` — `{value: options}`
|
|
1044
|
+
* * `URL` — `{path: options}`
|
|
1045
|
+
* * `VFile` — shallow copies its data over to the new file
|
|
1046
|
+
* * `object` — all fields are shallow copied over to the new file
|
|
1047
|
+
*
|
|
1048
|
+
* Path related fields are set in the following order (least specific to
|
|
1049
|
+
* most specific): `history`, `path`, `basename`, `stem`, `extname`,
|
|
1050
|
+
* `dirname`.
|
|
1051
|
+
*
|
|
1052
|
+
* You cannot set `dirname` or `extname` without setting either `history`,
|
|
1053
|
+
* `path`, `basename`, or `stem` too.
|
|
1054
|
+
*
|
|
1055
|
+
* @param {Compatible | null | undefined} [value]
|
|
1056
|
+
* File value.
|
|
1057
|
+
* @returns
|
|
1058
|
+
* New instance.
|
|
1059
|
+
*/constructor(value){let options;value?typeof value=="string"||buffer(value)?options={value}:isUrl(value)?options={path:value}:options=value:options={},this.data={},this.messages=[],this.history=[],this.cwd=default3.cwd(),this.value,this.stored,this.result,this.map;let index2=-1;for(;++index2<order.length;){let prop2=order[index2];prop2 in options&&options[prop2]!==void 0&&options[prop2]!==null&&(this[prop2]=prop2==="history"?[...options[prop2]]:options[prop2]);}let prop;for(prop in options)order.includes(prop)||(this[prop]=options[prop]);}/**
|
|
1060
|
+
* Get the full path (example: `'~/index.min.js'`).
|
|
1061
|
+
*
|
|
1062
|
+
* @returns {string}
|
|
1063
|
+
*/get path(){return this.history[this.history.length-1];}/**
|
|
1064
|
+
* Set the full path (example: `'~/index.min.js'`).
|
|
1065
|
+
*
|
|
1066
|
+
* Cannot be nullified.
|
|
1067
|
+
* You can set a file URL (a `URL` object with a `file:` protocol) which will
|
|
1068
|
+
* be turned into a path with `url.fileURLToPath`.
|
|
1069
|
+
*
|
|
1070
|
+
* @param {string | URL} path
|
|
1071
|
+
*/set path(path){isUrl(path)&&(path=fileURLToPath(path)),assertNonEmpty(path,"path"),this.path!==path&&this.history.push(path);}/**
|
|
1072
|
+
* Get the parent path (example: `'~'`).
|
|
1073
|
+
*/get dirname(){return typeof this.path=="string"?default2.dirname(this.path):void 0;}/**
|
|
1074
|
+
* Set the parent path (example: `'~'`).
|
|
1075
|
+
*
|
|
1076
|
+
* Cannot be set if there’s no `path` yet.
|
|
1077
|
+
*/set dirname(dirname){assertPath(this.basename,"dirname"),this.path=default2.join(dirname||"",this.basename);}/**
|
|
1078
|
+
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
1079
|
+
*/get basename(){return typeof this.path=="string"?default2.basename(this.path):void 0;}/**
|
|
1080
|
+
* Set basename (including extname) (`'index.min.js'`).
|
|
1081
|
+
*
|
|
1082
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
1083
|
+
* on windows).
|
|
1084
|
+
* Cannot be nullified (use `file.path = file.dirname` instead).
|
|
1085
|
+
*/set basename(basename){assertNonEmpty(basename,"basename"),assertPart(basename,"basename"),this.path=default2.join(this.dirname||"",basename);}/**
|
|
1086
|
+
* Get the extname (including dot) (example: `'.js'`).
|
|
1087
|
+
*/get extname(){return typeof this.path=="string"?default2.extname(this.path):void 0;}/**
|
|
1088
|
+
* Set the extname (including dot) (example: `'.js'`).
|
|
1089
|
+
*
|
|
1090
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
1091
|
+
* on windows).
|
|
1092
|
+
* Cannot be set if there’s no `path` yet.
|
|
1093
|
+
*/set extname(extname){if(assertPart(extname,"extname"),assertPath(this.dirname,"extname"),extname){if(extname.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(extname.includes(".",1))throw new Error("`extname` cannot contain multiple dots");}this.path=default2.join(this.dirname,this.stem+(extname||""));}/**
|
|
1094
|
+
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
1095
|
+
*/get stem(){return typeof this.path=="string"?default2.basename(this.path,this.extname):void 0;}/**
|
|
1096
|
+
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
1097
|
+
*
|
|
1098
|
+
* Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
|
|
1099
|
+
* on windows).
|
|
1100
|
+
* Cannot be nullified (use `file.path = file.dirname` instead).
|
|
1101
|
+
*/set stem(stem){assertNonEmpty(stem,"stem"),assertPart(stem,"stem"),this.path=default2.join(this.dirname||"",stem+(this.extname||""));}/**
|
|
1102
|
+
* Serialize the file.
|
|
1103
|
+
*
|
|
1104
|
+
* @param {BufferEncoding | null | undefined} [encoding='utf8']
|
|
1105
|
+
* Character encoding to understand `value` as when it’s a `Buffer`
|
|
1106
|
+
* (default: `'utf8'`).
|
|
1107
|
+
* @returns {string}
|
|
1108
|
+
* Serialized file.
|
|
1109
|
+
*/toString(encoding){return(this.value||"").toString(encoding||void 0);}/**
|
|
1110
|
+
* Create a warning message associated with the file.
|
|
1111
|
+
*
|
|
1112
|
+
* Its `fatal` is set to `false` and `file` is set to the current file path.
|
|
1113
|
+
* Its added to `file.messages`.
|
|
1114
|
+
*
|
|
1115
|
+
* @param {string | Error | VFileMessage} reason
|
|
1116
|
+
* Reason for message, uses the stack and message of the error if given.
|
|
1117
|
+
* @param {Node | NodeLike | Position | Point | null | undefined} [place]
|
|
1118
|
+
* Place in file where the message occurred.
|
|
1119
|
+
* @param {string | null | undefined} [origin]
|
|
1120
|
+
* Place in code where the message originates (example:
|
|
1121
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
1122
|
+
* @returns {VFileMessage}
|
|
1123
|
+
* Message.
|
|
1124
|
+
*/message(reason,place,origin){let message=new VFileMessage(reason,place,origin);return this.path&&(message.name=this.path+":"+message.name,message.file=this.path),message.fatal=!1,this.messages.push(message),message;}/**
|
|
1125
|
+
* Create an info message associated with the file.
|
|
1126
|
+
*
|
|
1127
|
+
* Its `fatal` is set to `null` and `file` is set to the current file path.
|
|
1128
|
+
* Its added to `file.messages`.
|
|
1129
|
+
*
|
|
1130
|
+
* @param {string | Error | VFileMessage} reason
|
|
1131
|
+
* Reason for message, uses the stack and message of the error if given.
|
|
1132
|
+
* @param {Node | NodeLike | Position | Point | null | undefined} [place]
|
|
1133
|
+
* Place in file where the message occurred.
|
|
1134
|
+
* @param {string | null | undefined} [origin]
|
|
1135
|
+
* Place in code where the message originates (example:
|
|
1136
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
1137
|
+
* @returns {VFileMessage}
|
|
1138
|
+
* Message.
|
|
1139
|
+
*/info(reason,place,origin){let message=this.message(reason,place,origin);return message.fatal=null,message;}/**
|
|
1140
|
+
* Create a fatal error associated with the file.
|
|
1141
|
+
*
|
|
1142
|
+
* Its `fatal` is set to `true` and `file` is set to the current file path.
|
|
1143
|
+
* Its added to `file.messages`.
|
|
1144
|
+
*
|
|
1145
|
+
* > 👉 **Note**: a fatal error means that a file is no longer processable.
|
|
1146
|
+
*
|
|
1147
|
+
* @param {string | Error | VFileMessage} reason
|
|
1148
|
+
* Reason for message, uses the stack and message of the error if given.
|
|
1149
|
+
* @param {Node | NodeLike | Position | Point | null | undefined} [place]
|
|
1150
|
+
* Place in file where the message occurred.
|
|
1151
|
+
* @param {string | null | undefined} [origin]
|
|
1152
|
+
* Place in code where the message originates (example:
|
|
1153
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
1154
|
+
* @returns {never}
|
|
1155
|
+
* Message.
|
|
1156
|
+
* @throws {VFileMessage}
|
|
1157
|
+
* Message.
|
|
1158
|
+
*/fail(reason,place,origin){let message=this.message(reason,place,origin);throw message.fatal=!0,message;}};function assertPart(part,name){if(part&&part.includes(default2.sep))throw new Error("`"+name+"` cannot be a path: did not expect `"+default2.sep+"`");}function assertNonEmpty(part,name){if(!part)throw new Error("`"+name+"` cannot be empty");}function assertPath(path,name){if(!path)throw new Error("Setting `"+name+"` requires `path` to be set too");}function buffer(value){return(0,import_is_buffer.default)(value);}// ../../node_modules/unified/lib/index.js
|
|
1159
|
+
var unified=base2().freeze(),own9={}.hasOwnProperty;function base2(){let transformers=trough(),attachers=[],namespace={},frozen,freezeIndex=-1;return processor.data=data,processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=freeze,processor.attachers=attachers,processor.use=use,processor.parse=parse3,processor.stringify=stringify4,processor.run=run,processor.runSync=runSync,processor.process=process,processor.processSync=processSync,processor;function processor(){let destination=base2(),index2=-1;for(;++index2<attachers.length;)destination.use(...attachers[index2]);return destination.data((0,import_extend.default)(!0,{},namespace)),destination;}function data(key2,value){return typeof key2=="string"?arguments.length===2?(assertUnfrozen("data",frozen),namespace[key2]=value,processor):own9.call(namespace,key2)&&namespace[key2]||null:key2?(assertUnfrozen("data",frozen),namespace=key2,processor):namespace;}function freeze(){if(frozen)return processor;for(;++freezeIndex<attachers.length;){let[attacher,...options]=attachers[freezeIndex];if(options[0]===!1)continue;options[0]===!0&&(options[0]=void 0);let transformer=attacher.call(processor,...options);typeof transformer=="function"&&transformers.use(transformer);}return frozen=!0,freezeIndex=Number.POSITIVE_INFINITY,processor;}function use(value,...options){let settings;if(assertUnfrozen("use",frozen),value!=null)if(typeof value=="function")addPlugin(value,...options);else if(typeof value=="object")Array.isArray(value)?addList(value):addPreset(value);else throw new TypeError("Expected usable value, not `"+value+"`");return settings&&(namespace.settings=Object.assign(namespace.settings||{},settings)),processor;function add(value2){if(typeof value2=="function")addPlugin(value2);else if(typeof value2=="object"){if(Array.isArray(value2)){let[plugin,...options2]=value2;addPlugin(plugin,...options2);}else addPreset(value2);}else throw new TypeError("Expected usable value, not `"+value2+"`");}function addPreset(result){addList(result.plugins),result.settings&&(settings=Object.assign(settings||{},result.settings));}function addList(plugins){let index2=-1;if(plugins!=null)if(Array.isArray(plugins))for(;++index2<plugins.length;){let thing=plugins[index2];add(thing);}else throw new TypeError("Expected a list of plugins, not `"+plugins+"`");}function addPlugin(plugin,value2){let index2=-1,entry;for(;++index2<attachers.length;)if(attachers[index2][0]===plugin){entry=attachers[index2];break;}entry?(isPlainObject(entry[1])&&isPlainObject(value2)&&(value2=(0,import_extend.default)(!0,entry[1],value2)),entry[1]=value2):attachers.push([...arguments]);}}function parse3(doc){processor.freeze();let file=vfile(doc),Parser=processor.Parser;return assertParser("parse",Parser),newable(Parser,"parse")?new Parser(String(file),file).parse():Parser(String(file),file);}function stringify4(node,doc){processor.freeze();let file=vfile(doc),Compiler=processor.Compiler;return assertCompiler("stringify",Compiler),assertNode(node),newable(Compiler,"compile")?new Compiler(node,file).compile():Compiler(node,file);}function run(node,doc,callback){if(assertNode(node),processor.freeze(),!callback&&typeof doc=="function"&&(callback=doc,doc=void 0),!callback)return new Promise(executor);executor(null,callback);function executor(resolve,reject){transformers.run(node,vfile(doc),done);function done(error,tree,file){tree=tree||node,error?reject(error):resolve?resolve(tree):callback(null,tree,file);}}}function runSync(node,file){let result,complete;return processor.run(node,file,done),assertDone("runSync","run",complete),result;function done(error,tree){bail(error),result=tree,complete=!0;}}function process(doc,callback){if(processor.freeze(),assertParser("process",processor.Parser),assertCompiler("process",processor.Compiler),!callback)return new Promise(executor);executor(null,callback);function executor(resolve,reject){let file=vfile(doc);processor.run(processor.parse(file),file,(error,tree,file2)=>{if(error||!tree||!file2)done(error);else{let result=processor.stringify(tree,file2);result==null||(looksLikeAVFileValue(result)?file2.value=result:file2.result=result),done(error,file2);}});function done(error,file2){error||!file2?reject(error):resolve?resolve(file2):callback(null,file2);}}}function processSync(doc){let complete;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);let file=vfile(doc);return processor.process(file,done),assertDone("processSync","process",complete),file;function done(error){complete=!0,bail(error);}}}function newable(value,name){return typeof value=="function"&&// Prototypes do exist.
|
|
1160
|
+
// type-coverage:ignore-next-line
|
|
1161
|
+
value.prototype&&(// A function with keys in its prototype is probably a constructor.
|
|
1162
|
+
// Classes’ prototype methods are not enumerable, so we check if some value
|
|
1163
|
+
// exists in the prototype.
|
|
1164
|
+
// type-coverage:ignore-next-line
|
|
1165
|
+
keys(value.prototype)||name in value.prototype);}function keys(value){let key2;for(key2 in value)if(own9.call(value,key2))return!0;return!1;}function assertParser(name,value){if(typeof value!="function")throw new TypeError("Cannot `"+name+"` without `Parser`");}function assertCompiler(name,value){if(typeof value!="function")throw new TypeError("Cannot `"+name+"` without `Compiler`");}function assertUnfrozen(name,frozen){if(frozen)throw new Error("Cannot call `"+name+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");}function assertNode(node){if(!isPlainObject(node)||typeof node.type!="string")throw new TypeError("Expected node, got `"+node+"`");}function assertDone(name,asyncName,complete){if(!complete)throw new Error("`"+name+"` finished async. Use `"+asyncName+"` instead");}function vfile(value){return looksLikeAVFile(value)?value:new VFile(value);}function looksLikeAVFile(value){return!!(value&&typeof value=="object"&&"message"in value&&"messages"in value);}function looksLikeAVFileValue(value){return typeof value=="string"||(0,import_is_buffer2.default)(value);}// src/highlightLine.ts
|
|
1166
|
+
var lineNumberify=function lineNumberify2(ast,lineNum=1){let lineNumber=lineNum;return ast.reduce((result,node)=>{if(node.type==="text"){if(node.value.indexOf(`
|
|
1167
|
+
`)===-1)return node.lineNumber=lineNumber,result.nodes.push(node),result;let lines=node.value.split(`
|
|
1168
|
+
`);for(let i=0;i<lines.length;i++)i!==0&&++lineNumber,!(i===lines.length-1&&lines[i].length===0)&&result.nodes.push({type:"text",value:i===lines.length-1?lines[i]:`${lines[i]}
|
|
1169
|
+
`,lineNumber});return result.lineNumber=lineNumber,result;}if(node.children){node.lineNumber=lineNumber;let processed=lineNumberify2(node.children,lineNumber);return node.children=processed.nodes,result.lineNumber=processed.lineNumber,result.nodes.push(node),result;}return result.nodes.push(node),result;},{nodes:[],lineNumber});},wrapLines=function(ast,linesToHighlight){let highlightAll=linesToHighlight.length===1&&linesToHighlight[0]===0,allLines=Array.from(new Set(ast.map(x=>x.lineNumber))),i=0;return allLines.reduce((nodes,marker)=>{let line=marker,children=[];for(;i<ast.length;i++){if(ast[i].lineNumber<line){nodes.push(ast[i]);continue;}if(ast[i].lineNumber===line){children.push(ast[i]);continue;}if(ast[i].lineNumber>line)break;}return nodes.push({type:"element",tagName:"div",properties:{dataLine:line,className:"highlight-line",dataHighlighted:linesToHighlight.includes(line)||highlightAll?"true":"false"},children,lineNumber:line}),nodes;},[]);},MULTILINE_TOKEN_SPAN=/<span class="token ([^"]+)">[^<]*\n[^<]*<\/span>/g,applyMultilineFix=ast=>{let html5=toHtml(ast);return html5=html5.replace(MULTILINE_TOKEN_SPAN,(match,token)=>match.replace(/\n/g,`</span>
|
|
1170
|
+
<span class="token ${token}">`)),unified().use(rehypeParse,{emitParseErrors:!0,fragment:!0}).parse(html5).children;};function highlightLine(ast,lines){let formattedAst=applyMultilineFix(ast),numbered=lineNumberify(formattedAst).nodes;return wrapLines(numbered,lines);}// src/highlightWord.ts
|
|
1171
|
+
var CALLOUT=/__(.*?)__/g;function highlightWord(code){let result=toHtml(code).replace(CALLOUT,(_2,text2)=>`<span class="highlight-word">${text2}</span>`);return unified().use(rehypeParse,{emitParseErrors:!0,fragment:!0}).parse(result).children;}// src/index.ts
|
|
1172
|
+
refractor.register(tsx);refractor.register(css);function codeToHTML(source,language,line="0"){let result=refractor.highlight(source,language);return result=highlightLine(result,(0,import_parse_numeric_range.default)(line)),result=highlightWord(result),result=toHtml(result),result;}export{codeToHTML};/*! Bundled license information:
|
|
1173
|
+
|
|
1174
|
+
is-buffer/index.js:
|
|
1175
|
+
(*!
|
|
1176
|
+
* Determine if an object is a Buffer
|
|
1177
|
+
*
|
|
1178
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1179
|
+
* @license MIT
|
|
1180
|
+
*)
|
|
1181
|
+
|
|
1182
|
+
is-buffer/index.js:
|
|
1183
|
+
(*!
|
|
1184
|
+
* Determine if an object is a Buffer
|
|
1185
|
+
*
|
|
1186
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1187
|
+
* @license MIT
|
|
1188
|
+
*)
|
|
1189
|
+
*/
|