1
2
3
4
5
|
(()=>{var nt=Object.create;var Mr=Object.defineProperty;var st=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var pt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var ct=(r,t,a,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let g of lt(t))!bt.call(r,g)&&g!==a&&Mr(r,g,{get:()=>t[g],enumerable:!(d=st(t,g))||d.enumerable});return r};var mt=(r,t,a)=>(a=r!=null?nt(dt(r)):{},ct(t||!r||!r.__esModule?Mr(a,"default",{value:r,enumerable:!0}):a,r));var Zr=pt((eo,Yr)=>{function Cr(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(t=>{let a=r[t],d=typeof a;(d==="object"||d==="function")&&!Object.isFrozen(a)&&Cr(a)}),r}var lr=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Lr(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(r,...t){let a=Object.create(null);for(let d in r)a[d]=r[d];return t.forEach(function(d){for(let g in d)a[g]=d[g]}),a}var gt="</span>",Or=r=>!!r.scope,ft=(r,{prefix:t})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){let a=r.split(".");return[`${t}${a.shift()}`,...a.map((d,g)=>`${d}${"_".repeat(g+1)}`)].join(" ")}return`${t}${r}`},vr=class{constructor(t,a){this.buffer="",this.classPrefix=a.classPrefix,t.walk(this)}addText(t){this.buffer+=Lr(t)}openNode(t){if(!Or(t))return;let a=ft(t.scope,{prefix:this.classPrefix});this.span(a)}closeNode(t){Or(t)&&(this.buffer+=gt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Sr=(r={})=>{let t={children:[]};return Object.assign(t,r),t},hr=class r{constructor(){this.rootNode=Sr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let a=Sr({scope:t});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,a){return typeof a=="string"?t.addText(a):a.children&&(t.openNode(a),a.children.forEach(d=>this._walk(t,d)),t.closeNode(a)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(a=>typeof a=="string")?t.children=[t.children.join("")]:t.children.forEach(a=>{r._collapse(a)}))}},xr=class extends hr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,a){let d=t.root;a&&(d.scope=`language:${a}`),this.add(d)}toHTML(){return new vr(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function Q(r){return r?typeof r=="string"?r:r.source:null}function Dr(r){return G("(?=",r,")")}function ut(r){return G("(?:",r,")*")}function vt(r){return G("(?:",r,")?")}function G(...r){return r.map(a=>Q(a)).join("")}function ht(r){let t=r[r.length-1];return typeof t=="object"&&t.constructor===Object?(r.splice(r.length-1,1),t):{}}function yr(...r){return"("+(ht(r).capture?"":"?:")+r.map(d=>Q(d)).join("|")+")"}function Gr(r){return new RegExp(r.toString()+"|").exec("").length-1}function xt(r,t){let a=r&&r.exec(t);return a&&a.index===0}var wt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function kr(r,{joinWith:t}){let a=0;return r.map(d=>{a+=1;let g=a,h=Q(d),n="";for(;h.length>0;){let i=wt.exec(h);if(!i){n+=h;break}n+=h.substring(0,i.index),h=h.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?n+="\\"+String(Number(i[1])+g):(n+=i[0],i[0]==="("&&a++)}return n}).map(d=>`(${d})`).join(t)}var yt=/\b\B/,Ur="[a-zA-Z]\\w*",zr="[a-zA-Z_]\\w*",Pr="\\b\\d+(\\.\\d+)?",Hr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Fr="\\b(0b[01]+)",kt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zt=(r={})=>{let t=/^#![ ]*\//;return r.binary&&(r.begin=G(t,/.*\b/,r.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(a,d)=>{a.index!==0&&d.ignoreMatch()}},r)},V={begin:"\\\\[\\s\\S]",relevance:0},Et={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},_t={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},jt={begin:/\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/},br=function(r,t,a={}){let d=T({scope:"comment",begin:r,end:t,contains:[]},a);d.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let g=yr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return d.contains.push({begin:G(/[ ]+/,"(",g,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),d},Rt=br("//","$"),At=br("/\\*","\\*/"),Mt=br("#","$"),Ot={scope:"number",begin:Pr,relevance:0},St={scope:"number",begin:Hr,relevance:0},Bt={scope:"number",begin:Fr,relevance:0},Nt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},It={scope:"title",begin:Ur,relevance:0},Tt={scope:"title",begin:zr,relevance:0},Ct={begin:"\\.\\s*"+zr,relevance:0},Lt=function(r){return Object.assign(r,{"on:begin":(t,a)=>{a.data._beginMatch=t[1]},"on:end":(t,a)=>{a.data._beginMatch!==t[1]&&a.ignoreMatch()}})},sr=Object.freeze({__proto__:null,APOS_STRING_MODE:Et,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:Bt,BINARY_NUMBER_RE:Fr,COMMENT:br,C_BLOCK_COMMENT_MODE:At,C_LINE_COMMENT_MODE:Rt,C_NUMBER_MODE:St,C_NUMBER_RE:Hr,END_SAME_AS_BEGIN:Lt,HASH_COMMENT_MODE:Mt,IDENT_RE:Ur,MATCH_NOTHING_RE:yt,METHOD_GUARD:Ct,NUMBER_MODE:Ot,NUMBER_RE:Pr,PHRASAL_WORDS_MODE:jt,QUOTE_STRING_MODE:_t,REGEXP_MODE:Nt,RE_STARTERS_RE:kt,SHEBANG:zt,TITLE_MODE:It,UNDERSCORE_IDENT_RE:zr,UNDERSCORE_TITLE_MODE:Tt});function Dt(r,t){r.input[r.index-1]==="."&&t.ignoreMatch()}function Gt(r,t){r.className!==void 0&&(r.scope=r.className,delete r.className)}function Ut(r,t){t&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=Dt,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function Pt(r,t){Array.isArray(r.illegal)&&(r.illegal=yr(...r.illegal))}function Ht(r,t){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function Ft(r,t){r.relevance===void 0&&(r.relevance=1)}var $t=(r,t)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");let a=Object.assign({},r);Object.keys(r).forEach(d=>{delete r[d]}),r.keywords=a.keywords,r.begin=G(a.beforeMatch,Dr(a.begin)),r.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},r.relevance=0,delete a.beforeMatch},Xt=["of","and","for","in","not","or","if","then","parent","list","value"],Kt="keyword";function $r(r,t,a=Kt){let d=Object.create(null);return typeof r=="string"?g(a,r.split(" ")):Array.isArray(r)?g(a,r):Object.keys(r).forEach(function(h){Object.assign(d,$r(r[h],t,h))}),d;function g(h,n){t&&(n=n.map(i=>i.toLowerCase())),n.forEach(function(i){let b=i.split("|");d[b[0]]=[h,Wt(b[0],b[1])]})}}function Wt(r,t){return t?Number(t):Yt(r)?0:1}function Yt(r){return Xt.includes(r.toLowerCase())}var Br={},D=r=>{console.error(r)},Nr=(r,...t)=>{console.log(`WARN: ${r}`,...t)},H=(r,t)=>{Br[`${r}/${t}`]||(console.log(`Deprecated as of ${r}. ${t}`),Br[`${r}/${t}`]=!0)},dr=new Error;function Xr(r,t,{key:a}){let d=0,g=r[a],h={},n={};for(let i=1;i<=t.length;i++)n[i+d]=g[i],h[i+d]=!0,d+=Gr(t[i-1]);r[a]=n,r[a]._emit=h,r[a]._multi=!0}function Zt(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw D("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),dr;if(typeof r.beginScope!="object"||r.beginScope===null)throw D("beginScope must be object"),dr;Xr(r,r.begin,{key:"beginScope"}),r.begin=kr(r.begin,{joinWith:""})}}function qt(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw D("skip, excludeEnd, returnEnd not compatible with endScope: {}"),dr;if(typeof r.endScope!="object"||r.endScope===null)throw D("endScope must be object"),dr;Xr(r,r.end,{key:"endScope"}),r.end=kr(r.end,{joinWith:""})}}function Qt(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function Vt(r){Qt(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),Zt(r),qt(r)}function Jt(r){function t(n,i){return new RegExp(Q(n),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(i?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,b){b.position=this.position++,this.matchIndexes[this.matchAt]=b,this.regexes.push([b,i]),this.matchAt+=Gr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let i=this.regexes.map(b=>b[1]);this.matcherRe=t(kr(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;let b=this.matcherRe.exec(i);if(!b)return null;let w=b.findIndex((C,$)=>$>0&&C!==void 0),x=this.matchIndexes[w];return b.splice(0,w),Object.assign(b,x)}}class d{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];let b=new a;return this.rules.slice(i).forEach(([w,x])=>b.addRule(w,x)),b.compile(),this.multiRegexes[i]=b,b}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,b){this.rules.push([i,b]),b.type==="begin"&&this.count++}exec(i){let b=this.getMatcher(this.regexIndex);b.lastIndex=this.lastIndex;let w=b.exec(i);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){let x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,w=x.exec(i)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function g(n){let i=new d;return n.contains.forEach(b=>i.addRule(b.begin,{rule:b,type:"begin"})),n.terminatorEnd&&i.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&i.addRule(n.illegal,{type:"illegal"}),i}function h(n,i){let b=n;if(n.isCompiled)return b;[Gt,Ht,Vt,$t].forEach(x=>x(n,i)),r.compilerExtensions.forEach(x=>x(n,i)),n.__beforeBegin=null,[Ut,Pt,Ft].forEach(x=>x(n,i)),n.isCompiled=!0;let w=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),w=n.keywords.$pattern,delete n.keywords.$pattern),w=w||/\w+/,n.keywords&&(n.keywords=$r(n.keywords,r.case_insensitive)),b.keywordPatternRe=t(w,!0),i&&(n.begin||(n.begin=/\B|\b/),b.beginRe=t(b.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(b.endRe=t(b.end)),b.terminatorEnd=Q(b.end)||"",n.endsWithParent&&i.terminatorEnd&&(b.terminatorEnd+=(n.end?"|":"")+i.terminatorEnd)),n.illegal&&(b.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(x){return ro(x==="self"?n:x)})),n.contains.forEach(function(x){h(x,b)}),n.starts&&h(n.starts,i),b.matcher=g(b),b}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=T(r.classNameAliases||{}),h(r)}function Kr(r){return r?r.endsWithParent||Kr(r.starts):!1}function ro(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(t){return T(r,{variants:null},t)})),r.cachedVariants?r.cachedVariants:Kr(r)?T(r,{starts:r.starts?T(r.starts):null}):Object.isFrozen(r)?T(r):r}var to="11.11.1",wr=class extends Error{constructor(t,a){super(t),this.name="HTMLInjectionError",this.html=a}},ur=Lr,Ir=T,Tr=Symbol("nomatch"),oo=7,Wr=function(r){let t=Object.create(null),a=Object.create(null),d=[],g=!0,h="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]},i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:xr};function b(o){return i.noHighlightRe.test(o)}function w(o){let l=o.className+" ";l+=o.parentNode?o.parentNode.className:"";let m=i.languageDetectRe.exec(l);if(m){let u=E(m[1]);return u||(Nr(h.replace("{}",m[1])),Nr("Falling back to no-highlight mode for this block.",o)),u?m[1]:"no-highlight"}return l.split(/\s+/).find(u=>b(u)||E(u))}function x(o,l,m){let u="",y="";typeof l=="object"?(u=o,m=l.ignoreIllegals,y=l.language):(H("10.7.0","highlight(lang, code, ...args) has been deprecated."),H("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),y=o,u=l),m===void 0&&(m=!0);let A={code:u,language:y};_("before:highlight",A);let I=A.result?A.result:C(A.language,A.code,m);return I.code=A.code,_("after:highlight",I),I}function C(o,l,m,u){let y=Object.create(null);function A(e,s){return e.keywords[s]}function I(){if(!p.keywords){k.addText(v);return}let e=0;p.keywordPatternRe.lastIndex=0;let s=p.keywordPatternRe.exec(v),c="";for(;s;){c+=v.substring(e,s.index);let f=O.case_insensitive?s[0].toLowerCase():s[0],z=A(p,f);if(z){let[S,et]=z;if(k.addText(c),c="",y[f]=(y[f]||0)+1,y[f]<=oo&&(nr+=et),S.startsWith("_"))c+=s[0];else{let it=O.classNameAliases[S]||S;M(s[0],it)}}else c+=s[0];e=p.keywordPatternRe.lastIndex,s=p.keywordPatternRe.exec(v)}c+=v.substring(e),k.addText(c)}function er(){if(v==="")return;let e=null;if(typeof p.subLanguage=="string"){if(!t[p.subLanguage]){k.addText(v);return}e=C(p.subLanguage,v,!0,Ar[p.subLanguage]),Ar[p.subLanguage]=e._top}else e=U(v,p.subLanguage.length?p.subLanguage:null);p.relevance>0&&(nr+=e.relevance),k.__addSublanguage(e._emitter,e.language)}function R(){p.subLanguage!=null?er():I(),v=""}function M(e,s){e!==""&&(k.startScope(s),k.addText(e),k.endScope())}function Er(e,s){let c=1,f=s.length-1;for(;c<=f;){if(!e._emit[c]){c++;continue}let z=O.classNameAliases[e[c]]||e[c],S=s[c];z?M(S,z):(v=S,I(),v=""),c++}}function _r(e,s){return e.scope&&typeof e.scope=="string"&&k.openNode(O.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(M(v,O.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),v=""):e.beginScope._multi&&(Er(e.beginScope,s),v="")),p=Object.create(e,{parent:{value:p}}),p}function jr(e,s,c){let f=xt(e.endRe,c);if(f){if(e["on:end"]){let z=new lr(e);e["on:end"](s,z),z.isMatchIgnored&&(f=!1)}if(f){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return jr(e.parent,s,c)}function Jr(e){return p.matcher.regexIndex===0?(v+=e[0],1):(fr=!0,0)}function rt(e){let s=e[0],c=e.rule,f=new lr(c),z=[c.__beforeBegin,c["on:begin"]];for(let S of z)if(S&&(S(e,f),f.isMatchIgnored))return Jr(s);return c.skip?v+=s:(c.excludeBegin&&(v+=s),R(),!c.returnBegin&&!c.excludeBegin&&(v=s)),_r(c,e),c.returnBegin?0:s.length}function tt(e){let s=e[0],c=l.substring(e.index),f=jr(p,e,c);if(!f)return Tr;let z=p;p.endScope&&p.endScope._wrap?(R(),M(s,p.endScope._wrap)):p.endScope&&p.endScope._multi?(R(),Er(p.endScope,e)):z.skip?v+=s:(z.returnEnd||z.excludeEnd||(v+=s),R(),z.excludeEnd&&(v=s));do p.scope&&k.closeNode(),!p.skip&&!p.subLanguage&&(nr+=p.relevance),p=p.parent;while(p!==f.parent);return f.starts&&_r(f.starts,e),z.returnEnd?0:s.length}function ot(){let e=[];for(let s=p;s!==O;s=s.parent)s.scope&&e.unshift(s.scope);e.forEach(s=>k.openNode(s))}let ir={};function Rr(e,s){let c=s&&s[0];if(v+=e,c==null)return R(),0;if(ir.type==="begin"&&s.type==="end"&&ir.index===s.index&&c===""){if(v+=l.slice(s.index,s.index+1),!g){let f=new Error(`0 width match regex (${o})`);throw f.languageName=o,f.badRule=ir.rule,f}return 1}if(ir=s,s.type==="begin")return rt(s);if(s.type==="illegal"&&!m){let f=new Error('Illegal lexeme "'+c+'" for mode "'+(p.scope||"<unnamed>")+'"');throw f.mode=p,f}else if(s.type==="end"){let f=tt(s);if(f!==Tr)return f}if(s.type==="illegal"&&c==="")return v+=`
`,1;if(gr>1e5&&gr>s.index*3)throw new Error("potential infinite loop, way more iterations than matches");return v+=c,c.length}let O=E(o);if(!O)throw D(h.replace("{}",o)),new Error('Unknown language: "'+o+'"');let at=Jt(O),mr="",p=u||at,Ar={},k=new i.__emitter(i);ot();let v="",nr=0,L=0,gr=0,fr=!1;try{if(O.__emitTokens)O.__emitTokens(l,k);else{for(p.matcher.considerAll();;){gr++,fr?fr=!1:p.matcher.considerAll(),p.matcher.lastIndex=L;let e=p.matcher.exec(l);if(!e)break;let s=l.substring(L,e.index),c=Rr(s,e);L=e.index+c}Rr(l.substring(L))}return k.finalize(),mr=k.toHTML(),{language:o,value:mr,relevance:nr,illegal:!1,_emitter:k,_top:p}}catch(e){if(e.message&&e.message.includes("Illegal"))return{language:o,value:ur(l),illegal:!0,relevance:0,_illegalBy:{message:e.message,index:L,context:l.slice(L-100,L+100),mode:e.mode,resultSoFar:mr},_emitter:k};if(g)return{language:o,value:ur(l),illegal:!1,relevance:0,errorRaised:e,_emitter:k,_top:p};throw e}}function $(o){let l={value:ur(o),illegal:!1,relevance:0,_top:n,_emitter:new i.__emitter(i)};return l._emitter.addText(o),l}function U(o,l){l=l||i.languages||Object.keys(t);let m=$(o),u=l.filter(E).filter(q).map(R=>C(R,o,!1));u.unshift(m);let y=u.sort((R,M)=>{if(R.relevance!==M.relevance)return M.relevance-R.relevance;if(R.language&&M.language){if(E(R.language).supersetOf===M.language)return 1;if(E(M.language).supersetOf===R.language)return-1}return 0}),[A,I]=y,er=A;return er.secondBest=I,er}function P(o,l,m){let u=l&&a[l]||m;o.classList.add("hljs"),o.classList.add(`language-${u}`)}function B(o){let l=null,m=w(o);if(b(m))return;if(_("before:highlightElement",{el:o,language:m}),o.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",o);return}if(o.children.length>0&&(i.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(o)),i.throwUnescapedHTML))throw new wr("One of your code blocks includes unescaped HTML.",o.innerHTML);l=o;let u=l.textContent,y=m?x(u,{language:m,ignoreIllegals:!0}):U(u);o.innerHTML=y.value,o.dataset.highlighted="yes",P(o,m,y.language),o.result={language:y.language,re:y.relevance,relevance:y.relevance},y.secondBest&&(o.secondBest={language:y.secondBest.language,relevance:y.secondBest.relevance}),_("after:highlightElement",{el:o,result:y,text:u})}function X(o){i=Ir(i,o)}let J=()=>{N(),H("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function K(){N(),H("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let cr=!1;function N(){function o(){N()}if(document.readyState==="loading"){cr||window.addEventListener("DOMContentLoaded",o,!1),cr=!0;return}document.querySelectorAll(i.cssSelector).forEach(B)}function W(o,l){let m=null;try{m=l(r)}catch(u){if(D("Language definition for '{}' could not be registered.".replace("{}",o)),g)D(u);else throw u;m=n}m.name||(m.name=o),t[o]=m,m.rawDefinition=l.bind(null,r),m.aliases&&Z(m.aliases,{languageName:o})}function Y(o){delete t[o];for(let l of Object.keys(a))a[l]===o&&delete a[l]}function rr(){return Object.keys(t)}function E(o){return o=(o||"").toLowerCase(),t[o]||t[a[o]]}function Z(o,{languageName:l}){typeof o=="string"&&(o=[o]),o.forEach(m=>{a[m.toLowerCase()]=l})}function q(o){let l=E(o);return l&&!l.disableAutodetect}function tr(o){o["before:highlightBlock"]&&!o["before:highlightElement"]&&(o["before:highlightElement"]=l=>{o["before:highlightBlock"](Object.assign({block:l.el},l))}),o["after:highlightBlock"]&&!o["after:highlightElement"]&&(o["after:highlightElement"]=l=>{o["after:highlightBlock"](Object.assign({block:l.el},l))})}function or(o){tr(o),d.push(o)}function ar(o){let l=d.indexOf(o);l!==-1&&d.splice(l,1)}function _(o,l){let m=o;d.forEach(function(u){u[m]&&u[m](l)})}function j(o){return H("10.7.0","highlightBlock will be removed entirely in v12.0"),H("10.7.0","Please use highlightElement now."),B(o)}Object.assign(r,{highlight:x,highlightAuto:U,highlightAll:N,highlightElement:B,highlightBlock:j,configure:X,initHighlighting:J,initHighlightingOnLoad:K,registerLanguage:W,unregisterLanguage:Y,listLanguages:rr,getLanguage:E,registerAliases:Z,autoDetection:q,inherit:Ir,addPlugin:or,removePlugin:ar}),r.debugMode=function(){g=!1},r.safeMode=function(){g=!0},r.versionString=to,r.regex={concat:G,lookahead:Dr,either:yr,optional:vt,anyNumberOfTimes:ut};for(let o in sr)typeof sr[o]=="object"&&Cr(sr[o]);return Object.assign(r,sr),r},F=Wr({});F.newInstance=()=>Wr({});Yr.exports=F;F.HighlightJS=F;F.default=F});var qr=mt(Zr(),1);var pr=qr.default;function Qr(r){let t=r.regex,a=/(?![A-Za-z0-9])(?![$])/,d=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),g=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),h=t.concat(/[A-Z]+/,a),n={scope:"variable",match:"\\$+"+d},i={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},b={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},w=r.inherit(r.APOS_STRING_MODE,{illegal:null}),x=r.inherit(r.QUOTE_STRING_MODE,{illegal:null,contains:r.QUOTE_STRING_MODE.contains.concat(b)}),C={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:r.QUOTE_STRING_MODE.contains.concat(b),"on:begin":(_,j)=>{j.data._beginMatch=_[1]||_[2]},"on:end":(_,j)=>{j.data._beginMatch!==_[1]&&j.ignoreMatch()}},$=r.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),U=`[
]`,P={scope:"string",variants:[x,w,C,$]},B={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},X=["false","null","true"],J=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],K=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],N={keyword:J,literal:(_=>{let j=[];return _.forEach(o=>{j.push(o),o.toLowerCase()===o?j.push(o.toUpperCase()):j.push(o.toLowerCase())}),j})(X),built_in:K},W=_=>_.map(j=>j.replace(/\|\d+$/,"")),Y={variants:[{match:[/new/,t.concat(U,"+"),t.concat("(?!",W(K).join("\\b|"),"\\b)"),g],scope:{1:"keyword",4:"title.class"}}]},rr=t.concat(d,"\\b(?!\\()"),E={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),rr],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[g,t.concat(/::/,t.lookahead(/(?!class\b)/)),rr],scope:{1:"title.class",3:"variable.constant"}},{match:[g,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[g,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Z={scope:"attr",match:t.concat(d,t.lookahead(":"),t.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:N,contains:[Z,n,E,r.C_BLOCK_COMMENT_MODE,P,B,Y]},tr={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",W(J).join("\\b|"),"|",W(K).join("\\b|"),"\\b)"),d,t.concat(U,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(tr);let or=[Z,E,r.C_BLOCK_COMMENT_MODE,P,B,Y],ar={begin:t.concat(/#\[\s*\\?/,t.either(g,h)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:X,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:X,keyword:["new","array"]},contains:["self",...or]},...or,{scope:"meta",variants:[{match:g},{match:h}]}]};return{case_insensitive:!1,keywords:N,contains:[ar,r.HASH_COMMENT_MODE,r.COMMENT("//","$"),r.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:r.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},i,{scope:"variable.language",match:/\$this\b/},n,tr,E,{match:[/const/,/\s/,d],scope:{1:"keyword",3:"variable.constant"}},Y,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},r.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:N,contains:["self",ar,n,E,r.C_BLOCK_COMMENT_MODE,P,B]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[r.inherit(r.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},r.UNDERSCORE_TITLE_MODE]},P,B]}}function Vr(r){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}document.addEventListener("DOMContentLoaded",()=>{pr.registerLanguage("php",Qr),pr.registerLanguage("plaintext",Vr),pr.highlightAll()});console.log("#Hooray!Albatross!");})();
//# sourceMappingURL=index.js.map
|