You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
173 KiB
JavaScript

!function(){var n={213:function(e,t,n){var a,i,g,r,o,s,l,d,u,c,p,b,f,h,E,_,m,S,y,A,w,v,T,k,I,R,O,N,C,L,D,x,P,F,M,B=function(l){var d=/\blang(?:uage)?-([\w-]+)\b/i,t=0,e={},N={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof C?new C(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,a){var i,t;switch(a=a||{},N.util.type(e)){case"Object":if(t=N.util.objId(e),a[t])return a[t];for(var r in a[t]=i={},e)e.hasOwnProperty(r)&&(i[r]=n(e[r],a));return i;case"Array":return t=N.util.objId(e),a[t]||(a[t]=i=[],e.forEach(function(e,t){i[t]=n(e,a)}),i);default:return e}},getLanguage:function(e){for(;e&&!d.test(e.className);)e=e.parentElement;return e?(e.className.match(d)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(t){var n,a=document.getElementsByTagName("script");for(n in a)if(a[n].src==t)return a[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:e,plaintext:e,text:e,txt:e,extend:function(e,t){var n,a=N.util.clone(N.languages[e]);for(n in t)a[n]=t[n];return a},insertBefore:function(n,e,t,a){var i,r=(a=a||N.languages)[n],o={};for(i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);t.hasOwnProperty(i)||(o[i]=r[i])}var l=a[n];return a[n]=o,N.languages.DFS(N.languages,function(e,t){t===l&&e!=n&&(this[e]=o)}),o},DFS:function e(t,n,a,i){i=i||{};var r,o,s,l=N.util.objId;for(r in t)t.hasOwnProperty(r)&&(n.call(t,r,t[r],a||r),o=t[r],"Object"!==(s=N.util.type(o))||i[l(o)]?"Array"!==s||i[l(o)]||(i[l(o)]=!0,e(o,n,r,i)):(i[l(o)]=!0,e(o,n,null,i)))}},plugins:{},highlightAll:function(e,t){N.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};N.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),N.hooks.run("before-all-elements-highlight",a);for(var i,r=0;i=a.elements[r++];)N.highlightElement(i,!0===t,a.callback)},highlightElement:function(e,t,n){var a=N.util.getLanguage(e),i=N.languages[a];e.className=e.className.replace(d,"").replace(/\s+/g," ")+" language-"+a;var r=e.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&(r.className=r.className.replace(d,"").replace(/\s+/g," ")+" language-"+a);var o={element:e,language:a,grammar:i,code:e.textContent};function s(e){o.highlightedCode=e,N.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,N.hooks.run("after-highlight",o),N.hooks.run("complete",o),n&&n.call(o.element)}if(N.hooks.run("before-sanity-check",o),(r=o.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!o.code)return N.hooks.run("complete",o),void(n&&n.call(o.element));N.hooks.run("before-highlight",o),o.grammar?t&&l.Worker?((t=new Worker(N.filename)).onmessage=function(e){s(e.data)},t.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))):s(N.highlight(o.code,o.grammar,o.language)):s(N.util.encode(o.code))},highlight:function(e,t,n){n={code:e,grammar:t,language:n};return N.hooks.run("before-tokenize",n),n.tokens=N.tokenize(n.code,n.grammar),N.hooks.run("after-tokenize",n),C.stringify(N.util.encode(n.tokens),n.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var i=new r;return D(i,i.head,e),function e(t,n,a,i,r,o){for(var s in a)if(a.hasOwnProperty(s)&&a[s])for(va