| 1 | /*! | | |
| 2 | Highlight.js v11.7.0 (git: 82688fad18) | | |
| 3 | (c) 2006-2022 undefined and other contributors | | |
| 4 | License: BSD-3-Clause | | |
| 5 | */ | | |
| 6 | var hljs=function(){"use strict";var e={exports:{}};function t(e){ | | |
| 7 | return e instanceof Map?e.clear=e.delete=e.set=()=>{ | | |
| 8 | throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{ | | |
| 9 | throw Error("set is read-only") | | |
| 10 | }),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((n=>{var i=e[n] | | |
| 11 | ;"object"!=typeof i||Object.isFrozen(i)||t(i)})),e} | | |
| 12 | e.exports=t,e.exports.default=t;class n{constructor(e){ | | |
| 13 | void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} | | |
| 14 | ignoreMatch(){this.isMatchIgnored=!0}}function i(e){ | | |
| 15 | return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'") | | |
| 16 | }function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t] | | |
| 17 | ;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n} | | |
| 18 | const s=e=>!!e.scope||e.sublanguage&&e.language;class o{constructor(e,t){ | | |
| 19 | this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){ | | |
| 20 | this.buffer+=i(e)}openNode(e){if(!s(e))return;let t="" | | |
| 21 | ;t=e.sublanguage?"language-"+e.language:((e,{prefix:t})=>{if(e.includes(".")){ | | |
| 22 | const n=e.split(".") | | |
| 23 | ;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ") | | |
| 24 | }return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)} | | |
| 25 | closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){ | | |
| 26 | this.buffer+=`<span class="${e}">`}}const a=(e={})=>{const t={children:[]} | | |
| 27 | ;return Object.assign(t,e),t};class c{constructor(){ | | |
| 28 | this.rootNode=a(),this.stack=[this.rootNode]}get top(){ | | |
| 29 | return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ | | |
| 30 | this.top.children.push(e)}openNode(e){const t=a({scope:e}) | | |
| 31 | ;this.add(t),this.stack.push(t)}closeNode(){ | | |
| 32 | if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ | | |
| 33 | for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} | | |
| 34 | walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){ | | |
| 35 | return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t), | | |
| 36 | t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){ | | |
| 37 | "string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ | | |
| 38 | c._collapse(e)})))}}class l extends c{constructor(e){super(),this.options=e} | | |
| 39 | addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())} | | |
| 40 | addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root | | |
| 41 | ;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){ | | |
| 42 | return new o(this,this.options).value()}finalize(){return!0}}function g(e){ | | |
| 43 | return e?"string"==typeof e?e:e.source:null}function d(e){return p("(?=",e,")")} | | |
| 44 | function u(e){return p("(?:",e,")*")}function h(e){return p("(?:",e,")?")} | | |
| 45 | function p(...e){return e.map((e=>g(e))).join("")}function f(...e){const t=(e=>{ | | |
| 46 | const t=e[e.length-1] | | |
| 47 | ;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{} | | |
| 48 | })(e);return"("+(t.capture?"":"?:")+e.map((e=>g(e))).join("|")+")"} | | |
| 49 | function b(e){return RegExp(e.toString()+"|").exec("").length-1} | | |
| 50 | const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./ | | |
| 51 | ;function E(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n | | |
| 52 | ;let i=g(e),r="";for(;i.length>0;){const e=m.exec(i);if(!e){r+=i;break} | | |
| 53 | r+=i.substring(0,e.index), | | |
| 54 | i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+(Number(e[1])+t):(r+=e[0], | | |
| 55 | "("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)} | | |
| 56 | const x="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",O="\\b(0b[01]+)",v={ | | |
| 57 | begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'", | | |
| 58 | illegal:"\\n",contains:[v]},k={scope:"string",begin:'"',end:'"',illegal:"\\n", | | |
| 59 | contains:[v]},M=(e,t,n={})=>{const i=r({scope:"comment",begin:e,end:t, | | |
| 60 | contains:[]},n);i.contains.push({scope:"doctag", | | |
| 61 | begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", | | |
| 62 | end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}) | | |
| 63 | ;const s=f("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,}/) | | |
| 64 | ;return i.contains.push({begin:p(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i | | |
| 65 | },S=M("//","$"),R=M("/\\*","\\*/"),j=M("#","$");var A=Object.freeze({ | | |
| 66 | __proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:x,UNDERSCORE_IDENT_RE:w, | | |
| 67 | NUMBER_RE:y,C_NUMBER_RE:_,BINARY_NUMBER_RE:O, | | |
| 68 | RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", | | |
| 69 | SHEBANG:(e={})=>{const t=/^#![ ]*\// | | |
| 70 | ;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t, | | |
| 71 | end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)}, | | |
| 72 | BACKSLASH_ESCAPE:v,APOS_STRING_MODE:N,QUOTE_STRING_MODE:k,PHRASAL_WORDS_MODE:{ | | |
| 73 | 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/ | | |
| 74 | },COMMENT:M,C_LINE_COMMENT_MODE:S,C_BLOCK_COMMENT_MODE:R,HASH_COMMENT_MODE:j, | | |
| 75 | NUMBER_MODE:{scope:"number",begin:y,relevance:0},C_NUMBER_MODE:{scope:"number", | | |
| 76 | begin:_,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:O,relevance:0}, | | |
| 77 | REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//, | | |
| 78 | end:/\/[gimuy]*/,illegal:/\n/,contains:[v,{begin:/\[/,end:/\]/,relevance:0, | | |
| 79 | contains:[v]}]}]},TITLE_MODE:{scope:"title",begin:x,relevance:0}, | | |
| 80 | UNDERSCORE_TITLE_MODE:{scope:"title",begin:w,relevance:0},METHOD_GUARD:{ | | |
| 81 | begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{ | | |
| 82 | "on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{ | | |
| 83 | t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function I(e,t){ | | |
| 84 | "."===e.input[e.index-1]&&t.ignoreMatch()}function T(e,t){ | | |
| 85 | void 0!==e.className&&(e.scope=e.className,delete e.className)}function L(e,t){ | | |
| 86 | t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", | | |
| 87 | e.__beforeBegin=I,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, | | |
| 88 | void 0===e.relevance&&(e.relevance=0))}function B(e,t){ | | |
| 89 | Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function D(e,t){ | | |
| 90 | if(e.match){ | | |
| 91 | if(e.begin||e.end)throw Error("begin & end are not supported with match") | | |
| 92 | ;e.begin=e.match,delete e.match}}function H(e,t){ | | |
| 93 | void 0===e.relevance&&(e.relevance=1)}const P=(e,t)=>{if(!e.beforeMatch)return | | |
| 94 | ;if(e.starts)throw Error("beforeMatch cannot be used with starts") | | |
| 95 | ;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t] | | |
| 96 | })),e.keywords=n.keywords,e.begin=p(n.beforeMatch,d(n.begin)),e.starts={ | | |
| 97 | relevance:0,contains:[Object.assign(n,{endsParent:!0})] | | |
| 98 | },e.relevance=0,delete n.beforeMatch | | |
| 99 | },C=["of","and","for","in","not","or","if","then","parent","list","value"] | | |
| 100 | ;function $(e,t,n="keyword"){const i=Object.create(null) | | |
| 101 | ;return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((n=>{ | | |
| 102 | Object.assign(i,$(e[n],t,n))})),i;function r(e,n){ | | |
| 103 | t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|") | | |
| 104 | ;i[n[0]]=[e,U(n[0],n[1])]}))}}function U(e,t){ | | |
| 105 | return t?Number(t):(e=>C.includes(e.toLowerCase()))(e)?0:1}const z={},K=e=>{ | | |
| 106 | console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{ | | |
| 107 | z[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),z[`${e}/${t}`]=!0) | | |
| 108 | },G=Error();function Z(e,t,{key:n}){let i=0;const r=e[n],s={},o={} | | |
| 109 | ;for(let e=1;e<=t.length;e++)o[e+i]=r[e],s[e+i]=!0,i+=b(t[e-1]) | | |
| 110 | ;e[n]=o,e[n]._emit=s,e[n]._multi=!0}function F(e){(e=>{ | | |
| 111 | e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope, | | |
| 112 | delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={ | | |
| 113 | _wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope | | |
| 114 | }),(e=>{if(Array.isArray(e.begin)){ | | |
| 115 | if(e.skip||e.excludeBegin||e.returnBegin)throw K("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), | | |
| 116 | G | | |
| 117 | ;if("object"!=typeof e.beginScope||null===e.beginScope)throw K("beginScope must be object"), | | |
| 118 | G;Z(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}})(e),(e=>{ | | |
| 119 | if(Array.isArray(e.end)){ | | |
| 120 | if(e.skip||e.excludeEnd||e.returnEnd)throw K("skip, excludeEnd, returnEnd not compatible with endScope: {}"), | | |
| 121 | G | | |
| 122 | ;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"), | | |
| 123 | G;Z(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}})(e)}function V(e){ | | |
| 124 | function t(t,n){ | | |
| 125 | return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":"")) | | |
| 126 | }class n{constructor(){ | | |
| 127 | this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} | | |
| 128 | addRule(e,t){ | | |
| 129 | t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]), | | |
| 130 | this.matchAt+=b(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) | | |
| 131 | ;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(E(e,{joinWith:"|" | | |
| 132 | }),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex | | |
| 133 | ;const t=this.matcherRe.exec(e);if(!t)return null | | |
| 134 | ;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n] | | |
| 135 | ;return t.splice(0,n),Object.assign(t,i)}}class i{constructor(){ | | |
| 136 | this.rules=[],this.multiRegexes=[], | | |
| 137 | this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ | | |
| 138 | if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n | | |
| 139 | ;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))), | | |
| 140 | t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){ | | |
| 141 | return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){ | | |
| 142 | this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){ | | |
| 143 | const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex | | |
| 144 | ;let n=t.exec(e) | | |
| 145 | ;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{ | | |
| 146 | const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)} | | |
| 147 | return n&&(this.regexIndex+=n.position+1, | | |
| 148 | this.regexIndex===this.count&&this.considerAll()),n}} | | |
| 149 | if(e.compilerExtensions||(e.compilerExtensions=[]), | | |
| 150 | e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") | | |
| 151 | ;return e.classNameAliases=r(e.classNameAliases||{}),function n(s,o){const a=s | | |
| 152 | ;if(s.isCompiled)return a | | |
| 153 | ;[T,D,F,P].forEach((e=>e(s,o))),e.compilerExtensions.forEach((e=>e(s,o))), | | |
| 154 | s.__beforeBegin=null,[L,B,H].forEach((e=>e(s,o))),s.isCompiled=!0;let c=null | | |
| 155 | ;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords), | | |
| 156 | c=s.keywords.$pattern, | | |
| 157 | delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=$(s.keywords,e.case_insensitive)), | | |
| 158 | a.keywordPatternRe=t(c,!0), | | |
| 159 | o&&(s.begin||(s.begin=/\B|\b/),a.beginRe=t(a.begin),s.end||s.endsWithParent||(s.end=/\B|\b/), | | |
| 160 | s.end&&(a.endRe=t(a.end)), | | |
| 161 | a.terminatorEnd=g(a.end)||"",s.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)), | | |
| 162 | s.illegal&&(a.illegalRe=t(s.illegal)), | | |
| 163 | s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>r(e,{ | | |
| 164 | variants:null},t)))),e.cachedVariants?e.cachedVariants:q(e)?r(e,{ | | |
| 165 | starts:e.starts?r(e.starts):null | | |
| 166 | }):Object.isFrozen(e)?r(e):e))("self"===e?s:e)))),s.contains.forEach((e=>{n(e,a) | | |
| 167 | })),s.starts&&n(s.starts,o),a.matcher=(e=>{const t=new i | | |
| 168 | ;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin" | | |
| 169 | }))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end" | | |
| 170 | }),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function q(e){ | | |
| 171 | return!!e&&(e.endsWithParent||q(e.starts))}class J extends Error{ | | |
| 172 | constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}} | | |
| 173 | const Y=i,Q=r,ee=Symbol("nomatch");var te=(t=>{ | | |
| 174 | const i=Object.create(null),r=Object.create(null),s=[];let o=!0 | | |
| 175 | ;const a="Could not find the language '{}', did you forget to load/include a language module?",c={ | | |
| 176 | disableAutodetect:!0,name:"Plain text",contains:[]};let g={ | | |
| 177 | ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i, | | |
| 178 | languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", | | |
| 179 | cssSelector:"pre code",languages:null,__emitter:l};function b(e){ | | |
| 180 | return g.noHighlightRe.test(e)}function m(e,t,n){let i="",r="" | | |
| 181 | ;"object"==typeof t?(i=e, | | |
| 182 | n=t.ignoreIllegals,r=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."), | | |
| 183 | X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), | | |
| 184 | r=e,i=t),void 0===n&&(n=!0);const s={code:i,language:r};k("before:highlight",s) | | |
| 185 | ;const o=s.result?s.result:E(s.language,s.code,n) | | |
| 186 | ;return o.code=s.code,k("after:highlight",o),o}function E(e,t,r,s){ | | |
| 187 | const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(S) | | |
| 188 | ;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(S),n="" | | |
| 189 | ;for(;t;){n+=S.substring(e,t.index) | | |
| 190 | ;const r=y.case_insensitive?t[0].toLowerCase():t[0],s=(i=r,N.keywords[i]);if(s){ | | |
| 191 | const[e,i]=s | | |
| 192 | ;if(M.addText(n),n="",c[r]=(c[r]||0)+1,c[r]<=7&&(R+=i),e.startsWith("_"))n+=t[0];else{ | | |
| 193 | const n=y.classNameAliases[e]||e;M.addKeyword(t[0],n)}}else n+=t[0] | | |
| 194 | ;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(S)}var i | | |
| 195 | ;n+=S.substring(e),M.addText(n)}function d(){null!=N.subLanguage?(()=>{ | | |
| 196 | if(""===S)return;let e=null;if("string"==typeof N.subLanguage){ | | |
| 197 | if(!i[N.subLanguage])return void M.addText(S) | | |
| 198 | ;e=E(N.subLanguage,S,!0,k[N.subLanguage]),k[N.subLanguage]=e._top | | |
| 199 | }else e=x(S,N.subLanguage.length?N.subLanguage:null) | | |
| 200 | ;N.relevance>0&&(R+=e.relevance),M.addSublanguage(e._emitter,e.language) | | |
| 201 | })():l(),S=""}function u(e,t){let n=1;const i=t.length-1;for(;n<=i;){ | | |
| 202 | if(!e._emit[n]){n++;continue}const i=y.classNameAliases[e[n]]||e[n],r=t[n] | | |
| 203 | ;i?M.addKeyword(r,i):(S=r,l(),S=""),n++}}function h(e,t){ | | |
| 204 | return e.scope&&"string"==typeof e.scope&&M.openNode(y.classNameAliases[e.scope]||e.scope), | | |
| 205 | e.beginScope&&(e.beginScope._wrap?(M.addKeyword(S,y.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), | | |
| 206 | S=""):e.beginScope._multi&&(u(e.beginScope,t),S="")),N=Object.create(e,{parent:{ | | |
| 207 | value:N}}),N}function p(e,t,i){let r=((e,t)=>{const n=e&&e.exec(t) | | |
| 208 | ;return n&&0===n.index})(e.endRe,i);if(r){if(e["on:end"]){const i=new n(e) | | |
| 209 | ;e["on:end"](t,i),i.isMatchIgnored&&(r=!1)}if(r){ | | |
| 210 | for(;e.endsParent&&e.parent;)e=e.parent;return e}} | | |
| 211 | if(e.endsWithParent)return p(e.parent,t,i)}function f(e){ | | |
| 212 | return 0===N.matcher.regexIndex?(S+=e[0],1):(I=!0,0)}function b(e){ | | |
| 213 | const n=e[0],i=t.substring(e.index),r=p(N,e,i);if(!r)return ee;const s=N | | |
| 214 | ;N.endScope&&N.endScope._wrap?(d(), | | |
| 215 | M.addKeyword(n,N.endScope._wrap)):N.endScope&&N.endScope._multi?(d(), | | |
| 216 | u(N.endScope,e)):s.skip?S+=n:(s.returnEnd||s.excludeEnd||(S+=n), | | |
| 217 | d(),s.excludeEnd&&(S=n));do{ | | |
| 218 | N.scope&&M.closeNode(),N.skip||N.subLanguage||(R+=N.relevance),N=N.parent | | |
| 219 | }while(N!==r.parent);return r.starts&&h(r.starts,e),s.returnEnd?0:n.length} | | |
| 220 | let m={};function w(i,s){const a=s&&s[0];if(S+=i,null==a)return d(),0 | | |
| 221 | ;if("begin"===m.type&&"end"===s.type&&m.index===s.index&&""===a){ | | |
| 222 | if(S+=t.slice(s.index,s.index+1),!o){const t=Error(`0 width match regex (${e})`) | | |
| 223 | ;throw t.languageName=e,t.badRule=m.rule,t}return 1} | | |
| 224 | if(m=s,"begin"===s.type)return(e=>{ | | |
| 225 | const t=e[0],i=e.rule,r=new n(i),s=[i.__beforeBegin,i["on:begin"]] | | |
| 226 | ;for(const n of s)if(n&&(n(e,r),r.isMatchIgnored))return f(t) | | |
| 227 | ;return i.skip?S+=t:(i.excludeBegin&&(S+=t), | | |
| 228 | d(),i.returnBegin||i.excludeBegin||(S=t)),h(i,e),i.returnBegin?0:t.length})(s) | | |
| 229 | ;if("illegal"===s.type&&!r){ | | |
| 230 | const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"') | | |
| 231 | ;throw e.mode=N,e}if("end"===s.type){const e=b(s);if(e!==ee)return e} | | |
| 232 | if("illegal"===s.type&&""===a)return 1 | | |
| 233 | ;if(A>1e5&&A>3*s.index)throw Error("potential infinite loop, way more iterations than matches") | | |
| 234 | ;return S+=a,a.length}const y=O(e) | | |
| 235 | ;if(!y)throw K(a.replace("{}",e)),Error('Unknown language: "'+e+'"') | | |
| 236 | ;const _=V(y);let v="",N=s||_;const k={},M=new g.__emitter(g);(()=>{const e=[] | | |
| 237 | ;for(let t=N;t!==y;t=t.parent)t.scope&&e.unshift(t.scope) | | |
| 238 | ;e.forEach((e=>M.openNode(e)))})();let S="",R=0,j=0,A=0,I=!1;try{ | | |
| 239 | for(N.matcher.considerAll();;){ | | |
| 240 | A++,I?I=!1:N.matcher.considerAll(),N.matcher.lastIndex=j | | |
| 241 | ;const e=N.matcher.exec(t);if(!e)break;const n=w(t.substring(j,e.index),e) | | |
| 242 | ;j=e.index+n} | | |
| 243 | return w(t.substring(j)),M.closeAllNodes(),M.finalize(),v=M.toHTML(),{ | | |
| 244 | language:e,value:v,relevance:R,illegal:!1,_emitter:M,_top:N}}catch(n){ | | |
| 245 | if(n.message&&n.message.includes("Illegal"))return{language:e,value:Y(t), | | |
| 246 | illegal:!0,relevance:0,_illegalBy:{message:n.message,index:j, | | |
| 247 | context:t.slice(j-100,j+100),mode:n.mode,resultSoFar:v},_emitter:M};if(o)return{ | | |
| 248 | language:e,value:Y(t),illegal:!1,relevance:0,errorRaised:n,_emitter:M,_top:N} | | |
| 249 | ;throw n}}function x(e,t){t=t||g.languages||Object.keys(i);const n=(e=>{ | | |
| 250 | const t={value:Y(e),illegal:!1,relevance:0,_top:c,_emitter:new g.__emitter(g)} | | |
| 251 | ;return t._emitter.addText(e),t})(e),r=t.filter(O).filter(N).map((t=>E(t,e,!1))) | | |
| 252 | ;r.unshift(n);const s=r.sort(((e,t)=>{ | | |
| 253 | if(e.relevance!==t.relevance)return t.relevance-e.relevance | | |
| 254 | ;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1 | | |
| 255 | ;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=s,l=o | | |
| 256 | ;return l.secondBest=a,l}function w(e){let t=null;const n=(e=>{ | | |
| 257 | let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"" | | |
| 258 | ;const n=g.languageDetectRe.exec(t);if(n){const t=O(n[1]) | | |
| 259 | ;return t||(W(a.replace("{}",n[1])), | | |
| 260 | W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"} | | |
| 261 | return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return | | |
| 262 | ;if(k("before:highlightElement",{el:e,language:n | | |
| 263 | }),e.children.length>0&&(g.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), | | |
| 264 | console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), | | |
| 265 | console.warn("The element with unescaped HTML:"), | | |
| 266 | console.warn(e)),g.throwUnescapedHTML))throw new J("One of your code blocks includes unescaped HTML.",e.innerHTML) | | |
| 267 | ;t=e;const i=t.textContent,s=n?m(i,{language:n,ignoreIllegals:!0}):x(i) | | |
| 268 | ;e.innerHTML=s.value,((e,t,n)=>{const i=t&&r[t]||n | | |
| 269 | ;e.classList.add("hljs"),e.classList.add("language-"+i) | | |
| 270 | })(e,n,s.language),e.result={language:s.language,re:s.relevance, | | |
| 271 | relevance:s.relevance},s.secondBest&&(e.secondBest={ | | |
| 272 | language:s.secondBest.language,relevance:s.secondBest.relevance | | |
| 273 | }),k("after:highlightElement",{el:e,result:s,text:i})}let y=!1;function _(){ | | |
| 274 | "loading"!==document.readyState?document.querySelectorAll(g.cssSelector).forEach(w):y=!0 | | |
| 275 | }function O(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]} | | |
| 276 | function v(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{ | | |
| 277 | r[e.toLowerCase()]=t}))}function N(e){const t=O(e) | | |
| 278 | ;return t&&!t.disableAutodetect}function k(e,t){const n=e;s.forEach((e=>{ | | |
| 279 | e[n]&&e[n](t)}))} | | |
| 280 | "undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{ | | |
| 281 | y&&_()}),!1),Object.assign(t,{highlight:m,highlightAuto:x,highlightAll:_, | | |
| 282 | highlightElement:w, | | |
| 283 | highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"), | | |
| 284 | X("10.7.0","Please use highlightElement now."),w(e)),configure:e=>{g=Q(g,e)}, | | |
| 285 | initHighlighting:()=>{ | | |
| 286 | _(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")}, | | |
| 287 | initHighlightingOnLoad:()=>{ | | |
| 288 | _(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.") | | |
| 289 | },registerLanguage:(e,n)=>{let r=null;try{r=n(t)}catch(t){ | | |
| 290 | if(K("Language definition for '{}' could not be registered.".replace("{}",e)), | | |
| 291 | !o)throw t;K(t),r=c} | | |
| 292 | r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&v(r.aliases,{ | | |
| 293 | languageName:e})},unregisterLanguage:e=>{delete i[e] | | |
| 294 | ;for(const t of Object.keys(r))r[t]===e&&delete r[t]}, | | |
| 295 | listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:v, | | |
| 296 | autoDetection:N,inherit:Q,addPlugin:e=>{(e=>{ | | |
| 297 | e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{ | | |
| 298 | e["before:highlightBlock"](Object.assign({block:t.el},t)) | | |
| 299 | }),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ | | |
| 300 | e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),s.push(e)} | | |
| 301 | }),t.debugMode=()=>{o=!1},t.safeMode=()=>{o=!0 | | |
| 302 | },t.versionString="11.7.0",t.regex={concat:p,lookahead:d,either:f,optional:h, | | |
| 303 | anyNumberOfTimes:u};for(const t in A)"object"==typeof A[t]&&e.exports(A[t]) | | |
| 304 | ;return Object.assign(t,A),t})({});return te}() | | |
| 305 | ;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);/*! `java` grammar compiled for Highlight.js 11.7.0 */ | | |
| 306 | (()=>{var e=(()=>{"use strict" | | |
| 307 | ;var e="\\.([0-9](_*[0-9])*)",a="[0-9a-fA-F](_*[0-9a-fA-F])*",n={ | | |
| 308 | className:"number",variants:[{ | | |
| 309 | begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` | | |
| 310 | },{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ | | |
| 311 | begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ | | |
| 312 | begin:`\\b0[xX]((${a})\\.?|(${a})?\\.(${a}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` | | |
| 313 | },{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${a})[lL]?\\b`},{ | | |
| 314 | begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], | | |
| 315 | relevance:0};function s(e,a,n){return-1===n?"":e.replace(a,(t=>s(e,a,n-1)))} | | |
| 316 | return e=>{ | | |
| 317 | const a=e.regex,t="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",i=t+s("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),r={ | | |
| 318 | keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"], | | |
| 319 | literal:["false","true","null"], | | |
| 320 | type:["char","boolean","long","float","int","byte","short","double"], | | |
| 321 | built_in:["super","this"]},l={className:"meta",begin:"@"+t,contains:[{ | | |
| 322 | begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/, | | |
| 323 | end:/\)/,keywords:r,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0} | | |
| 324 | ;return{name:"Java",aliases:["jsp"],keywords:r,illegal:/<\/|#/, | | |
| 325 | contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, | | |
| 326 | relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ | | |
| 327 | begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 | | |
| 328 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/, | | |
| 329 | className:"string",contains:[e.BACKSLASH_ESCAPE] | | |
| 330 | },e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ | | |
| 331 | match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{ | | |
| 332 | 1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{ | | |
| 333 | begin:[a.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=(?!=)/],className:{1:"type", | | |
| 334 | 3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword", | | |
| 335 | 3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ | | |
| 336 | beginKeywords:"new throw return else",relevance:0},{ | | |
| 337 | begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{ | | |
| 338 | 2:"title.function"},keywords:r,contains:[{className:"params",begin:/\(/, | | |
| 339 | end:/\)/,keywords:r,relevance:0, | | |
| 340 | contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.C_BLOCK_COMMENT_MODE] | | |
| 341 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,l]}}})() | | |
| 342 | ;hljs.registerLanguage("java",e)})();/*! `plaintext` grammar compiled for Highlight.js 11.7.0 */ | | |
| 343 | (()=>{var t=(()=>{"use strict";return t=>({name:"Plain text", | | |
| 344 | aliases:["text","txt"],disableAutodetect:!0})})() | | |
| 345 | ;hljs.registerLanguage("plaintext",t)})();/*! `typescript` grammar compiled for Highlight.js 11.7.0 */ | | |
| 346 | (()=>{var e=(()=>{"use strict" | | |
| 347 | ;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],c=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],r=["arguments","this","super","console","window","document","localStorage","module","global"],i=[].concat(c,t,s) | | |
| 348 | ;function o(o){const l=o.regex,d=e,b={begin:/<[A-Za-z0-9\\._:-]+/, | | |
| 349 | end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ | | |
| 350 | const a=e[0].length+e.index,t=e.input[a] | | |
| 351 | ;if("<"===t||","===t)return void n.ignoreMatch();let s | | |
| 352 | ;">"===t&&(((e,{after:n})=>{const a="</"+e[0].slice(1) | | |
| 353 | ;return-1!==e.input.indexOf(a,n)})(e,{after:a})||n.ignoreMatch()) | | |
| 354 | ;const c=e.input.substring(a) | | |
| 355 | ;((s=c.match(/^\s*=/))||(s=c.match(/^\s+extends\s+/))&&0===s.index)&&n.ignoreMatch() | | |
| 356 | }},g={$pattern:e,keyword:n,literal:a,built_in:i,"variable.language":r | | |
| 357 | },u="\\.([0-9](_?[0-9])*)",m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={ | | |
| 358 | className:"number",variants:[{ | | |
| 359 | begin:`(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{ | | |
| 360 | begin:`\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b`},{ | | |
| 361 | begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{ | | |
| 362 | begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{ | | |
| 363 | begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{ | | |
| 364 | begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{", | | |
| 365 | end:"\\}",keywords:g,contains:[]},A={begin:"html`",end:"",starts:{end:"`", | | |
| 366 | returnEnd:!1,contains:[o.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},p={ | | |
| 367 | begin:"css`",end:"",starts:{end:"`",returnEnd:!1, | | |
| 368 | contains:[o.BACKSLASH_ESCAPE,y],subLanguage:"css"}},_={className:"string", | | |
| 369 | begin:"`",end:"`",contains:[o.BACKSLASH_ESCAPE,y]},N={className:"comment", | | |
| 370 | variants:[o.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{ | | |
| 371 | begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag", | | |
| 372 | begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0, | | |
| 373 | excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)", | | |
| 374 | endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}] | | |
| 375 | }),o.C_BLOCK_COMMENT_MODE,o.C_LINE_COMMENT_MODE] | | |
| 376 | },f=[o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,A,p,_,{match:/\$\d+/},E] | | |
| 377 | ;y.contains=f.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(f) | | |
| 378 | });const h=[].concat(N,y.contains),v=h.concat([{begin:/\(/,end:/\)/,keywords:g, | | |
| 379 | contains:["self"].concat(h)}]),S={className:"params",begin:/\(/,end:/\)/, | | |
| 380 | excludeBegin:!0,excludeEnd:!0,keywords:g,contains:v},w={variants:[{ | | |
| 381 | match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,l.concat(d,"(",l.concat(/\./,d),")*")], | | |
| 382 | scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{ | | |
| 383 | match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0, | | |
| 384 | match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), | | |
| 385 | className:"title.class",keywords:{_:[...t,...s]}},x={variants:[{ | | |
| 386 | match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}], | | |
| 387 | className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S], | | |
| 388 | illegal:/%/},k={ | | |
| 389 | match:l.concat(/\b/,(O=[...c,"super","import"],l.concat("(?!",O.join("|"),")")),d,l.lookahead(/\(/)), | | |
| 390 | className:"title.function",relevance:0};var O;const I={ | | |
| 391 | begin:l.concat(/\./,l.lookahead(l.concat(d,/(?![0-9A-Za-z$_(])/))),end:d, | | |
| 392 | excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={ | | |
| 393 | match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"}, | | |
| 394 | contains:[{begin:/\(\)/},S] | | |
| 395 | },T="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+o.UNDERSCORE_IDENT_RE+")\\s*=>",M={ | | |
| 396 | match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(T)], | | |
| 397 | keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]} | | |
| 398 | ;return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{ | | |
| 399 | PARAMS_CONTAINS:v,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/, | | |
| 400 | contains:[o.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ | | |
| 401 | label:"use_strict",className:"meta",relevance:10, | | |
| 402 | begin:/^\s*['"]use (strict|asm)['"]/ | | |
| 403 | },o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,A,p,_,N,{match:/\$\d+/},E,R,{ | | |
| 404 | className:"attr",begin:d+l.lookahead(":"),relevance:0},M,{ | | |
| 405 | begin:"("+o.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", | | |
| 406 | keywords:"return throw case",relevance:0,contains:[N,o.REGEXP_MODE,{ | | |
| 407 | className:"function",begin:T,returnBegin:!0,end:"\\s*=>",contains:[{ | | |
| 408 | className:"params",variants:[{begin:o.UNDERSCORE_IDENT_RE,relevance:0},{ | | |
| 409 | className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, | | |
| 410 | excludeEnd:!0,keywords:g,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/, | | |
| 411 | relevance:0},{variants:[{begin:"<>",end:"</>"},{ | | |
| 412 | match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:b.begin, | | |
| 413 | "on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{ | | |
| 414 | begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},x,{ | | |
| 415 | beginKeywords:"while if switch catch for"},{ | | |
| 416 | begin:"\\b(?!function)"+o.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", | | |
| 417 | returnBegin:!0,label:"func.def",contains:[S,o.inherit(o.TITLE_MODE,{begin:d, | | |
| 418 | className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+d, | | |
| 419 | relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, | | |
| 420 | contains:[S]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, | | |
| 421 | className:"variable.constant"},w,C,{match:/\$[(.]/}]}}return t=>{ | | |
| 422 | const s=o(t),c=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={ | | |
| 423 | beginKeywords:"namespace",end:/\{/,excludeEnd:!0, | | |
| 424 | contains:[s.exports.CLASS_REFERENCE]},d={beginKeywords:"interface",end:/\{/, | | |
| 425 | excludeEnd:!0,keywords:{keyword:"interface extends",built_in:c}, | | |
| 426 | contains:[s.exports.CLASS_REFERENCE]},b={$pattern:e, | | |
| 427 | keyword:n.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]), | | |
| 428 | literal:a,built_in:i.concat(c),"variable.language":r},g={className:"meta", | | |
| 429 | begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},u=(e,n,a)=>{ | | |
| 430 | const t=e.contains.findIndex((e=>e.label===n)) | | |
| 431 | ;if(-1===t)throw Error("can not find mode to replace");e.contains.splice(t,1,a)} | | |
| 432 | ;return Object.assign(s.keywords,b), | | |
| 433 | s.exports.PARAMS_CONTAINS.push(g),s.contains=s.contains.concat([g,l,d]), | | |
| 434 | u(s,"shebang",t.SHEBANG()),u(s,"use_strict",{className:"meta",relevance:10, | | |
| 435 | begin:/^\s*['"]use strict['"]/ | | |
| 436 | }),s.contains.find((e=>"func.def"===e.label)).relevance=0,Object.assign(s,{ | | |
| 437 | name:"TypeScript",aliases:["ts","tsx"]}),s}})() | | |
| 438 | ;hljs.registerLanguage("typescript",e)})();/*! `lua` grammar compiled for Highlight.js 11.7.0 */ | | |
| 439 | (()=>{var e=(()=>{"use strict";return e=>{const t="\\[=*\\[",a="\\]=*\\]",n={ | | |
| 440 | begin:t,end:a,contains:["self"] | | |
| 441 | },o=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",a,{contains:[n], | | |
| 442 | relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE, | | |
| 443 | literal:"true false nil", | | |
| 444 | keyword:"and break do else elseif end for goto if in local not or repeat return then until while", | | |
| 445 | built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" | | |
| 446 | },contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)", | | |
| 447 | contains:[e.inherit(e.TITLE_MODE,{ | | |
| 448 | begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params", | | |
| 449 | begin:"\\(",endsWithParent:!0,contains:o}].concat(o) | | |
| 450 | },e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string", | | |
| 451 | begin:t,end:a,contains:[n],relevance:5}])}}})();hljs.registerLanguage("lua",e) | | |
| 452 | })();/*! `ruby` grammar compiled for Highlight.js 11.7.0 */ | | |
| 453 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 454 | const n=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(s,/(::\w+)*/),t={ | | |
| 455 | "variable.constant":["__FILE__","__LINE__","__ENCODING__"], | | |
| 456 | "variable.language":["self","super"], | | |
| 457 | keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"], | | |
| 458 | built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"], | | |
| 459 | literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},r={ | | |
| 460 | begin:"#<",end:">"},b=[e.COMMENT("#","$",{contains:[c] | | |
| 461 | }),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10 | | |
| 462 | }),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],l={className:"subst",begin:/#\{/, | | |
| 463 | end:/\}/,keywords:t},d={className:"string",contains:[e.BACKSLASH_ESCAPE,l], | | |
| 464 | variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{ | | |
| 465 | begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{ | | |
| 466 | begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//, | | |
| 467 | end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{ | | |
| 468 | begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{ | | |
| 469 | begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ | | |
| 470 | begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ | | |
| 471 | begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ | | |
| 472 | begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)), | | |
| 473 | contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, | | |
| 474 | contains:[e.BACKSLASH_ESCAPE,l]})]}]},o="[0-9](_?[0-9])*",g={className:"number", | | |
| 475 | relevance:0,variants:[{ | | |
| 476 | begin:`\\b([1-9](_?[0-9])*|0)(\\.(${o}))?([eE][+-]?(${o})|r)?i?\\b`},{ | | |
| 477 | begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" | | |
| 478 | },{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ | | |
| 479 | begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ | | |
| 480 | begin:"\\b0(_?[0-7])+r?i?\\b"}]},_={variants:[{match:/\(\)/},{ | | |
| 481 | className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0, | | |
| 482 | keywords:t}]},u=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{ | | |
| 483 | match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class", | | |
| 484 | 4:"title.class.inherited"},keywords:t},{match:[/(include|extend)\s+/,i],scope:{ | | |
| 485 | 2:"title.class"},keywords:t},{relevance:0,match:[i,/\.new[. (]/],scope:{ | | |
| 486 | 1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, | | |
| 487 | className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{ | | |
| 488 | match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[_]},{ | | |
| 489 | begin:e.IDENT_RE+"::"},{className:"symbol", | | |
| 490 | begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", | | |
| 491 | begin:":(?!\\s)",contains:[d,{begin:a}],relevance:0},g,{className:"variable", | | |
| 492 | begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ | | |
| 493 | className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0, | | |
| 494 | relevance:0,keywords:t},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*", | | |
| 495 | keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l], | | |
| 496 | illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{ | | |
| 497 | begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[", | | |
| 498 | end:"\\][a-z]*"}]}].concat(r,b),relevance:0}].concat(r,b) | | |
| 499 | ;l.contains=u,_.contains=u;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:u} | | |
| 500 | },{className:"meta.prompt", | | |
| 501 | begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", | | |
| 502 | starts:{end:"$",keywords:t,contains:u}}];return b.unshift(r),{name:"Ruby", | | |
| 503 | aliases:["rb","gemspec","podspec","thor","irb"],keywords:t,illegal:/\/\*/, | | |
| 504 | contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(b).concat(u)}}})() | | |
| 505 | ;hljs.registerLanguage("ruby",e)})();/*! `less` grammar compiled for Highlight.js 11.7.0 */ | | |
| 506 | (()=>{var e=(()=>{"use strict" | | |
| 507 | ;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),n=r.concat(i) | | |
| 508 | ;return a=>{const l=(e=>({IMPORTANT:{scope:"meta",begin:"!important"}, | | |
| 509 | BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number", | | |
| 510 | begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{ | | |
| 511 | className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{ | | |
| 512 | scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", | | |
| 513 | contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ | | |
| 514 | scope:"number", | | |
| 515 | 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)?", | | |
| 516 | relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/} | | |
| 517 | }))(a),s=n,d="([\\w-]+|@\\{[\\w-]+\\})",c=[],g=[],b=e=>({className:"string", | | |
| 518 | begin:"~?"+e+".*?"+e}),m=(e,t,r)=>({className:e,begin:t,relevance:r}),p={ | | |
| 519 | $pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},u={ | | |
| 520 | begin:"\\(",end:"\\)",contains:g,keywords:p,relevance:0} | | |
| 521 | ;g.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,b("'"),b('"'),l.CSS_NUMBER_MODE,{ | | |
| 522 | begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]", | | |
| 523 | excludeEnd:!0} | | |
| 524 | },l.HEXCOLOR,u,m("variable","@@?[\\w-]+",10),m("variable","@\\{[\\w-]+\\}"),m("built_in","~?`[^`]*?`"),{ | | |
| 525 | className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0 | | |
| 526 | },l.IMPORTANT,{beginKeywords:"and not"},l.FUNCTION_DISPATCH);const h=g.concat({ | | |
| 527 | begin:/\{/,end:/\}/,contains:c}),f={beginKeywords:"when",endsWithParent:!0, | | |
| 528 | contains:[{beginKeywords:"and not"}].concat(g)},k={begin:d+"\\s*:", | | |
| 529 | returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/ | | |
| 530 | },l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b", | | |
| 531 | end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}] | | |
| 532 | },w={className:"keyword", | | |
| 533 | begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", | | |
| 534 | starts:{end:"[;{}]",keywords:p,returnEnd:!0,contains:g,relevance:0}},v={ | | |
| 535 | className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{ | | |
| 536 | begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:h}},y={variants:[{ | | |
| 537 | begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0, | | |
| 538 | returnEnd:!0,illegal:"[<='$\"]",relevance:0, | | |
| 539 | contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,f,m("keyword","all\\b"),m("variable","@\\{[\\w-]+\\}"),{ | | |
| 540 | begin:"\\b("+e.join("|")+")\\b",className:"selector-tag" | | |
| 541 | },l.CSS_NUMBER_MODE,m("selector-tag",d,0),m("selector-id","#"+d),m("selector-class","\\."+d,0),m("selector-tag","&",0),l.ATTRIBUTE_SELECTOR_MODE,{ | | |
| 542 | className:"selector-pseudo",begin:":("+r.join("|")+")"},{ | | |
| 543 | className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},{begin:/\(/, | | |
| 544 | end:/\)/,relevance:0,contains:h},{begin:"!important"},l.FUNCTION_DISPATCH]},x={ | | |
| 545 | begin:`[\\w-]+:(:)?(${s.join("|")})`,returnBegin:!0,contains:[y]} | | |
| 546 | ;return c.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,w,v,x,k,y,f,l.FUNCTION_DISPATCH), | | |
| 547 | {name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:c}}})() | | |
| 548 | ;hljs.registerLanguage("less",e)})();/*! `wasm` grammar compiled for Highlight.js 11.7.0 */ | | |
| 549 | (()=>{var e=(()=>{"use strict";return e=>{e.regex;const a=e.COMMENT(/\(;/,/;\)/) | | |
| 550 | ;return a.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/, | | |
| 551 | keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"] | | |
| 552 | },contains:[e.COMMENT(/;;/,/$/),a,{match:[/(?:offset|align)/,/\s*/,/=/], | | |
| 553 | className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{ | | |
| 554 | match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{ | | |
| 555 | begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword", | | |
| 556 | 3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/, | | |
| 557 | className:"type"},{className:"keyword", | | |
| 558 | match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/ | | |
| 559 | },{className:"number",relevance:0, | | |
| 560 | match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/ | | |
| 561 | }]}}})();hljs.registerLanguage("wasm",e)})();/*! `csharp` grammar compiled for Highlight.js 11.7.0 */ | | |
| 562 | (()=>{var e=(()=>{"use strict";return e=>{const n={ | | |
| 563 | keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]), | | |
| 564 | built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"], | | |
| 565 | literal:["default","false","null","true"]},a=e.inherit(e.TITLE_MODE,{ | | |
| 566 | begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{ | | |
| 567 | begin:"\\b(0b[01']+)"},{ | | |
| 568 | begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{ | | |
| 569 | begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" | | |
| 570 | }],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}] | | |
| 571 | },t=e.inherit(s,{illegal:/\n/}),r={className:"subst",begin:/\{/,end:/\}/, | | |
| 572 | keywords:n},l=e.inherit(r,{illegal:/\n/}),c={className:"string",begin:/\$"/, | | |
| 573 | end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/ | | |
| 574 | },e.BACKSLASH_ESCAPE,l]},o={className:"string",begin:/\$@"/,end:'"',contains:[{ | | |
| 575 | begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]},d=e.inherit(o,{illegal:/\n/, | | |
| 576 | contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},l]}) | | |
| 577 | ;r.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE], | | |
| 578 | l.contains=[d,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{ | | |
| 579 | illegal:/\n/})];const g={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] | | |
| 580 | },E={begin:"<",end:">",contains:[{beginKeywords:"in out"},a] | | |
| 581 | },_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={ | | |
| 582 | begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"], | | |
| 583 | keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0, | | |
| 584 | contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{ | | |
| 585 | begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}] | | |
| 586 | }),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#", | | |
| 587 | end:"$",keywords:{ | | |
| 588 | keyword:"if else elif endif define undef warning error line region endregion pragma checksum" | | |
| 589 | }},g,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/, | | |
| 590 | illegal:/[^\s:,]/,contains:[{beginKeywords:"where class" | | |
| 591 | },a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace", | | |
| 592 | relevance:0,end:/[{;=]/,illegal:/[^\s:]/, | | |
| 593 | contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ | | |
| 594 | beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/, | | |
| 595 | contains:[a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta", | | |
| 596 | begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{ | | |
| 597 | className:"string",begin:/"/,end:/"/}]},{ | | |
| 598 | beginKeywords:"new return throw await else",relevance:0},{className:"function", | | |
| 599 | begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, | | |
| 600 | end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{ | | |
| 601 | beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial", | | |
| 602 | relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, | | |
| 603 | contains:[e.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params", | | |
| 604 | begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0, | | |
| 605 | contains:[g,i,e.C_BLOCK_COMMENT_MODE] | | |
| 606 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}})() | | |
| 607 | ;hljs.registerLanguage("csharp",e)})();/*! `xml` grammar compiled for Highlight.js 11.7.0 */ | | |
| 608 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 609 | const a=e.regex,n=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s={ | | |
| 610 | className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},t={begin:/\s/, | | |
| 611 | contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] | | |
| 612 | },i=e.inherit(t,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{ | | |
| 613 | className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),r={ | | |
| 614 | endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr", | | |
| 615 | begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{ | | |
| 616 | className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{ | | |
| 617 | begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{ | | |
| 618 | name:"HTML, XML", | | |
| 619 | aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], | | |
| 620 | case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/, | | |
| 621 | end:/>/,relevance:10,contains:[t,l,c,i,{begin:/\[/,end:/\]/,contains:[{ | | |
| 622 | className:"meta",begin:/<![a-z]/,end:/>/,contains:[t,i,l,c]}]}] | | |
| 623 | },e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/, | | |
| 624 | relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/, | | |
| 625 | relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag", | | |
| 626 | begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[r],starts:{ | | |
| 627 | end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", | | |
| 628 | begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[r],starts:{ | | |
| 629 | end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ | | |
| 630 | className:"tag",begin:/<>|<\/>/},{className:"tag", | | |
| 631 | begin:a.concat(/</,a.lookahead(a.concat(n,a.either(/\/>/,/>/,/\s/)))), | | |
| 632 | end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:r}]},{ | | |
| 633 | className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(n,/>/))),contains:[{ | | |
| 634 | className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}} | | |
| 635 | })();hljs.registerLanguage("xml",e)})();/*! `php` grammar compiled for Highlight.js 11.7.0 */ | | |
| 636 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 637 | const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),n=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),o={ | | |
| 638 | scope:"variable",match:"\\$+"+r},c={scope:"subst",variants:[{begin:/\$\w+/},{ | | |
| 639 | begin:/\{\$/,end:/\}/}]},i=e.inherit(e.APOS_STRING_MODE,{illegal:null | | |
| 640 | }),s="[ \t\n]",l={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{ | | |
| 641 | illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c) | | |
| 642 | }),i,e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/, | | |
| 643 | contains:e.QUOTE_STRING_MODE.contains.concat(c)})]},_={scope:"number", | | |
| 644 | variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{ | | |
| 645 | begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{ | | |
| 646 | begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{ | | |
| 647 | begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" | | |
| 648 | }],relevance:0 | | |
| 649 | },d=["false","null","true"],p=["__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"],b=["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"],E={ | | |
| 650 | keyword:p,literal:(e=>{const t=[];return e.forEach((e=>{ | | |
| 651 | t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase()) | | |
| 652 | })),t})(d),built_in:b},u=e=>e.map((e=>e.replace(/\|\d+$/,""))),g={variants:[{ | | |
| 653 | match:[/new/,t.concat(s,"+"),t.concat("(?!",u(b).join("\\b|"),"\\b)"),n],scope:{ | | |
| 654 | 1:"keyword",4:"title.class"}}]},h=t.concat(r,"\\b(?!\\()"),m={variants:[{ | | |
| 655 | match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),h],scope:{2:"variable.constant" | | |
| 656 | }},{match:[/::/,/class/],scope:{2:"variable.language"}},{ | | |
| 657 | match:[n,t.concat(/::/,t.lookahead(/(?!class\b)/)),h],scope:{1:"title.class", | | |
| 658 | 3:"variable.constant"}},{match:[n,t.concat("::",t.lookahead(/(?!class\b)/))], | | |
| 659 | scope:{1:"title.class"}},{match:[n,/::/,/class/],scope:{1:"title.class", | | |
| 660 | 3:"variable.language"}}]},I={scope:"attr", | | |
| 661 | match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},f={relevance:0, | | |
| 662 | begin:/\(/,end:/\)/,keywords:E,contains:[I,o,m,e.C_BLOCK_COMMENT_MODE,l,_,g] | | |
| 663 | },O={relevance:0, | | |
| 664 | match:[/\b/,t.concat("(?!fn\\b|function\\b|",u(p).join("\\b|"),"|",u(b).join("\\b|"),"\\b)"),r,t.concat(s,"*"),t.lookahead(/(?=\()/)], | | |
| 665 | scope:{3:"title.function.invoke"},contains:[f]};f.contains.push(O) | | |
| 666 | ;const v=[I,m,e.C_BLOCK_COMMENT_MODE,l,_,g];return{case_insensitive:!1, | | |
| 667 | keywords:E,contains:[{begin:t.concat(/#\[\s*/,n),beginScope:"meta",end:/]/, | | |
| 668 | endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{ | | |
| 669 | begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]}, | | |
| 670 | contains:["self",...v]},...v,{scope:"meta",match:n}] | | |
| 671 | },e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{ | | |
| 672 | scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/, | | |
| 673 | keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE, | | |
| 674 | contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{ | | |
| 675 | begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{ | | |
| 676 | begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},o,O,m,{ | | |
| 677 | match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},g,{ | | |
| 678 | scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/, | | |
| 679 | excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use" | | |
| 680 | },e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params", | | |
| 681 | begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:E, | | |
| 682 | contains:["self",o,m,e.C_BLOCK_COMMENT_MODE,l,_]}]},{scope:"class",variants:[{ | | |
| 683 | beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait", | | |
| 684 | illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{ | | |
| 685 | beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ | | |
| 686 | beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/, | | |
| 687 | contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{ | | |
| 688 | beginKeywords:"use",relevance:0,end:";",contains:[{ | | |
| 689 | match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},l,_]} | | |
| 690 | }})();hljs.registerLanguage("php",e)})();/*! `php-template` grammar compiled for Highlight.js 11.7.0 */ | | |
| 691 | (()=>{var n=(()=>{"use strict";return n=>({name:"PHP template", | | |
| 692 | subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php", | | |
| 693 | contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{ | | |
| 694 | begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null, | | |
| 695 | className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{ | | |
| 696 | illegal:null,className:null,contains:null,skip:!0})]}]})})() | | |
| 697 | ;hljs.registerLanguage("php-template",n)})();/*! `objectivec` grammar compiled for Highlight.js 11.7.0 */ | | |
| 698 | (()=>{var e=(()=>{"use strict";return e=>{const n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={ | | |
| 699 | $pattern:n,keyword:["@interface","@class","@protocol","@implementation"]} | | |
| 700 | ;return{name:"Objective-C", | | |
| 701 | aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{ | | |
| 702 | "variable.language":["this","super"],$pattern:n, | | |
| 703 | keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"], | | |
| 704 | literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"], | | |
| 705 | built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"], | | |
| 706 | type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"] | | |
| 707 | },illegal:"</",contains:[{className:"built_in", | | |
| 708 | begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+" | | |
| 709 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{ | | |
| 710 | className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n", | | |
| 711 | contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/, | | |
| 712 | keywords:{ | | |
| 713 | keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include" | | |
| 714 | },contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{ | | |
| 715 | className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n" | | |
| 716 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class", | | |
| 717 | begin:"("+_.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:_, | | |
| 718 | contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE, | | |
| 719 | relevance:0}]}}})();hljs.registerLanguage("objectivec",e)})();/*! `bash` grammar compiled for Highlight.js 11.7.0 */ | | |
| 720 | (()=>{var e=(()=>{"use strict";return e=>{const s=e.regex,t={},n={begin:/\$\{/, | | |
| 721 | end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{ | | |
| 722 | className:"variable",variants:[{ | | |
| 723 | begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const a={ | | |
| 724 | className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={ | | |
| 725 | begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/, | | |
| 726 | end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/, | | |
| 727 | contains:[e.BACKSLASH_ESCAPE,t,a]};a.contains.push(c);const o={begin:/\$?\(\(/, | | |
| 728 | end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t] | | |
| 729 | },r=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 | | |
| 730 | }),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, | | |
| 731 | contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ | | |
| 732 | name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/, | | |
| 733 | keyword:["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"], | | |
| 734 | literal:["true","false"], | | |
| 735 | built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"] | | |
| 736 | },contains:[r,e.SHEBANG(),l,o,e.HASH_COMMENT_MODE,i,{match:/(\/[a-z._-]+)+/},c,{ | | |
| 737 | className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}})() | | |
| 738 | ;hljs.registerLanguage("bash",e)})();/*! `python` grammar compiled for Highlight.js 11.7.0 */ | | |
| 739 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 740 | const n=e.regex,a=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={ | | |
| 741 | $pattern:/[A-Za-z]\w+|__\w+__/,keyword:i, | | |
| 742 | built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"], | | |
| 743 | literal:["__debug__","Ellipsis","False","None","NotImplemented","True"], | | |
| 744 | type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"] | | |
| 745 | },t={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/, | | |
| 746 | end:/\}/,keywords:s,illegal:/#/},l={begin:/\{\{/,relevance:0},b={ | | |
| 747 | className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{ | | |
| 748 | begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/, | | |
| 749 | contains:[e.BACKSLASH_ESCAPE,t],relevance:10},{ | | |
| 750 | begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/, | | |
| 751 | contains:[e.BACKSLASH_ESCAPE,t],relevance:10},{ | | |
| 752 | begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/, | | |
| 753 | contains:[e.BACKSLASH_ESCAPE,t,l,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/, | | |
| 754 | end:/"""/,contains:[e.BACKSLASH_ESCAPE,t,l,r]},{begin:/([uU]|[rR])'/,end:/'/, | | |
| 755 | relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{ | | |
| 756 | begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/, | | |
| 757 | end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/, | | |
| 758 | contains:[e.BACKSLASH_ESCAPE,l,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/, | | |
| 759 | contains:[e.BACKSLASH_ESCAPE,l,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] | | |
| 760 | },o="[0-9](_?[0-9])*",c=`(\\b(${o}))?\\.(${o})|\\b(${o})\\.`,d="\\b|"+i.join("|"),g={ | | |
| 761 | className:"number",relevance:0,variants:[{ | | |
| 762 | begin:`(\\b(${o})|(${c}))[eE][+-]?(${o})[jJ]?(?=${d})`},{begin:`(${c})[jJ]?`},{ | | |
| 763 | begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{ | | |
| 764 | begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})` | | |
| 765 | },{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${o})[jJ](?=${d})` | | |
| 766 | }]},p={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:s, | | |
| 767 | contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={ | | |
| 768 | className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/, | | |
| 769 | end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s, | | |
| 770 | contains:["self",t,g,b,e.HASH_COMMENT_MODE]}]};return r.contains=[b,g,t],{ | | |
| 771 | name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s, | | |
| 772 | illegal:/(<\/|->|\?)|=>/,contains:[t,g,{begin:/\bself\b/},{beginKeywords:"if", | | |
| 773 | relevance:0},b,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{ | | |
| 774 | 1:"keyword",3:"title.function"},contains:[m]},{variants:[{ | | |
| 775 | match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}], | | |
| 776 | scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{ | | |
| 777 | className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,m,b]}]}}})() | | |
| 778 | ;hljs.registerLanguage("python",e)})();/*! `r` grammar compiled for Highlight.js 11.7.0 */ | | |
| 779 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 780 | const a=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,t=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/) | | |
| 781 | ;return{name:"R",keywords:{$pattern:n, | | |
| 782 | keyword:"function if in break next repeat else for while", | | |
| 783 | literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", | | |
| 784 | built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" | | |
| 785 | },contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/, | | |
| 786 | starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)), | | |
| 787 | endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{ | | |
| 788 | scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0 | | |
| 789 | }]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}] | | |
| 790 | }),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE], | | |
| 791 | variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/ | | |
| 792 | }),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/ | | |
| 793 | }),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/ | | |
| 794 | }),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/ | | |
| 795 | }),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/ | | |
| 796 | }),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"', | | |
| 797 | relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{ | | |
| 798 | 1:"operator",2:"number"},match:[s,i]},{scope:{1:"operator",2:"number"}, | | |
| 799 | match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[t,i]},{scope:{ | | |
| 800 | 2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"}, | | |
| 801 | match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{ | | |
| 802 | match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:t},{begin:"`",end:"`", | | |
| 803 | contains:[{begin:/\\./}]}]}}})();hljs.registerLanguage("r",e)})();/*! `vbnet` grammar compiled for Highlight.js 11.7.0 */ | | |
| 804 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 805 | const n=e.regex,t=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,i=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,r={ | | |
| 806 | className:"literal",variants:[{begin:n.concat(/# */,n.either(a,t),/ *#/)},{ | | |
| 807 | begin:n.concat(/# */,s,/ *#/)},{begin:n.concat(/# */,i,/ *#/)},{ | | |
| 808 | begin:n.concat(/# */,n.either(a,t),/ +/,n.either(i,s),/ *#/)}] | | |
| 809 | },l=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}] | | |
| 810 | }),o=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]}) | | |
| 811 | ;return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0, | | |
| 812 | classNameAliases:{label:"symbol"},keywords:{ | | |
| 813 | keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield", | | |
| 814 | built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort", | | |
| 815 | type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort", | | |
| 816 | literal:"true false nothing"}, | | |
| 817 | illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{ | | |
| 818 | className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/, | | |
| 819 | end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r,{className:"number",relevance:0, | | |
| 820 | variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ | | |
| 821 | },{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{ | | |
| 822 | begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{ | | |
| 823 | className:"label",begin:/^\w+:/},l,o,{className:"meta", | | |
| 824 | begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, | | |
| 825 | end:/$/,keywords:{ | | |
| 826 | keyword:"const disable else elseif enable end externalsource if region then"}, | | |
| 827 | contains:[o]}]}}})();hljs.registerLanguage("vbnet",e)})();/*! `ini` grammar compiled for Highlight.js 11.7.0 */ | | |
| 828 | (()=>{var e=(()=>{"use strict";return e=>{const n=e.regex,a={className:"number", | | |
| 829 | relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}] | | |
| 830 | },s=e.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={ | | |
| 831 | className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/ | | |
| 832 | }]},t={className:"literal",begin:/\bon|off|true|false|yes|no\b/},r={ | | |
| 833 | className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''", | | |
| 834 | end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"' | | |
| 835 | },{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[s,t,i,r,a,"self"], | | |
| 836 | relevance:0},c=n.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{ | | |
| 837 | name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/, | | |
| 838 | contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{ | | |
| 839 | begin:n.concat(c,"(\\s*\\.\\s*",c,")*",n.lookahead(/\s*=\s*[^#\s]/)), | | |
| 840 | className:"attr",starts:{end:/$/,contains:[s,l,t,i,r,a]}}]}}})() | | |
| 841 | ;hljs.registerLanguage("ini",e)})();/*! `javascript` grammar compiled for Highlight.js 11.7.0 */ | | |
| 842 | (()=>{var e=(()=>{"use strict" | | |
| 843 | ;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","module","global"],i=[].concat(r,t,s) | | |
| 844 | ;return o=>{const l=o.regex,b=e,d={begin:/<[A-Za-z0-9\\._:-]+/, | | |
| 845 | end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ | | |
| 846 | const a=e[0].length+e.index,t=e.input[a] | | |
| 847 | ;if("<"===t||","===t)return void n.ignoreMatch();let s | | |
| 848 | ;">"===t&&(((e,{after:n})=>{const a="</"+e[0].slice(1) | | |
| 849 | ;return-1!==e.input.indexOf(a,n)})(e,{after:a})||n.ignoreMatch()) | | |
| 850 | ;const r=e.input.substring(a) | | |
| 851 | ;((s=r.match(/^\s*=/))||(s=r.match(/^\s+extends\s+/))&&0===s.index)&&n.ignoreMatch() | | |
| 852 | }},g={$pattern:e,keyword:n,literal:a,built_in:i,"variable.language":c | | |
| 853 | },u="\\.([0-9](_?[0-9])*)",m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={ | | |
| 854 | className:"number",variants:[{ | | |
| 855 | begin:`(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{ | | |
| 856 | begin:`\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b`},{ | | |
| 857 | begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{ | | |
| 858 | begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{ | | |
| 859 | begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{ | | |
| 860 | begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{", | | |
| 861 | end:"\\}",keywords:g,contains:[]},y={begin:"html`",end:"",starts:{end:"`", | | |
| 862 | returnEnd:!1,contains:[o.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},N={ | | |
| 863 | begin:"css`",end:"",starts:{end:"`",returnEnd:!1, | | |
| 864 | contains:[o.BACKSLASH_ESCAPE,A],subLanguage:"css"}},_={className:"string", | | |
| 865 | begin:"`",end:"`",contains:[o.BACKSLASH_ESCAPE,A]},h={className:"comment", | | |
| 866 | variants:[o.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{ | | |
| 867 | begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag", | | |
| 868 | begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0, | | |
| 869 | excludeBegin:!0,relevance:0},{className:"variable",begin:b+"(?=\\s*(-)|$)", | | |
| 870 | endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}] | | |
| 871 | }),o.C_BLOCK_COMMENT_MODE,o.C_LINE_COMMENT_MODE] | | |
| 872 | },f=[o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,y,N,_,{match:/\$\d+/},E] | | |
| 873 | ;A.contains=f.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(f) | | |
| 874 | });const v=[].concat(h,A.contains),p=v.concat([{begin:/\(/,end:/\)/,keywords:g, | | |
| 875 | contains:["self"].concat(v)}]),S={className:"params",begin:/\(/,end:/\)/, | | |
| 876 | excludeBegin:!0,excludeEnd:!0,keywords:g,contains:p},w={variants:[{ | | |
| 877 | match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,l.concat(b,"(",l.concat(/\./,b),")*")], | | |
| 878 | scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{ | | |
| 879 | match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0, | | |
| 880 | match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), | | |
| 881 | className:"title.class",keywords:{_:[...t,...s]}},O={variants:[{ | | |
| 882 | match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}], | | |
| 883 | className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S], | | |
| 884 | illegal:/%/},k={ | | |
| 885 | match:l.concat(/\b/,(I=[...r,"super","import"],l.concat("(?!",I.join("|"),")")),b,l.lookahead(/\(/)), | | |
| 886 | className:"title.function",relevance:0};var I;const x={ | | |
| 887 | begin:l.concat(/\./,l.lookahead(l.concat(b,/(?![0-9A-Za-z$_(])/))),end:b, | | |
| 888 | excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={ | | |
| 889 | match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"}, | | |
| 890 | contains:[{begin:/\(\)/},S] | | |
| 891 | },C="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+o.UNDERSCORE_IDENT_RE+")\\s*=>",M={ | | |
| 892 | match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(C)], | | |
| 893 | keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]} | | |
| 894 | ;return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{ | | |
| 895 | PARAMS_CONTAINS:p,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/, | | |
| 896 | contains:[o.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ | | |
| 897 | label:"use_strict",className:"meta",relevance:10, | | |
| 898 | begin:/^\s*['"]use (strict|asm)['"]/ | | |
| 899 | },o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,y,N,_,h,{match:/\$\d+/},E,R,{ | | |
| 900 | className:"attr",begin:b+l.lookahead(":"),relevance:0},M,{ | | |
| 901 | begin:"("+o.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", | | |
| 902 | keywords:"return throw case",relevance:0,contains:[h,o.REGEXP_MODE,{ | | |
| 903 | className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{ | | |
| 904 | className:"params",variants:[{begin:o.UNDERSCORE_IDENT_RE,relevance:0},{ | | |
| 905 | className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, | | |
| 906 | excludeEnd:!0,keywords:g,contains:p}]}]},{begin:/,/,relevance:0},{match:/\s+/, | | |
| 907 | relevance:0},{variants:[{begin:"<>",end:"</>"},{ | | |
| 908 | match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:d.begin, | | |
| 909 | "on:begin":d.isTrulyOpeningTag,end:d.end}],subLanguage:"xml",contains:[{ | | |
| 910 | begin:d.begin,end:d.end,skip:!0,contains:["self"]}]}]},O,{ | | |
| 911 | beginKeywords:"while if switch catch for"},{ | | |
| 912 | begin:"\\b(?!function)"+o.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", | | |
| 913 | returnBegin:!0,label:"func.def",contains:[S,o.inherit(o.TITLE_MODE,{begin:b, | | |
| 914 | className:"title.function"})]},{match:/\.\.\./,relevance:0},x,{match:"\\$"+b, | | |
| 915 | relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, | | |
| 916 | contains:[S]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, | | |
| 917 | className:"variable.constant"},w,T,{match:/\$[(.]/}]}}})() | | |
| 918 | ;hljs.registerLanguage("javascript",e)})();/*! `shell` grammar compiled for Highlight.js 11.7.0 */ | | |
| 919 | (()=>{var s=(()=>{"use strict";return s=>({name:"Shell Session", | | |
| 920 | aliases:["console","shellsession"],contains:[{className:"meta.prompt", | | |
| 921 | begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/, | | |
| 922 | subLanguage:"bash"}}]})})();hljs.registerLanguage("shell",s)})();/*! `makefile` grammar compiled for Highlight.js 11.7.0 */ | | |
| 923 | (()=>{var e=(()=>{"use strict";return e=>{const i={className:"variable", | | |
| 924 | variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)", | | |
| 925 | contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string", | | |
| 926 | begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]},n={className:"variable", | | |
| 927 | begin:/\$\([\w-]+\s/,end:/\)/,keywords:{ | | |
| 928 | built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" | | |
| 929 | },contains:[i]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},r={ | | |
| 930 | className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{ | | |
| 931 | name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/, | | |
| 932 | keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath" | | |
| 933 | },contains:[e.HASH_COMMENT_MODE,i,a,n,s,{className:"meta",begin:/^\.PHONY:/, | | |
| 934 | end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},r]}}})() | | |
| 935 | ;hljs.registerLanguage("makefile",e)})();/*! `graphql` grammar compiled for Highlight.js 11.7.0 */ | | |
| 936 | (()=>{var e=(()=>{"use strict";return e=>{const a=e.regex;return{name:"GraphQL", | | |
| 937 | aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{ | | |
| 938 | keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"], | | |
| 939 | literal:["true","false","null"]}, | | |
| 940 | contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{ | | |
| 941 | scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation", | | |
| 942 | begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/, | | |
| 943 | end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{ | | |
| 944 | scope:"symbol",begin:a.concat(/[_A-Za-z][_0-9A-Za-z]*/,a.lookahead(/\s*:/)), | | |
| 945 | relevance:0}],illegal:[/[;<']/,/BEGIN/]}}})();hljs.registerLanguage("graphql",e) | | |
| 946 | })();/*! `perl` grammar compiled for Highlight.js 11.7.0 */ | | |
| 947 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 948 | const n=e.regex,t=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/, | | |
| 949 | keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0" | | |
| 950 | },s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},i={begin:/->\{/, | | |
| 951 | end:/\}/},a={variants:[{begin:/\$\d/},{ | | |
| 952 | begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])") | | |
| 953 | },{begin:/[$%@][^\s\w{]/,relevance:0}] | | |
| 954 | },c=[e.BACKSLASH_ESCAPE,s,a],o=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(e,r,s="\\1")=>{ | | |
| 955 | const i="\\1"===s?s:n.concat(s,r) | | |
| 956 | ;return n.concat(n.concat("(?:",e,")"),r,/(?:\\.|[^\\\/])*?/,i,/(?:\\.|[^\\\/])*?/,s,t) | | |
| 957 | },l=(e,r,s)=>n.concat(n.concat("(?:",e,")"),r,/(?:\\.|[^\\\/])*?/,s,t),d=[a,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{ | | |
| 958 | endsWithParent:!0}),i,{className:"string",contains:c,variants:[{ | | |
| 959 | begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[", | | |
| 960 | end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{ | | |
| 961 | begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">", | | |
| 962 | relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'", | | |
| 963 | contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`", | | |
| 964 | contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{ | | |
| 965 | begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number", | | |
| 966 | begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", | | |
| 967 | relevance:0},{ | | |
| 968 | begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*", | | |
| 969 | keywords:"split return print reverse grep",relevance:0, | | |
| 970 | contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{ | | |
| 971 | begin:g("s|tr|y",n.either(...o,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{ | | |
| 972 | begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{ | | |
| 973 | className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{ | | |
| 974 | begin:l("(?:m|qr)?",/\//,/\//)},{begin:l("m|qr",n.either(...o,{capture:!0 | | |
| 975 | }),/\1/)},{begin:l("m|qr",/\(/,/\)/)},{begin:l("m|qr",/\[/,/\]/)},{ | | |
| 976 | begin:l("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub", | | |
| 977 | end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{ | | |
| 978 | begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$", | | |
| 979 | subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}] | | |
| 980 | }];return s.contains=d,i.contains=d,{name:"Perl",aliases:["pl","pm"],keywords:r, | | |
| 981 | contains:d}}})();hljs.registerLanguage("perl",e)})();/*! `rust` grammar compiled for Highlight.js 11.7.0 */ | | |
| 982 | (()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a={ | | |
| 983 | className:"title.function.invoke",relevance:0, | | |
| 984 | begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/)) | | |
| 985 | },n="([ui](8|16|32|64|128|size)|f(32|64))?",s=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],r=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"] | | |
| 986 | ;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:r, | | |
| 987 | keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"], | | |
| 988 | literal:["true","false","Some","None","Ok","Err"],built_in:s},illegal:"</", | | |
| 989 | contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"] | | |
| 990 | }),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{ | | |
| 991 | className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{ | | |
| 992 | begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol", | | |
| 993 | begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{ | | |
| 994 | begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{ | | |
| 995 | begin:"\\b0x([A-Fa-f0-9_]+)"+n},{ | | |
| 996 | begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+n}],relevance:0},{ | | |
| 997 | begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword", | | |
| 998 | 3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{ | | |
| 999 | className:"string",begin:/"/,end:/"/}]},{ | | |
| 1000 | begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword", | | |
| 1001 | 3:"keyword",4:"variable"}},{ | | |
| 1002 | begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword", | | |
| 1003 | 3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE], | | |
| 1004 | className:{1:"keyword",3:"title.class"}},{ | | |
| 1005 | begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE], | | |
| 1006 | className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{ | | |
| 1007 | keyword:"Self",built_in:s,type:r}},{className:"punctuation",begin:"->"},a]}}})() | | |
| 1008 | ;hljs.registerLanguage("rust",e)})();/*! `json` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1009 | (()=>{var e=(()=>{"use strict";return e=>{const a=["true","false","null"],n={ | | |
| 1010 | scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",keywords:{ | | |
| 1011 | literal:a},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/, | | |
| 1012 | relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0 | | |
| 1013 | },e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE], | | |
| 1014 | illegal:"\\S"}}})();hljs.registerLanguage("json",e)})();/*! `yaml` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1015 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 1016 | const n="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={ | | |
| 1017 | className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ | | |
| 1018 | },{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", | | |
| 1019 | variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(s,{ | | |
| 1020 | variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={ | | |
| 1021 | end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},t={begin:/\{/, | | |
| 1022 | end:/\}/,contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]", | | |
| 1023 | contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{ | | |
| 1024 | begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{ | | |
| 1025 | begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$", | | |
| 1026 | relevance:10},{className:"string", | | |
| 1027 | begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ | | |
| 1028 | begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, | | |
| 1029 | relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type", | | |
| 1030 | begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a | | |
| 1031 | },{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", | | |
| 1032 | begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", | | |
| 1033 | relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{ | | |
| 1034 | className:"number", | | |
| 1035 | begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" | | |
| 1036 | },{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},t,g,s],r=[...b] | | |
| 1037 | ;return r.pop(),r.push(i),l.contains=r,{name:"YAML",case_insensitive:!0, | | |
| 1038 | aliases:["yml"],contains:b}}})();hljs.registerLanguage("yaml",e)})();/*! `python-repl` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1039 | (()=>{var a=(()=>{"use strict";return a=>({aliases:["pycon"],contains:[{ | | |
| 1040 | className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"} | | |
| 1041 | },variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]})})() | | |
| 1042 | ;hljs.registerLanguage("python-repl",a)})();/*! `kotlin` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1043 | (()=>{var e=(()=>{"use strict" | | |
| 1044 | ;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={ | | |
| 1045 | className:"number",variants:[{ | | |
| 1046 | begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` | | |
| 1047 | },{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ | | |
| 1048 | begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ | | |
| 1049 | begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` | | |
| 1050 | },{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{ | | |
| 1051 | begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], | | |
| 1052 | relevance:0};return e=>{const n={ | | |
| 1053 | keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", | | |
| 1054 | built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", | | |
| 1055 | literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" | | |
| 1056 | },s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},t={ | | |
| 1057 | className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string", | | |
| 1058 | variants:[{begin:'"""',end:'"""(?=[^"])',contains:[t,s]},{begin:"'",end:"'", | | |
| 1059 | illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, | | |
| 1060 | contains:[e.BACKSLASH_ESCAPE,t,s]}]};s.contains.push(r);const l={ | | |
| 1061 | className:"meta", | | |
| 1062 | begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" | | |
| 1063 | },c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, | | |
| 1064 | end:/\)/,contains:[e.inherit(r,{className:"string"}),"self"]}] | | |
| 1065 | },o=a,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={ | | |
| 1066 | variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, | | |
| 1067 | contains:[]}]},d=E;return d.variants[1].contains=[E],E.variants[1].contains=[d], | | |
| 1068 | {name:"Kotlin",aliases:["kt","kts"],keywords:n, | | |
| 1069 | contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", | | |
| 1070 | begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,{className:"keyword", | | |
| 1071 | begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", | | |
| 1072 | begin:/@\w+/}]}},i,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$", | | |
| 1073 | returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{ | | |
| 1074 | begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, | | |
| 1075 | contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/, | | |
| 1076 | keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, | | |
| 1077 | endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, | | |
| 1078 | endsWithParent:!0,contains:[E,e.C_LINE_COMMENT_MODE,b],relevance:0 | | |
| 1079 | },e.C_LINE_COMMENT_MODE,b,l,c,r,e.C_NUMBER_MODE]},b]},{ | | |
| 1080 | begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{ | | |
| 1081 | 3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, | | |
| 1082 | illegal:"extends implements",contains:[{ | | |
| 1083 | beginKeywords:"public protected internal private constructor" | | |
| 1084 | },e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0, | | |
| 1085 | excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/, | | |
| 1086 | excludeBegin:!0,returnEnd:!0},l,c]},r,{className:"meta",begin:"^#!/usr/bin/env", | | |
| 1087 | end:"$",illegal:"\n"},o]}}})();hljs.registerLanguage("kotlin",e)})();/*! `markdown` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1088 | (()=>{var e=(()=>{"use strict";return e=>{const n={begin:/<\/?[A-Za-z_]/, | | |
| 1089 | end:">",subLanguage:"xml",relevance:0},a={variants:[{begin:/\[.+?\]\[.*?\]/, | | |
| 1090 | relevance:0},{ | | |
| 1091 | begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, | | |
| 1092 | relevance:2},{ | | |
| 1093 | begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), | | |
| 1094 | relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ | | |
| 1095 | begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/ | | |
| 1096 | },{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, | | |
| 1097 | returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", | | |
| 1098 | excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", | | |
| 1099 | end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[], | | |
| 1100 | variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}] | | |
| 1101 | },s={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{ | | |
| 1102 | begin:/_(?![_\s])/,end:/_/,relevance:0}]},c=e.inherit(i,{contains:[] | | |
| 1103 | }),t=e.inherit(s,{contains:[]});i.contains.push(t),s.contains.push(c) | | |
| 1104 | ;let g=[n,a];return[i,s,c,t].forEach((e=>{e.contains=e.contains.concat(g) | | |
| 1105 | })),g=g.concat(i,s),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ | | |
| 1106 | className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{ | | |
| 1107 | begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", | | |
| 1108 | contains:g}]}]},n,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", | | |
| 1109 | end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:g, | | |
| 1110 | end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ | | |
| 1111 | begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ | | |
| 1112 | begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", | | |
| 1113 | contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ | | |
| 1114 | begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ | | |
| 1115 | className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ | | |
| 1116 | className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}})() | | |
| 1117 | ;hljs.registerLanguage("markdown",e)})();/*! `go` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1118 | (()=>{var e=(()=>{"use strict";return e=>{const n={ | | |
| 1119 | keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"], | | |
| 1120 | type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"], | | |
| 1121 | literal:["true","false","iota","nil"], | | |
| 1122 | built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"] | | |
| 1123 | };return{name:"Go",aliases:["golang"],keywords:n,illegal:"</", | | |
| 1124 | contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string", | | |
| 1125 | variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{ | | |
| 1126 | className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1 | | |
| 1127 | },e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func", | | |
| 1128 | end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params", | | |
| 1129 | begin:/\(/,end:/\)/,endsParent:!0,keywords:n,illegal:/["']/}]}]}}})() | | |
| 1130 | ;hljs.registerLanguage("go",e)})();/*! `cpp` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1131 | (()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a=e.COMMENT("//","$",{ | | |
| 1132 | contains:[{begin:/\\\n/}] | | |
| 1133 | }),n="[a-zA-Z_]\\w*::",r="(?!struct)(decltype\\(auto\\)|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={ | | |
| 1134 | className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{ | | |
| 1135 | begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ | | |
| 1136 | begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", | | |
| 1137 | end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ | | |
| 1138 | begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={ | | |
| 1139 | className:"number",variants:[{begin:"\\b(0b[01']+)"},{ | | |
| 1140 | begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" | | |
| 1141 | },{ | | |
| 1142 | begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" | | |
| 1143 | }],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ | | |
| 1144 | keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" | | |
| 1145 | },contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{ | | |
| 1146 | className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},l={ | | |
| 1147 | className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0 | | |
| 1148 | },d=t.optional(n)+e.IDENT_RE+"\\s*\\(",u={ | | |
| 1149 | type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"], | | |
| 1150 | keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"], | | |
| 1151 | literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"], | | |
| 1152 | _type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"] | | |
| 1153 | },p={className:"function.dispatch",relevance:0,keywords:{ | | |
| 1154 | _hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"] | | |
| 1155 | }, | | |
| 1156 | begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/)) | | |
| 1157 | },_=[p,o,i,a,e.C_BLOCK_COMMENT_MODE,c,s],m={variants:[{begin:/=/,end:/;/},{ | | |
| 1158 | begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], | | |
| 1159 | keywords:u,contains:_.concat([{begin:/\(/,end:/\)/,keywords:u, | | |
| 1160 | contains:_.concat(["self"]),relevance:0}]),relevance:0},g={className:"function", | | |
| 1161 | begin:"("+r+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, | | |
| 1162 | keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)", | | |
| 1163 | keywords:u,relevance:0},{begin:d,returnBegin:!0,contains:[l],relevance:0},{ | | |
| 1164 | begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{ | | |
| 1165 | relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:u, | | |
| 1166 | relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,s,c,i,{begin:/\(/,end:/\)/, | | |
| 1167 | keywords:u,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,s,c,i]}] | | |
| 1168 | },i,a,e.C_BLOCK_COMMENT_MODE,o]};return{name:"C++", | | |
| 1169 | aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:u,illegal:"</", | | |
| 1170 | classNameAliases:{"function.dispatch":"built_in"}, | | |
| 1171 | contains:[].concat(m,g,p,_,[o,{ | | |
| 1172 | begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)", | | |
| 1173 | end:">",keywords:u,contains:["self",i]},{begin:e.IDENT_RE+"::",keywords:u},{ | | |
| 1174 | match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/], | | |
| 1175 | className:{1:"keyword",3:"title.class"}}])}}})();hljs.registerLanguage("cpp",e) | | |
| 1176 | })();/*! `css` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1177 | (()=>{var e=(()=>{"use strict" | | |
| 1178 | ;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],t=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse() | | |
| 1179 | ;return n=>{const a=n.regex,l=(e=>({IMPORTANT:{scope:"meta",begin:"!important"}, | | |
| 1180 | BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number", | | |
| 1181 | begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{ | | |
| 1182 | className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{ | | |
| 1183 | scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", | | |
| 1184 | contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ | | |
| 1185 | scope:"number", | | |
| 1186 | 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)?", | | |
| 1187 | relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/} | | |
| 1188 | }))(n),s=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS", | | |
| 1189 | case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"}, | | |
| 1190 | classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,{ | | |
| 1191 | begin:/-(webkit|moz|ms|o)-(?=[a-z])/},l.CSS_NUMBER_MODE,{ | | |
| 1192 | className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{ | | |
| 1193 | className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 | | |
| 1194 | },l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ | | |
| 1195 | begin:":("+r.join("|")+")"},{begin:":(:)?("+t.join("|")+")"}]},l.CSS_VARIABLE,{ | | |
| 1196 | className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/, | | |
| 1197 | contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...s,{ | | |
| 1198 | begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" | | |
| 1199 | },contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0, | | |
| 1200 | excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]", | | |
| 1201 | relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/ | | |
| 1202 | },{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{ | | |
| 1203 | $pattern:/[a-z-]+/,keyword:"and or not only",attribute:i.join(" ")},contains:[{ | | |
| 1204 | begin:/[a-z-]+(?=:)/,className:"attribute"},...s,l.CSS_NUMBER_MODE]}]},{ | | |
| 1205 | className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}})() | | |
| 1206 | ;hljs.registerLanguage("css",e)})();/*! `sql` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1207 | (()=>{var e=(()=>{"use strict";return e=>{ | | |
| 1208 | const r=e.regex,t=e.COMMENT("--","$"),n=["true","false","unknown"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],o=i,c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!i.includes(e))),l={ | | |
| 1209 | begin:r.concat(/\b/,r.either(...o),/\s*\(/),relevance:0,keywords:{built_in:o}} | | |
| 1210 | ;return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{ | | |
| 1211 | $pattern:/\b[\w\.]+/,keyword:((e,{exceptions:r,when:t}={})=>{const n=t | | |
| 1212 | ;return r=r||[],e.map((e=>e.match(/\|\d+$/)||r.includes(e)?e:n(e)?e+"|0":e)) | | |
| 1213 | })(c,{when:e=>e.length<3}),literal:n,type:a, | | |
| 1214 | built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"] | | |
| 1215 | },contains:[{begin:r.either(...s),relevance:0,keywords:{$pattern:/[\w\.]+/, | | |
| 1216 | keyword:c.concat(s),literal:n,type:a}},{className:"type", | | |
| 1217 | begin:r.either("double precision","large object","with timezone","without timezone") | | |
| 1218 | },l,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{ | | |
| 1219 | begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{ | | |
| 1220 | begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"operator", | | |
| 1221 | begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}})() | | |
| 1222 | ;hljs.registerLanguage("sql",e)})();/*! `diff` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1223 | (()=>{var e=(()=>{"use strict";return e=>{const a=e.regex;return{name:"Diff", | | |
| 1224 | aliases:["patch"],contains:[{className:"meta",relevance:10, | | |
| 1225 | match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/) | | |
| 1226 | },{className:"comment",variants:[{ | | |
| 1227 | begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/), | | |
| 1228 | end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{ | | |
| 1229 | className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/, | | |
| 1230 | end:/$/}]}}})();hljs.registerLanguage("diff",e)})();/*! `scss` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1231 | (()=>{var e=(()=>{"use strict" | | |
| 1232 | ;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],t=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse() | | |
| 1233 | ;return n=>{const a=(e=>({IMPORTANT:{scope:"meta",begin:"!important"}, | | |
| 1234 | BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number", | | |
| 1235 | begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{ | | |
| 1236 | className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{ | | |
| 1237 | scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", | | |
| 1238 | contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ | | |
| 1239 | scope:"number", | | |
| 1240 | 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)?", | | |
| 1241 | relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/} | | |
| 1242 | }))(n),l=t,s=i,d="@[a-z-]+",c={className:"variable", | | |
| 1243 | begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS", | | |
| 1244 | case_insensitive:!0,illegal:"[=/|']", | | |
| 1245 | contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{ | | |
| 1246 | className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{ | | |
| 1247 | className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0 | | |
| 1248 | },a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag", | | |
| 1249 | begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo", | | |
| 1250 | begin:":("+s.join("|")+")"},{className:"selector-pseudo", | | |
| 1251 | begin:":(:)?("+l.join("|")+")"},c,{begin:/\(/,end:/\)/, | | |
| 1252 | contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute", | | |
| 1253 | begin:"\\b("+o.join("|")+")\\b"},{ | | |
| 1254 | begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" | | |
| 1255 | },{begin:/:/,end:/[;}{]/,relevance:0, | | |
| 1256 | contains:[a.BLOCK_COMMENT,c,a.HEXCOLOR,a.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH] | | |
| 1257 | },{begin:"@(page|font-face)",keywords:{$pattern:d,keyword:"@page @font-face"}},{ | | |
| 1258 | begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/, | | |
| 1259 | keyword:"and or not only",attribute:r.join(" ")},contains:[{begin:d, | | |
| 1260 | className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute" | | |
| 1261 | },c,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE] | | |
| 1262 | },a.FUNCTION_DISPATCH]}}})();hljs.registerLanguage("scss",e)})();/*! `swift` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1263 | (()=>{var e=(()=>{"use strict";function e(e){ | | |
| 1264 | return e?"string"==typeof e?e:e.source:null}function a(e){return t("(?=",e,")")} | | |
| 1265 | function t(...a){return a.map((a=>e(a))).join("")}function n(...a){const t=(e=>{ | | |
| 1266 | const a=e[e.length-1] | | |
| 1267 | ;return"object"==typeof a&&a.constructor===Object?(e.splice(e.length-1,1),a):{} | | |
| 1268 | })(a);return"("+(t.capture?"":"?:")+a.map((a=>e(a))).join("|")+")"} | | |
| 1269 | const i=e=>t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],d=n(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),F=n(d,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(d,F,"*"),h=n(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=n(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=t(h,f,"*"),y=t(/[A-Z]/,f,"*"),g=["autoclosure",t(/convention\(/,n("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] | | |
| 1270 | ;return e=>{const d={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ | | |
| 1271 | contains:["self"]}),v=[e.C_LINE_COMMENT_MODE,h],A={match:[/\./,n(...s,...u)], | | |
| 1272 | className:{2:"keyword"}},N={match:t(/\./,n(...r)),relevance:0 | | |
| 1273 | },C=r.filter((e=>"string"==typeof e)).concat(["_|0"]),D={variants:[{ | | |
| 1274 | className:"keyword", | | |
| 1275 | match:n(...r.filter((e=>"string"!=typeof e)).concat(c).map(i),...u)}]},k={ | | |
| 1276 | $pattern:n(/\b\w+/,/#\w+/),keyword:C.concat(m),literal:o},B=[A,N,D],_=[{ | | |
| 1277 | match:t(/\./,n(...p)),relevance:0},{className:"built_in", | | |
| 1278 | match:t(/\b/,n(...p),/(?=\()/)}],S={match:/->/,relevance:0},M=[S,{ | | |
| 1279 | className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${F})+`}] | | |
| 1280 | }],x="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{ | | |
| 1281 | match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ | | |
| 1282 | match:`\\b0x(${x})(\\.(${x}))?([pP][+-]?(([0-9]_*)+))?\\b`},{ | | |
| 1283 | match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},L=(e="")=>({ | | |
| 1284 | className:"subst",variants:[{match:t(/\\/,e,/[0\\tnr"']/)},{ | | |
| 1285 | match:t(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(e="")=>({className:"subst", | | |
| 1286 | match:t(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),T=(e="")=>({className:"subst", | | |
| 1287 | label:"interpol",begin:t(/\\/,e,/\(/),end:/\)/}),$=(e="")=>({begin:t(e,/"""/), | | |
| 1288 | end:t(/"""/,e),contains:[L(e),O(e),T(e)]}),j=(e="")=>({begin:t(e,/"/), | | |
| 1289 | end:t(/"/,e),contains:[L(e),T(e)]}),P={className:"string", | | |
| 1290 | variants:[$(),$("#"),$("##"),$("###"),j(),j("#"),j("##"),j("###")]},K={ | | |
| 1291 | match:t(/`/,w,/`/)},z=[K,{className:"variable",match:/\$\d+/},{ | | |
| 1292 | className:"variable",match:`\\$${f}+`}],q=[{match:/(@|#(un)?)available/, | | |
| 1293 | className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:E, | | |
| 1294 | contains:[...M,I,P]}]}},{className:"keyword",match:t(/@/,n(...g))},{ | | |
| 1295 | className:"meta",match:t(/@/,w)}],U={match:a(/\b[A-Z]/),relevance:0,contains:[{ | | |
| 1296 | className:"type", | | |
| 1297 | match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,f,"+") | | |
| 1298 | },{className:"type",match:y,relevance:0},{match:/[?!]+/,relevance:0},{ | | |
| 1299 | match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,a(y)),relevance:0}]},Z={ | | |
| 1300 | begin:/</,end:/>/,keywords:k,contains:[...v,...B,...q,S,U]};U.contains.push(Z) | | |
| 1301 | ;const V={begin:/\(/,end:/\)/,relevance:0,keywords:k,contains:["self",{ | | |
| 1302 | match:t(w,/\s*:/),keywords:"_|0",relevance:0 | | |
| 1303 | },...v,...B,..._,...M,I,P,...z,...q,U]},W={begin:/</,end:/>/,contains:[...v,U] | | |
| 1304 | },G={begin:/\(/,end:/\)/,keywords:k,contains:[{ | | |
| 1305 | begin:n(a(t(w,/\s*:/)),a(t(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{ | | |
| 1306 | className:"keyword",match:/\b_\b/},{className:"params",match:w}] | | |
| 1307 | },...v,...B,...M,I,P,...q,U,V],endsParent:!0,illegal:/["']/},R={ | | |
| 1308 | match:[/func/,/\s+/,n(K.match,w,b)],className:{1:"keyword",3:"title.function"}, | | |
| 1309 | contains:[W,G,d],illegal:[/\[/,/%/]},X={ | | |
| 1310 | match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, | | |
| 1311 | contains:[W,G,d],illegal:/\[|%/},H={match:[/operator/,/\s+/,b],className:{ | | |
| 1312 | 1:"keyword",3:"title"}},J={begin:[/precedencegroup/,/\s+/,y],className:{ | | |
| 1313 | 1:"keyword",3:"title"},contains:[U],keywords:[...l,...o],end:/}/} | | |
| 1314 | ;for(const e of P.variants){const a=e.contains.find((e=>"interpol"===e.label)) | | |
| 1315 | ;a.keywords=k;const t=[...B,..._,...M,I,P,...z];a.contains=[...t,{begin:/\(/, | | |
| 1316 | end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:k, | | |
| 1317 | contains:[...v,R,X,{beginKeywords:"struct protocol class extension enum actor", | | |
| 1318 | end:"\\{",excludeEnd:!0,keywords:k,contains:[e.inherit(e.TITLE_MODE,{ | | |
| 1319 | className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...B] | | |
| 1320 | },H,J,{beginKeywords:"import",end:/$/,contains:[...v],relevance:0 | | |
| 1321 | },...B,..._,...M,I,P,...z,...q,U,V]}}})();hljs.registerLanguage("swift",e)})();/*! `c` grammar compiled for Highlight.js 11.7.0 */ | | |
| 1322 | (()=>{var e=(()=>{"use strict";return e=>{const n=e.regex,t=e.COMMENT("//","$",{ | | |
| 1323 | contains:[{begin:/\\\n/}] | | |
| 1324 | }),s="[a-zA-Z_]\\w*::",a="(decltype\\(auto\\)|"+n.optional(s)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",r={ | | |
| 1325 | className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{ | | |
| 1326 | match:/\batomic_[a-z]{3,6}\b/}]},i={className:"string",variants:[{ | | |
| 1327 | begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ | | |
| 1328 | begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", | | |
| 1329 | end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ | | |
| 1330 | begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={ | | |
| 1331 | className:"number",variants:[{begin:"\\b(0b[01']+)"},{ | | |
| 1332 | begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" | | |
| 1333 | },{ | | |
| 1334 | begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" | | |
| 1335 | }],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ | | |
| 1336 | keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" | | |
| 1337 | },contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{ | | |
| 1338 | className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},c={ | | |
| 1339 | className:"title",begin:n.optional(s)+e.IDENT_RE,relevance:0 | | |
| 1340 | },d=n.optional(s)+e.IDENT_RE+"\\s*\\(",u={ | | |
| 1341 | keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"], | | |
| 1342 | type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"], | | |
| 1343 | literal:"true false NULL", | | |
| 1344 | built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr" | | |
| 1345 | },g=[o,r,t,e.C_BLOCK_COMMENT_MODE,l,i],m={variants:[{begin:/=/,end:/;/},{ | | |
| 1346 | begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], | | |
| 1347 | keywords:u,contains:g.concat([{begin:/\(/,end:/\)/,keywords:u, | | |
| 1348 | contains:g.concat(["self"]),relevance:0}]),relevance:0},p={ | | |
| 1349 | begin:"("+a+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, | | |
| 1350 | keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)", | | |
| 1351 | keywords:u,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(c,{ | | |
| 1352 | className:"title.function"})],relevance:0},{relevance:0,match:/,/},{ | | |
| 1353 | className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0, | | |
| 1354 | contains:[t,e.C_BLOCK_COMMENT_MODE,i,l,r,{begin:/\(/,end:/\)/,keywords:u, | | |
| 1355 | relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,l,r]}] | | |
| 1356 | },r,t,e.C_BLOCK_COMMENT_MODE,o]};return{name:"C",aliases:["h"],keywords:u, | | |
| 1357 | disableAutodetect:!0,illegal:"</",contains:[].concat(m,p,g,[o,{ | | |
| 1358 | begin:e.IDENT_RE+"::",keywords:u},{className:"class", | | |
| 1359 | beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{ | | |
| 1360 | beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:o, | | |
| 1361 | strings:i,keywords:u}}}})();hljs.registerLanguage("c",e)})(); | | |
| 1361 |
\ No newline at end of file | |
\ No newline at end of file |