|
|
|
!function (e) { var n = "object" == typeof window && window || "object" == typeof self && self; "undefined" == typeof exports || exports.nodeType ? n && (n.hljs = e({}), "function" == typeof define && define.amd && define([], function () { return n.hljs })) : e(exports) }(function (a) { var f = [], o = Object.keys, _ = {}, g = {}, C = !0, n = /^(no-?highlight|plain|text)$/i, E = /\blang(?:uage)?-([\w-]+)\b/i, t = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, r = { case_insensitive: "cI", lexemes: "l", contains: "c", keywords: "k", subLanguage: "sL", className: "cN", begin: "b", beginKeywords: "bK", end: "e", endsWithParent: "eW", illegal: "i", excludeBegin: "eB", excludeEnd: "eE", returnBegin: "rB", returnEnd: "rE", variants: "v", IDENT_RE: "IR", UNDERSCORE_IDENT_RE: "UIR", NUMBER_RE: "NR", C_NUMBER_RE: "CNR", BINARY_NUMBER_RE: "BNR", RE_STARTERS_RE: "RSR", BACKSLASH_ESCAPE: "BE", APOS_STRING_MODE: "ASM", QUOTE_STRING_MODE: "QSM", PHRASAL_WORDS_MODE: "PWM", C_LINE_COMMENT_MODE: "CLCM", C_BLOCK_COMMENT_MODE: "CBCM", HASH_COMMENT_MODE: "HCM", NUMBER_MODE: "NM", C_NUMBER_MODE: "CNM", BINARY_NUMBER_MODE: "BNM", CSS_NUMBER_MODE: "CSSNM", REGEXP_MODE: "RM", TITLE_MODE: "TM", UNDERSCORE_TITLE_MODE: "UTM", COMMENT: "C", beginRe: "bR", endRe: "eR", illegalRe: "iR", lexemesRe: "lR", terminators: "t", terminator_end: "tE" }, m = "</span>", O = "Could not find the language '{}', did you forget to load/include a language module?", B = { classPrefix: "hljs-", tabReplace: null, useBR: !1, languages: void 0 }, c = "of and for in not or if then".split(" "); function x(e) { return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">") } function d(e) { return e.nodeName.toLowerCase() } function R(e) { return n.test(e) } function i(e) { var n, t = {}, r = Array.prototype.slice.call(arguments, 1); for (n in e) t[n] = e[n]; return r.forEach(function (e) { for (n in e) t[n] = e[n] }), t } function p(e) { var a = []; return function e(n, t) { for (var r = n.firstChild; r; r = r.nextSibling)3 === r.nodeType ? t += r.nodeValue.length : 1 === r.nodeType && (a.push({ event: "start", offset: t, node: r }), t = e(r, t), d(r).match(/br|hr|img|input/) || a.push({ event: "stop", offset: t, node: r })); return t }(e, 0), a } function v(e, n, t) { var r = 0, a = "", i = []; function o() { return e.length && n.length ? e[0].offset !== n[0].offset ? e[0].offset < n[0].offset ? e : n : "start" === n[0].event ? e : n : e.length ? e : n } function c(e) { a += "<" + d(e) + f.map.call(e.attributes, function (e) { return " " + e.nodeName + '="' + x(e.value).replace(/"/g, """) + '"' }).join("") + ">" } function l(e) { a += "</" + d(e) + ">" } function u(e) { ("start" === e.event ? c : l)(e.node) } for (; e.length || n.length;) { var s = o(); if (a += x(t.substring(r, s[0].offset)), r = s[0].offset, s === e) { for (i.reverse().forEach(l); u(s.splice(0, 1)[0]), (s = o()) === e && s.length && s[0].offset === r;); i.reverse().forEach(c) } else "start" === s[0].event ? i.push(s[0].node) : i.pop(), u(s.splice(0, 1)[0]) } return a + x(t.substr(r)) } function l(n) { return n.v && !n.cached_variants && (n.cached_variants = n.v.map(function (e) { return i(n, { v: null }, e) })), n.cached_variants ? n.cached_variants : function e(n) { return !!n && (n.eW || e(n.starts)) }(n) ? [i(n, { starts: n.starts ? i(n.starts) : null })] : Object.isFrozen(n) ? [i(n)] : [n] } function u(e) { if (r && !e.langApiRestored) { for (var n in e.langApiRestored = !0, r) e[n] && (e[r[n]] = e[n]); (e.c || []).concat(e.v || []).forEach(u) } } function M(n, t) { var i = {}; return "string" == typeof n ? r("keyword", n) : o(n).forEach(function (e) { r(e, n[e]) }), i; function r(a, e) { t && (e = e.toLowerCase()), e.split(" ").forEach(function (e) { var n, t, r = e.split("|"); i[r[0]] = [a, (n = r[0], (t = r[1]) ? Number(t) : function (e) { return -1 != c.indexOf(e.toLowerCase()) }(n) ? 0 : 1)] }) } } function S(r) { function s(e) { return e && e.source || e } function f(e, n) { return new RegExp(s(e), "m" + (r.cI ? "i" : "") + (n ? "g" : "")) } function a(a) { var i, e, o = {}, c = [], l = {},
|