@hep-code-runner/vue2 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var re=Object.defineProperty,se=(r,e,t)=>e in r?re(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,q=(r,e,t)=>se(r,typeof e!="symbol"?e+"":e,t);let W=null;class ie{constructor(e={}){q(this,"baseUrl"),q(this,"timeout"),this.baseUrl=e.pistonUrl||"/api/piston",this.timeout=e.timeout||3e3}async getRuntimes(e=!1){if(W&&!e)return W;try{const t=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Failed to fetch runtimes: ${t.statusText}`);const l=await t.json();return W=l,l}catch(t){throw console.error("Failed to fetch runtimes:",t),t}}async execute(e,t,l={}){const p=(await this.getRuntimes()).find(h=>{var A;return h.language.toLowerCase()===e.toLowerCase()||((A=h.aliases)==null?void 0:A.some(I=>I.toLowerCase()===e.toLowerCase()))});if(!p)throw new Error(`Language '${e}' is not supported`);const f=this.getFileName(e),b={language:p.language,version:l.version||p.version,files:[{name:f,content:t}],stdin:l.stdin||"",args:l.args||[],run_timeout:l.runTimeout||this.timeout,compile_timeout:this.timeout},u=Date.now();try{const h=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!h.ok)throw new Error(`Execute failed: ${h.statusText}`);const A=await h.json(),I=Date.now()-u,x=A.run.stdout||"",R=A.run.stderr||"";return{success:A.run.code===0,output:x,stderr:R,code:A.run.code,executionTime:I,compile:A.compile?{stdout:A.compile.stdout||"",stderr:A.compile.stderr||"",code:A.compile.code}:void 0}}catch(h){return{success:!1,output:"",stderr:h instanceof Error?h.message:"Unknown error",code:-1,executionTime:Date.now()-u}}}getFileName(e){return{javascript:"main.js",typescript:"main.ts",python:"main.py",python3:"main.py",go:"main.go",rust:"main.rs",java:"Main.java",c:"main.c",cpp:"main.cpp",csharp:"Main.cs",ruby:"main.rb",php:"main.php",bash:"main.sh",shell:"main.sh",perl:"main.pl",lua:"main.lua",swift:"main.swift",kotlin:"Main.kt",scala:"Main.scala",haskell:"main.hs",dart:"main.dart",html:"index.html",css:"style.css",sql:"query.sql",markdown:"readme.md"}[e.toLowerCase()]||`main.${e}`}}const oe={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:`package main
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ae=Object.defineProperty,ie=(r,e,t)=>e in r?ae(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,q=(r,e,t)=>ie(r,typeof e!="symbol"?e+"":e,t);let W=null;class se{constructor(e={}){q(this,"baseUrl"),q(this,"timeout"),this.baseUrl=e.pistonUrl||"/api/piston",this.timeout=e.timeout||3e3}async getRuntimes(e=!1){if(W&&!e)return W;try{const t=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Failed to fetch runtimes: ${t.statusText}`);const l=await t.json();return W=l,l}catch(t){throw console.error("Failed to fetch runtimes:",t),t}}async execute(e,t,l={}){const p=(await this.getRuntimes()).find(h=>{var A;return h.language.toLowerCase()===e.toLowerCase()||((A=h.aliases)==null?void 0:A.some(_=>_.toLowerCase()===e.toLowerCase()))});if(!p)throw new Error(`Language '${e}' is not supported`);const f=this.getFileName(e),b={language:p.language,version:l.version||p.version,files:[{name:f,content:t}],stdin:l.stdin||"",args:l.args||[],run_timeout:l.runTimeout||this.timeout,compile_timeout:this.timeout},u=Date.now();try{const h=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!h.ok)throw new Error(`Execute failed: ${h.statusText}`);const A=await h.json(),_=Date.now()-u,x=A.run.stdout||"",I=A.run.stderr||"";return{success:A.run.code===0,output:x,stderr:I,code:A.run.code,executionTime:_,compile:A.compile?{stdout:A.compile.stdout||"",stderr:A.compile.stderr||"",code:A.compile.code}:void 0}}catch(h){return{success:!1,output:"",stderr:h instanceof Error?h.message:"Unknown error",code:-1,executionTime:Date.now()-u}}}getFileName(e){return{javascript:"main.js",typescript:"main.ts",python:"main.py",python3:"main.py",go:"main.go",rust:"main.rs",java:"Main.java",c:"main.c",cpp:"main.cpp",csharp:"Main.cs",ruby:"main.rb",php:"main.php",bash:"main.sh",shell:"main.sh",perl:"main.pl",lua:"main.lua",swift:"main.swift",kotlin:"Main.kt",scala:"Main.scala",haskell:"main.hs",dart:"main.dart",html:"index.html",css:"style.css",sql:"query.sql",markdown:"readme.md"}[e.toLowerCase()]||`main.${e}`}}const oe={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:`package main
2
2
 
3
3
  import "fmt"
4
4
 
@@ -71,5 +71,121 @@ This is a sample markdown document.`};function z(r){const e=r.toLowerCase();retu
71
71
  * @author Lea Verou <https://lea.verou.me>
72
72
  * @namespace
73
73
  * @public
74
- */var t=function(l){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,b={},u={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function a(n){return n instanceof h?new h(n.type,a(n.content),n.alias):Array.isArray(n)?n.map(a):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).slice(8,-1)},objId:function(a){return a.__id||Object.defineProperty(a,"__id",{value:++f}),a.__id},clone:function a(n,s){s=s||{};var i,o;switch(u.util.type(n)){case"Object":if(o=u.util.objId(n),s[o])return s[o];i={},s[o]=i;for(var d in n)n.hasOwnProperty(d)&&(i[d]=a(n[d],s));return i;case"Array":return o=u.util.objId(n),s[o]?s[o]:(i=[],s[o]=i,n.forEach(function(g,c){i[c]=a(g,s)}),i);default:return n}},getLanguage:function(a){for(;a;){var n=p.exec(a.className);if(n)return n[1].toLowerCase();a=a.parentElement}return"none"},setLanguage:function(a,n){a.className=a.className.replace(RegExp(p,"gi"),""),a.classList.add("language-"+n)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(i){var a=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(a){var n=document.getElementsByTagName("script");for(var s in n)if(n[s].src==a)return n[s]}return null}},isActive:function(a,n,s){for(var i="no-"+n;a;){var o=a.classList;if(o.contains(n))return!0;if(o.contains(i))return!1;a=a.parentElement}return!!s}},languages:{plain:b,plaintext:b,text:b,txt:b,extend:function(a,n){var s=u.util.clone(u.languages[a]);for(var i in n)s[i]=n[i];return s},insertBefore:function(a,n,s,i){i=i||u.languages;var o=i[a],d={};for(var g in o)if(o.hasOwnProperty(g)){if(g==n)for(var c in s)s.hasOwnProperty(c)&&(d[c]=s[c]);s.hasOwnProperty(g)||(d[g]=o[g])}var E=i[a];return i[a]=d,u.languages.DFS(u.languages,function(S,F){F===E&&S!=a&&(this[S]=d)}),d},DFS:function a(n,s,i,o){o=o||{};var d=u.util.objId;for(var g in n)if(n.hasOwnProperty(g)){s.call(n,g,n[g],i||g);var c=n[g],E=u.util.type(c);E==="Object"&&!o[d(c)]?(o[d(c)]=!0,a(c,s,null,o)):E==="Array"&&!o[d(c)]&&(o[d(c)]=!0,a(c,s,g,o))}}},plugins:{},highlightAll:function(a,n){u.highlightAllUnder(document,a,n)},highlightAllUnder:function(a,n,s){var i={callback:s,container:a,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),u.hooks.run("before-all-elements-highlight",i);for(var o=0,d;d=i.elements[o++];)u.highlightElement(d,n===!0,i.callback)},highlightElement:function(a,n,s){var i=u.util.getLanguage(a),o=u.languages[i];u.util.setLanguage(a,i);var d=a.parentElement;d&&d.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(d,i);var g=a.textContent,c={element:a,language:i,grammar:o,code:g};function E(F){c.highlightedCode=F,u.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,u.hooks.run("after-highlight",c),u.hooks.run("complete",c),s&&s.call(c.element)}if(u.hooks.run("before-sanity-check",c),d=c.element.parentElement,d&&d.nodeName.toLowerCase()==="pre"&&!d.hasAttribute("tabindex")&&d.setAttribute("tabindex","0"),!c.code){u.hooks.run("complete",c),s&&s.call(c.element);return}if(u.hooks.run("before-highlight",c),!c.grammar){E(u.util.encode(c.code));return}if(n&&l.Worker){var S=new Worker(u.filename);S.onmessage=function(F){E(F.data)},S.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else E(u.highlight(c.code,c.grammar,c.language))},highlight:function(a,n,s){var i={code:a,grammar:n,language:s};if(u.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=u.tokenize(i.code,i.grammar),u.hooks.run("after-tokenize",i),h.stringify(u.util.encode(i.tokens),i.language)},tokenize:function(a,n){var s=n.rest;if(s){for(var i in s)n[i]=s[i];delete n.rest}var o=new x;return R(o,o.head,a),I(a,o,n,o.head,0),N(o)},hooks:{all:{},add:function(a,n){var s=u.hooks.all;s[a]=s[a]||[],s[a].push(n)},run:function(a,n){var s=u.hooks.all[a];if(!(!s||!s.length))for(var i=0,o;o=s[i++];)o(n)}},Token:h};l.Prism=u;function h(a,n,s,i){this.type=a,this.content=n,this.alias=s,this.length=(i||"").length|0}h.stringify=function a(n,s){if(typeof n=="string")return n;if(Array.isArray(n)){var i="";return n.forEach(function(E){i+=a(E,s)}),i}var o={type:n.type,content:a(n.content,s),tag:"span",classes:["token",n.type],attributes:{},language:s},d=n.alias;d&&(Array.isArray(d)?Array.prototype.push.apply(o.classes,d):o.classes.push(d)),u.hooks.run("wrap",o);var g="";for(var c in o.attributes)g+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+g+">"+o.content+"</"+o.tag+">"};function A(a,n,s,i){a.lastIndex=n;var o=a.exec(s);if(o&&i&&o[1]){var d=o[1].length;o.index+=d,o[0]=o[0].slice(d)}return o}function I(a,n,s,i,o,d){for(var g in s)if(!(!s.hasOwnProperty(g)||!s[g])){var c=s[g];c=Array.isArray(c)?c:[c];for(var E=0;E<c.length;++E){if(d&&d.cause==g+","+E)return;var S=c[E],F=S.inside,X=!!S.lookbehind,Z=!!S.greedy,ee=S.alias;if(Z&&!S.pattern.global){var te=S.pattern.toString().match(/[imsuy]*$/)[0];S.pattern=RegExp(S.pattern.source,te+"g")}for(var K=S.pattern||S,T=i.next,_=o;T!==n.tail&&!(d&&_>=d.reach);_+=T.value.length,T=T.next){var C=T.value;if(n.length>a.length)return;if(!(C instanceof h)){var D=1,w;if(Z){if(w=A(K,_,a,X),!w||w.index>=a.length)break;var P=w.index,ne=w.index+w[0].length,k=_;for(k+=T.value.length;P>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,_=k,T.value instanceof h)continue;for(var L=T;L!==n.tail&&(k<ne||typeof L.value=="string");L=L.next)D++,k+=L.value.length;D--,C=a.slice(_,k),w.index-=_}else if(w=A(K,0,C,X),!w)continue;var P=w.index,$=w[0],H=C.slice(0,P),V=C.slice(P+$.length),B=_+C.length;d&&B>d.reach&&(d.reach=B);var M=T.prev;H&&(M=R(n,M,H),_+=H.length),U(n,M,D);var ae=new h(g,F?u.tokenize($,F):$,ee,$);if(T=R(n,M,ae),V&&R(n,T,V),D>1){var G={cause:g+","+E,reach:B};I(a,n,s,T.prev,_,G),d&&G.reach>d.reach&&(d.reach=G.reach)}}}}}}function x(){var a={value:null,prev:null,next:null},n={value:null,prev:a,next:null};a.next=n,this.head=a,this.tail=n,this.length=0}function R(a,n,s){var i=n.next,o={value:s,prev:n,next:i};return n.next=o,i.prev=o,a.length++,o}function U(a,n,s){for(var i=n.next,o=0;o<s&&i!==a.tail;o++)i=i.next;n.next=i,i.prev=n,a.length-=o}function N(a){for(var n=[],s=a.head.next;s!==a.tail;)n.push(s.value),s=s.next;return n}if(!l.document)return l.addEventListener&&(u.disableWorkerMessageHandler||l.addEventListener("message",function(a){var n=JSON.parse(a.data),s=n.language,i=n.code,o=n.immediateClose;l.postMessage(u.highlight(i,u.languages[s],s)),o&&l.close()},!1)),u;var v=u.util.currentScript();v&&(u.filename=v.src,v.hasAttribute("data-manual")&&(u.manual=!0));function m(){u.manual||u.highlightAll()}if(!u.manual){var y=document.readyState;y==="loading"||y==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return u}(e);r.exports&&(r.exports=t),typeof J<"u"&&(J.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(p,f){var b={};b["language-"+f]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[f]},b.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:b}};u["language-"+f]={pattern:/[\s\S]+/,inside:t.languages[f]};var h={};h[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:u},t.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(l,p){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:t.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(l){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var f=l.languages.markup;f&&(f.tag.addInlined("style","css"),f.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",p=function(v,m){return"✖ Error "+v+" while fetching file: "+m},f="✖ Error: File does not exist or is empty",b={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",h="loading",A="loaded",I="failed",x="pre[data-src]:not(["+u+'="'+A+'"]):not(['+u+'="'+h+'"])';function R(v,m,y){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?m(a.responseText):a.status>=400?y(p(a.status,a.statusText)):y(f))},a.send(null)}function U(v){var m=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(m){var y=Number(m[1]),a=m[2],n=m[3];return a?n?[y,Number(n)]:[y,void 0]:[y,y]}}t.hooks.add("before-highlightall",function(v){v.selector+=", "+x}),t.hooks.add("before-sanity-check",function(v){var m=v.element;if(m.matches(x)){v.code="",m.setAttribute(u,h);var y=m.appendChild(document.createElement("CODE"));y.textContent=l;var a=m.getAttribute("data-src"),n=v.language;if(n==="none"){var s=(/\.(\w+)$/.exec(a)||[,"none"])[1];n=b[s]||s}t.util.setLanguage(y,n),t.util.setLanguage(m,n);var i=t.plugins.autoloader;i&&i.loadLanguages(n),R(a,function(o){m.setAttribute(u,A);var d=U(m.getAttribute("data-range"));if(d){var g=o.split(/\r\n?|\n/g),c=d[0],E=d[1]==null?g.length:d[1];c<0&&(c+=g.length),c=Math.max(0,Math.min(c-1,g.length)),E<0&&(E+=g.length),E=Math.max(0,Math.min(E,g.length)),o=g.slice(c,E).join(`
75
- `),m.hasAttribute("data-start")||m.setAttribute("data-start",String(c+1))}y.textContent=o,t.highlightElement(y)},function(o){m.setAttribute(u,I),y.textContent=o})}}),t.plugins.fileHighlight={highlight:function(m){for(var y=(m||document).querySelectorAll(x),a=0,n;n=y[a++];)t.highlightElement(n)}};var N=!1;t.fileHighlight=function(){N||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),N=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Q);var ue=Q.exports;const j=le(ue);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];(function(r){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,l={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[l,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:l.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:l.inside}],keyword:e,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":l,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:l.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:l.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(r){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(r){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=r.languages.bash;for(var p=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],f=l.variable[1].inside,b=0;b<p.length;b++)f[p[b]]=r.languages.bash[p[b]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;function Y(r,e,t,l,p,f,b,u){var h=typeof r=="function"?r.options:r;return e&&(h.render=e,h.staticRenderFns=t,h._compiled=!0),f&&(h._scopeId="data-v-"+f),{exports:r,options:h}}typeof window<"u"&&(window.Prism=j);const ce={name:"CodeEditor",props:{value:{type:String,default:""},language:{type:String,default:"javascript"},theme:{type:String,default:"dark"},disabled:{type:Boolean,default:!1}},data:function(){return{highlightRef:null}},computed:{languageMap:function(){return{javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"}},prismLanguage:function(){return this.languageMap[this.language.toLowerCase()]||"javascript"},editorBackground:function(){return this.theme==="dark"?"#1e1e1e":"#fafafa"},highlightedCode:function(){try{var r=j.languages[this.prismLanguage];if(r)return j.highlight(this.value||"",r,this.prismLanguage)}catch{}return this.escapeHtml(this.value||"")}},methods:{escapeHtml:function(r){var e=document.createElement("div");return e.textContent=r,e.innerHTML},handleInput:function(r){this.$emit("input",r.target.value),this.$emit("update:value",r.target.value)},handleScroll:function(r){var e=this.$refs.highlightRef;e&&(e.scrollTop=r.target.scrollTop,e.scrollLeft=r.target.scrollLeft)},handleKeydown:function(r){if(r.key==="Tab"){r.preventDefault();var e=r.target,t=e.selectionStart,l=e.selectionEnd,p=e.value;e.value=p.substring(0,t)+" "+p.substring(l),e.selectionStart=e.selectionEnd=t+2,this.$emit("input",e.value),this.$emit("update:value",e.value)}}}};var de=function(){var e=this,t=e._self._c;return t("div",{staticClass:"hep-cr-editor",class:"hep-cr-theme-"+e.theme,style:{background:e.editorBackground}},[t("pre",{ref:"highlightRef",staticClass:"hep-cr-highlight",class:"language-"+e.prismLanguage,attrs:{"aria-hidden":"true"}},[t("code",{domProps:{innerHTML:e._s(e.highlightedCode)}})]),t("textarea",{staticClass:"hep-cr-input",attrs:{disabled:e.disabled,spellcheck:"false",placeholder:"Write your code here..."},domProps:{value:e.value},on:{input:e.handleInput,scroll:e.handleScroll,keydown:e.handleKeydown}})])},pe=[],ge=Y(ce,de,pe,!1,null,"bee30f50");const he=ge.exports,fe={name:"CodeRunner",components:{CodeEditor:he},props:{pistonUrl:{type:String,default:"/api/piston"},language:{type:String,default:"javascript"},theme:{type:String,default:"light",validator:function(r){return["light","dark"].indexOf(r)!==-1}},showLanguageSelector:{type:Boolean,default:!0},showEditor:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},defaultCode:{type:String,default:""},executorLabel:{type:String,default:"运行"}},data:function(){return{runtimes:[],currentLanguage:this.language,currentTheme:this.theme,code:this.defaultCode||z(this.language),output:"",stderr:"",isRunning:!1,executionTime:null,activeTab:"stdout",error:null,runtimesLoading:!1,client:null,editorWidth:60}},computed:{themeClass:function(){return"hep-cr-runner-"+this.currentTheme},languageOptions:function(){return this.runtimes.map(function(r){return{value:r.language+":"+r.version,label:r.language.charAt(0).toUpperCase()+r.language.slice(1)+" "+r.version}})},languageName:function(){var r=this.currentLanguage;return r.includes(":")?r.split(":")[0]:r}},watch:{currentLanguage:function(r){var e=r.includes(":")?r.split(":")[0]:r;this.code=z(e),this.$emit("language-change",e,this.code)}},mounted:function(){this.client=new ie({pistonUrl:this.pistonUrl}),this.loadRuntimes()},methods:{loadRuntimes:function(){var r=this;this.runtimesLoading=!0,this.error=null,this.client.getRuntimes().then(function(e){r.runtimes=e}).catch(function(e){r.error=e.message||"Failed to load runtimes"}).finally(function(){r.runtimesLoading=!1})},execute:function(){var r=this;this.isRunning||(this.isRunning=!0,this.output="",this.stderr="",this.executionTime=null,this.error=null,this.activeTab="stdout",this.$emit("execute-start"),this.client.execute(this.languageName,this.code).then(function(e){r.output=e.output,r.stderr=e.stderr,r.executionTime=e.executionTime||null,r.activeTab=e.stderr?"stderr":"stdout",r.$emit("execute-end",e)}).catch(function(e){r.error=e.message||"Execution failed",r.$emit("execute-end",{success:!1,output:"",stderr:r.error,code:-1})}).finally(function(){r.isRunning=!1}))},clearOutput:function(){this.output="",this.stderr="",this.executionTime=null,this.error=null},copyOutput:function(){var r=this.activeTab==="stdout"?this.output:this.stderr;navigator.clipboard.writeText(r)},resetCode:function(){this.code=z(this.languageName)},toggleTheme:function(){this.currentTheme=this.currentTheme==="light"?"dark":"light"},startDrag:function(r){var e=this,t=document.querySelector(".hep-cr-runner-main");if(t){var l=function(f){var b=t.getBoundingClientRect(),u=(f.clientX-b.left)/b.width*100;e.editorWidth=Math.max(20,Math.min(80,u))},p=function(){document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",p),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",l),document.addEventListener("mouseup",p),document.body.style.cursor="col-resize",document.body.style.userSelect="none"}}}};var me=function(){var e=this,t=e._self._c;return t("div",{class:["hep-cr-runner",e.themeClass]},[t("div",{staticClass:"hep-cr-runner-header"},[t("div",{staticClass:"hep-cr-runner-controls"},[e.showLanguageSelector?t("select",{directives:[{name:"model",rawName:"v-model",value:e.currentLanguage,expression:"currentLanguage"}],staticClass:"hep-cr-language-select",attrs:{disabled:e.isRunning},on:{change:function(l){var p=Array.prototype.filter.call(l.target.options,function(f){return f.selected}).map(function(f){var b="_value"in f?f._value:f.value;return b});e.currentLanguage=l.target.multiple?p:p[0]}}},[e.runtimesLoading?t("option",{attrs:{value:""}},[e._v("加载中...")]):e._e(),e._l(e.languageOptions,function(l){return t("option",{key:l.value,domProps:{value:l.value}},[e._v(" "+e._s(l.label)+" ")])})],2):e._e()]),t("div",{staticClass:"hep-cr-runner-actions"},[t("button",{staticClass:"hep-cr-btn hep-cr-btn-run",attrs:{disabled:e.isRunning||e.runtimesLoading},on:{click:e.execute}},[e.isRunning?t("span",{staticClass:"hep-cr-spinner"}):t("span",{staticClass:"hep-cr-run-icon"},[e._v("▶")]),e._v(" "+e._s(e.isRunning?"运行中...":e.executorLabel)+" ")]),e.showEditor&&e.editable?t("button",{staticClass:"hep-cr-btn hep-cr-btn-reset",on:{click:e.resetCode}},[e._v(" 重置 ")]):e._e(),t("button",{staticClass:"hep-cr-btn hep-cr-btn-theme",attrs:{title:e.currentTheme==="light"?"Switch to dark mode":"Switch to light mode"},on:{click:e.toggleTheme}},[e._v(" "+e._s(e.currentTheme==="light"?"🌙":"☀️")+" ")])])]),e.error?t("div",{staticClass:"hep-cr-error-message"},[e._v(" "+e._s(e.error)+" ")]):e._e(),t("div",{staticClass:"hep-cr-runner-main"},[e.showEditor?t("div",{staticClass:"hep-cr-editor-panel",style:{width:e.editorWidth+"%"}},[t("div",{staticClass:"hep-cr-panel-header"},[t("span",{staticClass:"hep-cr-panel-title"},[e._v("编辑器")]),t("span",{staticClass:"hep-cr-language-badge"},[e._v(e._s(e.languageName))])]),t("CodeEditor",{attrs:{value:e.code,language:e.languageName,theme:e.currentTheme,disabled:!e.editable||e.isRunning},on:{input:function(l){e.code=l}}})],1):e._e(),e.showEditor?t("div",{staticClass:"hep-cr-resize-handle",on:{mousedown:e.startDrag}},[t("div",{staticClass:"hep-cr-resize-line"})]):e._e(),t("div",{staticClass:"hep-cr-output-panel",style:{width:e.showEditor?100-e.editorWidth+"%":"100%"}},[t("div",{staticClass:"hep-cr-panel-header"},[t("div",{staticClass:"hep-cr-output-tabs"},[t("button",{class:["hep-cr-tab",{active:e.activeTab==="stdout"}],on:{click:function(l){e.activeTab="stdout"}}},[e._v(" 输出 ")]),e.stderr?t("button",{class:["hep-cr-tab",{active:e.activeTab==="stderr"}],on:{click:function(l){e.activeTab="stderr"}}},[e._v(" 错误 ")]):e._e()]),t("div",{staticClass:"hep-cr-output-actions"},[e.executionTime!==null?t("span",{staticClass:"hep-cr-execution-time"},[e._v(" "+e._s(e.executionTime)+"ms ")]):e._e(),t("button",{staticClass:"hep-cr-btn-icon",attrs:{title:"复制"},on:{click:e.copyOutput}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("rect",{attrs:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}}),t("path",{attrs:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}})])]),t("button",{staticClass:"hep-cr-btn-icon",attrs:{title:"清除"},on:{click:e.clearOutput}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"3 6 5 6 21 6"}}),t("path",{attrs:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}})])])])]),t("div",{staticClass:"hep-cr-output-content"},[e.activeTab==="stdout"?t("pre",[e._v(e._s(e.output||'点击"运行"执行代码'))]):t("pre",{staticClass:"hep-cr-stderr"},[e._v(e._s(e.stderr))])])])])])},be=[],Ee=Y(fe,me,be,!1,null,"490ecb17");const O=Ee.exports,ve={name:"CodeRunnerDialog",components:{CodeRunner:O},props:{value:{type:Boolean,default:!1},title:{type:String,default:"代码执行器"},width:{type:[String,Number],default:800}},model:{prop:"value",event:"input"},data(){return{localVisible:this.value}},computed:{dialogWidth(){return typeof this.width=="number"?this.width+"px":this.width}},watch:{value(r){this.localVisible=r}},methods:{close(){this.localVisible=!1,this.$emit("input",!1),this.$emit("update:value",!1),this.$emit("close")},handleOverlayClick(r){r.target===r.currentTarget&&this.close()}},expose:["close"]};var ye=function(){var e=this,t=e._self._c;return t("Teleport",{attrs:{to:"body"}},[t("Transition",{attrs:{name:"hep-cr-dialog-fade"}},[e.localVisible?t("div",{staticClass:"hep-cr-dialog-overlay",on:{click:e.handleOverlayClick}},[t("div",{staticClass:"hep-cr-dialog-container",style:{width:e.dialogWidth}},[t("div",{staticClass:"hep-cr-dialog-header"},[t("h3",{staticClass:"hep-cr-dialog-title"},[e._v(e._s(e.title))]),t("button",{staticClass:"hep-cr-dialog-close",on:{click:e.close}},[t("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])])]),t("div",{staticClass:"hep-cr-dialog-body"},[t("CodeRunner",e._b({},"CodeRunner",e.$attrs,!1))],1),e.$slots.footer?t("div",{staticClass:"hep-cr-dialog-footer"},[e._t("footer",null,{close:e.close})],2):e._e()])]):e._e()])],1)},Ae=[],Se=Y(ve,ye,Ae,!1,null,"ec700b03");const Te=Se.exports;O.install=r=>{r.component("CodeRunner",O)};const we={install(r){r.component("CodeRunner",O)}};exports.CodeRunner=O;exports.CodeRunnerDialog=Te;exports.default=we;
74
+ */var t=function(l){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,b={},u={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function a(n){return n instanceof h?new h(n.type,a(n.content),n.alias):Array.isArray(n)?n.map(a):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(a){return Object.prototype.toString.call(a).slice(8,-1)},objId:function(a){return a.__id||Object.defineProperty(a,"__id",{value:++f}),a.__id},clone:function a(n,i){i=i||{};var s,o;switch(u.util.type(n)){case"Object":if(o=u.util.objId(n),i[o])return i[o];s={},i[o]=s;for(var d in n)n.hasOwnProperty(d)&&(s[d]=a(n[d],i));return s;case"Array":return o=u.util.objId(n),i[o]?i[o]:(s=[],i[o]=s,n.forEach(function(g,c){s[c]=a(g,i)}),s);default:return n}},getLanguage:function(a){for(;a;){var n=p.exec(a.className);if(n)return n[1].toLowerCase();a=a.parentElement}return"none"},setLanguage:function(a,n){a.className=a.className.replace(RegExp(p,"gi"),""),a.classList.add("language-"+n)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(s){var a=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack)||[])[1];if(a){var n=document.getElementsByTagName("script");for(var i in n)if(n[i].src==a)return n[i]}return null}},isActive:function(a,n,i){for(var s="no-"+n;a;){var o=a.classList;if(o.contains(n))return!0;if(o.contains(s))return!1;a=a.parentElement}return!!i}},languages:{plain:b,plaintext:b,text:b,txt:b,extend:function(a,n){var i=u.util.clone(u.languages[a]);for(var s in n)i[s]=n[s];return i},insertBefore:function(a,n,i,s){s=s||u.languages;var o=s[a],d={};for(var g in o)if(o.hasOwnProperty(g)){if(g==n)for(var c in i)i.hasOwnProperty(c)&&(d[c]=i[c]);i.hasOwnProperty(g)||(d[g]=o[g])}var E=s[a];return s[a]=d,u.languages.DFS(u.languages,function(S,R){R===E&&S!=a&&(this[S]=d)}),d},DFS:function a(n,i,s,o){o=o||{};var d=u.util.objId;for(var g in n)if(n.hasOwnProperty(g)){i.call(n,g,n[g],s||g);var c=n[g],E=u.util.type(c);E==="Object"&&!o[d(c)]?(o[d(c)]=!0,a(c,i,null,o)):E==="Array"&&!o[d(c)]&&(o[d(c)]=!0,a(c,i,g,o))}}},plugins:{},highlightAll:function(a,n){u.highlightAllUnder(document,a,n)},highlightAllUnder:function(a,n,i){var s={callback:i,container:a,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",s),s.elements=Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)),u.hooks.run("before-all-elements-highlight",s);for(var o=0,d;d=s.elements[o++];)u.highlightElement(d,n===!0,s.callback)},highlightElement:function(a,n,i){var s=u.util.getLanguage(a),o=u.languages[s];u.util.setLanguage(a,s);var d=a.parentElement;d&&d.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(d,s);var g=a.textContent,c={element:a,language:s,grammar:o,code:g};function E(R){c.highlightedCode=R,u.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,u.hooks.run("after-highlight",c),u.hooks.run("complete",c),i&&i.call(c.element)}if(u.hooks.run("before-sanity-check",c),d=c.element.parentElement,d&&d.nodeName.toLowerCase()==="pre"&&!d.hasAttribute("tabindex")&&d.setAttribute("tabindex","0"),!c.code){u.hooks.run("complete",c),i&&i.call(c.element);return}if(u.hooks.run("before-highlight",c),!c.grammar){E(u.util.encode(c.code));return}if(n&&l.Worker){var S=new Worker(u.filename);S.onmessage=function(R){E(R.data)},S.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else E(u.highlight(c.code,c.grammar,c.language))},highlight:function(a,n,i){var s={code:a,grammar:n,language:i};if(u.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=u.tokenize(s.code,s.grammar),u.hooks.run("after-tokenize",s),h.stringify(u.util.encode(s.tokens),s.language)},tokenize:function(a,n){var i=n.rest;if(i){for(var s in i)n[s]=i[s];delete n.rest}var o=new x;return I(o,o.head,a),_(a,o,n,o.head,0),N(o)},hooks:{all:{},add:function(a,n){var i=u.hooks.all;i[a]=i[a]||[],i[a].push(n)},run:function(a,n){var i=u.hooks.all[a];if(!(!i||!i.length))for(var s=0,o;o=i[s++];)o(n)}},Token:h};l.Prism=u;function h(a,n,i,s){this.type=a,this.content=n,this.alias=i,this.length=(s||"").length|0}h.stringify=function a(n,i){if(typeof n=="string")return n;if(Array.isArray(n)){var s="";return n.forEach(function(E){s+=a(E,i)}),s}var o={type:n.type,content:a(n.content,i),tag:"span",classes:["token",n.type],attributes:{},language:i},d=n.alias;d&&(Array.isArray(d)?Array.prototype.push.apply(o.classes,d):o.classes.push(d)),u.hooks.run("wrap",o);var g="";for(var c in o.attributes)g+=" "+c+'="'+(o.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+g+">"+o.content+"</"+o.tag+">"};function A(a,n,i,s){a.lastIndex=n;var o=a.exec(i);if(o&&s&&o[1]){var d=o[1].length;o.index+=d,o[0]=o[0].slice(d)}return o}function _(a,n,i,s,o,d){for(var g in i)if(!(!i.hasOwnProperty(g)||!i[g])){var c=i[g];c=Array.isArray(c)?c:[c];for(var E=0;E<c.length;++E){if(d&&d.cause==g+","+E)return;var S=c[E],R=S.inside,X=!!S.lookbehind,Z=!!S.greedy,ee=S.alias;if(Z&&!S.pattern.global){var te=S.pattern.toString().match(/[imsuy]*$/)[0];S.pattern=RegExp(S.pattern.source,te+"g")}for(var K=S.pattern||S,T=s.next,k=o;T!==n.tail&&!(d&&k>=d.reach);k+=T.value.length,T=T.next){var C=T.value;if(n.length>a.length)return;if(!(C instanceof h)){var D=1,w;if(Z){if(w=A(K,k,a,X),!w||w.index>=a.length)break;var P=w.index,ne=w.index+w[0].length,F=k;for(F+=T.value.length;P>=F;)T=T.next,F+=T.value.length;if(F-=T.value.length,k=F,T.value instanceof h)continue;for(var L=T;L!==n.tail&&(F<ne||typeof L.value=="string");L=L.next)D++,F+=L.value.length;D--,C=a.slice(k,F),w.index-=k}else if(w=A(K,0,C,X),!w)continue;var P=w.index,$=w[0],H=C.slice(0,P),V=C.slice(P+$.length),B=k+C.length;d&&B>d.reach&&(d.reach=B);var M=T.prev;H&&(M=I(n,M,H),k+=H.length),U(n,M,D);var re=new h(g,R?u.tokenize($,R):$,ee,$);if(T=I(n,M,re),V&&I(n,T,V),D>1){var G={cause:g+","+E,reach:B};_(a,n,i,T.prev,k,G),d&&G.reach>d.reach&&(d.reach=G.reach)}}}}}}function x(){var a={value:null,prev:null,next:null},n={value:null,prev:a,next:null};a.next=n,this.head=a,this.tail=n,this.length=0}function I(a,n,i){var s=n.next,o={value:i,prev:n,next:s};return n.next=o,s.prev=o,a.length++,o}function U(a,n,i){for(var s=n.next,o=0;o<i&&s!==a.tail;o++)s=s.next;n.next=s,s.prev=n,a.length-=o}function N(a){for(var n=[],i=a.head.next;i!==a.tail;)n.push(i.value),i=i.next;return n}if(!l.document)return l.addEventListener&&(u.disableWorkerMessageHandler||l.addEventListener("message",function(a){var n=JSON.parse(a.data),i=n.language,s=n.code,o=n.immediateClose;l.postMessage(u.highlight(s,u.languages[i],i)),o&&l.close()},!1)),u;var v=u.util.currentScript();v&&(u.filename=v.src,v.hasAttribute("data-manual")&&(u.manual=!0));function m(){u.manual||u.highlightAll()}if(!u.manual){var y=document.readyState;y==="loading"||y==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return u}(e);r.exports&&(r.exports=t),typeof J<"u"&&(J.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(p,f){var b={};b["language-"+f]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[f]},b.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:b}};u["language-"+f]={pattern:/[\s\S]+/,inside:t.languages[f]};var h={};h[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:u},t.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(l,p){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:t.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(l){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var f=l.languages.markup;f&&(f.tag.addInlined("style","css"),f.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",p=function(v,m){return"✖ Error "+v+" while fetching file: "+m},f="✖ Error: File does not exist or is empty",b={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",h="loading",A="loaded",_="failed",x="pre[data-src]:not(["+u+'="'+A+'"]):not(['+u+'="'+h+'"])';function I(v,m,y){var a=new XMLHttpRequest;a.open("GET",v,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?m(a.responseText):a.status>=400?y(p(a.status,a.statusText)):y(f))},a.send(null)}function U(v){var m=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(m){var y=Number(m[1]),a=m[2],n=m[3];return a?n?[y,Number(n)]:[y,void 0]:[y,y]}}t.hooks.add("before-highlightall",function(v){v.selector+=", "+x}),t.hooks.add("before-sanity-check",function(v){var m=v.element;if(m.matches(x)){v.code="",m.setAttribute(u,h);var y=m.appendChild(document.createElement("CODE"));y.textContent=l;var a=m.getAttribute("data-src"),n=v.language;if(n==="none"){var i=(/\.(\w+)$/.exec(a)||[,"none"])[1];n=b[i]||i}t.util.setLanguage(y,n),t.util.setLanguage(m,n);var s=t.plugins.autoloader;s&&s.loadLanguages(n),I(a,function(o){m.setAttribute(u,A);var d=U(m.getAttribute("data-range"));if(d){var g=o.split(/\r\n?|\n/g),c=d[0],E=d[1]==null?g.length:d[1];c<0&&(c+=g.length),c=Math.max(0,Math.min(c-1,g.length)),E<0&&(E+=g.length),E=Math.max(0,Math.min(E,g.length)),o=g.slice(c,E).join(`
75
+ `),m.hasAttribute("data-start")||m.setAttribute("data-start",String(c+1))}y.textContent=o,t.highlightElement(y)},function(o){m.setAttribute(u,_),y.textContent=o})}}),t.plugins.fileHighlight={highlight:function(m){for(var y=(m||document).querySelectorAll(x),a=0,n;n=y[a++];)t.highlightElement(n)}};var N=!1;t.fileHighlight=function(){N||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),N=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Q);var ue=Q.exports;const j=le(ue);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];(function(r){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,l={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[l,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:l.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:l.inside}],keyword:e,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":l,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:l.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:l.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(r){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(r){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=r.languages.bash;for(var p=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],f=l.variable[1].inside,b=0;b<p.length;b++)f[p[b]]=r.languages.bash[p[b]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const ce=`
76
+ .hep-cr-editor .token.comment,
77
+ .hep-cr-editor .token.prolog,
78
+ .hep-cr-editor .token.doctype,
79
+ .hep-cr-editor .token.cdata {
80
+ color: #8292a2;
81
+ }
82
+
83
+ .hep-cr-editor .token.punctuation {
84
+ color: #f8f8f2;
85
+ }
86
+
87
+ .hep-cr-editor .token.property,
88
+ .hep-cr-editor .token.tag,
89
+ .hep-cr-editor .token.constant,
90
+ .hep-cr-editor .token.symbol,
91
+ .hep-cr-editor .token.deleted {
92
+ color: #f92672;
93
+ }
94
+
95
+ .hep-cr-editor .token.boolean,
96
+ .hep-cr-editor .token.number {
97
+ color: #ae81ff;
98
+ }
99
+
100
+ .hep-cr-editor .token.selector,
101
+ .hep-cr-editor .token.attr-name,
102
+ .hep-cr-editor .token.string,
103
+ .hep-cr-editor .token.char,
104
+ .hep-cr-editor .token.builtin,
105
+ .hep-cr-editor .token.inserted {
106
+ color: #a6e22e;
107
+ }
108
+
109
+ .hep-cr-editor .token.operator,
110
+ .hep-cr-editor .token.entity,
111
+ .hep-cr-editor .token.url,
112
+ .hep-cr-editor .language-css .hep-cr-editor .token.string,
113
+ .hep-cr-editor .style .hep-cr-editor .token.string,
114
+ .hep-cr-editor .token.variable {
115
+ color: #f8f8f2;
116
+ }
117
+
118
+ .hep-cr-editor .token.atrule,
119
+ .hep-cr-editor .token.attr-value,
120
+ .hep-cr-editor .token.function,
121
+ .hep-cr-editor .token.class-name {
122
+ color: #e6db74;
123
+ }
124
+
125
+ .hep-cr-editor .token.keyword {
126
+ color: #66d9ef;
127
+ }
128
+
129
+ .hep-cr-editor .token.regex,
130
+ .hep-cr-editor .token.important {
131
+ color: #fd971f;
132
+ }
133
+ `,de=`
134
+ .hep-cr-editor .token.comment,
135
+ .hep-cr-editor .token.prolog,
136
+ .hep-cr-editor .token.doctype,
137
+ .hep-cr-editor .token.cdata {
138
+ color: #708090;
139
+ }
140
+
141
+ .hep-cr-editor .token.punctuation {
142
+ color: #333;
143
+ }
144
+
145
+ .hep-cr-editor .token.property,
146
+ .hep-cr-editor .token.tag,
147
+ .hep-cr-editor .token.constant,
148
+ .hep-cr-editor .token.symbol,
149
+ .hep-cr-editor .token.deleted {
150
+ color: #d73a49;
151
+ }
152
+
153
+ .hep-cr-editor .token.boolean,
154
+ .hep-cr-editor .token.number {
155
+ color: #005cc5;
156
+ }
157
+
158
+ .hep-cr-editor .token.selector,
159
+ .hep-cr-editor .token.attr-name,
160
+ .hep-cr-editor .token.string,
161
+ .hep-cr-editor .token.char,
162
+ .hep-cr-editor .token.builtin,
163
+ .hep-cr-editor .token.inserted {
164
+ color: #22863a;
165
+ }
166
+
167
+ .hep-cr-editor .token.operator,
168
+ .hep-cr-editor .token.entity,
169
+ .hep-cr-editor .token.url,
170
+ .hep-cr-editor .language-css .hep-cr-editor .token.string,
171
+ .hep-cr-editor .style .hep-cr-editor .token.string,
172
+ .hep-cr-editor .token.variable {
173
+ color: #333;
174
+ }
175
+
176
+ .hep-cr-editor .token.atrule,
177
+ .hep-cr-editor .token.attr-value,
178
+ .hep-cr-editor .token.function,
179
+ .hep-cr-editor .token.class-name {
180
+ color: #6f42c1;
181
+ }
182
+
183
+ .hep-cr-editor .token.keyword {
184
+ color: #d73a49;
185
+ }
186
+
187
+ .hep-cr-editor .token.regex,
188
+ .hep-cr-editor .token.important {
189
+ color: #e36209;
190
+ }
191
+ `;function Y(r,e,t,l,p,f,b,u){var h=typeof r=="function"?r.options:r;return e&&(h.render=e,h.staticRenderFns=t,h._compiled=!0),f&&(h._scopeId="data-v-"+f),{exports:r,options:h}}typeof window<"u"&&(window.Prism=j);const pe={name:"CodeEditor",props:{value:{type:String,default:""},language:{type:String,default:"javascript"},theme:{type:String,default:"dark"},disabled:{type:Boolean,default:!1}},data:function(){return{highlightRef:null}},mounted(){this.loadPrismTheme(this.theme)},watch:{theme(r){this.loadPrismTheme(r)}},computed:{languageMap:function(){return{javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"}},prismLanguage:function(){return this.languageMap[this.language.toLowerCase()]||"javascript"},editorBackground:function(){return this.theme==="dark"?"#1e1e1e":"#fafafa"},highlightedCode:function(){try{var r=j.languages[this.prismLanguage];if(r)return j.highlight(this.value||"",r,this.prismLanguage)}catch{}return this.escapeHtml(this.value||"")}},methods:{loadPrismTheme(r){const e="hep-cr-prism-styles";let t=document.getElementById(e);const l=r==="dark"?ce:de;t?t.textContent=l:(t=document.createElement("style"),t.id=e,t.textContent=l,document.head.appendChild(t))},escapeHtml:function(r){var e=document.createElement("div");return e.textContent=r,e.innerHTML},handleInput:function(r){this.$emit("input",r.target.value),this.$emit("update:value",r.target.value)},handleScroll:function(r){var e=this.$refs.highlightRef;e&&(e.scrollTop=r.target.scrollTop,e.scrollLeft=r.target.scrollLeft)},handleKeydown:function(r){if(r.key==="Tab"){r.preventDefault();var e=r.target,t=e.selectionStart,l=e.selectionEnd,p=e.value;e.value=p.substring(0,t)+" "+p.substring(l),e.selectionStart=e.selectionEnd=t+2,this.$emit("input",e.value),this.$emit("update:value",e.value)}}}};var ge=function(){var e=this,t=e._self._c;return t("div",{staticClass:"hep-cr-editor",class:"hep-cr-theme-"+e.theme,style:{background:e.editorBackground}},[t("pre",{ref:"highlightRef",staticClass:"hep-cr-highlight",class:"language-"+e.prismLanguage,attrs:{"aria-hidden":"true"}},[t("code",{domProps:{innerHTML:e._s(e.highlightedCode)}})]),t("textarea",{staticClass:"hep-cr-input",attrs:{disabled:e.disabled,spellcheck:"false",placeholder:"Write your code here..."},domProps:{value:e.value},on:{input:e.handleInput,scroll:e.handleScroll,keydown:e.handleKeydown}})])},he=[],fe=Y(pe,ge,he,!1,null,"ef521764");const me=fe.exports,be={name:"CodeRunner",components:{CodeEditor:me},props:{pistonUrl:{type:String,default:"/api/piston"},language:{type:String,default:"javascript"},theme:{type:String,default:"light",validator:function(r){return["light","dark"].indexOf(r)!==-1}},showLanguageSelector:{type:Boolean,default:!0},showEditor:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},defaultCode:{type:String,default:""},executorLabel:{type:String,default:"运行"}},data:function(){return{runtimes:[],currentLanguage:this.language,currentTheme:this.theme,code:this.defaultCode||z(this.language),output:"",stderr:"",isRunning:!1,executionTime:null,activeTab:"stdout",error:null,runtimesLoading:!1,client:null,editorWidth:60}},computed:{themeClass:function(){return"hep-cr-runner-"+this.currentTheme},languageOptions:function(){return this.runtimes.map(function(r){return{value:r.language+":"+r.version,label:r.language.charAt(0).toUpperCase()+r.language.slice(1)+" "+r.version}})},languageName:function(){var r=this.currentLanguage;return r.includes(":")?r.split(":")[0]:r}},watch:{currentLanguage:function(r){var e=r.includes(":")?r.split(":")[0]:r;this.code=z(e),this.$emit("language-change",e,this.code)}},mounted:function(){this.client=new se({pistonUrl:this.pistonUrl}),this.loadRuntimes()},methods:{loadRuntimes:function(){var r=this;this.runtimesLoading=!0,this.error=null,this.client.getRuntimes().then(function(e){r.runtimes=e}).catch(function(e){r.error=e.message||"Failed to load runtimes"}).finally(function(){r.runtimesLoading=!1})},execute:function(){var r=this;this.isRunning||(this.isRunning=!0,this.output="",this.stderr="",this.executionTime=null,this.error=null,this.activeTab="stdout",this.$emit("execute-start"),this.client.execute(this.languageName,this.code).then(function(e){r.output=e.output,r.stderr=e.stderr,r.executionTime=e.executionTime||null,r.activeTab=e.stderr?"stderr":"stdout",r.$emit("execute-end",e)}).catch(function(e){r.error=e.message||"Execution failed",r.$emit("execute-end",{success:!1,output:"",stderr:r.error,code:-1})}).finally(function(){r.isRunning=!1}))},clearOutput:function(){this.output="",this.stderr="",this.executionTime=null,this.error=null},copyOutput:function(){var r=this.activeTab==="stdout"?this.output:this.stderr;navigator.clipboard.writeText(r)},resetCode:function(){this.code=z(this.languageName)},toggleTheme:function(){this.currentTheme=this.currentTheme==="light"?"dark":"light"},startDrag:function(r){var e=this,t=document.querySelector(".hep-cr-runner-main");if(t){var l=function(f){var b=t.getBoundingClientRect(),u=(f.clientX-b.left)/b.width*100;e.editorWidth=Math.max(20,Math.min(80,u))},p=function(){document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",p),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",l),document.addEventListener("mouseup",p),document.body.style.cursor="col-resize",document.body.style.userSelect="none"}}}};var Ee=function(){var e=this,t=e._self._c;return t("div",{class:["hep-cr-runner",e.themeClass]},[t("div",{staticClass:"hep-cr-runner-header"},[t("div",{staticClass:"hep-cr-runner-controls"},[e.showLanguageSelector?t("select",{directives:[{name:"model",rawName:"v-model",value:e.currentLanguage,expression:"currentLanguage"}],staticClass:"hep-cr-language-select",attrs:{disabled:e.isRunning},on:{change:function(l){var p=Array.prototype.filter.call(l.target.options,function(f){return f.selected}).map(function(f){var b="_value"in f?f._value:f.value;return b});e.currentLanguage=l.target.multiple?p:p[0]}}},[e.runtimesLoading?t("option",{attrs:{value:""}},[e._v("加载中...")]):e._e(),e._l(e.languageOptions,function(l){return t("option",{key:l.value,domProps:{value:l.value}},[e._v(" "+e._s(l.label)+" ")])})],2):e._e()]),t("div",{staticClass:"hep-cr-runner-actions"},[t("button",{staticClass:"hep-cr-btn hep-cr-btn-run",attrs:{disabled:e.isRunning||e.runtimesLoading},on:{click:e.execute}},[e.isRunning?t("span",{staticClass:"hep-cr-spinner"}):t("span",{staticClass:"hep-cr-run-icon"},[e._v("▶")]),e._v(" "+e._s(e.isRunning?"运行中...":e.executorLabel)+" ")]),e.showEditor&&e.editable?t("button",{staticClass:"hep-cr-btn hep-cr-btn-reset",on:{click:e.resetCode}},[e._v(" 重置 ")]):e._e(),t("button",{staticClass:"hep-cr-btn hep-cr-btn-theme",attrs:{title:e.currentTheme==="light"?"Switch to dark mode":"Switch to light mode"},on:{click:e.toggleTheme}},[e._v(" "+e._s(e.currentTheme==="light"?"🌙":"☀️")+" ")])])]),e.error?t("div",{staticClass:"hep-cr-error-message"},[e._v(" "+e._s(e.error)+" ")]):e._e(),t("div",{staticClass:"hep-cr-runner-main"},[e.showEditor?t("div",{staticClass:"hep-cr-editor-panel",style:{width:e.editorWidth+"%"}},[t("div",{staticClass:"hep-cr-panel-header"},[t("span",{staticClass:"hep-cr-panel-title"},[e._v("编辑器")]),t("span",{staticClass:"hep-cr-language-badge"},[e._v(e._s(e.languageName))])]),t("CodeEditor",{attrs:{value:e.code,language:e.languageName,theme:e.currentTheme,disabled:!e.editable||e.isRunning},on:{input:function(l){e.code=l}}})],1):e._e(),e.showEditor?t("div",{staticClass:"hep-cr-resize-handle",on:{mousedown:e.startDrag}},[t("div",{staticClass:"hep-cr-resize-line"})]):e._e(),t("div",{staticClass:"hep-cr-output-panel",style:{width:e.showEditor?100-e.editorWidth+"%":"100%"}},[t("div",{staticClass:"hep-cr-panel-header"},[t("div",{staticClass:"hep-cr-output-tabs"},[t("button",{class:["hep-cr-tab",{active:e.activeTab==="stdout"}],on:{click:function(l){e.activeTab="stdout"}}},[e._v(" 输出 ")]),e.stderr?t("button",{class:["hep-cr-tab",{active:e.activeTab==="stderr"}],on:{click:function(l){e.activeTab="stderr"}}},[e._v(" 错误 ")]):e._e()]),t("div",{staticClass:"hep-cr-output-actions"},[e.executionTime!==null?t("span",{staticClass:"hep-cr-execution-time"},[e._v(" "+e._s(e.executionTime)+"ms ")]):e._e(),t("button",{staticClass:"hep-cr-btn-icon",attrs:{title:"复制"},on:{click:e.copyOutput}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("rect",{attrs:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}}),t("path",{attrs:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}})])]),t("button",{staticClass:"hep-cr-btn-icon",attrs:{title:"清除"},on:{click:e.clearOutput}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"3 6 5 6 21 6"}}),t("path",{attrs:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}})])])])]),t("div",{staticClass:"hep-cr-output-content"},[e.activeTab==="stdout"?t("pre",[e._v(e._s(e.output||'点击"运行"执行代码'))]):t("pre",{staticClass:"hep-cr-stderr"},[e._v(e._s(e.stderr))])])])])])},ve=[],ye=Y(be,Ee,ve,!1,null,"490ecb17");const O=ye.exports,Ae={name:"CodeRunnerDialog",components:{CodeRunner:O},props:{value:{type:Boolean,default:!1},title:{type:String,default:"代码执行器"},width:{type:[String,Number],default:800}},model:{prop:"value",event:"input"},data(){return{localVisible:this.value}},computed:{dialogWidth(){return typeof this.width=="number"?this.width+"px":this.width}},watch:{value(r){this.localVisible=r}},methods:{close(){this.localVisible=!1,this.$emit("input",!1),this.$emit("update:value",!1),this.$emit("close")},handleOverlayClick(r){r.target===r.currentTarget&&this.close()}},expose:["close"]};var Se=function(){var e=this,t=e._self._c;return t("Teleport",{attrs:{to:"body"}},[t("Transition",{attrs:{name:"hep-cr-dialog-fade"}},[e.localVisible?t("div",{staticClass:"hep-cr-dialog-overlay",on:{click:e.handleOverlayClick}},[t("div",{staticClass:"hep-cr-dialog-container",style:{width:e.dialogWidth}},[t("div",{staticClass:"hep-cr-dialog-header"},[t("h3",{staticClass:"hep-cr-dialog-title"},[e._v(e._s(e.title))]),t("button",{staticClass:"hep-cr-dialog-close",on:{click:e.close}},[t("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),t("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])])]),t("div",{staticClass:"hep-cr-dialog-body"},[t("CodeRunner",e._b({},"CodeRunner",e.$attrs,!1))],1),e.$slots.footer?t("div",{staticClass:"hep-cr-dialog-footer"},[e._t("footer",null,{close:e.close})],2):e._e()])]):e._e()])],1)},Te=[],we=Y(Ae,Se,Te,!1,null,"ec700b03");const ke=we.exports;O.install=r=>{r.component("CodeRunner",O)};const _e={install(r){r.component("CodeRunner",O)}};exports.CodeRunner=O;exports.CodeRunnerDialog=ke;exports.default=_e;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- var re = Object.defineProperty, se = (r, e, t) => e in r ? re(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e, t) => se(r, typeof e != "symbol" ? e + "" : e, t);
1
+ var ae = Object.defineProperty, ie = (r, e, t) => e in r ? ae(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e, t) => ie(r, typeof e != "symbol" ? e + "" : e, t);
2
2
  let W = null;
3
- class ie {
3
+ class se {
4
4
  constructor(e = {}) {
5
5
  q(this, "baseUrl"), q(this, "timeout"), this.baseUrl = e.pistonUrl || "/api/piston", this.timeout = e.timeout || 3e3;
6
6
  }
@@ -26,7 +26,7 @@ class ie {
26
26
  const p = (await this.getRuntimes()).find(
27
27
  (h) => {
28
28
  var A;
29
- return h.language.toLowerCase() === e.toLowerCase() || ((A = h.aliases) == null ? void 0 : A.some((I) => I.toLowerCase() === e.toLowerCase()));
29
+ return h.language.toLowerCase() === e.toLowerCase() || ((A = h.aliases) == null ? void 0 : A.some((_) => _.toLowerCase() === e.toLowerCase()));
30
30
  }
31
31
  );
32
32
  if (!p)
@@ -55,13 +55,13 @@ class ie {
55
55
  });
56
56
  if (!h.ok)
57
57
  throw new Error(`Execute failed: ${h.statusText}`);
58
- const A = await h.json(), I = Date.now() - u, x = A.run.stdout || "", F = A.run.stderr || "";
58
+ const A = await h.json(), _ = Date.now() - u, x = A.run.stdout || "", I = A.run.stderr || "";
59
59
  return {
60
60
  success: A.run.code === 0,
61
61
  output: x,
62
- stderr: F,
62
+ stderr: I,
63
63
  code: A.run.code,
64
- executionTime: I,
64
+ executionTime: _,
65
65
  compile: A.compile ? {
66
66
  stdout: A.compile.stdout || "",
67
67
  stderr: A.compile.stderr || "",
@@ -323,28 +323,28 @@ var Q = { exports: {} };
323
323
  * @returns {T}
324
324
  * @template T
325
325
  */
326
- clone: function a(n, s) {
327
- s = s || {};
328
- var i, o;
326
+ clone: function a(n, i) {
327
+ i = i || {};
328
+ var s, o;
329
329
  switch (u.util.type(n)) {
330
330
  case "Object":
331
- if (o = u.util.objId(n), s[o])
332
- return s[o];
333
- i = /** @type {Record<string, any>} */
334
- {}, s[o] = i;
331
+ if (o = u.util.objId(n), i[o])
332
+ return i[o];
333
+ s = /** @type {Record<string, any>} */
334
+ {}, i[o] = s;
335
335
  for (var d in n)
336
- n.hasOwnProperty(d) && (i[d] = a(n[d], s));
336
+ n.hasOwnProperty(d) && (s[d] = a(n[d], i));
337
337
  return (
338
338
  /** @type {any} */
339
- i
339
+ s
340
340
  );
341
341
  case "Array":
342
- return o = u.util.objId(n), s[o] ? s[o] : (i = [], s[o] = i, /** @type {Array} */
342
+ return o = u.util.objId(n), i[o] ? i[o] : (s = [], i[o] = s, /** @type {Array} */
343
343
  /** @type {any} */
344
344
  n.forEach(function(g, c) {
345
- i[c] = a(g, s);
345
+ s[c] = a(g, i);
346
346
  }), /** @type {any} */
347
- i);
347
+ s);
348
348
  default:
349
349
  return n;
350
350
  }
@@ -393,13 +393,13 @@ var Q = { exports: {} };
393
393
  );
394
394
  try {
395
395
  throw new Error();
396
- } catch (i) {
397
- var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack) || [])[1];
396
+ } catch (s) {
397
+ var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
398
398
  if (a) {
399
399
  var n = document.getElementsByTagName("script");
400
- for (var s in n)
401
- if (n[s].src == a)
402
- return n[s];
400
+ for (var i in n)
401
+ if (n[i].src == a)
402
+ return n[i];
403
403
  }
404
404
  return null;
405
405
  }
@@ -423,16 +423,16 @@ var Q = { exports: {} };
423
423
  * @param {boolean} [defaultActivation=false]
424
424
  * @returns {boolean}
425
425
  */
426
- isActive: function(a, n, s) {
427
- for (var i = "no-" + n; a; ) {
426
+ isActive: function(a, n, i) {
427
+ for (var s = "no-" + n; a; ) {
428
428
  var o = a.classList;
429
429
  if (o.contains(n))
430
430
  return !0;
431
- if (o.contains(i))
431
+ if (o.contains(s))
432
432
  return !1;
433
433
  a = a.parentElement;
434
434
  }
435
- return !!s;
435
+ return !!i;
436
436
  }
437
437
  },
438
438
  /**
@@ -479,10 +479,10 @@ var Q = { exports: {} };
479
479
  * });
480
480
  */
481
481
  extend: function(a, n) {
482
- var s = u.util.clone(u.languages[a]);
483
- for (var i in n)
484
- s[i] = n[i];
485
- return s;
482
+ var i = u.util.clone(u.languages[a]);
483
+ for (var s in n)
484
+ i[s] = n[s];
485
+ return i;
486
486
  },
487
487
  /**
488
488
  * Inserts tokens _before_ another token in a language definition or any other grammar.
@@ -559,31 +559,31 @@ var Q = { exports: {} };
559
559
  * @returns {Grammar} The new grammar object.
560
560
  * @public
561
561
  */
562
- insertBefore: function(a, n, s, i) {
563
- i = i || /** @type {any} */
562
+ insertBefore: function(a, n, i, s) {
563
+ s = s || /** @type {any} */
564
564
  u.languages;
565
- var o = i[a], d = {};
565
+ var o = s[a], d = {};
566
566
  for (var g in o)
567
567
  if (o.hasOwnProperty(g)) {
568
568
  if (g == n)
569
- for (var c in s)
570
- s.hasOwnProperty(c) && (d[c] = s[c]);
571
- s.hasOwnProperty(g) || (d[g] = o[g]);
569
+ for (var c in i)
570
+ i.hasOwnProperty(c) && (d[c] = i[c]);
571
+ i.hasOwnProperty(g) || (d[g] = o[g]);
572
572
  }
573
- var E = i[a];
574
- return i[a] = d, u.languages.DFS(u.languages, function(S, R) {
575
- R === E && S != a && (this[S] = d);
573
+ var E = s[a];
574
+ return s[a] = d, u.languages.DFS(u.languages, function(S, F) {
575
+ F === E && S != a && (this[S] = d);
576
576
  }), d;
577
577
  },
578
578
  // Traverse a language definition with Depth First Search
579
- DFS: function a(n, s, i, o) {
579
+ DFS: function a(n, i, s, o) {
580
580
  o = o || {};
581
581
  var d = u.util.objId;
582
582
  for (var g in n)
583
583
  if (n.hasOwnProperty(g)) {
584
- s.call(n, g, n[g], i || g);
584
+ i.call(n, g, n[g], s || g);
585
585
  var c = n[g], E = u.util.type(c);
586
- E === "Object" && !o[d(c)] ? (o[d(c)] = !0, a(c, s, null, o)) : E === "Array" && !o[d(c)] && (o[d(c)] = !0, a(c, s, g, o));
586
+ E === "Object" && !o[d(c)] ? (o[d(c)] = !0, a(c, i, null, o)) : E === "Array" && !o[d(c)] && (o[d(c)] = !0, a(c, i, g, o));
587
587
  }
588
588
  }
589
589
  },
@@ -618,15 +618,15 @@ var Q = { exports: {} };
618
618
  * @memberof Prism
619
619
  * @public
620
620
  */
621
- highlightAllUnder: function(a, n, s) {
622
- var i = {
623
- callback: s,
621
+ highlightAllUnder: function(a, n, i) {
622
+ var s = {
623
+ callback: i,
624
624
  container: a,
625
625
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
626
626
  };
627
- u.hooks.run("before-highlightall", i), i.elements = Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)), u.hooks.run("before-all-elements-highlight", i);
628
- for (var o = 0, d; d = i.elements[o++]; )
629
- u.highlightElement(d, n === !0, i.callback);
627
+ u.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), u.hooks.run("before-all-elements-highlight", s);
628
+ for (var o = 0, d; d = s.elements[o++]; )
629
+ u.highlightElement(d, n === !0, s.callback);
630
630
  },
631
631
  /**
632
632
  * Highlights the code inside a single element.
@@ -656,22 +656,22 @@ var Q = { exports: {} };
656
656
  * @memberof Prism
657
657
  * @public
658
658
  */
659
- highlightElement: function(a, n, s) {
660
- var i = u.util.getLanguage(a), o = u.languages[i];
661
- u.util.setLanguage(a, i);
659
+ highlightElement: function(a, n, i) {
660
+ var s = u.util.getLanguage(a), o = u.languages[s];
661
+ u.util.setLanguage(a, s);
662
662
  var d = a.parentElement;
663
- d && d.nodeName.toLowerCase() === "pre" && u.util.setLanguage(d, i);
663
+ d && d.nodeName.toLowerCase() === "pre" && u.util.setLanguage(d, s);
664
664
  var g = a.textContent, c = {
665
665
  element: a,
666
- language: i,
666
+ language: s,
667
667
  grammar: o,
668
668
  code: g
669
669
  };
670
- function E(R) {
671
- c.highlightedCode = R, u.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, u.hooks.run("after-highlight", c), u.hooks.run("complete", c), s && s.call(c.element);
670
+ function E(F) {
671
+ c.highlightedCode = F, u.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, u.hooks.run("after-highlight", c), u.hooks.run("complete", c), i && i.call(c.element);
672
672
  }
673
673
  if (u.hooks.run("before-sanity-check", c), d = c.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !c.code) {
674
- u.hooks.run("complete", c), s && s.call(c.element);
674
+ u.hooks.run("complete", c), i && i.call(c.element);
675
675
  return;
676
676
  }
677
677
  if (u.hooks.run("before-highlight", c), !c.grammar) {
@@ -680,8 +680,8 @@ var Q = { exports: {} };
680
680
  }
681
681
  if (n && l.Worker) {
682
682
  var S = new Worker(u.filename);
683
- S.onmessage = function(R) {
684
- E(R.data);
683
+ S.onmessage = function(F) {
684
+ E(F.data);
685
685
  }, S.postMessage(JSON.stringify({
686
686
  language: c.language,
687
687
  code: c.code,
@@ -710,15 +710,15 @@ var Q = { exports: {} };
710
710
  * @example
711
711
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
712
712
  */
713
- highlight: function(a, n, s) {
714
- var i = {
713
+ highlight: function(a, n, i) {
714
+ var s = {
715
715
  code: a,
716
716
  grammar: n,
717
- language: s
717
+ language: i
718
718
  };
719
- if (u.hooks.run("before-tokenize", i), !i.grammar)
720
- throw new Error('The language "' + i.language + '" has no grammar.');
721
- return i.tokens = u.tokenize(i.code, i.grammar), u.hooks.run("after-tokenize", i), h.stringify(u.util.encode(i.tokens), i.language);
719
+ if (u.hooks.run("before-tokenize", s), !s.grammar)
720
+ throw new Error('The language "' + s.language + '" has no grammar.');
721
+ return s.tokens = u.tokenize(s.code, s.grammar), u.hooks.run("after-tokenize", s), h.stringify(u.util.encode(s.tokens), s.language);
722
722
  },
723
723
  /**
724
724
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -745,14 +745,14 @@ var Q = { exports: {} };
745
745
  * });
746
746
  */
747
747
  tokenize: function(a, n) {
748
- var s = n.rest;
749
- if (s) {
750
- for (var i in s)
751
- n[i] = s[i];
748
+ var i = n.rest;
749
+ if (i) {
750
+ for (var s in i)
751
+ n[s] = i[s];
752
752
  delete n.rest;
753
753
  }
754
754
  var o = new x();
755
- return F(o, o.head, a), I(a, o, n, o.head, 0), O(o);
755
+ return I(o, o.head, a), _(a, o, n, o.head, 0), O(o);
756
756
  },
757
757
  /**
758
758
  * @namespace
@@ -774,8 +774,8 @@ var Q = { exports: {} };
774
774
  * @public
775
775
  */
776
776
  add: function(a, n) {
777
- var s = u.hooks.all;
778
- s[a] = s[a] || [], s[a].push(n);
777
+ var i = u.hooks.all;
778
+ i[a] = i[a] || [], i[a].push(n);
779
779
  },
780
780
  /**
781
781
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -787,34 +787,34 @@ var Q = { exports: {} };
787
787
  * @public
788
788
  */
789
789
  run: function(a, n) {
790
- var s = u.hooks.all[a];
791
- if (!(!s || !s.length))
792
- for (var i = 0, o; o = s[i++]; )
790
+ var i = u.hooks.all[a];
791
+ if (!(!i || !i.length))
792
+ for (var s = 0, o; o = i[s++]; )
793
793
  o(n);
794
794
  }
795
795
  },
796
796
  Token: h
797
797
  };
798
798
  l.Prism = u;
799
- function h(a, n, s, i) {
800
- this.type = a, this.content = n, this.alias = s, this.length = (i || "").length | 0;
799
+ function h(a, n, i, s) {
800
+ this.type = a, this.content = n, this.alias = i, this.length = (s || "").length | 0;
801
801
  }
802
- h.stringify = function a(n, s) {
802
+ h.stringify = function a(n, i) {
803
803
  if (typeof n == "string")
804
804
  return n;
805
805
  if (Array.isArray(n)) {
806
- var i = "";
806
+ var s = "";
807
807
  return n.forEach(function(E) {
808
- i += a(E, s);
809
- }), i;
808
+ s += a(E, i);
809
+ }), s;
810
810
  }
811
811
  var o = {
812
812
  type: n.type,
813
- content: a(n.content, s),
813
+ content: a(n.content, i),
814
814
  tag: "span",
815
815
  classes: ["token", n.type],
816
816
  attributes: {},
817
- language: s
817
+ language: i
818
818
  }, d = n.alias;
819
819
  d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)), u.hooks.run("wrap", o);
820
820
  var g = "";
@@ -822,58 +822,58 @@ var Q = { exports: {} };
822
822
  g += " " + c + '="' + (o.attributes[c] || "").replace(/"/g, "&quot;") + '"';
823
823
  return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + g + ">" + o.content + "</" + o.tag + ">";
824
824
  };
825
- function A(a, n, s, i) {
825
+ function A(a, n, i, s) {
826
826
  a.lastIndex = n;
827
- var o = a.exec(s);
828
- if (o && i && o[1]) {
827
+ var o = a.exec(i);
828
+ if (o && s && o[1]) {
829
829
  var d = o[1].length;
830
830
  o.index += d, o[0] = o[0].slice(d);
831
831
  }
832
832
  return o;
833
833
  }
834
- function I(a, n, s, i, o, d) {
835
- for (var g in s)
836
- if (!(!s.hasOwnProperty(g) || !s[g])) {
837
- var c = s[g];
834
+ function _(a, n, i, s, o, d) {
835
+ for (var g in i)
836
+ if (!(!i.hasOwnProperty(g) || !i[g])) {
837
+ var c = i[g];
838
838
  c = Array.isArray(c) ? c : [c];
839
839
  for (var E = 0; E < c.length; ++E) {
840
840
  if (d && d.cause == g + "," + E)
841
841
  return;
842
- var S = c[E], R = S.inside, X = !!S.lookbehind, Z = !!S.greedy, ee = S.alias;
842
+ var S = c[E], F = S.inside, X = !!S.lookbehind, Z = !!S.greedy, ee = S.alias;
843
843
  if (Z && !S.pattern.global) {
844
844
  var te = S.pattern.toString().match(/[imsuy]*$/)[0];
845
845
  S.pattern = RegExp(S.pattern.source, te + "g");
846
846
  }
847
- for (var K = S.pattern || S, T = i.next, _ = o; T !== n.tail && !(d && _ >= d.reach); _ += T.value.length, T = T.next) {
847
+ for (var K = S.pattern || S, T = s.next, k = o; T !== n.tail && !(d && k >= d.reach); k += T.value.length, T = T.next) {
848
848
  var C = T.value;
849
849
  if (n.length > a.length)
850
850
  return;
851
851
  if (!(C instanceof h)) {
852
852
  var N = 1, w;
853
853
  if (Z) {
854
- if (w = A(K, _, a, X), !w || w.index >= a.length)
854
+ if (w = A(K, k, a, X), !w || w.index >= a.length)
855
855
  break;
856
- var D = w.index, ne = w.index + w[0].length, k = _;
857
- for (k += T.value.length; D >= k; )
858
- T = T.next, k += T.value.length;
859
- if (k -= T.value.length, _ = k, T.value instanceof h)
856
+ var D = w.index, ne = w.index + w[0].length, R = k;
857
+ for (R += T.value.length; D >= R; )
858
+ T = T.next, R += T.value.length;
859
+ if (R -= T.value.length, k = R, T.value instanceof h)
860
860
  continue;
861
- for (var L = T; L !== n.tail && (k < ne || typeof L.value == "string"); L = L.next)
862
- N++, k += L.value.length;
863
- N--, C = a.slice(_, k), w.index -= _;
861
+ for (var L = T; L !== n.tail && (R < ne || typeof L.value == "string"); L = L.next)
862
+ N++, R += L.value.length;
863
+ N--, C = a.slice(k, R), w.index -= k;
864
864
  } else if (w = A(K, 0, C, X), !w)
865
865
  continue;
866
- var D = w.index, P = w[0], H = C.slice(0, D), V = C.slice(D + P.length), B = _ + C.length;
866
+ var D = w.index, P = w[0], H = C.slice(0, D), V = C.slice(D + P.length), B = k + C.length;
867
867
  d && B > d.reach && (d.reach = B);
868
868
  var $ = T.prev;
869
- H && ($ = F(n, $, H), _ += H.length), U(n, $, N);
870
- var ae = new h(g, R ? u.tokenize(P, R) : P, ee, P);
871
- if (T = F(n, $, ae), V && F(n, T, V), N > 1) {
869
+ H && ($ = I(n, $, H), k += H.length), U(n, $, N);
870
+ var re = new h(g, F ? u.tokenize(P, F) : P, ee, P);
871
+ if (T = I(n, $, re), V && I(n, T, V), N > 1) {
872
872
  var G = {
873
873
  cause: g + "," + E,
874
874
  reach: B
875
875
  };
876
- I(a, n, s, T.prev, _, G), d && G.reach > d.reach && (d.reach = G.reach);
876
+ _(a, n, i, T.prev, k, G), d && G.reach > d.reach && (d.reach = G.reach);
877
877
  }
878
878
  }
879
879
  }
@@ -884,24 +884,24 @@ var Q = { exports: {} };
884
884
  var a = { value: null, prev: null, next: null }, n = { value: null, prev: a, next: null };
885
885
  a.next = n, this.head = a, this.tail = n, this.length = 0;
886
886
  }
887
- function F(a, n, s) {
888
- var i = n.next, o = { value: s, prev: n, next: i };
889
- return n.next = o, i.prev = o, a.length++, o;
887
+ function I(a, n, i) {
888
+ var s = n.next, o = { value: i, prev: n, next: s };
889
+ return n.next = o, s.prev = o, a.length++, o;
890
890
  }
891
- function U(a, n, s) {
892
- for (var i = n.next, o = 0; o < s && i !== a.tail; o++)
893
- i = i.next;
894
- n.next = i, i.prev = n, a.length -= o;
891
+ function U(a, n, i) {
892
+ for (var s = n.next, o = 0; o < i && s !== a.tail; o++)
893
+ s = s.next;
894
+ n.next = s, s.prev = n, a.length -= o;
895
895
  }
896
896
  function O(a) {
897
- for (var n = [], s = a.head.next; s !== a.tail; )
898
- n.push(s.value), s = s.next;
897
+ for (var n = [], i = a.head.next; i !== a.tail; )
898
+ n.push(i.value), i = i.next;
899
899
  return n;
900
900
  }
901
901
  if (!l.document)
902
902
  return l.addEventListener && (u.disableWorkerMessageHandler || l.addEventListener("message", function(a) {
903
- var n = JSON.parse(a.data), s = n.language, i = n.code, o = n.immediateClose;
904
- l.postMessage(u.highlight(i, u.languages[s], s)), o && l.close();
903
+ var n = JSON.parse(a.data), i = n.language, s = n.code, o = n.immediateClose;
904
+ l.postMessage(u.highlight(s, u.languages[i], i)), o && l.close();
905
905
  }, !1)), u;
906
906
  var v = u.util.currentScript();
907
907
  v && (u.filename = v.src, v.hasAttribute("data-manual") && (u.manual = !0));
@@ -1304,8 +1304,8 @@ var Q = { exports: {} };
1304
1304
  bat: "batch",
1305
1305
  h: "c",
1306
1306
  tex: "latex"
1307
- }, u = "data-src-status", h = "loading", A = "loaded", I = "failed", x = "pre[data-src]:not([" + u + '="' + A + '"]):not([' + u + '="' + h + '"])';
1308
- function F(v, m, y) {
1307
+ }, u = "data-src-status", h = "loading", A = "loaded", _ = "failed", x = "pre[data-src]:not([" + u + '="' + A + '"]):not([' + u + '="' + h + '"])';
1308
+ function I(v, m, y) {
1309
1309
  var a = new XMLHttpRequest();
1310
1310
  a.open("GET", v, !0), a.onreadystatechange = function() {
1311
1311
  a.readyState == 4 && (a.status < 400 && a.responseText ? m(a.responseText) : a.status >= 400 ? y(p(a.status, a.statusText)) : y(f));
@@ -1331,12 +1331,12 @@ var Q = { exports: {} };
1331
1331
  y.textContent = l;
1332
1332
  var a = m.getAttribute("data-src"), n = v.language;
1333
1333
  if (n === "none") {
1334
- var s = (/\.(\w+)$/.exec(a) || [, "none"])[1];
1335
- n = b[s] || s;
1334
+ var i = (/\.(\w+)$/.exec(a) || [, "none"])[1];
1335
+ n = b[i] || i;
1336
1336
  }
1337
1337
  t.util.setLanguage(y, n), t.util.setLanguage(m, n);
1338
- var i = t.plugins.autoloader;
1339
- i && i.loadLanguages(n), F(
1338
+ var s = t.plugins.autoloader;
1339
+ s && s.loadLanguages(n), I(
1340
1340
  a,
1341
1341
  function(o) {
1342
1342
  m.setAttribute(u, A);
@@ -1349,7 +1349,7 @@ var Q = { exports: {} };
1349
1349
  y.textContent = o, t.highlightElement(y);
1350
1350
  },
1351
1351
  function(o) {
1352
- m.setAttribute(u, I), y.textContent = o;
1352
+ m.setAttribute(u, _), y.textContent = o;
1353
1353
  }
1354
1354
  );
1355
1355
  }
@@ -2214,6 +2214,123 @@ Prism.languages.json = {
2214
2214
  }
2215
2215
  };
2216
2216
  Prism.languages.webmanifest = Prism.languages.json;
2217
+ const ce = `
2218
+ .hep-cr-editor .token.comment,
2219
+ .hep-cr-editor .token.prolog,
2220
+ .hep-cr-editor .token.doctype,
2221
+ .hep-cr-editor .token.cdata {
2222
+ color: #8292a2;
2223
+ }
2224
+
2225
+ .hep-cr-editor .token.punctuation {
2226
+ color: #f8f8f2;
2227
+ }
2228
+
2229
+ .hep-cr-editor .token.property,
2230
+ .hep-cr-editor .token.tag,
2231
+ .hep-cr-editor .token.constant,
2232
+ .hep-cr-editor .token.symbol,
2233
+ .hep-cr-editor .token.deleted {
2234
+ color: #f92672;
2235
+ }
2236
+
2237
+ .hep-cr-editor .token.boolean,
2238
+ .hep-cr-editor .token.number {
2239
+ color: #ae81ff;
2240
+ }
2241
+
2242
+ .hep-cr-editor .token.selector,
2243
+ .hep-cr-editor .token.attr-name,
2244
+ .hep-cr-editor .token.string,
2245
+ .hep-cr-editor .token.char,
2246
+ .hep-cr-editor .token.builtin,
2247
+ .hep-cr-editor .token.inserted {
2248
+ color: #a6e22e;
2249
+ }
2250
+
2251
+ .hep-cr-editor .token.operator,
2252
+ .hep-cr-editor .token.entity,
2253
+ .hep-cr-editor .token.url,
2254
+ .hep-cr-editor .language-css .hep-cr-editor .token.string,
2255
+ .hep-cr-editor .style .hep-cr-editor .token.string,
2256
+ .hep-cr-editor .token.variable {
2257
+ color: #f8f8f2;
2258
+ }
2259
+
2260
+ .hep-cr-editor .token.atrule,
2261
+ .hep-cr-editor .token.attr-value,
2262
+ .hep-cr-editor .token.function,
2263
+ .hep-cr-editor .token.class-name {
2264
+ color: #e6db74;
2265
+ }
2266
+
2267
+ .hep-cr-editor .token.keyword {
2268
+ color: #66d9ef;
2269
+ }
2270
+
2271
+ .hep-cr-editor .token.regex,
2272
+ .hep-cr-editor .token.important {
2273
+ color: #fd971f;
2274
+ }
2275
+ `, de = `
2276
+ .hep-cr-editor .token.comment,
2277
+ .hep-cr-editor .token.prolog,
2278
+ .hep-cr-editor .token.doctype,
2279
+ .hep-cr-editor .token.cdata {
2280
+ color: #708090;
2281
+ }
2282
+
2283
+ .hep-cr-editor .token.punctuation {
2284
+ color: #333;
2285
+ }
2286
+
2287
+ .hep-cr-editor .token.property,
2288
+ .hep-cr-editor .token.tag,
2289
+ .hep-cr-editor .token.constant,
2290
+ .hep-cr-editor .token.symbol,
2291
+ .hep-cr-editor .token.deleted {
2292
+ color: #d73a49;
2293
+ }
2294
+
2295
+ .hep-cr-editor .token.boolean,
2296
+ .hep-cr-editor .token.number {
2297
+ color: #005cc5;
2298
+ }
2299
+
2300
+ .hep-cr-editor .token.selector,
2301
+ .hep-cr-editor .token.attr-name,
2302
+ .hep-cr-editor .token.string,
2303
+ .hep-cr-editor .token.char,
2304
+ .hep-cr-editor .token.builtin,
2305
+ .hep-cr-editor .token.inserted {
2306
+ color: #22863a;
2307
+ }
2308
+
2309
+ .hep-cr-editor .token.operator,
2310
+ .hep-cr-editor .token.entity,
2311
+ .hep-cr-editor .token.url,
2312
+ .hep-cr-editor .language-css .hep-cr-editor .token.string,
2313
+ .hep-cr-editor .style .hep-cr-editor .token.string,
2314
+ .hep-cr-editor .token.variable {
2315
+ color: #333;
2316
+ }
2317
+
2318
+ .hep-cr-editor .token.atrule,
2319
+ .hep-cr-editor .token.attr-value,
2320
+ .hep-cr-editor .token.function,
2321
+ .hep-cr-editor .token.class-name {
2322
+ color: #6f42c1;
2323
+ }
2324
+
2325
+ .hep-cr-editor .token.keyword {
2326
+ color: #d73a49;
2327
+ }
2328
+
2329
+ .hep-cr-editor .token.regex,
2330
+ .hep-cr-editor .token.important {
2331
+ color: #e36209;
2332
+ }
2333
+ `;
2217
2334
  function Y(r, e, t, l, p, f, b, u) {
2218
2335
  var h = typeof r == "function" ? r.options : r;
2219
2336
  return e && (h.render = e, h.staticRenderFns = t, h._compiled = !0), f && (h._scopeId = "data-v-" + f), {
@@ -2222,7 +2339,7 @@ function Y(r, e, t, l, p, f, b, u) {
2222
2339
  };
2223
2340
  }
2224
2341
  typeof window < "u" && (window.Prism = j);
2225
- const ce = {
2342
+ const pe = {
2226
2343
  name: "CodeEditor",
2227
2344
  props: {
2228
2345
  value: {
@@ -2247,6 +2364,14 @@ const ce = {
2247
2364
  highlightRef: null
2248
2365
  };
2249
2366
  },
2367
+ mounted() {
2368
+ this.loadPrismTheme(this.theme);
2369
+ },
2370
+ watch: {
2371
+ theme(r) {
2372
+ this.loadPrismTheme(r);
2373
+ }
2374
+ },
2250
2375
  computed: {
2251
2376
  languageMap: function() {
2252
2377
  return {
@@ -2303,6 +2428,12 @@ const ce = {
2303
2428
  }
2304
2429
  },
2305
2430
  methods: {
2431
+ loadPrismTheme(r) {
2432
+ const e = "hep-cr-prism-styles";
2433
+ let t = document.getElementById(e);
2434
+ const l = r === "dark" ? ce : de;
2435
+ t ? t.textContent = l : (t = document.createElement("style"), t.id = e, t.textContent = l, document.head.appendChild(t));
2436
+ },
2306
2437
  escapeHtml: function(r) {
2307
2438
  var e = document.createElement("div");
2308
2439
  return e.textContent = r, e.innerHTML;
@@ -2323,21 +2454,21 @@ const ce = {
2323
2454
  }
2324
2455
  }
2325
2456
  };
2326
- var de = function() {
2457
+ var ge = function() {
2327
2458
  var e = this, t = e._self._c;
2328
2459
  return t("div", { staticClass: "hep-cr-editor", class: "hep-cr-theme-" + e.theme, style: { background: e.editorBackground } }, [t("pre", { ref: "highlightRef", staticClass: "hep-cr-highlight", class: "language-" + e.prismLanguage, attrs: { "aria-hidden": "true" } }, [t("code", { domProps: { innerHTML: e._s(e.highlightedCode) } })]), t("textarea", { staticClass: "hep-cr-input", attrs: { disabled: e.disabled, spellcheck: "false", placeholder: "Write your code here..." }, domProps: { value: e.value }, on: { input: e.handleInput, scroll: e.handleScroll, keydown: e.handleKeydown } })]);
2329
- }, pe = [], ge = /* @__PURE__ */ Y(
2330
- ce,
2331
- de,
2460
+ }, he = [], fe = /* @__PURE__ */ Y(
2332
2461
  pe,
2462
+ ge,
2463
+ he,
2333
2464
  !1,
2334
2465
  null,
2335
- "bee30f50"
2466
+ "ef521764"
2336
2467
  );
2337
- const he = ge.exports, fe = {
2468
+ const me = fe.exports, be = {
2338
2469
  name: "CodeRunner",
2339
2470
  components: {
2340
- CodeEditor: he
2471
+ CodeEditor: me
2341
2472
  },
2342
2473
  props: {
2343
2474
  pistonUrl: {
@@ -2417,7 +2548,7 @@ const he = ge.exports, fe = {
2417
2548
  }
2418
2549
  },
2419
2550
  mounted: function() {
2420
- this.client = new ie({ pistonUrl: this.pistonUrl }), this.loadRuntimes();
2551
+ this.client = new se({ pistonUrl: this.pistonUrl }), this.loadRuntimes();
2421
2552
  },
2422
2553
  methods: {
2423
2554
  loadRuntimes: function() {
@@ -2472,7 +2603,7 @@ const he = ge.exports, fe = {
2472
2603
  }
2473
2604
  }
2474
2605
  };
2475
- var me = function() {
2606
+ var Ee = function() {
2476
2607
  var e = this, t = e._self._c;
2477
2608
  return t("div", { class: ["hep-cr-runner", e.themeClass] }, [t("div", { staticClass: "hep-cr-runner-header" }, [t("div", { staticClass: "hep-cr-runner-controls" }, [e.showLanguageSelector ? t("select", { directives: [{ name: "model", rawName: "v-model", value: e.currentLanguage, expression: "currentLanguage" }], staticClass: "hep-cr-language-select", attrs: { disabled: e.isRunning }, on: { change: function(l) {
2478
2609
  var p = Array.prototype.filter.call(l.target.options, function(f) {
@@ -2491,15 +2622,15 @@ var me = function() {
2491
2622
  } } }, [e._v(" 输出 ")]), e.stderr ? t("button", { class: ["hep-cr-tab", { active: e.activeTab === "stderr" }], on: { click: function(l) {
2492
2623
  e.activeTab = "stderr";
2493
2624
  } } }, [e._v(" 错误 ")]) : e._e()]), t("div", { staticClass: "hep-cr-output-actions" }, [e.executionTime !== null ? t("span", { staticClass: "hep-cr-execution-time" }, [e._v(" " + e._s(e.executionTime) + "ms ")]) : e._e(), t("button", { staticClass: "hep-cr-btn-icon", attrs: { title: "复制" }, on: { click: e.copyOutput } }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("rect", { attrs: { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" } }), t("path", { attrs: { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" } })])]), t("button", { staticClass: "hep-cr-btn-icon", attrs: { title: "清除" }, on: { click: e.clearOutput } }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("polyline", { attrs: { points: "3 6 5 6 21 6" } }), t("path", { attrs: { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" } })])])])]), t("div", { staticClass: "hep-cr-output-content" }, [e.activeTab === "stdout" ? t("pre", [e._v(e._s(e.output || '点击"运行"执行代码'))]) : t("pre", { staticClass: "hep-cr-stderr" }, [e._v(e._s(e.stderr))])])])])]);
2494
- }, be = [], Ee = /* @__PURE__ */ Y(
2495
- fe,
2496
- me,
2625
+ }, ve = [], ye = /* @__PURE__ */ Y(
2497
2626
  be,
2627
+ Ee,
2628
+ ve,
2498
2629
  !1,
2499
2630
  null,
2500
2631
  "490ecb17"
2501
2632
  );
2502
- const M = Ee.exports, ve = {
2633
+ const M = ye.exports, Ae = {
2503
2634
  name: "CodeRunnerDialog",
2504
2635
  components: {
2505
2636
  CodeRunner: M
@@ -2547,28 +2678,28 @@ const M = Ee.exports, ve = {
2547
2678
  },
2548
2679
  expose: ["close"]
2549
2680
  };
2550
- var ye = function() {
2681
+ var Se = function() {
2551
2682
  var e = this, t = e._self._c;
2552
2683
  return t("Teleport", { attrs: { to: "body" } }, [t("Transition", { attrs: { name: "hep-cr-dialog-fade" } }, [e.localVisible ? t("div", { staticClass: "hep-cr-dialog-overlay", on: { click: e.handleOverlayClick } }, [t("div", { staticClass: "hep-cr-dialog-container", style: { width: e.dialogWidth } }, [t("div", { staticClass: "hep-cr-dialog-header" }, [t("h3", { staticClass: "hep-cr-dialog-title" }, [e._v(e._s(e.title))]), t("button", { staticClass: "hep-cr-dialog-close", on: { click: e.close } }, [t("svg", { attrs: { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), t("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])])]), t("div", { staticClass: "hep-cr-dialog-body" }, [t("CodeRunner", e._b({}, "CodeRunner", e.$attrs, !1))], 1), e.$slots.footer ? t("div", { staticClass: "hep-cr-dialog-footer" }, [e._t("footer", null, { close: e.close })], 2) : e._e()])]) : e._e()])], 1);
2553
- }, Ae = [], Se = /* @__PURE__ */ Y(
2554
- ve,
2555
- ye,
2684
+ }, Te = [], we = /* @__PURE__ */ Y(
2556
2685
  Ae,
2686
+ Se,
2687
+ Te,
2557
2688
  !1,
2558
2689
  null,
2559
2690
  "ec700b03"
2560
2691
  );
2561
- const Te = Se.exports;
2692
+ const ke = we.exports;
2562
2693
  M.install = (r) => {
2563
2694
  r.component("CodeRunner", M);
2564
2695
  };
2565
- const we = {
2696
+ const _e = {
2566
2697
  install(r) {
2567
2698
  r.component("CodeRunner", M);
2568
2699
  }
2569
2700
  };
2570
2701
  export {
2571
2702
  M as CodeRunner,
2572
- Te as CodeRunnerDialog,
2573
- we as default
2703
+ ke as CodeRunnerDialog,
2704
+ _e as default
2574
2705
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:#ffffff80}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.hep-cr-editor[data-v-bee30f50]{position:relative;flex:1;overflow:hidden}.hep-cr-highlight[data-v-bee30f50],.hep-cr-input[data-v-bee30f50]{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px 16px;margin:0;border:none;font-family:SF Mono,Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.6;white-space:pre;overflow:auto}.hep-cr-highlight[data-v-bee30f50]{pointer-events:none;z-index:1}.hep-cr-highlight.hep-cr-highlight[data-v-bee30f50]{background:transparent!important}.hep-cr-highlight code[data-v-bee30f50]{display:block;font-family:inherit;background:transparent!important}.hep-cr-input[data-v-bee30f50]{position:relative;z-index:2;background:transparent;color:transparent;caret-color:#d4d4d4;resize:none;outline:none}.hep-cr-input[data-v-bee30f50]:disabled{opacity:.7}.hep-cr-theme-light .hep-cr-input[data-v-bee30f50]{caret-color:#333}.hep-cr-runner[data-v-490ecb17]{display:flex;flex-direction:column;border:1px solid #e0e0e0;border-radius:12px;overflow:hidden;font-family:SF Mono,Monaco,Menlo,Ubuntu Mono,monospace}.hep-cr-runner-light[data-v-490ecb17]{background:#fff}.hep-cr-runner-dark[data-v-490ecb17]{background:#1e1e1e;border-color:#333}.hep-cr-runner-header[data-v-490ecb17]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#252526;border-bottom:1px solid #333}.hep-cr-runner-light .hep-cr-runner-header[data-v-490ecb17]{background:#f3f3f3;border-color:#e0e0e0}.hep-cr-runner-controls[data-v-490ecb17]{display:flex;gap:8px}.hep-cr-language-select[data-v-490ecb17]{padding:6px 12px;border:1px solid #444;border-radius:6px;background:#2d2d2d;color:#d4d4d4;font-size:13px;cursor:pointer;outline:none}.hep-cr-runner-light .hep-cr-language-select[data-v-490ecb17]{background:#fff;color:#333;border-color:#ccc}.hep-cr-language-select[data-v-490ecb17]:focus{border-color:#4fc3f7}.hep-cr-runner-actions[data-v-490ecb17]{display:flex;gap:8px}.hep-cr-btn[data-v-490ecb17]{padding:6px 16px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s}.hep-cr-btn[data-v-490ecb17]:disabled{opacity:.5;cursor:not-allowed}.hep-cr-btn-run[data-v-490ecb17]{background:linear-gradient(135deg,#4caf50,#43a047);color:#fff}.hep-cr-btn-run[data-v-490ecb17]:hover:not(:disabled){background:linear-gradient(135deg,#66bb6a,#4caf50)}.hep-cr-btn-reset[data-v-490ecb17]{background:#3d3d3d;color:#aaa}.hep-cr-runner-light .hep-cr-btn-reset[data-v-490ecb17]{background:#e0e0e0;color:#666}.hep-cr-btn-reset[data-v-490ecb17]:hover:not(:disabled){background:#4d4d4d;color:#fff}.hep-cr-btn-theme[data-v-490ecb17]{background:#3d3d3d;color:#aaa;padding:5px 10px;font-size:14px;line-height:1;height:auto;min-height:28px}.hep-cr-runner-light .hep-cr-btn-theme[data-v-490ecb17]{background:#e0e0e0}.hep-cr-btn-theme[data-v-490ecb17]:hover{background:#4d4d4d;color:#fff}.hep-cr-error-message[data-v-490ecb17]{padding:10px 16px;background:#c62828;color:#fff;font-size:13px}.hep-cr-runner-main[data-v-490ecb17]{display:flex;height:400px;overflow:hidden}.hep-cr-editor-panel[data-v-490ecb17]{display:flex;flex-direction:column;min-width:20%;max-width:80%}.hep-cr-panel-header[data-v-490ecb17]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#2d2d2d;border-bottom:1px solid #333}.hep-cr-runner-light .hep-cr-panel-header[data-v-490ecb17]{background:#f0f0f0;border-color:#e0e0e0}.hep-cr-panel-title[data-v-490ecb17]{font-size:12px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}.hep-cr-language-badge[data-v-490ecb17]{font-size:11px;padding:2px 8px;background:#4fc3f7;color:#000;border-radius:10px;font-weight:500}.hep-cr-editor[data-v-490ecb17]{flex:1;width:100%;background:#1e1e1e}.hep-cr-editor .hep-cr-highlight[data-v-490ecb17]{background:transparent!important}.hep-cr-editor .hep-cr-input[data-v-490ecb17]{color:transparent!important;caret-color:#d4d4d4}.hep-cr-runner-light .hep-cr-editor[data-v-490ecb17]{background:#fafafa}.hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code[data-v-490ecb17]{color:#333}.hep-cr-resize-handle[data-v-490ecb17]{width:6px;background:#252526;cursor:col-resize;display:flex;align-items:center;justify-content:center;transition:background .2s}.hep-cr-resize-handle[data-v-490ecb17]:hover{background:#4fc3f7}.hep-cr-resize-line[data-v-490ecb17]{width:2px;height:40px;background:#444;border-radius:1px}.hep-cr-resize-handle:hover .hep-cr-resize-line[data-v-490ecb17]{background:#fff}.hep-cr-output-panel[data-v-490ecb17]{display:flex;flex-direction:column;min-width:20%;border-left:1px solid #333}.hep-cr-runner-light .hep-cr-output-panel[data-v-490ecb17]{border-color:#e0e0e0}.hep-cr-output-tabs[data-v-490ecb17]{display:flex;gap:4px}.hep-cr-tab[data-v-490ecb17]{padding:4px 12px;border:none;background:transparent;cursor:pointer;font-size:12px;border-radius:4px;color:#888;transition:all .2s}.hep-cr-tab[data-v-490ecb17]:hover{color:#d4d4d4;background:#3d3d3d}.hep-cr-runner-light .hep-cr-tab[data-v-490ecb17]:hover{color:#333;background:#e0e0e0}.hep-cr-tab.active[data-v-490ecb17]{background:#4fc3f7;color:#000;font-weight:500}.hep-cr-output-actions[data-v-490ecb17]{display:flex;align-items:center;gap:12px}.hep-cr-execution-time[data-v-490ecb17]{font-size:12px;color:#4caf50;font-weight:500}.hep-cr-btn-icon[data-v-490ecb17]{background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#888;display:flex;align-items:center;justify-content:center;transition:all .2s}.hep-cr-btn-icon[data-v-490ecb17]:hover{color:#fff;background:#3d3d3d}.hep-cr-runner-light .hep-cr-btn-icon[data-v-490ecb17]:hover{color:#333;background:#e0e0e0}.hep-cr-output-content[data-v-490ecb17]{flex:1;padding:12px 16px;overflow:auto;background:#1e1e1e}.hep-cr-runner-light .hep-cr-output-content[data-v-490ecb17]{background:#fff}.hep-cr-output-content pre[data-v-490ecb17]{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-all;color:#d4d4d4}.hep-cr-runner-light .hep-cr-output-content pre[data-v-490ecb17]{color:#333}.hep-cr-output-content .hep-cr-stderr[data-v-490ecb17]{color:#f44336}.hep-cr-spinner[data-v-490ecb17]{width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin-490ecb17 .8s linear infinite}@keyframes spin-490ecb17{to{transform:rotate(360deg)}}.hep-cr-dialog-overlay[data-v-ec700b03]{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}.hep-cr-dialog-container[data-v-ec700b03]{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.hep-cr-dialog-header[data-v-ec700b03]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e0e0e0}.hep-cr-dialog-title[data-v-ec700b03]{margin:0;font-size:16px;font-weight:600;color:#333}.hep-cr-dialog-close[data-v-ec700b03]{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#666;display:flex;align-items:center;justify-content:center;transition:all .2s}.hep-cr-dialog-close[data-v-ec700b03]:hover{background:#f0f0f0;color:#333}.hep-cr-dialog-body[data-v-ec700b03]{flex:1;overflow:auto;padding:0}.hep-cr-dialog-body[data-v-ec700b03] .hep-cr-runner{border:none;border-radius:0}.hep-cr-dialog-footer[data-v-ec700b03]{padding:12px 20px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end;gap:12px}.hep-cr-dialog-fade-enter-active[data-v-ec700b03],.hep-cr-dialog-fade-leave-active[data-v-ec700b03]{transition:opacity .2s ease}.hep-cr-dialog-fade-enter-from[data-v-ec700b03],.hep-cr-dialog-fade-leave-to[data-v-ec700b03]{opacity:0}.hep-cr-dialog-fade-enter-active .hep-cr-dialog-container[data-v-ec700b03],.hep-cr-dialog-fade-leave-active .hep-cr-dialog-container[data-v-ec700b03]{transition:transform .2s ease}.hep-cr-dialog-fade-enter-from .hep-cr-dialog-container[data-v-ec700b03],.hep-cr-dialog-fade-leave-to .hep-cr-dialog-container[data-v-ec700b03]{transform:scale(.95)}
1
+ .hep-cr-editor[data-v-ef521764]{position:relative;flex:1;overflow:hidden}.hep-cr-highlight[data-v-ef521764],.hep-cr-input[data-v-ef521764]{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px 16px;margin:0;border:none;font-family:SF Mono,Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.6;white-space:pre;overflow:auto}.hep-cr-highlight[data-v-ef521764]{pointer-events:none;z-index:1}.hep-cr-highlight.hep-cr-highlight[data-v-ef521764]{background:transparent!important}.hep-cr-highlight code[data-v-ef521764]{display:block;font-family:inherit;background:transparent!important}.hep-cr-input[data-v-ef521764]{position:relative;z-index:2;background:transparent;color:transparent;caret-color:#d4d4d4;resize:none;outline:none}.hep-cr-input[data-v-ef521764]:disabled{opacity:.7}.hep-cr-theme-light .hep-cr-input[data-v-ef521764]{caret-color:#333}.hep-cr-runner[data-v-490ecb17]{display:flex;flex-direction:column;border:1px solid #e0e0e0;border-radius:12px;overflow:hidden;font-family:SF Mono,Monaco,Menlo,Ubuntu Mono,monospace}.hep-cr-runner-light[data-v-490ecb17]{background:#fff}.hep-cr-runner-dark[data-v-490ecb17]{background:#1e1e1e;border-color:#333}.hep-cr-runner-header[data-v-490ecb17]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#252526;border-bottom:1px solid #333}.hep-cr-runner-light .hep-cr-runner-header[data-v-490ecb17]{background:#f3f3f3;border-color:#e0e0e0}.hep-cr-runner-controls[data-v-490ecb17]{display:flex;gap:8px}.hep-cr-language-select[data-v-490ecb17]{padding:6px 12px;border:1px solid #444;border-radius:6px;background:#2d2d2d;color:#d4d4d4;font-size:13px;cursor:pointer;outline:none}.hep-cr-runner-light .hep-cr-language-select[data-v-490ecb17]{background:#fff;color:#333;border-color:#ccc}.hep-cr-language-select[data-v-490ecb17]:focus{border-color:#4fc3f7}.hep-cr-runner-actions[data-v-490ecb17]{display:flex;gap:8px}.hep-cr-btn[data-v-490ecb17]{padding:6px 16px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s}.hep-cr-btn[data-v-490ecb17]:disabled{opacity:.5;cursor:not-allowed}.hep-cr-btn-run[data-v-490ecb17]{background:linear-gradient(135deg,#4caf50,#43a047);color:#fff}.hep-cr-btn-run[data-v-490ecb17]:hover:not(:disabled){background:linear-gradient(135deg,#66bb6a,#4caf50)}.hep-cr-btn-reset[data-v-490ecb17]{background:#3d3d3d;color:#aaa}.hep-cr-runner-light .hep-cr-btn-reset[data-v-490ecb17]{background:#e0e0e0;color:#666}.hep-cr-btn-reset[data-v-490ecb17]:hover:not(:disabled){background:#4d4d4d;color:#fff}.hep-cr-btn-theme[data-v-490ecb17]{background:#3d3d3d;color:#aaa;padding:5px 10px;font-size:14px;line-height:1;height:auto;min-height:28px}.hep-cr-runner-light .hep-cr-btn-theme[data-v-490ecb17]{background:#e0e0e0}.hep-cr-btn-theme[data-v-490ecb17]:hover{background:#4d4d4d;color:#fff}.hep-cr-error-message[data-v-490ecb17]{padding:10px 16px;background:#c62828;color:#fff;font-size:13px}.hep-cr-runner-main[data-v-490ecb17]{display:flex;height:400px;overflow:hidden}.hep-cr-editor-panel[data-v-490ecb17]{display:flex;flex-direction:column;min-width:20%;max-width:80%}.hep-cr-panel-header[data-v-490ecb17]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#2d2d2d;border-bottom:1px solid #333}.hep-cr-runner-light .hep-cr-panel-header[data-v-490ecb17]{background:#f0f0f0;border-color:#e0e0e0}.hep-cr-panel-title[data-v-490ecb17]{font-size:12px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.5px}.hep-cr-language-badge[data-v-490ecb17]{font-size:11px;padding:2px 8px;background:#4fc3f7;color:#000;border-radius:10px;font-weight:500}.hep-cr-editor[data-v-490ecb17]{flex:1;width:100%;background:#1e1e1e}.hep-cr-editor .hep-cr-highlight[data-v-490ecb17]{background:transparent!important}.hep-cr-editor .hep-cr-input[data-v-490ecb17]{color:transparent!important;caret-color:#d4d4d4}.hep-cr-runner-light .hep-cr-editor[data-v-490ecb17]{background:#fafafa}.hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code[data-v-490ecb17]{color:#333}.hep-cr-resize-handle[data-v-490ecb17]{width:6px;background:#252526;cursor:col-resize;display:flex;align-items:center;justify-content:center;transition:background .2s}.hep-cr-resize-handle[data-v-490ecb17]:hover{background:#4fc3f7}.hep-cr-resize-line[data-v-490ecb17]{width:2px;height:40px;background:#444;border-radius:1px}.hep-cr-resize-handle:hover .hep-cr-resize-line[data-v-490ecb17]{background:#fff}.hep-cr-output-panel[data-v-490ecb17]{display:flex;flex-direction:column;min-width:20%;border-left:1px solid #333}.hep-cr-runner-light .hep-cr-output-panel[data-v-490ecb17]{border-color:#e0e0e0}.hep-cr-output-tabs[data-v-490ecb17]{display:flex;gap:4px}.hep-cr-tab[data-v-490ecb17]{padding:4px 12px;border:none;background:transparent;cursor:pointer;font-size:12px;border-radius:4px;color:#888;transition:all .2s}.hep-cr-tab[data-v-490ecb17]:hover{color:#d4d4d4;background:#3d3d3d}.hep-cr-runner-light .hep-cr-tab[data-v-490ecb17]:hover{color:#333;background:#e0e0e0}.hep-cr-tab.active[data-v-490ecb17]{background:#4fc3f7;color:#000;font-weight:500}.hep-cr-output-actions[data-v-490ecb17]{display:flex;align-items:center;gap:12px}.hep-cr-execution-time[data-v-490ecb17]{font-size:12px;color:#4caf50;font-weight:500}.hep-cr-btn-icon[data-v-490ecb17]{background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#888;display:flex;align-items:center;justify-content:center;transition:all .2s}.hep-cr-btn-icon[data-v-490ecb17]:hover{color:#fff;background:#3d3d3d}.hep-cr-runner-light .hep-cr-btn-icon[data-v-490ecb17]:hover{color:#333;background:#e0e0e0}.hep-cr-output-content[data-v-490ecb17]{flex:1;padding:12px 16px;overflow:auto;background:#1e1e1e}.hep-cr-runner-light .hep-cr-output-content[data-v-490ecb17]{background:#fff}.hep-cr-output-content pre[data-v-490ecb17]{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-all;color:#d4d4d4}.hep-cr-runner-light .hep-cr-output-content pre[data-v-490ecb17]{color:#333}.hep-cr-output-content .hep-cr-stderr[data-v-490ecb17]{color:#f44336}.hep-cr-spinner[data-v-490ecb17]{width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin-490ecb17 .8s linear infinite}@keyframes spin-490ecb17{to{transform:rotate(360deg)}}.hep-cr-dialog-overlay[data-v-ec700b03]{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}.hep-cr-dialog-container[data-v-ec700b03]{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.hep-cr-dialog-header[data-v-ec700b03]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e0e0e0}.hep-cr-dialog-title[data-v-ec700b03]{margin:0;font-size:16px;font-weight:600;color:#333}.hep-cr-dialog-close[data-v-ec700b03]{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#666;display:flex;align-items:center;justify-content:center;transition:all .2s}.hep-cr-dialog-close[data-v-ec700b03]:hover{background:#f0f0f0;color:#333}.hep-cr-dialog-body[data-v-ec700b03]{flex:1;overflow:auto;padding:0}.hep-cr-dialog-body[data-v-ec700b03] .hep-cr-runner{border:none;border-radius:0}.hep-cr-dialog-footer[data-v-ec700b03]{padding:12px 20px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end;gap:12px}.hep-cr-dialog-fade-enter-active[data-v-ec700b03],.hep-cr-dialog-fade-leave-active[data-v-ec700b03]{transition:opacity .2s ease}.hep-cr-dialog-fade-enter-from[data-v-ec700b03],.hep-cr-dialog-fade-leave-to[data-v-ec700b03]{opacity:0}.hep-cr-dialog-fade-enter-active .hep-cr-dialog-container[data-v-ec700b03],.hep-cr-dialog-fade-leave-active .hep-cr-dialog-container[data-v-ec700b03]{transition:transform .2s ease}.hep-cr-dialog-fade-enter-from .hep-cr-dialog-container[data-v-ec700b03],.hep-cr-dialog-fade-leave-to .hep-cr-dialog-container[data-v-ec700b03]{transform:scale(.95)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hep-code-runner/vue2",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Vue 2 code runner component",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",