2019-03-28 09:37:30 +01:00
|
|
|
!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(r){var i,h=[],l=Object.keys,v={},o={},t=/^(no-?highlight|plain|text)$/i,u=/\blang(?:uage)?-([\w-]+)\b/i,n=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,y="</span>",T={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(e){return e.nodeName.toLowerCase()}function b(e,t){var i=e&&e.exec(t);return i&&0===i.index}function _(e){return t.test(e)}function f(e){var t,i={},n=Array.prototype.slice.call(arguments,1);for(t in e)i[t]=e[t];return n.forEach(function(e){for(t in e)i[t]=e[t]}),i}function p(e){var r=[];return function e(t,i){for(var n=t.firstChild;n;n=n.nextSibling)3===n.nodeType?i+=n.nodeValue.length:1===n.nodeType&&(r.push({event:"start",offset:i,node:n}),i=e(n,i),c(n).match(/br|hr|img|input/)||r.push({event:"stop",offset:i,node:n}));return i}(e,0),r}function s(e){if(i&&!e.langApiRestored){for(var t in e.langApiRestored=!0,i)e[t]&&(e[i[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(s)}}function P(a){function u(e){return e&&e.source||e}function o(e,t){return new RegExp(u(e),"m"+(a.case_insensitive?"i":"")+(t?"g":""))}!function t(i,e){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var n={},r=function(i,e){a.case_insensitive&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var t=e.split("|");n[t[0]]=[i,t[1]?Number(t[1]):1]})};"string"==typeof i.keywords?r("keyword",i.keywords):l(i.keywords).forEach(function(e){r(e,i.keywords[e])}),i.keywords=n}i.lexemesRe=o(i.lexemes||/\w+/,!0),e&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=o(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=o(i.end)),i.terminator_end=u(i.end)||"",i.endsWithParent&&e.terminator_end&&(i.terminator_end+=(i.end?"|":"")+e.terminator_end)),i.illegal&&(i.illegalRe=o(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map(function(e){return function(t){return t.variants&&!t.cached_variants&&(t.cached_variants=t.variants.map(function(e){return f(t,{variants:null},e)})),t.cached_variants||t.endsWithParent&&[f(t)]||[t]}("self"===e?i:e)})),i.contains.forEach(function(e){t(e,i)}),i.starts&&t(i.starts,e);var s=i.contains.map(function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(u).filter(Boolean);i.terminators=s.length?o(function(e,t){for(var i=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,n=0,r="",s=0;s<e.length;s++){var a=n,o=u(e[s]);for(0<s&&(r+=t);0<o.length;){var l=i.exec(o);if(null==l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),"\\"==l[0][0]&&l[1]?r+="\\"+String(Number(l[1])+a):(r+=l[0],"("==l[0]&&n++)}}return r}(s,"|"),!0):{exec:function(){return null}}}}(a)}function E(e,t,s,i){function o(e,t,i,n){var r='<span class="'+(n?"":T.classPrefix);return(r+=e+'">')+t+(i?"":y)}function a(){c+=null!=_.subLanguage?function(){var e="string"==typeof _.subLanguage;if(e&&!v[_.subLanguage])return w(f);var t=e?E(_.subLanguage,f,!0,h[_.subLanguage]):S(f,_.subLanguage.length?_.subLanguage:void 0);return 0<_.relevance&&(p+=t.relevance),e&&(h[_.subLanguage]=t.top),o(t.language,t.value,!1,!0)}():function(){var e,t,i,n,r,s,a;if(!_.keywords)return w(f);for(n="",t=0,_.lexemesRe.lastIndex=0,i=_.lexemesRe.exec(f);i;)n+=w(f.substring(t,i.index)),r=_,s=i,a=u.case_insensitive?s[0].toLowerCase():s[0],(e=r.keywords.hasOwnProperty(a)&&r.keywords[a])?(p+=e[1],n+=o(e[0],w(i[0]))):n+=w(i[0]),t=_.lexemesRe.lastIndex,i=_.lexemesRe.exec(f);return n+w(f.substr(t))}(),f=""}function l(e){c+=e.className?o(e.className,"",!0):"",_=Object.create(e,{parent:{value:_}})}function n(e,t){if(f+=e,null==t)return a(),0;var i=function(e,t){var i,n,r;for(i=0,n=t.contain
|