highlight.min.js 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295
  1. /*! Highlight.js v11.5.1 (git: b8f233c8e2) (c) 2006-2022 Ivan Sagalaev and other contributors License: BSD-3-Clause */ var hljs =
  2. (function () {
  3. 'use strict';
  4. var e = { exports: {} };
  5. function t(e) {
  6. return (
  7. e instanceof Map
  8. ? (e.clear =
  9. e.delete =
  10. e.set =
  11. () => {
  12. throw Error('map is read-only');
  13. })
  14. : e instanceof Set &&
  15. (e.add =
  16. e.clear =
  17. e.delete =
  18. () => {
  19. throw Error('set is read-only');
  20. }),
  21. Object.freeze(e),
  22. Object.getOwnPropertyNames(e).forEach((n) => {
  23. var i = e[n];
  24. 'object' != typeof i || Object.isFrozen(i) || t(i);
  25. }),
  26. e
  27. );
  28. }
  29. (e.exports = t), (e.exports.default = t);
  30. var n = e.exports;
  31. class i {
  32. constructor(e) {
  33. void 0 === e.data && (e.data = {}), (this.data = e.data), (this.isMatchIgnored = !1);
  34. }
  35. ignoreMatch() {
  36. this.isMatchIgnored = !0;
  37. }
  38. }
  39. function r(e) {
  40. return e.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;');
  41. }
  42. function s(e, ...t) {
  43. const n = Object.create(null);
  44. for (const t in e) n[t] = e[t];
  45. return (
  46. t.forEach((e) => {
  47. for (const t in e) n[t] = e[t];
  48. }),
  49. n
  50. );
  51. }
  52. const o = (e) => !!e.kind;
  53. class a {
  54. constructor(e, t) {
  55. (this.buffer = ''), (this.classPrefix = t.classPrefix), e.walk(this);
  56. }
  57. addText(e) {
  58. this.buffer += r(e);
  59. }
  60. openNode(e) {
  61. if (!o(e)) return;
  62. let t = e.kind;
  63. (t = e.sublanguage
  64. ? 'language-' + t
  65. : ((e, { prefix: t }) => {
  66. if (e.includes('.')) {
  67. const n = e.split('.');
  68. return [`${t}${n.shift()}`, ...n.map((e, t) => `${e}${'_'.repeat(t + 1)}`)].join(' ');
  69. }
  70. return `${t}${e}`;
  71. })(t, { prefix: this.classPrefix })),
  72. this.span(t);
  73. }
  74. closeNode(e) {
  75. o(e) && (this.buffer += '</span>');
  76. }
  77. value() {
  78. return this.buffer;
  79. }
  80. span(e) {
  81. this.buffer += `<span class="${e}">`;
  82. }
  83. }
  84. class c {
  85. constructor() {
  86. (this.rootNode = { children: [] }), (this.stack = [this.rootNode]);
  87. }
  88. get top() {
  89. return this.stack[this.stack.length - 1];
  90. }
  91. get root() {
  92. return this.rootNode;
  93. }
  94. add(e) {
  95. this.top.children.push(e);
  96. }
  97. openNode(e) {
  98. const t = { kind: e, children: [] };
  99. this.add(t), this.stack.push(t);
  100. }
  101. closeNode() {
  102. if (this.stack.length > 1) return this.stack.pop();
  103. }
  104. closeAllNodes() {
  105. for (; this.closeNode(); );
  106. }
  107. toJSON() {
  108. return JSON.stringify(this.rootNode, null, 4);
  109. }
  110. walk(e) {
  111. return this.constructor._walk(e, this.rootNode);
  112. }
  113. static _walk(e, t) {
  114. return (
  115. 'string' == typeof t ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((t) => this._walk(e, t)), e.closeNode(t)),
  116. e
  117. );
  118. }
  119. static _collapse(e) {
  120. 'string' != typeof e &&
  121. e.children &&
  122. (e.children.every((e) => 'string' == typeof e)
  123. ? (e.children = [e.children.join('')])
  124. : e.children.forEach((e) => {
  125. c._collapse(e);
  126. }));
  127. }
  128. }
  129. class l extends c {
  130. constructor(e) {
  131. super(), (this.options = e);
  132. }
  133. addKeyword(e, t) {
  134. '' !== e && (this.openNode(t), this.addText(e), this.closeNode());
  135. }
  136. addText(e) {
  137. '' !== e && this.add(e);
  138. }
  139. addSublanguage(e, t) {
  140. const n = e.root;
  141. (n.kind = t), (n.sublanguage = !0), this.add(n);
  142. }
  143. toHTML() {
  144. return new a(this, this.options).value();
  145. }
  146. finalize() {
  147. return !0;
  148. }
  149. }
  150. function g(e) {
  151. return e ? ('string' == typeof e ? e : e.source) : null;
  152. }
  153. function d(e) {
  154. return f('(?=', e, ')');
  155. }
  156. function u(e) {
  157. return f('(?:', e, ')*');
  158. }
  159. function h(e) {
  160. return f('(?:', e, ')?');
  161. }
  162. function f(...e) {
  163. return e.map((e) => g(e)).join('');
  164. }
  165. function p(...e) {
  166. const t = ((e) => {
  167. const t = e[e.length - 1];
  168. return 'object' == typeof t && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
  169. })(e);
  170. return '(' + (t.capture ? '' : '?:') + e.map((e) => g(e)).join('|') + ')';
  171. }
  172. function b(e) {
  173. return RegExp(e.toString() + '|').exec('').length - 1;
  174. }
  175. const m = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
  176. function E(e, { joinWith: t }) {
  177. let n = 0;
  178. return e
  179. .map((e) => {
  180. n += 1;
  181. const t = n;
  182. let i = g(e),
  183. r = '';
  184. for (; i.length > 0; ) {
  185. const e = m.exec(i);
  186. if (!e) {
  187. r += i;
  188. break;
  189. }
  190. (r += i.substring(0, e.index)),
  191. (i = i.substring(e.index + e[0].length)),
  192. '\\' === e[0][0] && e[1] ? (r += '\\' + (Number(e[1]) + t)) : ((r += e[0]), '(' === e[0] && n++);
  193. }
  194. return r;
  195. })
  196. .map((e) => `(${e})`)
  197. .join(t);
  198. }
  199. const x = '[a-zA-Z]\\w*',
  200. w = '[a-zA-Z_]\\w*',
  201. y = '\\b\\d+(\\.\\d+)?',
  202. _ = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
  203. k = '\\b(0b[01]+)',
  204. v = { begin: '\\\\[\\s\\S]', relevance: 0 },
  205. O = { scope: 'string', begin: "'", end: "'", illegal: '\\n', contains: [v] },
  206. N = { scope: 'string', begin: '"', end: '"', illegal: '\\n', contains: [v] },
  207. M = (e, t, n = {}) => {
  208. const i = s({ scope: 'comment', begin: e, end: t, contains: [] }, n);
  209. i.contains.push({
  210. scope: 'doctag',
  211. begin: '[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)',
  212. end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
  213. excludeBegin: !0,
  214. relevance: 0
  215. });
  216. const r = p(
  217. 'I',
  218. 'a',
  219. 'is',
  220. 'so',
  221. 'us',
  222. 'to',
  223. 'at',
  224. 'if',
  225. 'in',
  226. 'it',
  227. 'on',
  228. /[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
  229. /[A-Za-z]+[-][a-z]+/,
  230. /[A-Za-z][a-z]{2,}/
  231. );
  232. return i.contains.push({ begin: f(/[ ]+/, '(', r, /[.]?[:]?([.][ ]|[ ])/, '){3}') }), i;
  233. },
  234. S = M('//', '$'),
  235. R = M('/\\*', '\\*/'),
  236. j = M('#', '$');
  237. var A = Object.freeze({
  238. __proto__: null,
  239. MATCH_NOTHING_RE: /\b\B/,
  240. IDENT_RE: x,
  241. UNDERSCORE_IDENT_RE: w,
  242. NUMBER_RE: y,
  243. C_NUMBER_RE: _,
  244. BINARY_NUMBER_RE: k,
  245. RE_STARTERS_RE:
  246. '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
  247. SHEBANG: (e = {}) => {
  248. const t = /^#![ ]*\//;
  249. return (
  250. e.binary && (e.begin = f(t, /.*\b/, e.binary, /\b.*/)),
  251. s(
  252. {
  253. scope: 'meta',
  254. begin: t,
  255. end: /$/,
  256. relevance: 0,
  257. 'on:begin': (e, t) => {
  258. 0 !== e.index && t.ignoreMatch();
  259. }
  260. },
  261. e
  262. )
  263. );
  264. },
  265. BACKSLASH_ESCAPE: v,
  266. APOS_STRING_MODE: O,
  267. QUOTE_STRING_MODE: N,
  268. PHRASAL_WORDS_MODE: {
  269. begin:
  270. /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
  271. },
  272. COMMENT: M,
  273. C_LINE_COMMENT_MODE: S,
  274. C_BLOCK_COMMENT_MODE: R,
  275. HASH_COMMENT_MODE: j,
  276. NUMBER_MODE: { scope: 'number', begin: y, relevance: 0 },
  277. C_NUMBER_MODE: { scope: 'number', begin: _, relevance: 0 },
  278. BINARY_NUMBER_MODE: { scope: 'number', begin: k, relevance: 0 },
  279. REGEXP_MODE: {
  280. begin: /(?=\/[^/\n]*\/)/,
  281. contains: [
  282. {
  283. scope: 'regexp',
  284. begin: /\//,
  285. end: /\/[gimuy]*/,
  286. illegal: /\n/,
  287. contains: [v, { begin: /\[/, end: /\]/, relevance: 0, contains: [v] }]
  288. }
  289. ]
  290. },
  291. TITLE_MODE: { scope: 'title', begin: x, relevance: 0 },
  292. UNDERSCORE_TITLE_MODE: { scope: 'title', begin: w, relevance: 0 },
  293. METHOD_GUARD: { begin: '\\.\\s*[a-zA-Z_]\\w*', relevance: 0 },
  294. END_SAME_AS_BEGIN: (e) =>
  295. Object.assign(e, {
  296. 'on:begin': (e, t) => {
  297. t.data._beginMatch = e[1];
  298. },
  299. 'on:end': (e, t) => {
  300. t.data._beginMatch !== e[1] && t.ignoreMatch();
  301. }
  302. })
  303. });
  304. function I(e, t) {
  305. '.' === e.input[e.index - 1] && t.ignoreMatch();
  306. }
  307. function T(e, t) {
  308. void 0 !== e.className && ((e.scope = e.className), delete e.className);
  309. }
  310. function L(e, t) {
  311. t &&
  312. e.beginKeywords &&
  313. ((e.begin = '\\b(' + e.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'),
  314. (e.__beforeBegin = I),
  315. (e.keywords = e.keywords || e.beginKeywords),
  316. delete e.beginKeywords,
  317. void 0 === e.relevance && (e.relevance = 0));
  318. }
  319. function B(e, t) {
  320. Array.isArray(e.illegal) && (e.illegal = p(...e.illegal));
  321. }
  322. function D(e, t) {
  323. if (e.match) {
  324. if (e.begin || e.end) throw Error('begin & end are not supported with match');
  325. (e.begin = e.match), delete e.match;
  326. }
  327. }
  328. function H(e, t) {
  329. void 0 === e.relevance && (e.relevance = 1);
  330. }
  331. const P = (e, t) => {
  332. if (!e.beforeMatch) return;
  333. if (e.starts) throw Error('beforeMatch cannot be used with starts');
  334. const n = Object.assign({}, e);
  335. Object.keys(e).forEach((t) => {
  336. delete e[t];
  337. }),
  338. (e.keywords = n.keywords),
  339. (e.begin = f(n.beforeMatch, d(n.begin))),
  340. (e.starts = { relevance: 0, contains: [Object.assign(n, { endsParent: !0 })] }),
  341. (e.relevance = 0),
  342. delete n.beforeMatch;
  343. },
  344. C = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then', 'parent', 'list', 'value'];
  345. function $(e, t, n = 'keyword') {
  346. const i = Object.create(null);
  347. return (
  348. 'string' == typeof e
  349. ? r(n, e.split(' '))
  350. : Array.isArray(e)
  351. ? r(n, e)
  352. : Object.keys(e).forEach((n) => {
  353. Object.assign(i, $(e[n], t, n));
  354. }),
  355. i
  356. );
  357. function r(e, n) {
  358. t && (n = n.map((e) => e.toLowerCase())),
  359. n.forEach((t) => {
  360. const n = t.split('|');
  361. i[n[0]] = [e, U(n[0], n[1])];
  362. });
  363. }
  364. }
  365. function U(e, t) {
  366. return t ? Number(t) : ((e) => C.includes(e.toLowerCase()))(e) ? 0 : 1;
  367. }
  368. const z = {},
  369. K = (e) => {
  370. console.error(e);
  371. },
  372. W = (e, ...t) => {
  373. console.log('WARN: ' + e, ...t);
  374. },
  375. X = (e, t) => {
  376. z[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), (z[`${e}/${t}`] = !0));
  377. },
  378. G = Error();
  379. function Z(e, t, { key: n }) {
  380. let i = 0;
  381. const r = e[n],
  382. s = {},
  383. o = {};
  384. for (let e = 1; e <= t.length; e++) (o[e + i] = r[e]), (s[e + i] = !0), (i += b(t[e - 1]));
  385. (e[n] = o), (e[n]._emit = s), (e[n]._multi = !0);
  386. }
  387. function F(e) {
  388. ((e) => {
  389. e.scope && 'object' == typeof e.scope && null !== e.scope && ((e.beginScope = e.scope), delete e.scope);
  390. })(e),
  391. 'string' == typeof e.beginScope && (e.beginScope = { _wrap: e.beginScope }),
  392. 'string' == typeof e.endScope && (e.endScope = { _wrap: e.endScope }),
  393. ((e) => {
  394. if (Array.isArray(e.begin)) {
  395. if (e.skip || e.excludeBegin || e.returnBegin)
  396. throw (K('skip, excludeBegin, returnBegin not compatible with beginScope: {}'), G);
  397. if ('object' != typeof e.beginScope || null === e.beginScope) throw (K('beginScope must be object'), G);
  398. Z(e, e.begin, { key: 'beginScope' }), (e.begin = E(e.begin, { joinWith: '' }));
  399. }
  400. })(e),
  401. ((e) => {
  402. if (Array.isArray(e.end)) {
  403. if (e.skip || e.excludeEnd || e.returnEnd) throw (K('skip, excludeEnd, returnEnd not compatible with endScope: {}'), G);
  404. if ('object' != typeof e.endScope || null === e.endScope) throw (K('endScope must be object'), G);
  405. Z(e, e.end, { key: 'endScope' }), (e.end = E(e.end, { joinWith: '' }));
  406. }
  407. })(e);
  408. }
  409. function V(e) {
  410. function t(t, n) {
  411. return RegExp(g(t), 'm' + (e.case_insensitive ? 'i' : '') + (e.unicodeRegex ? 'u' : '') + (n ? 'g' : ''));
  412. }
  413. class n {
  414. constructor() {
  415. (this.matchIndexes = {}), (this.regexes = []), (this.matchAt = 1), (this.position = 0);
  416. }
  417. addRule(e, t) {
  418. (t.position = this.position++), (this.matchIndexes[this.matchAt] = t), this.regexes.push([t, e]), (this.matchAt += b(e) + 1);
  419. }
  420. compile() {
  421. 0 === this.regexes.length && (this.exec = () => null);
  422. const e = this.regexes.map((e) => e[1]);
  423. (this.matcherRe = t(E(e, { joinWith: '|' }), !0)), (this.lastIndex = 0);
  424. }
  425. exec(e) {
  426. this.matcherRe.lastIndex = this.lastIndex;
  427. const t = this.matcherRe.exec(e);
  428. if (!t) return null;
  429. const n = t.findIndex((e, t) => t > 0 && void 0 !== e),
  430. i = this.matchIndexes[n];
  431. return t.splice(0, n), Object.assign(t, i);
  432. }
  433. }
  434. class i {
  435. constructor() {
  436. (this.rules = []), (this.multiRegexes = []), (this.count = 0), (this.lastIndex = 0), (this.regexIndex = 0);
  437. }
  438. getMatcher(e) {
  439. if (this.multiRegexes[e]) return this.multiRegexes[e];
  440. const t = new n();
  441. return this.rules.slice(e).forEach(([e, n]) => t.addRule(e, n)), t.compile(), (this.multiRegexes[e] = t), t;
  442. }
  443. resumingScanAtSamePosition() {
  444. return 0 !== this.regexIndex;
  445. }
  446. considerAll() {
  447. this.regexIndex = 0;
  448. }
  449. addRule(e, t) {
  450. this.rules.push([e, t]), 'begin' === t.type && this.count++;
  451. }
  452. exec(e) {
  453. const t = this.getMatcher(this.regexIndex);
  454. t.lastIndex = this.lastIndex;
  455. let n = t.exec(e);
  456. if (this.resumingScanAtSamePosition())
  457. if (n && n.index === this.lastIndex);
  458. else {
  459. const t = this.getMatcher(0);
  460. (t.lastIndex = this.lastIndex + 1), (n = t.exec(e));
  461. }
  462. return n && ((this.regexIndex += n.position + 1), this.regexIndex === this.count && this.considerAll()), n;
  463. }
  464. }
  465. if ((e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes('self')))
  466. throw Error('ERR: contains `self` is not supported at the top-level of a language. See documentation.');
  467. return (
  468. (e.classNameAliases = s(e.classNameAliases || {})),
  469. (function n(r, o) {
  470. const a = r;
  471. if (r.isCompiled) return a;
  472. [T, D, F, P].forEach((e) => e(r, o)),
  473. e.compilerExtensions.forEach((e) => e(r, o)),
  474. (r.__beforeBegin = null),
  475. [L, B, H].forEach((e) => e(r, o)),
  476. (r.isCompiled = !0);
  477. let c = null;
  478. return (
  479. 'object' == typeof r.keywords &&
  480. r.keywords.$pattern &&
  481. ((r.keywords = Object.assign({}, r.keywords)), (c = r.keywords.$pattern), delete r.keywords.$pattern),
  482. (c = c || /\w+/),
  483. r.keywords && (r.keywords = $(r.keywords, e.case_insensitive)),
  484. (a.keywordPatternRe = t(c, !0)),
  485. o &&
  486. (r.begin || (r.begin = /\B|\b/),
  487. (a.beginRe = t(a.begin)),
  488. r.end || r.endsWithParent || (r.end = /\B|\b/),
  489. r.end && (a.endRe = t(a.end)),
  490. (a.terminatorEnd = g(a.end) || ''),
  491. r.endsWithParent && o.terminatorEnd && (a.terminatorEnd += (r.end ? '|' : '') + o.terminatorEnd)),
  492. r.illegal && (a.illegalRe = t(r.illegal)),
  493. r.contains || (r.contains = []),
  494. (r.contains = [].concat(
  495. ...r.contains.map((e) =>
  496. ((e) => (
  497. e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map((t) => s(e, { variants: null }, t))),
  498. e.cachedVariants
  499. ? e.cachedVariants
  500. : q(e)
  501. ? s(e, { starts: e.starts ? s(e.starts) : null })
  502. : Object.isFrozen(e)
  503. ? s(e)
  504. : e
  505. ))('self' === e ? r : e)
  506. )
  507. )),
  508. r.contains.forEach((e) => {
  509. n(e, a);
  510. }),
  511. r.starts && n(r.starts, o),
  512. (a.matcher = ((e) => {
  513. const t = new i();
  514. return (
  515. e.contains.forEach((e) => t.addRule(e.begin, { rule: e, type: 'begin' })),
  516. e.terminatorEnd && t.addRule(e.terminatorEnd, { type: 'end' }),
  517. e.illegal && t.addRule(e.illegal, { type: 'illegal' }),
  518. t
  519. );
  520. })(a)),
  521. a
  522. );
  523. })(e)
  524. );
  525. }
  526. function q(e) {
  527. return !!e && (e.endsWithParent || q(e.starts));
  528. }
  529. class J extends Error {
  530. constructor(e, t) {
  531. super(e), (this.name = 'HTMLInjectionError'), (this.html = t);
  532. }
  533. }
  534. const Y = r,
  535. Q = s,
  536. ee = Symbol('nomatch');
  537. var te = ((e) => {
  538. const t = Object.create(null),
  539. r = Object.create(null),
  540. s = [];
  541. let o = !0;
  542. const a = "Could not find the language '{}', did you forget to load/include a language module?",
  543. c = { disableAutodetect: !0, name: 'Plain text', contains: [] };
  544. let g = {
  545. ignoreUnescapedHTML: !1,
  546. throwUnescapedHTML: !1,
  547. noHighlightRe: /^(no-?highlight)$/i,
  548. languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
  549. classPrefix: 'hljs-',
  550. cssSelector: 'pre code',
  551. languages: null,
  552. __emitter: l
  553. };
  554. function b(e) {
  555. return g.noHighlightRe.test(e);
  556. }
  557. function m(e, t, n) {
  558. let i = '',
  559. r = '';
  560. 'object' == typeof t
  561. ? ((i = e), (n = t.ignoreIllegals), (r = t.language))
  562. : (X('10.7.0', 'highlight(lang, code, ...args) has been deprecated.'),
  563. X('10.7.0', 'Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277'),
  564. (r = e),
  565. (i = t)),
  566. void 0 === n && (n = !0);
  567. const s = { code: i, language: r };
  568. N('before:highlight', s);
  569. const o = s.result ? s.result : E(s.language, s.code, n);
  570. return (o.code = s.code), N('after:highlight', o), o;
  571. }
  572. function E(e, n, r, s) {
  573. const c = Object.create(null);
  574. function l() {
  575. if (!O.keywords) return void M.addText(S);
  576. let e = 0;
  577. O.keywordPatternRe.lastIndex = 0;
  578. let t = O.keywordPatternRe.exec(S),
  579. n = '';
  580. for (; t; ) {
  581. n += S.substring(e, t.index);
  582. const r = y.case_insensitive ? t[0].toLowerCase() : t[0],
  583. s = ((i = r), O.keywords[i]);
  584. if (s) {
  585. const [e, i] = s;
  586. if ((M.addText(n), (n = ''), (c[r] = (c[r] || 0) + 1), c[r] <= 7 && (R += i), e.startsWith('_'))) n += t[0];
  587. else {
  588. const n = y.classNameAliases[e] || e;
  589. M.addKeyword(t[0], n);
  590. }
  591. } else n += t[0];
  592. (e = O.keywordPatternRe.lastIndex), (t = O.keywordPatternRe.exec(S));
  593. }
  594. var i;
  595. (n += S.substr(e)), M.addText(n);
  596. }
  597. function d() {
  598. null != O.subLanguage
  599. ? (() => {
  600. if ('' === S) return;
  601. let e = null;
  602. if ('string' == typeof O.subLanguage) {
  603. if (!t[O.subLanguage]) return void M.addText(S);
  604. (e = E(O.subLanguage, S, !0, N[O.subLanguage])), (N[O.subLanguage] = e._top);
  605. } else e = x(S, O.subLanguage.length ? O.subLanguage : null);
  606. O.relevance > 0 && (R += e.relevance), M.addSublanguage(e._emitter, e.language);
  607. })()
  608. : l(),
  609. (S = '');
  610. }
  611. function u(e, t) {
  612. let n = 1;
  613. const i = t.length - 1;
  614. for (; n <= i; ) {
  615. if (!e._emit[n]) {
  616. n++;
  617. continue;
  618. }
  619. const i = y.classNameAliases[e[n]] || e[n],
  620. r = t[n];
  621. i ? M.addKeyword(r, i) : ((S = r), l(), (S = '')), n++;
  622. }
  623. }
  624. function h(e, t) {
  625. return (
  626. e.scope && 'string' == typeof e.scope && M.openNode(y.classNameAliases[e.scope] || e.scope),
  627. e.beginScope &&
  628. (e.beginScope._wrap
  629. ? (M.addKeyword(S, y.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), (S = ''))
  630. : e.beginScope._multi && (u(e.beginScope, t), (S = ''))),
  631. (O = Object.create(e, { parent: { value: O } })),
  632. O
  633. );
  634. }
  635. function f(e, t, n) {
  636. let r = ((e, t) => {
  637. const n = e && e.exec(t);
  638. return n && 0 === n.index;
  639. })(e.endRe, n);
  640. if (r) {
  641. if (e['on:end']) {
  642. const n = new i(e);
  643. e['on:end'](t, n), n.isMatchIgnored && (r = !1);
  644. }
  645. if (r) {
  646. for (; e.endsParent && e.parent; ) e = e.parent;
  647. return e;
  648. }
  649. }
  650. if (e.endsWithParent) return f(e.parent, t, n);
  651. }
  652. function p(e) {
  653. return 0 === O.matcher.regexIndex ? ((S += e[0]), 1) : ((I = !0), 0);
  654. }
  655. function b(e) {
  656. const t = e[0],
  657. i = n.substr(e.index),
  658. r = f(O, e, i);
  659. if (!r) return ee;
  660. const s = O;
  661. O.endScope && O.endScope._wrap
  662. ? (d(), M.addKeyword(t, O.endScope._wrap))
  663. : O.endScope && O.endScope._multi
  664. ? (d(), u(O.endScope, e))
  665. : s.skip
  666. ? (S += t)
  667. : (s.returnEnd || s.excludeEnd || (S += t), d(), s.excludeEnd && (S = t));
  668. do {
  669. O.scope && M.closeNode(), O.skip || O.subLanguage || (R += O.relevance), (O = O.parent);
  670. } while (O !== r.parent);
  671. return r.starts && h(r.starts, e), s.returnEnd ? 0 : t.length;
  672. }
  673. let m = {};
  674. function w(t, s) {
  675. const a = s && s[0];
  676. if (((S += t), null == a)) return d(), 0;
  677. if ('begin' === m.type && 'end' === s.type && m.index === s.index && '' === a) {
  678. if (((S += n.slice(s.index, s.index + 1)), !o)) {
  679. const t = Error(`0 width match regex (${e})`);
  680. throw ((t.languageName = e), (t.badRule = m.rule), t);
  681. }
  682. return 1;
  683. }
  684. if (((m = s), 'begin' === s.type))
  685. return ((e) => {
  686. const t = e[0],
  687. n = e.rule,
  688. r = new i(n),
  689. s = [n.__beforeBegin, n['on:begin']];
  690. for (const n of s) if (n && (n(e, r), r.isMatchIgnored)) return p(t);
  691. return (
  692. n.skip ? (S += t) : (n.excludeBegin && (S += t), d(), n.returnBegin || n.excludeBegin || (S = t)),
  693. h(n, e),
  694. n.returnBegin ? 0 : t.length
  695. );
  696. })(s);
  697. if ('illegal' === s.type && !r) {
  698. const e = Error('Illegal lexeme "' + a + '" for mode "' + (O.scope || '<unnamed>') + '"');
  699. throw ((e.mode = O), e);
  700. }
  701. if ('end' === s.type) {
  702. const e = b(s);
  703. if (e !== ee) return e;
  704. }
  705. if ('illegal' === s.type && '' === a) return 1;
  706. if (A > 1e5 && A > 3 * s.index) throw Error('potential infinite loop, way more iterations than matches');
  707. return (S += a), a.length;
  708. }
  709. const y = k(e);
  710. if (!y) throw (K(a.replace('{}', e)), Error('Unknown language: "' + e + '"'));
  711. const _ = V(y);
  712. let v = '',
  713. O = s || _;
  714. const N = {},
  715. M = new g.__emitter(g);
  716. (() => {
  717. const e = [];
  718. for (let t = O; t !== y; t = t.parent) t.scope && e.unshift(t.scope);
  719. e.forEach((e) => M.openNode(e));
  720. })();
  721. let S = '',
  722. R = 0,
  723. j = 0,
  724. A = 0,
  725. I = !1;
  726. try {
  727. for (O.matcher.considerAll(); ; ) {
  728. A++, I ? (I = !1) : O.matcher.considerAll(), (O.matcher.lastIndex = j);
  729. const e = O.matcher.exec(n);
  730. if (!e) break;
  731. const t = w(n.substring(j, e.index), e);
  732. j = e.index + t;
  733. }
  734. return (
  735. w(n.substr(j)),
  736. M.closeAllNodes(),
  737. M.finalize(),
  738. (v = M.toHTML()),
  739. { language: e, value: v, relevance: R, illegal: !1, _emitter: M, _top: O }
  740. );
  741. } catch (t) {
  742. if (t.message && t.message.includes('Illegal'))
  743. return {
  744. language: e,
  745. value: Y(n),
  746. illegal: !0,
  747. relevance: 0,
  748. _illegalBy: { message: t.message, index: j, context: n.slice(j - 100, j + 100), mode: t.mode, resultSoFar: v },
  749. _emitter: M
  750. };
  751. if (o) return { language: e, value: Y(n), illegal: !1, relevance: 0, errorRaised: t, _emitter: M, _top: O };
  752. throw t;
  753. }
  754. }
  755. function x(e, n) {
  756. n = n || g.languages || Object.keys(t);
  757. const i = ((e) => {
  758. const t = { value: Y(e), illegal: !1, relevance: 0, _top: c, _emitter: new g.__emitter(g) };
  759. return t._emitter.addText(e), t;
  760. })(e),
  761. r = n
  762. .filter(k)
  763. .filter(O)
  764. .map((t) => E(t, e, !1));
  765. r.unshift(i);
  766. const s = r.sort((e, t) => {
  767. if (e.relevance !== t.relevance) return t.relevance - e.relevance;
  768. if (e.language && t.language) {
  769. if (k(e.language).supersetOf === t.language) return 1;
  770. if (k(t.language).supersetOf === e.language) return -1;
  771. }
  772. return 0;
  773. }),
  774. [o, a] = s,
  775. l = o;
  776. return (l.secondBest = a), l;
  777. }
  778. function w(e) {
  779. let t = null;
  780. const n = ((e) => {
  781. let t = e.className + ' ';
  782. t += e.parentNode ? e.parentNode.className : '';
  783. const n = g.languageDetectRe.exec(t);
  784. if (n) {
  785. const t = k(n[1]);
  786. return t || (W(a.replace('{}', n[1])), W('Falling back to no-highlight mode for this block.', e)), t ? n[1] : 'no-highlight';
  787. }
  788. return t.split(/\s+/).find((e) => b(e) || k(e));
  789. })(e);
  790. if (b(n)) return;
  791. if (
  792. (N('before:highlightElement', { el: e, language: n }),
  793. e.children.length > 0 &&
  794. /* g.ignoreUnescapedHTML || (console.warn('One of your code blocks includes unescaped HTML. This is a potentially serious security risk.'), console.warn('https://github.com/highlightjs/highlight.js/wiki/security'), console.warn('The element with unescaped HTML:'), console.warn(e)), */ g.throwUnescapedHTML)
  795. )
  796. throw new J('One of your code blocks includes unescaped HTML.', e.innerHTML);
  797. t = e;
  798. const i = t.textContent,
  799. s = n ? m(i, { language: n, ignoreIllegals: !0 }) : x(i);
  800. (e.innerHTML = s.value),
  801. ((e, t, n) => {
  802. const i = (t && r[t]) || n;
  803. e.classList.add('hljs'), e.classList.add('language-' + i);
  804. })(e, n, s.language),
  805. (e.result = { language: s.language, re: s.relevance, relevance: s.relevance }),
  806. s.secondBest && (e.secondBest = { language: s.secondBest.language, relevance: s.secondBest.relevance }),
  807. N('after:highlightElement', { el: e, result: s, text: i });
  808. }
  809. let y = !1;
  810. function _() {
  811. 'loading' !== document.readyState ? document.querySelectorAll(g.cssSelector).forEach(w) : (y = !0);
  812. }
  813. function k(e) {
  814. return (e = (e || '').toLowerCase()), t[e] || t[r[e]];
  815. }
  816. function v(e, { languageName: t }) {
  817. 'string' == typeof e && (e = [e]),
  818. e.forEach((e) => {
  819. r[e.toLowerCase()] = t;
  820. });
  821. }
  822. function O(e) {
  823. const t = k(e);
  824. return t && !t.disableAutodetect;
  825. }
  826. function N(e, t) {
  827. const n = e;
  828. s.forEach((e) => {
  829. e[n] && e[n](t);
  830. });
  831. }
  832. 'undefined' != typeof window &&
  833. window.addEventListener &&
  834. window.addEventListener(
  835. 'DOMContentLoaded',
  836. () => {
  837. y && _();
  838. },
  839. !1
  840. ),
  841. Object.assign(e, {
  842. highlight: m,
  843. highlightAuto: x,
  844. highlightAll: _,
  845. highlightElement: w,
  846. highlightBlock: (e) => (
  847. X('10.7.0', 'highlightBlock will be removed entirely in v12.0'), X('10.7.0', 'Please use highlightElement now.'), w(e)
  848. ),
  849. configure: (e) => {
  850. g = Q(g, e);
  851. },
  852. initHighlighting: () => {
  853. _(), X('10.6.0', 'initHighlighting() deprecated. Use highlightAll() now.');
  854. },
  855. initHighlightingOnLoad: () => {
  856. _(), X('10.6.0', 'initHighlightingOnLoad() deprecated. Use highlightAll() now.');
  857. },
  858. registerLanguage: (n, i) => {
  859. let r = null;
  860. try {
  861. r = i(e);
  862. } catch (e) {
  863. if ((K("Language definition for '{}' could not be registered.".replace('{}', n)), !o)) throw e;
  864. K(e), (r = c);
  865. }
  866. r.name || (r.name = n), (t[n] = r), (r.rawDefinition = i.bind(null, e)), r.aliases && v(r.aliases, { languageName: n });
  867. },
  868. unregisterLanguage: (e) => {
  869. delete t[e];
  870. for (const t of Object.keys(r)) r[t] === e && delete r[t];
  871. },
  872. listLanguages: () => Object.keys(t),
  873. getLanguage: k,
  874. registerAliases: v,
  875. autoDetection: O,
  876. inherit: Q,
  877. addPlugin: (e) => {
  878. ((e) => {
  879. e['before:highlightBlock'] &&
  880. !e['before:highlightElement'] &&
  881. (e['before:highlightElement'] = (t) => {
  882. e['before:highlightBlock'](Object.assign({ block: t.el }, t));
  883. }),
  884. e['after:highlightBlock'] &&
  885. !e['after:highlightElement'] &&
  886. (e['after:highlightElement'] = (t) => {
  887. e['after:highlightBlock'](Object.assign({ block: t.el }, t));
  888. });
  889. })(e),
  890. s.push(e);
  891. }
  892. }),
  893. (e.debugMode = () => {
  894. o = !1;
  895. }),
  896. (e.safeMode = () => {
  897. o = !0;
  898. }),
  899. (e.versionString = '11.5.1'),
  900. (e.regex = { concat: f, lookahead: d, either: p, optional: h, anyNumberOfTimes: u });
  901. for (const e in A) 'object' == typeof A[e] && n(A[e]);
  902. return Object.assign(e, A), e;
  903. })({});
  904. return te;
  905. })();
  906. 'object' == typeof exports && 'undefined' != typeof module && (module.exports = hljs);
  907. /*! `bash` grammar compiled for Highlight.js 11.5.1 */ (() => {
  908. var e = (() => {
  909. 'use strict';
  910. return (e) => {
  911. const s = e.regex,
  912. t = {},
  913. n = { begin: /\$\{/, end: /\}/, contains: ['self', { begin: /:-/, contains: [t] }] };
  914. Object.assign(t, { className: 'variable', variants: [{ begin: s.concat(/\$[\w\d#@][\w\d_]*/, '(?![\\w\\d])(?![$])') }, n] });
  915. const a = { className: 'subst', begin: /\$\(/, end: /\)/, contains: [e.BACKSLASH_ESCAPE] },
  916. i = { begin: /<<-?\s*(?=\w+)/, starts: { contains: [e.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: 'string' })] } },
  917. c = { className: 'string', begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE, t, a] };
  918. a.contains.push(c);
  919. const o = { begin: /\$\(\(/, end: /\)\)/, contains: [{ begin: /\d+#[0-9a-f]+/, className: 'number' }, e.NUMBER_MODE, t] },
  920. r = e.SHEBANG({ binary: '(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)', relevance: 10 }),
  921. l = {
  922. className: 'function',
  923. begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
  924. returnBegin: !0,
  925. contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
  926. relevance: 0
  927. };
  928. return {
  929. name: 'Bash',
  930. aliases: ['sh'],
  931. keywords: {
  932. $pattern: /\b[a-z][a-z0-9._-]+\b/,
  933. keyword: ['if', 'then', 'else', 'elif', 'fi', 'for', 'while', 'in', 'do', 'done', 'case', 'esac', 'function'],
  934. literal: ['true', 'false'],
  935. built_in: [
  936. 'break',
  937. 'cd',
  938. 'continue',
  939. 'eval',
  940. 'exec',
  941. 'exit',
  942. 'export',
  943. 'getopts',
  944. 'hash',
  945. 'pwd',
  946. 'readonly',
  947. 'return',
  948. 'shift',
  949. 'test',
  950. 'times',
  951. 'trap',
  952. 'umask',
  953. 'unset',
  954. 'alias',
  955. 'bind',
  956. 'builtin',
  957. 'caller',
  958. 'command',
  959. 'declare',
  960. 'echo',
  961. 'enable',
  962. 'help',
  963. 'let',
  964. 'local',
  965. 'logout',
  966. 'mapfile',
  967. 'printf',
  968. 'read',
  969. 'readarray',
  970. 'source',
  971. 'type',
  972. 'typeset',
  973. 'ulimit',
  974. 'unalias',
  975. 'set',
  976. 'shopt',
  977. 'autoload',
  978. 'bg',
  979. 'bindkey',
  980. 'bye',
  981. 'cap',
  982. 'chdir',
  983. 'clone',
  984. 'comparguments',
  985. 'compcall',
  986. 'compctl',
  987. 'compdescribe',
  988. 'compfiles',
  989. 'compgroups',
  990. 'compquote',
  991. 'comptags',
  992. 'comptry',
  993. 'compvalues',
  994. 'dirs',
  995. 'disable',
  996. 'disown',
  997. 'echotc',
  998. 'echoti',
  999. 'emulate',
  1000. 'fc',
  1001. 'fg',
  1002. 'float',
  1003. 'functions',
  1004. 'getcap',
  1005. 'getln',
  1006. 'history',
  1007. 'integer',
  1008. 'jobs',
  1009. 'kill',
  1010. 'limit',
  1011. 'log',
  1012. 'noglob',
  1013. 'popd',
  1014. 'print',
  1015. 'pushd',
  1016. 'pushln',
  1017. 'rehash',
  1018. 'sched',
  1019. 'setcap',
  1020. 'setopt',
  1021. 'stat',
  1022. 'suspend',
  1023. 'ttyctl',
  1024. 'unfunction',
  1025. 'unhash',
  1026. 'unlimit',
  1027. 'unsetopt',
  1028. 'vared',
  1029. 'wait',
  1030. 'whence',
  1031. 'where',
  1032. 'which',
  1033. 'zcompile',
  1034. 'zformat',
  1035. 'zftp',
  1036. 'zle',
  1037. 'zmodload',
  1038. 'zparseopts',
  1039. 'zprof',
  1040. 'zpty',
  1041. 'zregexparse',
  1042. 'zsocket',
  1043. 'zstyle',
  1044. 'ztcp',
  1045. 'chcon',
  1046. 'chgrp',
  1047. 'chown',
  1048. 'chmod',
  1049. 'cp',
  1050. 'dd',
  1051. 'df',
  1052. 'dir',
  1053. 'dircolors',
  1054. 'ln',
  1055. 'ls',
  1056. 'mkdir',
  1057. 'mkfifo',
  1058. 'mknod',
  1059. 'mktemp',
  1060. 'mv',
  1061. 'realpath',
  1062. 'rm',
  1063. 'rmdir',
  1064. 'shred',
  1065. 'sync',
  1066. 'touch',
  1067. 'truncate',
  1068. 'vdir',
  1069. 'b2sum',
  1070. 'base32',
  1071. 'base64',
  1072. 'cat',
  1073. 'cksum',
  1074. 'comm',
  1075. 'csplit',
  1076. 'cut',
  1077. 'expand',
  1078. 'fmt',
  1079. 'fold',
  1080. 'head',
  1081. 'join',
  1082. 'md5sum',
  1083. 'nl',
  1084. 'numfmt',
  1085. 'od',
  1086. 'paste',
  1087. 'ptx',
  1088. 'pr',
  1089. 'sha1sum',
  1090. 'sha224sum',
  1091. 'sha256sum',
  1092. 'sha384sum',
  1093. 'sha512sum',
  1094. 'shuf',
  1095. 'sort',
  1096. 'split',
  1097. 'sum',
  1098. 'tac',
  1099. 'tail',
  1100. 'tr',
  1101. 'tsort',
  1102. 'unexpand',
  1103. 'uniq',
  1104. 'wc',
  1105. 'arch',
  1106. 'basename',
  1107. 'chroot',
  1108. 'date',
  1109. 'dirname',
  1110. 'du',
  1111. 'echo',
  1112. 'env',
  1113. 'expr',
  1114. 'factor',
  1115. 'groups',
  1116. 'hostid',
  1117. 'id',
  1118. 'link',
  1119. 'logname',
  1120. 'nice',
  1121. 'nohup',
  1122. 'nproc',
  1123. 'pathchk',
  1124. 'pinky',
  1125. 'printenv',
  1126. 'printf',
  1127. 'pwd',
  1128. 'readlink',
  1129. 'runcon',
  1130. 'seq',
  1131. 'sleep',
  1132. 'stat',
  1133. 'stdbuf',
  1134. 'stty',
  1135. 'tee',
  1136. 'test',
  1137. 'timeout',
  1138. 'tty',
  1139. 'uname',
  1140. 'unlink',
  1141. 'uptime',
  1142. 'users',
  1143. 'who',
  1144. 'whoami',
  1145. 'yes'
  1146. ]
  1147. },
  1148. contains: [
  1149. r,
  1150. e.SHEBANG(),
  1151. l,
  1152. o,
  1153. e.HASH_COMMENT_MODE,
  1154. i,
  1155. { match: /(\/[a-z._-]+)+/ },
  1156. c,
  1157. { className: '', begin: /\\"/ },
  1158. { className: 'string', begin: /'/, end: /'/ },
  1159. t
  1160. ]
  1161. };
  1162. };
  1163. })();
  1164. hljs.registerLanguage('bash', e);
  1165. })();
  1166. /*! `javascript` grammar compiled for Highlight.js 11.5.1 */ (() => {
  1167. var e = (() => {
  1168. 'use strict';
  1169. const e = '[A-Za-z$_][0-9A-Za-z$_]*',
  1170. n = [
  1171. 'as',
  1172. 'in',
  1173. 'of',
  1174. 'if',
  1175. 'for',
  1176. 'while',
  1177. 'finally',
  1178. 'var',
  1179. 'new',
  1180. 'function',
  1181. 'do',
  1182. 'return',
  1183. 'void',
  1184. 'else',
  1185. 'break',
  1186. 'catch',
  1187. 'instanceof',
  1188. 'with',
  1189. 'throw',
  1190. 'case',
  1191. 'default',
  1192. 'try',
  1193. 'switch',
  1194. 'continue',
  1195. 'typeof',
  1196. 'delete',
  1197. 'let',
  1198. 'yield',
  1199. 'const',
  1200. 'class',
  1201. 'debugger',
  1202. 'async',
  1203. 'await',
  1204. 'static',
  1205. 'import',
  1206. 'from',
  1207. 'export',
  1208. 'extends'
  1209. ],
  1210. a = ['true', 'false', 'null', 'undefined', 'NaN', 'Infinity'],
  1211. t = [
  1212. 'Object',
  1213. 'Function',
  1214. 'Boolean',
  1215. 'Symbol',
  1216. 'Math',
  1217. 'Date',
  1218. 'Number',
  1219. 'BigInt',
  1220. 'String',
  1221. 'RegExp',
  1222. 'Array',
  1223. 'Float32Array',
  1224. 'Float64Array',
  1225. 'Int8Array',
  1226. 'Uint8Array',
  1227. 'Uint8ClampedArray',
  1228. 'Int16Array',
  1229. 'Int32Array',
  1230. 'Uint16Array',
  1231. 'Uint32Array',
  1232. 'BigInt64Array',
  1233. 'BigUint64Array',
  1234. 'Set',
  1235. 'Map',
  1236. 'WeakSet',
  1237. 'WeakMap',
  1238. 'ArrayBuffer',
  1239. 'SharedArrayBuffer',
  1240. 'Atomics',
  1241. 'DataView',
  1242. 'JSON',
  1243. 'Promise',
  1244. 'Generator',
  1245. 'GeneratorFunction',
  1246. 'AsyncFunction',
  1247. 'Reflect',
  1248. 'Proxy',
  1249. 'Intl',
  1250. 'WebAssembly'
  1251. ],
  1252. s = ['Error', 'EvalError', 'InternalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError'],
  1253. r = [
  1254. 'setInterval',
  1255. 'setTimeout',
  1256. 'clearInterval',
  1257. 'clearTimeout',
  1258. 'require',
  1259. 'exports',
  1260. 'eval',
  1261. 'isFinite',
  1262. 'isNaN',
  1263. 'parseFloat',
  1264. 'parseInt',
  1265. 'decodeURI',
  1266. 'decodeURIComponent',
  1267. 'encodeURI',
  1268. 'encodeURIComponent',
  1269. 'escape',
  1270. 'unescape'
  1271. ],
  1272. c = ['arguments', 'this', 'super', 'console', 'window', 'document', 'localStorage', 'module', 'global'],
  1273. i = [].concat(r, t, s);
  1274. return (o) => {
  1275. const l = o.regex,
  1276. b = e,
  1277. d = {
  1278. begin: /<[A-Za-z0-9\\._:-]+/,
  1279. end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
  1280. isTrulyOpeningTag: (e, n) => {
  1281. const a = e[0].length + e.index,
  1282. t = e.input[a];
  1283. if ('<' === t || ',' === t) return void n.ignoreMatch();
  1284. let s;
  1285. '>' === t &&
  1286. (((e, { after: n }) => {
  1287. const a = '</' + e[0].slice(1);
  1288. return -1 !== e.input.indexOf(a, n);
  1289. })(e, { after: a }) ||
  1290. n.ignoreMatch()),
  1291. (s = e.input.substr(a).match(/^\s+extends\s+/)) && 0 === s.index && n.ignoreMatch();
  1292. }
  1293. },
  1294. g = { $pattern: e, keyword: n, literal: a, built_in: i, 'variable.language': c },
  1295. u = '\\.([0-9](_?[0-9])*)',
  1296. m = '0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*',
  1297. E = {
  1298. className: 'number',
  1299. variants: [
  1300. { begin: `(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?([0-9](_?[0-9])*)\\b` },
  1301. { begin: `\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b` },
  1302. { begin: '\\b(0|[1-9](_?[0-9])*)n\\b' },
  1303. { begin: '\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b' },
  1304. { begin: '\\b0[bB][0-1](_?[0-1])*n?\\b' },
  1305. { begin: '\\b0[oO][0-7](_?[0-7])*n?\\b' },
  1306. { begin: '\\b0[0-7]+n?\\b' }
  1307. ],
  1308. relevance: 0
  1309. },
  1310. A = { className: 'subst', begin: '\\$\\{', end: '\\}', keywords: g, contains: [] },
  1311. y = { begin: 'html`', end: '', starts: { end: '`', returnEnd: !1, contains: [o.BACKSLASH_ESCAPE, A], subLanguage: 'xml' } },
  1312. N = { begin: 'css`', end: '', starts: { end: '`', returnEnd: !1, contains: [o.BACKSLASH_ESCAPE, A], subLanguage: 'css' } },
  1313. _ = { className: 'string', begin: '`', end: '`', contains: [o.BACKSLASH_ESCAPE, A] },
  1314. f = {
  1315. className: 'comment',
  1316. variants: [
  1317. o.COMMENT(/\/\*\*(?!\/)/, '\\*/', {
  1318. relevance: 0,
  1319. contains: [
  1320. {
  1321. begin: '(?=@[A-Za-z]+)',
  1322. relevance: 0,
  1323. contains: [
  1324. { className: 'doctag', begin: '@[A-Za-z]+' },
  1325. { className: 'type', begin: '\\{', end: '\\}', excludeEnd: !0, excludeBegin: !0, relevance: 0 },
  1326. { className: 'variable', begin: b + '(?=\\s*(-)|$)', endsParent: !0, relevance: 0 },
  1327. { begin: /(?=[^\n])\s/, relevance: 0 }
  1328. ]
  1329. }
  1330. ]
  1331. }),
  1332. o.C_BLOCK_COMMENT_MODE,
  1333. o.C_LINE_COMMENT_MODE
  1334. ]
  1335. },
  1336. h = [o.APOS_STRING_MODE, o.QUOTE_STRING_MODE, y, N, _, E];
  1337. A.contains = h.concat({ begin: /\{/, end: /\}/, keywords: g, contains: ['self'].concat(h) });
  1338. const v = [].concat(f, A.contains),
  1339. p = v.concat([{ begin: /\(/, end: /\)/, keywords: g, contains: ['self'].concat(v) }]),
  1340. S = { className: 'params', begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: g, contains: p },
  1341. w = {
  1342. variants: [
  1343. {
  1344. match: [/class/, /\s+/, b, /\s+/, /extends/, /\s+/, l.concat(b, '(', l.concat(/\./, b), ')*')],
  1345. scope: { 1: 'keyword', 3: 'title.class', 5: 'keyword', 7: 'title.class.inherited' }
  1346. },
  1347. { match: [/class/, /\s+/, b], scope: { 1: 'keyword', 3: 'title.class' } }
  1348. ]
  1349. },
  1350. R = {
  1351. relevance: 0,
  1352. match: l.either(
  1353. /\bJSON/,
  1354. /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
  1355. /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
  1356. /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
  1357. ),
  1358. className: 'title.class',
  1359. keywords: { _: [...t, ...s] }
  1360. },
  1361. O = {
  1362. variants: [{ match: [/function/, /\s+/, b, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }],
  1363. className: { 1: 'keyword', 3: 'title.function' },
  1364. label: 'func.def',
  1365. contains: [S],
  1366. illegal: /%/
  1367. },
  1368. k = {
  1369. match: l.concat(/\b/, ((I = [...r, 'super']), l.concat('(?!', I.join('|'), ')')), b, l.lookahead(/\(/)),
  1370. className: 'title.function',
  1371. relevance: 0
  1372. };
  1373. var I;
  1374. const x = {
  1375. begin: l.concat(/\./, l.lookahead(l.concat(b, /(?![0-9A-Za-z$_(])/))),
  1376. end: b,
  1377. excludeBegin: !0,
  1378. keywords: 'prototype',
  1379. className: 'property',
  1380. relevance: 0
  1381. },
  1382. T = { match: [/get|set/, /\s+/, b, /(?=\()/], className: { 1: 'keyword', 3: 'title.function' }, contains: [{ begin: /\(\)/ }, S] },
  1383. C = '(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|' + o.UNDERSCORE_IDENT_RE + ')\\s*=>',
  1384. M = {
  1385. match: [/const|var|let/, /\s+/, b, /\s*/, /=\s*/, /(async\s*)?/, l.lookahead(C)],
  1386. keywords: 'async',
  1387. className: { 1: 'keyword', 3: 'title.function' },
  1388. contains: [S]
  1389. };
  1390. return {
  1391. name: 'Javascript',
  1392. aliases: ['js', 'jsx', 'mjs', 'cjs'],
  1393. keywords: g,
  1394. exports: { PARAMS_CONTAINS: p, CLASS_REFERENCE: R },
  1395. illegal: /#(?![$_A-z])/,
  1396. contains: [
  1397. o.SHEBANG({ label: 'shebang', binary: 'node', relevance: 5 }),
  1398. { label: 'use_strict', className: 'meta', relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ },
  1399. o.APOS_STRING_MODE,
  1400. o.QUOTE_STRING_MODE,
  1401. y,
  1402. N,
  1403. _,
  1404. f,
  1405. E,
  1406. R,
  1407. { className: 'attr', begin: b + l.lookahead(':'), relevance: 0 },
  1408. M,
  1409. {
  1410. begin: '(' + o.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
  1411. keywords: 'return throw case',
  1412. relevance: 0,
  1413. contains: [
  1414. f,
  1415. o.REGEXP_MODE,
  1416. {
  1417. className: 'function',
  1418. begin: C,
  1419. returnBegin: !0,
  1420. end: '\\s*=>',
  1421. contains: [
  1422. {
  1423. className: 'params',
  1424. variants: [
  1425. { begin: o.UNDERSCORE_IDENT_RE, relevance: 0 },
  1426. { className: null, begin: /\(\s*\)/, skip: !0 },
  1427. { begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: g, contains: p }
  1428. ]
  1429. }
  1430. ]
  1431. },
  1432. { begin: /,/, relevance: 0 },
  1433. { match: /\s+/, relevance: 0 },
  1434. {
  1435. variants: [
  1436. { begin: '<>', end: '</>' },
  1437. { match: /<[A-Za-z0-9\\._:-]+\s*\/>/ },
  1438. { begin: d.begin, 'on:begin': d.isTrulyOpeningTag, end: d.end }
  1439. ],
  1440. subLanguage: 'xml',
  1441. contains: [{ begin: d.begin, end: d.end, skip: !0, contains: ['self'] }]
  1442. }
  1443. ]
  1444. },
  1445. O,
  1446. { beginKeywords: 'while if switch catch for' },
  1447. {
  1448. begin: '\\b(?!function)' + o.UNDERSCORE_IDENT_RE + '\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{',
  1449. returnBegin: !0,
  1450. label: 'func.def',
  1451. contains: [S, o.inherit(o.TITLE_MODE, { begin: b, className: 'title.function' })]
  1452. },
  1453. { match: /\.\.\./, relevance: 0 },
  1454. x,
  1455. { match: '\\$' + b, relevance: 0 },
  1456. { match: [/\bconstructor(?=\s*\()/], className: { 1: 'title.function' }, contains: [S] },
  1457. k,
  1458. { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: 'variable.constant' },
  1459. w,
  1460. T,
  1461. { match: /\$[(.]/ }
  1462. ]
  1463. };
  1464. };
  1465. })();
  1466. hljs.registerLanguage('javascript', e);
  1467. })();
  1468. /*! `css` grammar compiled for Highlight.js 11.5.1 */ (() => {
  1469. var e = (() => {
  1470. 'use strict';
  1471. const e = [
  1472. 'a',
  1473. 'abbr',
  1474. 'address',
  1475. 'article',
  1476. 'aside',
  1477. 'audio',
  1478. 'b',
  1479. 'blockquote',
  1480. 'body',
  1481. 'button',
  1482. 'canvas',
  1483. 'caption',
  1484. 'cite',
  1485. 'code',
  1486. 'dd',
  1487. 'del',
  1488. 'details',
  1489. 'dfn',
  1490. 'div',
  1491. 'dl',
  1492. 'dt',
  1493. 'em',
  1494. 'fieldset',
  1495. 'figcaption',
  1496. 'figure',
  1497. 'footer',
  1498. 'form',
  1499. 'h1',
  1500. 'h2',
  1501. 'h3',
  1502. 'h4',
  1503. 'h5',
  1504. 'h6',
  1505. 'header',
  1506. 'hgroup',
  1507. 'html',
  1508. 'i',
  1509. 'iframe',
  1510. 'img',
  1511. 'input',
  1512. 'ins',
  1513. 'kbd',
  1514. 'label',
  1515. 'legend',
  1516. 'li',
  1517. 'main',
  1518. 'mark',
  1519. 'menu',
  1520. 'nav',
  1521. 'object',
  1522. 'ol',
  1523. 'p',
  1524. 'q',
  1525. 'quote',
  1526. 'samp',
  1527. 'section',
  1528. 'span',
  1529. 'strong',
  1530. 'summary',
  1531. 'sup',
  1532. 'table',
  1533. 'tbody',
  1534. 'td',
  1535. 'textarea',
  1536. 'tfoot',
  1537. 'th',
  1538. 'thead',
  1539. 'time',
  1540. 'tr',
  1541. 'ul',
  1542. 'var',
  1543. 'video'
  1544. ],
  1545. i = [
  1546. 'any-hover',
  1547. 'any-pointer',
  1548. 'aspect-ratio',
  1549. 'color',
  1550. 'color-gamut',
  1551. 'color-index',
  1552. 'device-aspect-ratio',
  1553. 'device-height',
  1554. 'device-width',
  1555. 'display-mode',
  1556. 'forced-colors',
  1557. 'grid',
  1558. 'height',
  1559. 'hover',
  1560. 'inverted-colors',
  1561. 'monochrome',
  1562. 'orientation',
  1563. 'overflow-block',
  1564. 'overflow-inline',
  1565. 'pointer',
  1566. 'prefers-color-scheme',
  1567. 'prefers-contrast',
  1568. 'prefers-reduced-motion',
  1569. 'prefers-reduced-transparency',
  1570. 'resolution',
  1571. 'scan',
  1572. 'scripting',
  1573. 'update',
  1574. 'width',
  1575. 'min-width',
  1576. 'max-width',
  1577. 'min-height',
  1578. 'max-height'
  1579. ],
  1580. r = [
  1581. 'active',
  1582. 'any-link',
  1583. 'blank',
  1584. 'checked',
  1585. 'current',
  1586. 'default',
  1587. 'defined',
  1588. 'dir',
  1589. 'disabled',
  1590. 'drop',
  1591. 'empty',
  1592. 'enabled',
  1593. 'first',
  1594. 'first-child',
  1595. 'first-of-type',
  1596. 'fullscreen',
  1597. 'future',
  1598. 'focus',
  1599. 'focus-visible',
  1600. 'focus-within',
  1601. 'has',
  1602. 'host',
  1603. 'host-context',
  1604. 'hover',
  1605. 'indeterminate',
  1606. 'in-range',
  1607. 'invalid',
  1608. 'is',
  1609. 'lang',
  1610. 'last-child',
  1611. 'last-of-type',
  1612. 'left',
  1613. 'link',
  1614. 'local-link',
  1615. 'not',
  1616. 'nth-child',
  1617. 'nth-col',
  1618. 'nth-last-child',
  1619. 'nth-last-col',
  1620. 'nth-last-of-type',
  1621. 'nth-of-type',
  1622. 'only-child',
  1623. 'only-of-type',
  1624. 'optional',
  1625. 'out-of-range',
  1626. 'past',
  1627. 'placeholder-shown',
  1628. 'read-only',
  1629. 'read-write',
  1630. 'required',
  1631. 'right',
  1632. 'root',
  1633. 'scope',
  1634. 'target',
  1635. 'target-within',
  1636. 'user-invalid',
  1637. 'valid',
  1638. 'visited',
  1639. 'where'
  1640. ],
  1641. t = [
  1642. 'after',
  1643. 'backdrop',
  1644. 'before',
  1645. 'cue',
  1646. 'cue-region',
  1647. 'first-letter',
  1648. 'first-line',
  1649. 'grammar-error',
  1650. 'marker',
  1651. 'part',
  1652. 'placeholder',
  1653. 'selection',
  1654. 'slotted',
  1655. 'spelling-error'
  1656. ],
  1657. o = [
  1658. 'align-content',
  1659. 'align-items',
  1660. 'align-self',
  1661. 'all',
  1662. 'animation',
  1663. 'animation-delay',
  1664. 'animation-direction',
  1665. 'animation-duration',
  1666. 'animation-fill-mode',
  1667. 'animation-iteration-count',
  1668. 'animation-name',
  1669. 'animation-play-state',
  1670. 'animation-timing-function',
  1671. 'backface-visibility',
  1672. 'background',
  1673. 'background-attachment',
  1674. 'background-blend-mode',
  1675. 'background-clip',
  1676. 'background-color',
  1677. 'background-image',
  1678. 'background-origin',
  1679. 'background-position',
  1680. 'background-repeat',
  1681. 'background-size',
  1682. 'block-size',
  1683. 'border',
  1684. 'border-block',
  1685. 'border-block-color',
  1686. 'border-block-end',
  1687. 'border-block-end-color',
  1688. 'border-block-end-style',
  1689. 'border-block-end-width',
  1690. 'border-block-start',
  1691. 'border-block-start-color',
  1692. 'border-block-start-style',
  1693. 'border-block-start-width',
  1694. 'border-block-style',
  1695. 'border-block-width',
  1696. 'border-bottom',
  1697. 'border-bottom-color',
  1698. 'border-bottom-left-radius',
  1699. 'border-bottom-right-radius',
  1700. 'border-bottom-style',
  1701. 'border-bottom-width',
  1702. 'border-collapse',
  1703. 'border-color',
  1704. 'border-image',
  1705. 'border-image-outset',
  1706. 'border-image-repeat',
  1707. 'border-image-slice',
  1708. 'border-image-source',
  1709. 'border-image-width',
  1710. 'border-inline',
  1711. 'border-inline-color',
  1712. 'border-inline-end',
  1713. 'border-inline-end-color',
  1714. 'border-inline-end-style',
  1715. 'border-inline-end-width',
  1716. 'border-inline-start',
  1717. 'border-inline-start-color',
  1718. 'border-inline-start-style',
  1719. 'border-inline-start-width',
  1720. 'border-inline-style',
  1721. 'border-inline-width',
  1722. 'border-left',
  1723. 'border-left-color',
  1724. 'border-left-style',
  1725. 'border-left-width',
  1726. 'border-radius',
  1727. 'border-right',
  1728. 'border-right-color',
  1729. 'border-right-style',
  1730. 'border-right-width',
  1731. 'border-spacing',
  1732. 'border-style',
  1733. 'border-top',
  1734. 'border-top-color',
  1735. 'border-top-left-radius',
  1736. 'border-top-right-radius',
  1737. 'border-top-style',
  1738. 'border-top-width',
  1739. 'border-width',
  1740. 'bottom',
  1741. 'box-decoration-break',
  1742. 'box-shadow',
  1743. 'box-sizing',
  1744. 'break-after',
  1745. 'break-before',
  1746. 'break-inside',
  1747. 'caption-side',
  1748. 'caret-color',
  1749. 'clear',
  1750. 'clip',
  1751. 'clip-path',
  1752. 'clip-rule',
  1753. 'color',
  1754. 'column-count',
  1755. 'column-fill',
  1756. 'column-gap',
  1757. 'column-rule',
  1758. 'column-rule-color',
  1759. 'column-rule-style',
  1760. 'column-rule-width',
  1761. 'column-span',
  1762. 'column-width',
  1763. 'columns',
  1764. 'contain',
  1765. 'content',
  1766. 'content-visibility',
  1767. 'counter-increment',
  1768. 'counter-reset',
  1769. 'cue',
  1770. 'cue-after',
  1771. 'cue-before',
  1772. 'cursor',
  1773. 'direction',
  1774. 'display',
  1775. 'empty-cells',
  1776. 'filter',
  1777. 'flex',
  1778. 'flex-basis',
  1779. 'flex-direction',
  1780. 'flex-flow',
  1781. 'flex-grow',
  1782. 'flex-shrink',
  1783. 'flex-wrap',
  1784. 'float',
  1785. 'flow',
  1786. 'font',
  1787. 'font-display',
  1788. 'font-family',
  1789. 'font-feature-settings',
  1790. 'font-kerning',
  1791. 'font-language-override',
  1792. 'font-size',
  1793. 'font-size-adjust',
  1794. 'font-smoothing',
  1795. 'font-stretch',
  1796. 'font-style',
  1797. 'font-synthesis',
  1798. 'font-variant',
  1799. 'font-variant-caps',
  1800. 'font-variant-east-asian',
  1801. 'font-variant-ligatures',
  1802. 'font-variant-numeric',
  1803. 'font-variant-position',
  1804. 'font-variation-settings',
  1805. 'font-weight',
  1806. 'gap',
  1807. 'glyph-orientation-vertical',
  1808. 'grid',
  1809. 'grid-area',
  1810. 'grid-auto-columns',
  1811. 'grid-auto-flow',
  1812. 'grid-auto-rows',
  1813. 'grid-column',
  1814. 'grid-column-end',
  1815. 'grid-column-start',
  1816. 'grid-gap',
  1817. 'grid-row',
  1818. 'grid-row-end',
  1819. 'grid-row-start',
  1820. 'grid-template',
  1821. 'grid-template-areas',
  1822. 'grid-template-columns',
  1823. 'grid-template-rows',
  1824. 'hanging-punctuation',
  1825. 'height',
  1826. 'hyphens',
  1827. 'icon',
  1828. 'image-orientation',
  1829. 'image-rendering',
  1830. 'image-resolution',
  1831. 'ime-mode',
  1832. 'inline-size',
  1833. 'isolation',
  1834. 'justify-content',
  1835. 'left',
  1836. 'letter-spacing',
  1837. 'line-break',
  1838. 'line-height',
  1839. 'list-style',
  1840. 'list-style-image',
  1841. 'list-style-position',
  1842. 'list-style-type',
  1843. 'margin',
  1844. 'margin-block',
  1845. 'margin-block-end',
  1846. 'margin-block-start',
  1847. 'margin-bottom',
  1848. 'margin-inline',
  1849. 'margin-inline-end',
  1850. 'margin-inline-start',
  1851. 'margin-left',
  1852. 'margin-right',
  1853. 'margin-top',
  1854. 'marks',
  1855. 'mask',
  1856. 'mask-border',
  1857. 'mask-border-mode',
  1858. 'mask-border-outset',
  1859. 'mask-border-repeat',
  1860. 'mask-border-slice',
  1861. 'mask-border-source',
  1862. 'mask-border-width',
  1863. 'mask-clip',
  1864. 'mask-composite',
  1865. 'mask-image',
  1866. 'mask-mode',
  1867. 'mask-origin',
  1868. 'mask-position',
  1869. 'mask-repeat',
  1870. 'mask-size',
  1871. 'mask-type',
  1872. 'max-block-size',
  1873. 'max-height',
  1874. 'max-inline-size',
  1875. 'max-width',
  1876. 'min-block-size',
  1877. 'min-height',
  1878. 'min-inline-size',
  1879. 'min-width',
  1880. 'mix-blend-mode',
  1881. 'nav-down',
  1882. 'nav-index',
  1883. 'nav-left',
  1884. 'nav-right',
  1885. 'nav-up',
  1886. 'none',
  1887. 'normal',
  1888. 'object-fit',
  1889. 'object-position',
  1890. 'opacity',
  1891. 'order',
  1892. 'orphans',
  1893. 'outline',
  1894. 'outline-color',
  1895. 'outline-offset',
  1896. 'outline-style',
  1897. 'outline-width',
  1898. 'overflow',
  1899. 'overflow-wrap',
  1900. 'overflow-x',
  1901. 'overflow-y',
  1902. 'padding',
  1903. 'padding-block',
  1904. 'padding-block-end',
  1905. 'padding-block-start',
  1906. 'padding-bottom',
  1907. 'padding-inline',
  1908. 'padding-inline-end',
  1909. 'padding-inline-start',
  1910. 'padding-left',
  1911. 'padding-right',
  1912. 'padding-top',
  1913. 'page-break-after',
  1914. 'page-break-before',
  1915. 'page-break-inside',
  1916. 'pause',
  1917. 'pause-after',
  1918. 'pause-before',
  1919. 'perspective',
  1920. 'perspective-origin',
  1921. 'pointer-events',
  1922. 'position',
  1923. 'quotes',
  1924. 'resize',
  1925. 'rest',
  1926. 'rest-after',
  1927. 'rest-before',
  1928. 'right',
  1929. 'row-gap',
  1930. 'scroll-margin',
  1931. 'scroll-margin-block',
  1932. 'scroll-margin-block-end',
  1933. 'scroll-margin-block-start',
  1934. 'scroll-margin-bottom',
  1935. 'scroll-margin-inline',
  1936. 'scroll-margin-inline-end',
  1937. 'scroll-margin-inline-start',
  1938. 'scroll-margin-left',
  1939. 'scroll-margin-right',
  1940. 'scroll-margin-top',
  1941. 'scroll-padding',
  1942. 'scroll-padding-block',
  1943. 'scroll-padding-block-end',
  1944. 'scroll-padding-block-start',
  1945. 'scroll-padding-bottom',
  1946. 'scroll-padding-inline',
  1947. 'scroll-padding-inline-end',
  1948. 'scroll-padding-inline-start',
  1949. 'scroll-padding-left',
  1950. 'scroll-padding-right',
  1951. 'scroll-padding-top',
  1952. 'scroll-snap-align',
  1953. 'scroll-snap-stop',
  1954. 'scroll-snap-type',
  1955. 'scrollbar-color',
  1956. 'scrollbar-gutter',
  1957. 'scrollbar-width',
  1958. 'shape-image-threshold',
  1959. 'shape-margin',
  1960. 'shape-outside',
  1961. 'speak',
  1962. 'speak-as',
  1963. 'src',
  1964. 'tab-size',
  1965. 'table-layout',
  1966. 'text-align',
  1967. 'text-align-all',
  1968. 'text-align-last',
  1969. 'text-combine-upright',
  1970. 'text-decoration',
  1971. 'text-decoration-color',
  1972. 'text-decoration-line',
  1973. 'text-decoration-style',
  1974. 'text-emphasis',
  1975. 'text-emphasis-color',
  1976. 'text-emphasis-position',
  1977. 'text-emphasis-style',
  1978. 'text-indent',
  1979. 'text-justify',
  1980. 'text-orientation',
  1981. 'text-overflow',
  1982. 'text-rendering',
  1983. 'text-shadow',
  1984. 'text-transform',
  1985. 'text-underline-position',
  1986. 'top',
  1987. 'transform',
  1988. 'transform-box',
  1989. 'transform-origin',
  1990. 'transform-style',
  1991. 'transition',
  1992. 'transition-delay',
  1993. 'transition-duration',
  1994. 'transition-property',
  1995. 'transition-timing-function',
  1996. 'unicode-bidi',
  1997. 'vertical-align',
  1998. 'visibility',
  1999. 'voice-balance',
  2000. 'voice-duration',
  2001. 'voice-family',
  2002. 'voice-pitch',
  2003. 'voice-range',
  2004. 'voice-rate',
  2005. 'voice-stress',
  2006. 'voice-volume',
  2007. 'white-space',
  2008. 'widows',
  2009. 'width',
  2010. 'will-change',
  2011. 'word-break',
  2012. 'word-spacing',
  2013. 'word-wrap',
  2014. 'writing-mode',
  2015. 'z-index'
  2016. ].reverse();
  2017. return (n) => {
  2018. const a = n.regex,
  2019. l = ((e) => ({
  2020. IMPORTANT: { scope: 'meta', begin: '!important' },
  2021. BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE,
  2022. HEXCOLOR: { scope: 'number', begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ },
  2023. FUNCTION_DISPATCH: { className: 'built_in', begin: /[\w-]+(?=\()/ },
  2024. ATTRIBUTE_SELECTOR_MODE: {
  2025. scope: 'selector-attr',
  2026. begin: /\[/,
  2027. end: /\]/,
  2028. illegal: '$',
  2029. contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
  2030. },
  2031. CSS_NUMBER_MODE: {
  2032. scope: 'number',
  2033. begin: e.NUMBER_RE + '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?',
  2034. relevance: 0
  2035. },
  2036. CSS_VARIABLE: { className: 'attr', begin: /--[A-Za-z][A-Za-z0-9_-]*/ }
  2037. }))(n),
  2038. s = [n.APOS_STRING_MODE, n.QUOTE_STRING_MODE];
  2039. return {
  2040. name: 'CSS',
  2041. case_insensitive: !0,
  2042. illegal: /[=|'\$]/,
  2043. keywords: { keyframePosition: 'from to' },
  2044. classNameAliases: { keyframePosition: 'selector-tag' },
  2045. contains: [
  2046. l.BLOCK_COMMENT,
  2047. { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ },
  2048. l.CSS_NUMBER_MODE,
  2049. { className: 'selector-id', begin: /#[A-Za-z0-9_-]+/, relevance: 0 },
  2050. { className: 'selector-class', begin: '\\.[a-zA-Z-][a-zA-Z0-9_-]*', relevance: 0 },
  2051. l.ATTRIBUTE_SELECTOR_MODE,
  2052. { className: 'selector-pseudo', variants: [{ begin: ':(' + r.join('|') + ')' }, { begin: ':(:)?(' + t.join('|') + ')' }] },
  2053. l.CSS_VARIABLE,
  2054. { className: 'attribute', begin: '\\b(' + o.join('|') + ')\\b' },
  2055. {
  2056. begin: /:/,
  2057. end: /[;}{]/,
  2058. contains: [
  2059. l.BLOCK_COMMENT,
  2060. l.HEXCOLOR,
  2061. l.IMPORTANT,
  2062. l.CSS_NUMBER_MODE,
  2063. ...s,
  2064. {
  2065. begin: /(url|data-uri)\(/,
  2066. end: /\)/,
  2067. relevance: 0,
  2068. keywords: { built_in: 'url data-uri' },
  2069. contains: [{ className: 'string', begin: /[^)]/, endsWithParent: !0, excludeEnd: !0 }]
  2070. },
  2071. l.FUNCTION_DISPATCH
  2072. ]
  2073. },
  2074. {
  2075. begin: a.lookahead(/@/),
  2076. end: '[{;]',
  2077. relevance: 0,
  2078. illegal: /:/,
  2079. contains: [
  2080. { className: 'keyword', begin: /@-?\w[\w]*(-\w+)*/ },
  2081. {
  2082. begin: /\s/,
  2083. endsWithParent: !0,
  2084. excludeEnd: !0,
  2085. relevance: 0,
  2086. keywords: { $pattern: /[a-z-]+/, keyword: 'and or not only', attribute: i.join(' ') },
  2087. contains: [{ begin: /[a-z-]+(?=:)/, className: 'attribute' }, ...s, l.CSS_NUMBER_MODE]
  2088. }
  2089. ]
  2090. },
  2091. { className: 'selector-tag', begin: '\\b(' + e.join('|') + ')\\b' }
  2092. ]
  2093. };
  2094. };
  2095. })();
  2096. hljs.registerLanguage('css', e);
  2097. })();
  2098. /*! `xml` grammar compiled for Highlight.js 11.5.1 */ (() => {
  2099. var e = (() => {
  2100. 'use strict';
  2101. return (e) => {
  2102. const a = e.regex,
  2103. n = a.concat(/[A-Z_]/, a.optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/),
  2104. s = { className: 'symbol', begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ },
  2105. t = { begin: /\s/, contains: [{ className: 'keyword', begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] },
  2106. i = e.inherit(t, { begin: /\(/, end: /\)/ }),
  2107. c = e.inherit(e.APOS_STRING_MODE, { className: 'string' }),
  2108. l = e.inherit(e.QUOTE_STRING_MODE, { className: 'string' }),
  2109. r = {
  2110. endsWithParent: !0,
  2111. illegal: /</,
  2112. relevance: 0,
  2113. contains: [
  2114. { className: 'attr', begin: /[A-Za-z0-9._:-]+/, relevance: 0 },
  2115. {
  2116. begin: /=\s*/,
  2117. relevance: 0,
  2118. contains: [
  2119. {
  2120. className: 'string',
  2121. endsParent: !0,
  2122. variants: [{ begin: /"/, end: /"/, contains: [s] }, { begin: /'/, end: /'/, contains: [s] }, { begin: /[^\s"'=<>`]+/ }]
  2123. }
  2124. ]
  2125. }
  2126. ]
  2127. };
  2128. return {
  2129. name: 'HTML, XML',
  2130. aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist', 'wsf', 'svg'],
  2131. case_insensitive: !0,
  2132. contains: [
  2133. {
  2134. className: 'meta',
  2135. begin: /<![a-z]/,
  2136. end: />/,
  2137. relevance: 10,
  2138. contains: [
  2139. t,
  2140. l,
  2141. c,
  2142. i,
  2143. { begin: /\[/, end: /\]/, contains: [{ className: 'meta', begin: /<![a-z]/, end: />/, contains: [t, i, l, c] }] }
  2144. ]
  2145. },
  2146. e.COMMENT(/<!--/, /-->/, { relevance: 10 }),
  2147. { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 },
  2148. s,
  2149. { className: 'meta', end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [l] }, { begin: /<\?[a-z][a-z0-9]+/ }] },
  2150. {
  2151. className: 'tag',
  2152. begin: /<style(?=\s|>)/,
  2153. end: />/,
  2154. keywords: { name: 'style' },
  2155. contains: [r],
  2156. starts: { end: /<\/style>/, returnEnd: !0, subLanguage: ['css', 'xml'] }
  2157. },
  2158. {
  2159. className: 'tag',
  2160. begin: /<script(?=\s|>)/,
  2161. end: />/,
  2162. keywords: { name: 'script' },
  2163. contains: [r],
  2164. starts: { end: /<\/script>/, returnEnd: !0, subLanguage: ['javascript', 'handlebars', 'xml'] }
  2165. },
  2166. { className: 'tag', begin: /<>|<\/>/ },
  2167. {
  2168. className: 'tag',
  2169. begin: a.concat(/</, a.lookahead(a.concat(n, a.either(/\/>/, />/, /\s/)))),
  2170. end: /\/?>/,
  2171. contains: [{ className: 'name', begin: n, relevance: 0, starts: r }]
  2172. },
  2173. {
  2174. className: 'tag',
  2175. begin: a.concat(/<\//, a.lookahead(a.concat(n, />/))),
  2176. contains: [
  2177. { className: 'name', begin: n, relevance: 0 },
  2178. { begin: />/, relevance: 0, endsParent: !0 }
  2179. ]
  2180. }
  2181. ]
  2182. };
  2183. };
  2184. })();
  2185. hljs.registerLanguage('xml', e);
  2186. })();
  2187. /*! `markdown` grammar compiled for Highlight.js 11.5.1 */ (() => {
  2188. var e = (() => {
  2189. 'use strict';
  2190. return (e) => {
  2191. const n = { begin: /<\/?[A-Za-z_]/, end: '>', subLanguage: 'xml', relevance: 0 },
  2192. a = {
  2193. variants: [
  2194. { begin: /\[.+?\]\[.*?\]/, relevance: 0 },
  2195. { begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, relevance: 2 },
  2196. { begin: e.regex.concat(/\[.+?\]\(/, /[A-Za-z][A-Za-z0-9+.-]*/, /:\/\/.*?\)/), relevance: 2 },
  2197. { begin: /\[.+?\]\([./?&#].*?\)/, relevance: 1 },
  2198. { begin: /\[.*?\]\(.*?\)/, relevance: 0 }
  2199. ],
  2200. returnBegin: !0,
  2201. contains: [
  2202. { match: /\[(?=\])/ },
  2203. { className: 'string', relevance: 0, begin: '\\[', end: '\\]', excludeBegin: !0, returnEnd: !0 },
  2204. { className: 'link', relevance: 0, begin: '\\]\\(', end: '\\)', excludeBegin: !0, excludeEnd: !0 },
  2205. { className: 'symbol', relevance: 0, begin: '\\]\\[', end: '\\]', excludeBegin: !0, excludeEnd: !0 }
  2206. ]
  2207. },
  2208. i = {
  2209. className: 'strong',
  2210. contains: [],
  2211. variants: [
  2212. { begin: /_{2}/, end: /_{2}/ },
  2213. { begin: /\*{2}/, end: /\*{2}/ }
  2214. ]
  2215. },
  2216. s = {
  2217. className: 'emphasis',
  2218. contains: [],
  2219. variants: [
  2220. { begin: /\*(?!\*)/, end: /\*/ },
  2221. { begin: /_(?!_)/, end: /_/, relevance: 0 }
  2222. ]
  2223. },
  2224. c = e.inherit(i, { contains: [] }),
  2225. t = e.inherit(s, { contains: [] });
  2226. i.contains.push(t), s.contains.push(c);
  2227. let g = [n, a];
  2228. return (
  2229. [i, s, c, t].forEach((e) => {
  2230. e.contains = e.contains.concat(g);
  2231. }),
  2232. (g = g.concat(i, s)),
  2233. {
  2234. name: 'Markdown',
  2235. aliases: ['md', 'mkdown', 'mkd'],
  2236. contains: [
  2237. {
  2238. className: 'section',
  2239. variants: [
  2240. { begin: '^#{1,6}', end: '$', contains: g },
  2241. { begin: '(?=^.+?\\n[=-]{2,}$)', contains: [{ begin: '^[=-]*$' }, { begin: '^', end: '\\n', contains: g }] }
  2242. ]
  2243. },
  2244. n,
  2245. { className: 'bullet', begin: '^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)', end: '\\s+', excludeEnd: !0 },
  2246. i,
  2247. s,
  2248. { className: 'quote', begin: '^>\\s+', contains: g, end: '$' },
  2249. {
  2250. className: 'code',
  2251. variants: [
  2252. { begin: '(`{3,})[^`](.|\\n)*?\\1`*[ ]*' },
  2253. { begin: '(~{3,})[^~](.|\\n)*?\\1~*[ ]*' },
  2254. { begin: '```', end: '```+[ ]*$' },
  2255. { begin: '~~~', end: '~~~+[ ]*$' },
  2256. { begin: '`.+?`' },
  2257. { begin: '(?=^( {4}|\\t))', contains: [{ begin: '^( {4}|\\t)', end: '(\\n)$' }], relevance: 0 }
  2258. ]
  2259. },
  2260. { begin: '^[-\\*]{3,}', end: '$' },
  2261. a,
  2262. {
  2263. begin: /^\[[^\n]+\]:/,
  2264. returnBegin: !0,
  2265. contains: [
  2266. { className: 'symbol', begin: /\[/, end: /\]/, excludeBegin: !0, excludeEnd: !0 },
  2267. { className: 'link', begin: /:\s*/, end: /$/, excludeBegin: !0 }
  2268. ]
  2269. }
  2270. ]
  2271. }
  2272. );
  2273. };
  2274. })();
  2275. hljs.registerLanguage('markdown', e);
  2276. })();
  2277. /*! `json` grammar compiled for Highlight.js 11.5.1 */ (() => {
  2278. var e = (() => {
  2279. 'use strict';
  2280. return (e) => ({
  2281. name: 'JSON',
  2282. contains: [
  2283. { className: 'attr', begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, relevance: 1.01 },
  2284. { match: /[{}[\],:]/, className: 'punctuation', relevance: 0 },
  2285. e.QUOTE_STRING_MODE,
  2286. { beginKeywords: 'true false null' },
  2287. e.C_NUMBER_MODE,
  2288. e.C_LINE_COMMENT_MODE,
  2289. e.C_BLOCK_COMMENT_MODE
  2290. ],
  2291. illegal: '\\S'
  2292. });
  2293. })();
  2294. hljs.registerLanguage('json', e);
  2295. })();