@hep-code-runner/react 3.2.1 → 3.2.3
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.d.ts +1 -0
- package/dist/index.js +615 -1
- package/dist/index.mjs +815 -3904
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1 +1,615 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react");var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,a={exports:{}},o={};var i,s={};"production"===process.env.NODE_ENV?a.exports=function(){if(r)return o;r=1;var n=e,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,r){var a,o={},c=null,p=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(p=n.ref),n)i.call(n,a)&&!l.hasOwnProperty(a)&&(o[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===o[a]&&(o[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:p,props:o,_owner:s.current}}return o.Fragment=a,o.jsx=c,o.jsxs=c,o}():a.exports=(i||(i=1,"production"!==process.env.NODE_ENV&&function(){var n,t=e,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];!function(e,n,t){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}function v(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case a:return"Portal";case l:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return v(e)+".Consumer";case c:return v(e._context)+".Provider";case u:return function(e,n,t){var r=e.displayName;if(r)return r;var a=n.displayName||n.name||"";return""!==a?t+"("+a+")":t}(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return null!==n?n:x(e.type)||"Memo";case f:var t=e,r=t._payload,s=t._init;try{return x(s(r))}catch(m){return null}}return null}n=Symbol.for("react.module.reference");var k,w,S,A,T,_,N,R=Object.assign,F=0;function O(){}O.__reactDisabledLog=!0;var I,C=y.ReactCurrentDispatcher;function L(e,n,t){if(void 0===I)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var j,P=!1,D="function"==typeof WeakMap?WeakMap:Map;function $(e,n){if(!e||P)return"";var t,r=j.get(e);if(void 0!==r)return r;P=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=C.current,C.current=null,function(){if(0===F){k=console.log,w=console.info,S=console.warn,A=console.error,T=console.group,_=console.groupCollapsed,N=console.groupEnd;var e={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(n){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(g){t=g}Reflect.construct(e,[],i)}else{try{i.call()}catch(g){t=g}e.call(i.prototype)}}else{try{throw Error()}catch(g){t=g}e()}}catch(f){if(f&&t&&"string"==typeof f.stack){for(var s=f.stack.split("\n"),l=t.stack.split("\n"),c=s.length-1,p=l.length-1;c>=1&&p>=0&&s[c]!==l[p];)p--;for(;c>=1&&p>=0;c--,p--)if(s[c]!==l[p]){if(1!==c||1!==p)do{if(c--,--p<0||s[c]!==l[p]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&j.set(e,u),u}}while(c>=1&&p>=0);break}}}finally{P=!1,C.current=a,function(){if(0===--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:k}),info:R({},e,{value:w}),warn:R({},e,{value:S}),error:R({},e,{value:A}),group:R({},e,{value:T}),groupCollapsed:R({},e,{value:_}),groupEnd:R({},e,{value:N})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var d=e?e.displayName||e.name:"",h=d?L(d):"";return"function"==typeof e&&j.set(e,h),h}function M(e,n,t){if(null==e)return"";if("function"==typeof e)return $(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return L(e);switch(e){case d:return L("Suspense");case h:return L("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return $(e.render,!1);case g:return M(e.type,n,t);case f:var a=e,o=a._payload,i=a._init;try{return M(i(o),n,t)}catch(s){}}return""}j=new D;var U=Object.prototype.hasOwnProperty,z={},H=y.ReactDebugCurrentFrame;function B(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);H.setExtraStackFrame(t)}else H.setExtraStackFrame(null)}var G=Array.isArray;function W(e){return G(e)}function Y(e){return""+e}function X(e){if(function(e){try{return Y(e),!1}catch(n){return!0}}(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Y(e)}var Z,K,q=y.ReactCurrentOwner,V={key:!0,ref:!0,__self:!0,__source:!0};function J(e,n,t,a,o){var i,s={},l=null,c=null;for(i in void 0!==t&&(X(t),l=""+t),function(e){if(U.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(n)&&(X(n.key),l=""+n.key),function(e){if(U.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}(n)&&(c=n.ref,function(e){"string"==typeof e.ref&&q.current}(n)),n)U.call(n,i)&&!V.hasOwnProperty(i)&&(s[i]=n[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===s[i]&&(s[i]=p[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,n){var t=function(){Z||(Z=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,u),c&&function(e,n){var t=function(){K||(K=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(s,u)}return function(e,n,t,a,o,i,s){var l={$$typeof:r,type:e,key:n,ref:t,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,a,q.current,s)}var Q,ee=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function te(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);ne.setExtraStackFrame(t)}else ne.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ae(){if(ee.current){var e=x(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Q=!1;var oe={};function ie(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=ae();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!oe[t]){oe[t]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+x(e._owner.type)+"."),te(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),te(null)}}}function se(e,n){if("object"==typeof e)if(W(e))for(var t=0;t<e.length;t++){var r=e[t];re(r)&&ie(r,n)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var a=function(e){if(null===e||"object"!=typeof e)return null;var n=b&&e[b]||e["@@iterator"];return"function"==typeof n?n:null}(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)re(o.value)&&ie(o.value,n)}}function le(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==g)return;n=t.propTypes}if(n){var r=x(t);!function(e,n,t,r,a){var o=Function.call.bind(U);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](n,i,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){s=c}!s||s instanceof Error||(B(a),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",t,i,typeof s),B(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,B(a),E("Failed %s type: %s",t,s.message),B(null))}}(n,e.props,"prop",r,e)}else void 0===t.PropTypes||Q||(Q=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function pe(e,t,a,s,b,y){var v=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===d||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===c||e.$$typeof===p||e.$$typeof===u||e.$$typeof===n||void 0!==e.getModuleId)}(e);if(!v){var k,w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),w+=ae(),null===e?k="null":W(e)?k="array":void 0!==e&&e.$$typeof===r?(k="<"+(x(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,w)}var S=J(e,t,a,b,y);if(null==S)return S;if(v){var A=t.children;if(void 0!==A)if(s)if(W(A)){for(var T=0;T<A.length;T++)se(A[T],e);Object.freeze&&Object.freeze(A)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else se(A,e)}if(U.call(t,"key")){var _=x(e),N=Object.keys(t).filter(function(e){return"key"!==e}),R=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";ce[_+R]||(E('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',R,_,N.length>0?"{"+N.join(": ..., ")+": ...}":"{}",_),ce[_+R]=!0)}return e===o?function(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){te(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),te(null);break}}null!==e.ref&&(te(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(S):le(S),S}var ue=function(e,n,t){return pe(e,n,t,!1)},de=function(e,n,t){return pe(e,n,t,!0)};s.Fragment=o,s.jsx=ue,s.jsxs=de}()),s);var l,c,p=a.exports,u={exports:{}};l=u,c=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof o?new o(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var r,o;switch(t=t||{},a.util.type(n)){case"Object":if(o=a.util.objId(n),t[o])return t[o];for(var i in r={},t[o]=r,n)n.hasOwnProperty(i)&&(r[i]=e(n[i],t));return r;case"Array":return o=a.util.objId(n),t[o]?t[o]:(r=[],t[o]=r,n.forEach(function(n,a){r[a]=e(n,t)}),r);default:return n}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}},isActive:function(e,n,t){for(var r="no-"+n;e;){var a=e.classList;if(a.contains(n))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!t}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,n){var t=a.util.clone(a.languages[e]);for(var r in n)t[r]=n[r];return t},insertBefore:function(e,n,t,r){var o=(r=r||a.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==n)for(var l in t)t.hasOwnProperty(l)&&(i[l]=t[l]);t.hasOwnProperty(s)||(i[s]=o[s])}var c=r[e];return r[e]=i,a.languages.DFS(a.languages,function(n,t){t===c&&n!=e&&(this[n]=i)}),i},DFS:function e(n,t,r,o){o=o||{};var i=a.util.objId;for(var s in n)if(n.hasOwnProperty(s)){t.call(n,s,n[s],r||s);var l=n[s],c=a.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,t,s,o)):(o[i(l)]=!0,e(l,t,null,o))}}},plugins:{},highlightAll:function(e,n){a.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var r={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)a.highlightElement(o,!0===n,r.callback)},highlightElement:function(n,t,r){var o=a.util.getLanguage(n),i=a.languages[o];a.util.setLanguage(n,o);var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,o);var l={element:n,language:o,grammar:i,code:n.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(t&&e.Worker){var p=new Worker(a.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,n,t){var r={code:e,grammar:n,language:t};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var r in t)n[r]=t[r];delete n.rest}var a=new l;return c(a,a.head,e),s(e,a,n,a.head,0),function(e){for(var n=[],t=e.head.next;t!==e.tail;)n.push(t.value),t=t.next;return n}(a)},hooks:{all:{},add:function(e,n){var t=a.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=a.hooks.all[e];if(t&&t.length)for(var r,o=0;r=t[o++];)r(n)}},Token:o};function o(e,n,t,r){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length}function i(e,n,t,r){e.lastIndex=n;var a=e.exec(t);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,n,t,r,l,u){for(var d in t)if(t.hasOwnProperty(d)&&t[d]){var h=t[d];h=Array.isArray(h)?h:[h];for(var g=0;g<h.length;++g){if(u&&u.cause==d+","+g)return;var f=h[g],m=f.inside,b=!!f.lookbehind,y=!!f.greedy,E=f.alias;if(y&&!f.pattern.global){var v=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,v+"g")}for(var x=f.pattern||f,k=r.next,w=l;k!==n.tail&&!(u&&w>=u.reach);w+=k.value.length,k=k.next){var S=k.value;if(n.length>e.length)return;if(!(S instanceof o)){var A,T=1;if(y){if(!(A=i(x,w,e,b))||A.index>=e.length)break;var _=A.index,N=A.index+A[0].length,R=w;for(R+=k.value.length;_>=R;)R+=(k=k.next).value.length;if(w=R-=k.value.length,k.value instanceof o)continue;for(var F=k;F!==n.tail&&(R<N||"string"==typeof F.value);F=F.next)T++,R+=F.value.length;T--,S=e.slice(w,R),A.index-=w}else if(!(A=i(x,0,S,b)))continue;_=A.index;var O=A[0],I=S.slice(0,_),C=S.slice(_+O.length),L=w+S.length;u&&L>u.reach&&(u.reach=L);var j=k.prev;if(I&&(j=c(n,j,I),w+=I.length),p(n,j,T),k=c(n,j,new o(d,m?a.tokenize(O,m):O,E,O)),C&&c(n,k,C),T>1){var P={cause:d+","+g,reach:L};s(e,n,t,k.prev,w,P),u&&P.reach>u.reach&&(u.reach=P.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function c(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function p(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=a,o.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var r="";return n.forEach(function(n){r+=e(n,t)}),r}var o={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},i=n.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),a.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(n){var t=JSON.parse(n.data),r=t.language,o=t.code,i=t.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()},!1),a):a;var u=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(u&&(a.filename=u.src,u.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),l.exports&&(l.exports=c),void 0!==n&&(n.Prism=c),c.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]},c.languages.markup.tag.inside["attr-value"].inside.entity=c.languages.markup.entity,c.languages.markup.doctype.inside["internal-subset"].inside=c.languages.markup,c.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(c.languages.markup.tag,"addInlined",{value:function(e,n){var t={};t["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:c.languages[n]},t.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:t}};r["language-"+n]={pattern:/[\s\S]+/,inside:c.languages[n]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},c.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(c.languages.markup.tag,"addAttribute",{value:function(e,n){c.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:c.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),c.languages.html=c.languages.markup,c.languages.mathml=c.languages.markup,c.languages.svg=c.languages.markup,c.languages.xml=c.languages.extend("markup",{}),c.languages.ssml=c.languages.xml,c.languages.atom=c.languages.xml,c.languages.rss=c.languages.xml,function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(c),c.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:/[{}[\];(),.:]/},c.languages.javascript=c.languages.extend("clike",{"class-name":[c.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}|\?\?=?|\?\.?|[~:]/}),c.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,c.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:c.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:c.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:c.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:c.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:c.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),c.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:c.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"}}),c.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),c.languages.markup&&(c.languages.markup.tag.addInlined("script","javascript"),c.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")),c.languages.js=c.languages.javascript,function(){if(void 0!==c&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",t="loading",r="loaded",a="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+t+'"])';c.hooks.add("before-highlightall",function(e){e.selector+=", "+a}),c.hooks.add("before-sanity-check",function(o){var i=o.element;if(i.matches(a)){o.code="",i.setAttribute(n,t);var s=i.appendChild(document.createElement("CODE"));s.textContent="Loading…";var l=i.getAttribute("data-src"),p=o.language;if("none"===p){var u=(/\.(\w+)$/.exec(l)||[,"none"])[1];p=e[u]||u}c.util.setLanguage(s,p),c.util.setLanguage(i,p);var d=c.plugins.autoloader;d&&d.loadLanguages(p),function(e,n,t){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?n(r.responseText):r.status>=400?t("✖ Error "+r.status+" while fetching file: "+r.statusText):t("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){i.setAttribute(n,r);var t=function(e){var n=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(n){var t=Number(n[1]),r=n[2],a=n[3];return r?a?[t,Number(a)]:[t,void 0]:[t,t]}}(i.getAttribute("data-range"));if(t){var a=e.split(/\r\n?|\n/g),o=t[0],l=null==t[1]?a.length:t[1];o<0&&(o+=a.length),o=Math.max(0,Math.min(o-1,a.length)),l<0&&(l+=a.length),l=Math.max(0,Math.min(l,a.length)),e=a.slice(o,l).join("\n"),i.hasAttribute("data-start")||i.setAttribute("data-start",String(o+1))}s.textContent=e,c.highlightElement(s)},function(e){i.setAttribute(n,"failed"),s.textContent=e})}}),c.plugins.fileHighlight={highlight:function(e){for(var n,t=(e||document).querySelectorAll(a),r=0;n=t[r++];)c.highlightElement(n)}};var o=!1;c.fileHighlight=function(){o||(o=!0),c.plugins.fileHighlight.highlight.apply(this,arguments)}}}();const d=t(u.exports);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://,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(e){var n=/\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,r={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:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:n,function:[e.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/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":r,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.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 n.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(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.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(e){var n="\\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},r={bash:t,environment:{pattern:RegExp("\\$"+n),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("(\\{)"+n),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})/};e.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;|&]|[<>]\\()"+n),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:r},{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:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:r.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=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.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;window.Prism=d;const h={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"};const g=({value:n,language:t,theme:r="dark",disabled:a=!1,onChange:o,onCodeChange:i})=>{const s=e.useRef(null),l=e.useRef(null),c=e.useRef(null),u=e.useMemo(()=>h[t.toLowerCase()]||"javascript",[t]),g="dark"===r?"#1e1e1e":"#fafafa",f=e.useMemo(()=>{try{const e=d.languages[u];if(e)return d.highlight(n||"",e,u)}catch(e){}return function(e){const n=document.createElement("div");return n.textContent=e,n.innerHTML}(n||"")},[n,u]),m=e.useCallback(e=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{null==i||i(e)},500)},[i]);return e.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.useEffect(()=>{!function(e){if("undefined"==typeof document)return;const n="hep-cr-prism-styles",t=document.getElementById(n),r="dark"===e?'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #8292a2 !important;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #f92672 !important;\n}\n\n/* console 单独处理 - 必须是白色 */\n.hep-cr-editor .token.property.console,\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #ae81ff !important;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #a6e22e !important;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #e6db74 !important;\n}\n\n.hep-cr-editor .token.keyword,\n.hep-cr-editor .token.keyword-control {\n color: #66d9ef !important;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #fd971f !important;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n':'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #333 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #708090;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #333;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #005cc5;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #22863a;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #333;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #6f42c1;\n}\n\n.hep-cr-editor .token.keyword {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #e36209;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #333 !important;\n}\n';t&&t.remove();const a=document.createElement("style");a.id=n,a.textContent=r,document.head.appendChild(a)}(r)},[r]),p.jsxs("div",{className:`hep-cr-editor theme-${r}`,style:{background:g},children:[p.jsx("pre",{ref:l,className:`hep-cr-highlight language-${u}`,"aria-hidden":"true",children:p.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),p.jsx("textarea",{ref:s,className:"hep-cr-input",value:n,disabled:a,onChange:e=>{const n=e.target.value;null==o||o(n),m(n)},onScroll:()=>{s.current&&l.current&&(l.current.scrollTop=s.current.scrollTop,l.current.scrollLeft=s.current.scrollLeft)},onKeyDown:e=>{if("Tab"===e.key){e.preventDefault();const t=e.target,r=t.selectionStart,a=t.selectionEnd,i=n.substring(0,r)+" "+n.substring(a);null==o||o(i),m(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=r+2})}},spellCheck:!1,placeholder:"Write your code here..."})]})};if("undefined"!=typeof document){const e="hep-cr-editor-styles";if(!document.getElementById(e)){const n=document.createElement("style");n.id=e,n.textContent="\n.hep-cr-editor {\n position: relative;\n flex: 1;\n overflow: hidden;\n}\n\n.hep-cr-highlight,\n.hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n}\n\n.hep-cr-highlight {\n pointer-events: none;\n z-index: 1;\n}\n\n.hep-cr-highlight.hep-cr-highlight {\n background: transparent !important;\n}\n\n.hep-cr-highlight code {\n display: block;\n font-family: inherit;\n background: transparent !important;\n}\n\n.hep-cr-input {\n position: relative;\n z-index: 2;\n background: transparent;\n color: transparent;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n}\n\n.hep-cr-input:disabled {\n opacity: 0.7;\n}\n\n/* Light theme caret */\n.theme-light .hep-cr-input {\n caret-color: #333333;\n}\n",document.head.appendChild(n)}}var f=Object.defineProperty,m=(e,n,t)=>((e,n,t)=>n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t)(e,"symbol"!=typeof n?n+"":n,t);let b=null;class y{constructor(e={}){m(this,"baseUrl"),m(this,"timeout"),this.baseUrl=e.pistonUrl||"/api/piston",this.timeout=e.timeout||3e3}async getRuntimes(e=!1){if(b&&!e)return b;try{const e=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch runtimes: ${e.statusText}`);const n=await e.json();return b=n,n}catch(n){throw n}}async execute(e,n,t={}){const r=(await this.getRuntimes()).find(n=>{var t;return n.language.toLowerCase()===e.toLowerCase()||(null==(t=n.aliases)?void 0:t.some(n=>n.toLowerCase()===e.toLowerCase()))});if(!r)throw new Error(`Language '${e}' is not supported`);const a=this.getFileName(e),o={language:r.language,version:t.version||r.version,files:[{name:a,content:n}],stdin:t.stdin||"",args:t.args||[],run_timeout:t.runTimeout||this.timeout,compile_timeout:this.timeout},i=Date.now();try{const e=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!e.ok)throw new Error(`Execute failed: ${e.statusText}`);const n=await e.json(),t=Date.now()-i,r=n.run.stdout||"",a=n.run.stderr||"";return{success:0===n.run.code,output:r,stderr:a,code:n.run.code,executionTime:t,compile:n.compile?{stdout:n.compile.stdout||"",stderr:n.compile.stderr||"",code:n.compile.code}:void 0}}catch(s){return{success:!1,output:"",stderr:s instanceof Error?s.message:"Unknown error",code:-1,executionTime:Date.now()-i}}}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 E={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:'package main\n\nimport "fmt"\n\nfunc main() {\n\tfmt.Println("Hello, World!")\n}',rust:'fn main() {\n\tprintln!("Hello, World!");\n}',java:'public class Main {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}',c:'#include <stdio.h>\n\nint main() {\n printf("Hello, World!\\n");\n return 0;\n}',cpp:'#include <iostream>\n\nint main() {\n std::cout << "Hello, World!" << std::endl;\n return 0;\n}',csharp:'using System;\n\nclass Main {\n static void Main() {\n Console.WriteLine("Hello, World!");\n }\n}',ruby:'puts "Hello, World!"',php:'<?php\necho "Hello, World!";\n?>',bash:'echo "Hello, World!"',shell:'echo "Hello, World!"',perl:'print "Hello, World!\\n";',lua:'print("Hello, World!")',r:'print("Hello, World!")',swift:'print("Hello, World!")',kotlin:'fun main() {\n println("Hello, World!")\n}',scala:'object Main extends App {\n println("Hello, World!")\n}',haskell:'main = putStrLn "Hello, World!"',elixir:'IO.puts "Hello, World!"',erlang:'main() -> io:fwrite("Hello, World!~n").',clojure:'(println "Hello, World!")',fsharp:'printfn "Hello, World!"',dart:'void main() {\n print("Hello, World!");\n}',assembly:"section .data\n msg db 'Hello, World!', 0\nsection .text\n global _start\n_start:\n mov rax, 1\n mov rdi, 1\n mov rsi, msg\n mov rdx, 13\n syscall\n mov rax, 60\n xor rdi, rdi\n syscall",html:"<!DOCTYPE html>\n<html>\n<head>\n <title>Hello</title>\n</head>\n<body>\n <h1>Hello, World!</h1>\n</body>\n</html>",css:"body {\n background-color: #f0f0f0;\n font-family: Arial, sans-serif;\n}\n\nh1 {\n color: #333;\n}",sql:"SELECT 'Hello, World!' AS message;",markdown:"# Hello, World!\n\nThis is a sample markdown document."};function v(e){const n=e.toLowerCase();return E[n]||`// ${e}\n// Write your code here`}const x=({pistonUrl:n="/api/piston",language:t="javascript",theme:r="light",themeColor:a="",showLanguageSelector:o=!0,showEditor:i=!0,editable:s=!0,defaultCode:l="",executorLabel:c="运行",onExecuteStart:u,onExecuteEnd:d,onLanguageChange:h,onChange:f})=>{const m="hep-cr-default-language",[b,E]=e.useState([]),[x,k]=e.useState("undefined"==typeof window?t:localStorage.getItem(m)||t),[w,S]=e.useState(r),[A,T]=e.useState(l),[_,N]=e.useState(""),[R,F]=e.useState(""),[O,I]=e.useState(!1),[C,L]=e.useState(null),[j,P]=e.useState("stdout"),[D,$]=e.useState(null),[M,U]=e.useState(!0),[z,H]=e.useState(60),[B,G]=e.useState(!1),[W,Y]=e.useState(!1),X=e.useRef(!1),Z=e.useMemo(()=>new y({pistonUrl:n}),[n]),K=e.useMemo(()=>b.map(e=>({value:`${e.language}:${e.version}`,label:`${e.language.charAt(0).toUpperCase()+e.language.slice(1)} ${e.version}`})),[b]),q=e.useMemo(()=>{if(!a)return{};const e="dark"===r,n=(e,n)=>{const t=parseInt(e.replace("#",""),16),r=Math.round(2.55*n);return"#"+(16777216+65536*Math.min(255,Math.max(0,(t>>16)+r))+256*Math.min(255,Math.max(0,(t>>8&255)+r))+Math.min(255,Math.max(0,(255&t)+r))).toString(16).slice(1)},t=(e=>{const n=parseInt(e.replace("#",""),16);return(.299*(n>>16&255)+.587*(n>>8&255)+.114*(255&n))/255>.5})(a)?"#000":"#fff";return{"--hep-cr-theme-color":a,"--hep-cr-theme-color-hover":n(a,e?20:-20),"--hep-cr-tab-active-color":t}},[a,r]),V=e.useMemo(()=>x.includes(":")?x.split(":")[0]:x,[x]);e.useEffect(()=>{!async function(){U(!0),$(null);try{const e=await Z.getRuntimes();E(e)}catch(e){$(e instanceof Error?e.message:"Failed to load runtimes")}finally{U(!1)}}()},[Z]),e.useEffect(()=>{!A&&b.length>0&&T(l||v(V))},[b,A,l,V]),e.useEffect(()=>{null==f||f(A)},[]),e.useEffect(()=>{!M&&b.length>0&&h&&!X.current&&(X.current=!0,h(V,A))},[M,b.length]);const J=e.useCallback(e=>{const n=e.target.value,t=n.includes(":")?n.split(":")[0]:n;k(n);const r=v(t);T(r),null==h||h(t,r),"undefined"!=typeof window&&localStorage.setItem(m,n)},[h]),Q=e.useCallback(async()=>{if(!O){I(!0),N(""),F(""),L(null),$(null),P("stdout"),null==u||u();try{const e=await Z.execute(V,A);N(e.output),F(e.stderr),L(e.executionTime||null),P(e.stderr?"stderr":"stdout"),null==d||d(e)}catch(e){const n=e instanceof Error?e.message:"Execution failed";$(n),null==d||d({success:!1,output:"",stderr:n,code:-1})}finally{I(!1)}}},[O,x,A,Z,u,d]),ee=e.useCallback(async()=>{await navigator.clipboard.writeText(A),G(!0),setTimeout(()=>{G(!1)},2e3)},[A]),ne=e.useCallback(async()=>{const e="stdout"===j?_:R;await navigator.clipboard.writeText(e),Y(!0),setTimeout(()=>{Y(!1)},2e3)},[j,_,R]),te=e.useCallback(()=>{T(v(V))},[x]),re=e.useRef(!1),ae=e.useCallback(e=>{re.current=!0,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ie),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),oe=e.useCallback(e=>{if(!re.current)return;const n=document.querySelector(".hep-cr-main");if(!n)return;const t=n.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100;H(Math.max(20,Math.min(80,r)))},[]),ie=e.useCallback(()=>{re.current=!1,document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ie),document.body.style.cursor="",document.body.style.userSelect=""},[oe]);return p.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${w}`,style:q,children:[p.jsxs("div",{className:"hep-cr-header",children:[p.jsx("div",{className:"hep-cr-controls",children:o&&p.jsx(p.Fragment,{children:p.jsxs("select",{value:x,onChange:J,className:"hep-cr-language-select",disabled:O,children:[M&&p.jsx("option",{value:"",children:"加载中..."}),K.map(e=>p.jsx("option",{value:e.value,children:e.label},e.value))]})})}),p.jsxs("div",{className:"hep-cr-actions",children:[p.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:O||M,onClick:Q,children:[O?p.jsx("span",{className:"hep-cr-spinner"}):p.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),O?"运行中...":c]}),i&&s&&p.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:te,children:"重置"}),p.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>S("light"===w?"dark":"light"),title:"light"===w?"Switch to dark mode":"Switch to light mode",children:"light"===w?p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:p.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("circle",{cx:"12",cy:"12",r:"5"}),p.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),p.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),p.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),p.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),p.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),p.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),p.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),p.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),D&&p.jsx("div",{className:"hep-cr-error-message",children:D}),p.jsxs("div",{className:"hep-cr-main",children:[i&&p.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${z}%`},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),p.jsxs("div",{className:"hep-cr-output-actions",children:[p.jsx("span",{className:"hep-cr-language-badge",children:V}),p.jsx("button",{className:"hep-cr-btn-icon "+(B?"hep-cr-btn-copied":""),disabled:B,onClick:ee,title:B?"已复制":"复制",children:B?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx(g,{value:A,language:V,theme:w,disabled:!s||O,onChange:T,onCodeChange:f})]}),i&&p.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:ae,children:p.jsx("div",{className:"hep-cr-resize-line"})}),p.jsxs("div",{className:"hep-cr-output-panel",style:{width:i?100-z+"%":"100%"},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsxs("div",{className:"hep-cr-output-tabs",children:[p.jsx("button",{className:"hep-cr-tab "+("stdout"===j?"active":""),onClick:()=>P("stdout"),children:"输出"}),R&&p.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+("stderr"===j?"active":""),onClick:()=>P("stderr"),children:"错误"})]}),p.jsxs("div",{className:"hep-cr-output-actions",children:[null!==C&&p.jsxs("span",{className:"hep-cr-execution-time",children:[C,"ms"]}),p.jsx("button",{className:"hep-cr-btn-icon "+(W?"hep-cr-btn-copied":""),disabled:W,onClick:ne,title:W?"已复制":"复制",children:W?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx("div",{className:"hep-cr-output-content",children:p.jsx("pre",{children:"stdout"===j?O?"代码执行中...":_||'点击"运行"执行代码':R})})]})]}),p.jsx("style",{children:"\n .hep-cr-runner {\n display: flex;\n flex-direction: column;\n border: 1px solid #e0e0e0;\n border-radius: 12px;\n overflow: hidden;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n }\n .hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }\n .hep-cr-runner-light { background: #ffffff; }\n .hep-cr-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n background: #252526;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }\n .hep-cr-controls { display: flex; gap: 8px; }\n .hep-cr-language-select {\n padding: 6px 12px;\n border: 1px solid #444;\n border-radius: 6px;\n background: #2d2d2d;\n color: #d4d4d4;\n font-size: 13px;\n cursor: pointer;\n outline: none;\n }\n .hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }\n .hep-cr-language-select:focus { border-color: #4fc3f7; }\n .hep-cr-actions { display: flex; gap: 8px; }\n .hep-cr-btn {\n padding: 6px 16px;\n border: none;\n border-radius: 6px;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n transition: all 0.2s;\n }\n .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .hep-cr-btn-run {\n background: var(--hep-cr-theme-color, #4caf50);\n color: var(--hep-cr-tab-active-color, #fff);\n font-weight: 600;\n }\n .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }\n .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }\n .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }\n .hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }\n .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }\n .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }\n .hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }\n .hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }\n .hep-cr-error-message {\n padding: 10px 16px;\n background: #c62828;\n color: white;\n font-size: 13px;\n }\n .hep-cr-main { display: flex; height: 400px; overflow: hidden; }\n .hep-cr-editor-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n max-width: 80%;\n }\n .hep-cr-panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 12px;\n background: #2d2d2d;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }\n .hep-cr-panel-title {\n font-size: 12px;\n font-weight: 600;\n color: #888;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n }\n .hep-cr-language-badge {\n font-size: 11px;\n padding: 2px 8px;\n background: var(--hep-cr-theme-color, #4fc3f7);\n color: var(--hep-cr-tab-active-color, #000);\n border-radius: 10px;\n font-weight: 600;\n }\n .hep-cr-editor {\n flex: 1;\n width: 100%;\n background: #1e1e1e;\n position: relative;\n overflow: hidden;\n }\n .hep-cr-editor .hep-cr-highlight,\n .hep-cr-editor .hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n }\n .hep-cr-editor .hep-cr-highlight {\n background: transparent !important;\n pointer-events: none;\n z-index: 1;\n }\n .hep-cr-editor .hep-cr-highlight code {\n display: block;\n font-family: inherit;\n }\n .hep-cr-editor .hep-cr-input {\n background: transparent !important;\n color: transparent !important;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n z-index: 2;\n }\n .hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {\n color: #333333;\n }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-input {\n caret-color: #333333;\n }\n .hep-cr-resize-handle {\n width: 8px;\n background: #2d2d2d;\n cursor: col-resize;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #3d3d3d;\n border-right: 1px solid #3d3d3d;\n }\n .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }\n .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }\n .hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }\n .hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-output-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n border-left: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }\n .hep-cr-output-tabs { display: flex; gap: 4px; }\n .hep-cr-tab {\n padding: 4px 12px;\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: 12px;\n border-radius: 4px;\n color: #888;\n transition: all 0.2s;\n }\n .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }\n .hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }\n .hep-cr-tab-error.active { background: #f44336; color: #fff; }\n .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }\n .hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }\n .hep-cr-btn-icon {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #888;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }\n .hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }\n .hep-cr-btn-copied { color: #4caf50 !important; }\n .hep-cr-copied-text { font-size: 12px; color: #4caf50; }\n .hep-cr-output-content {\n flex: 1;\n padding: 12px 16px;\n overflow: auto;\n background: #1e1e1e;\n }\n .hep-cr-runner-light .hep-cr-output-content { background: #fff; }\n .hep-cr-output-content pre {\n margin: 0;\n font-size: 13px;\n line-height: 1.6;\n white-space: pre-wrap;\n word-break: break-all;\n color: #d4d4d4;\n }\n .hep-cr-runner-light .hep-cr-output-content pre { color: #333; }\n .hep-cr-output-content .stderr { color: #f44336; }\n .hep-cr-spinner {\n width: 12px;\n height: 12px;\n border: 2px solid rgba(255,255,255,0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n }\n @keyframes spin { to { transform: rotate(360deg); } }\n "})]})},k=e.forwardRef(({open:n,defaultOpen:t=!1,title:r="代码执行器",width:a=800,onClose:o,footer:i,theme:s="light",...l},c)=>{const[u,d]=e.useState(t),h=void 0!==n,g=h?n:u;e.useEffect(()=>{h&&n!==u&&d(n)},[n,h]);const f=e.useCallback(()=>{h||d(!1),null==o||o()},[h,o]);e.useImperativeHandle(c,()=>({close:f}));const m="number"==typeof a?`${a}px`:a;return g?p.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:e=>{e.target===e.currentTarget&&f()},children:[p.jsxs("div",{className:"hep-cr-dialog-container",style:{width:m},children:[p.jsxs("div",{className:"hep-cr-dialog-header",children:[p.jsx("h3",{className:"hep-cr-dialog-title",children:r}),p.jsx("button",{className:"hep-cr-dialog-close",onClick:f,children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"hep-cr-dialog-body",children:p.jsx(x,{theme:s,...l})}),i&&p.jsx("div",{className:"hep-cr-dialog-footer",children:i})]}),p.jsx("style",{children:"\n .hep-cr-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n animation: hep-cr-dialog-fade-in 0.2s ease;\n }\n\n .hep-cr-dialog-container {\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);\n max-width: 90vw;\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n animation: hep-cr-dialog-scale-in 0.2s ease;\n }\n\n .hep-cr-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .hep-cr-dialog-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n }\n\n .hep-cr-dialog-close {\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #666;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n\n .hep-cr-dialog-close:hover {\n background: #f0f0f0;\n color: #333;\n }\n\n .hep-cr-dialog-body {\n flex: 1;\n overflow: auto;\n padding: 0;\n }\n\n .hep-cr-dialog-body .hep-cr-runner {\n border: none;\n border-radius: 0;\n }\n\n .hep-cr-dialog-footer {\n padding: 12px 20px;\n border-top: 1px solid #e0e0e0;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n }\n\n @keyframes hep-cr-dialog-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes hep-cr-dialog-scale-in {\n from { transform: scale(0.95); }\n to { transform: scale(1); }\n }\n "})]}):null});k.displayName="CodeRunnerDialog",exports.CodeRunner=x,exports.CodeRunnerDialog=k,exports.default=x;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("react");var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var Me,je={exports:{}},_e={},Ue,Oe={};process.env.NODE_ENV==="production"?je.exports=function(){if(Me)return _e;Me=1;var h=b,t=Symbol.for("react.element"),c=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,m=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N={key:!0,ref:!0,__self:!0,__source:!0};function i(F,E,y){var k,w={},I=null,x=null;for(k in y!==void 0&&(I=""+y),E.key!==void 0&&(I=""+E.key),E.ref!==void 0&&(x=E.ref),E)u.call(E,k)&&!N.hasOwnProperty(k)&&(w[k]=E[k]);if(F&&F.defaultProps)for(k in E=F.defaultProps)w[k]===void 0&&(w[k]=E[k]);return{$$typeof:t,type:F,key:I,ref:x,props:w,_owner:m.current}}return _e.Fragment=c,_e.jsx=i,_e.jsxs=i,_e}():je.exports=(Ue||(Ue=1,process.env.NODE_ENV!=="production"&&function(){var h,t=b,c=Symbol.for("react.element"),u=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),E=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),L=Symbol.iterator,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function e(n){for(var g=arguments.length,f=new Array(g>1?g-1:0),D=1;D<g;D++)f[D-1]=arguments[D];(function(C,O,T){var _=r.ReactDebugCurrentFrame.getStackAddendum();_!==""&&(O+="%s",T=T.concat([_]));var $=T.map(function(M){return String(M)});$.unshift("Warning: "+O),Function.prototype.apply.call(console[C],console,$)})("error",n,f)}function a(n){return n.displayName||"Context"}function o(n){if(n==null)return null;if(typeof n.tag=="number"&&e("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case m:return"Fragment";case u:return"Portal";case i:return"Profiler";case N:return"StrictMode";case k:return"Suspense";case w:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case E:return a(n)+".Consumer";case F:return a(n._context)+".Provider";case y:return function(O,T,_){var $=O.displayName;if($)return $;var M=T.displayName||T.name||"";return M!==""?_+"("+M+")":_}(n,n.render,"ForwardRef");case I:var g=n.displayName||null;return g!==null?g:o(n.type)||"Memo";case x:var f=n,D=f._payload,C=f._init;try{return o(C(D))}catch{return null}}return null}h=Symbol.for("react.module.reference");var s,p,d,v,B,z,re,W=Object.assign,ae=0;function ye(){}ye.__reactDisabledLog=!0;var he,Q=r.ReactCurrentDispatcher;function H(n,g,f){if(he===void 0)try{throw Error()}catch(C){var D=C.stack.trim().match(/\n( *(at )?)/);he=D&&D[1]||""}return`
|
|
2
|
+
`+he+n}var Y,q=!1,Z=typeof WeakMap=="function"?WeakMap:Map;function oe(n,g){if(!n||q)return"";var f,D=Y.get(n);if(D!==void 0)return D;q=!0;var C,O=Error.prepareStackTrace;Error.prepareStackTrace=void 0,C=Q.current,Q.current=null,function(){if(ae===0){s=console.log,p=console.info,d=console.warn,v=console.error,B=console.group,z=console.groupCollapsed,re=console.groupEnd;var R={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}ae++}();try{if(g){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(R){f=R}Reflect.construct(n,[],T)}else{try{T.call()}catch(R){f=R}n.call(T.prototype)}}else{try{throw Error()}catch(R){f=R}n()}}catch(R){if(R&&f&&typeof R.stack=="string"){for(var _=R.stack.split(`
|
|
3
|
+
`),$=f.stack.split(`
|
|
4
|
+
`),M=_.length-1,j=$.length-1;M>=1&&j>=0&&_[M]!==$[j];)j--;for(;M>=1&&j>=0;M--,j--)if(_[M]!==$[j]){if(M!==1||j!==1)do if(M--,--j<0||_[M]!==$[j]){var A=`
|
|
5
|
+
`+_[M].replace(" at new "," at ");return n.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",n.displayName)),typeof n=="function"&&Y.set(n,A),A}while(M>=1&&j>=0);break}}}finally{q=!1,Q.current=C,function(){if(--ae===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},R,{value:s}),info:W({},R,{value:p}),warn:W({},R,{value:d}),error:W({},R,{value:v}),group:W({},R,{value:B}),groupCollapsed:W({},R,{value:z}),groupEnd:W({},R,{value:re})})}ae<0&&e("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=O}var G=n?n.displayName||n.name:"",X=G?H(G):"";return typeof n=="function"&&Y.set(n,X),X}function ee(n,g,f){if(n==null)return"";if(typeof n=="function")return oe(n,!(!(D=n.prototype)||!D.isReactComponent));var D;if(typeof n=="string")return H(n);switch(n){case k:return H("Suspense");case w:return H("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case y:return oe(n.render,!1);case I:return ee(n.type,g,f);case x:var C=n,O=C._payload,T=C._init;try{return ee(T(O),g,f)}catch{}}return""}Y=new Z;var pe=Object.prototype.hasOwnProperty,V={},ne=r.ReactDebugCurrentFrame;function J(n){if(n){var g=n._owner,f=ee(n.type,n._source,g?g.type:null);ne.setExtraStackFrame(f)}else ne.setExtraStackFrame(null)}var ge=Array.isArray;function ue(n){return ge(n)}function te(n){return""+n}function de(n){if(function(g){try{return te(g),!1}catch{return!0}}(n))return e("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(g){return typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object"}(n)),te(n)}var fe,ie,Ne=r.ReactCurrentOwner,Re={key:!0,ref:!0,__self:!0,__source:!0};function Ie(n,g,f,D,C){var O,T={},_=null,$=null;for(O in f!==void 0&&(de(f),_=""+f),function(A){if(pe.call(A,"key")){var G=Object.getOwnPropertyDescriptor(A,"key").get;if(G&&G.isReactWarning)return!1}return A.key!==void 0}(g)&&(de(g.key),_=""+g.key),function(A){if(pe.call(A,"ref")){var G=Object.getOwnPropertyDescriptor(A,"ref").get;if(G&&G.isReactWarning)return!1}return A.ref!==void 0}(g)&&($=g.ref,function(A){typeof A.ref=="string"&&Ne.current}(g)),g)pe.call(g,O)&&!Re.hasOwnProperty(O)&&(T[O]=g[O]);if(n&&n.defaultProps){var M=n.defaultProps;for(O in M)T[O]===void 0&&(T[O]=M[O])}if(_||$){var j=typeof n=="function"?n.displayName||n.name||"Unknown":n;_&&function(A,G){var X=function(){fe||(fe=!0,e("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(A,"key",{get:X,configurable:!0})}(T,j),$&&function(A,G){var X=function(){ie||(ie=!0,e("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(A,"ref",{get:X,configurable:!0})}(T,j)}return function(A,G,X,R,U,Fe,Te){var ce={$$typeof:c,type:A,key:G,ref:X,props:Te,_owner:Fe,_store:{}};return Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce}(n,_,$,C,D,Ne.current,T)}var ke,we=r.ReactCurrentOwner,ve=r.ReactDebugCurrentFrame;function me(n){if(n){var g=n._owner,f=ee(n.type,n._source,g?g.type:null);ve.setExtraStackFrame(f)}else ve.setExtraStackFrame(null)}function Ee(n){return typeof n=="object"&&n!==null&&n.$$typeof===c}function Se(){if(we.current){var n=o(we.current.type);if(n)return`
|
|
6
|
+
|
|
7
|
+
Check the render method of \``+n+"`."}return""}ke=!1;var S={};function K(n,g){if(n._store&&!n._store.validated&&n.key==null){n._store.validated=!0;var f=function(C){var O=Se();if(!O){var T=typeof C=="string"?C:C.displayName||C.name;T&&(O=`
|
|
8
|
+
|
|
9
|
+
Check the top-level render call using <`+T+">.")}return O}(g);if(!S[f]){S[f]=!0;var D="";n&&n._owner&&n._owner!==we.current&&(D=" It was passed a child from "+o(n._owner.type)+"."),me(n),e('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,D),me(null)}}}function se(n,g){if(typeof n=="object"){if(ue(n))for(var f=0;f<n.length;f++){var D=n[f];Ee(D)&&K(D,g)}else if(Ee(n))n._store&&(n._store.validated=!0);else if(n){var C=function(_){if(_===null||typeof _!="object")return null;var $=L&&_[L]||_["@@iterator"];return typeof $=="function"?$:null}(n);if(typeof C=="function"&&C!==n.entries)for(var O,T=C.call(n);!(O=T.next()).done;)Ee(O.value)&&K(O.value,g)}}}function le(n){var g,f=n.type;if(f!=null&&typeof f!="string"){if(typeof f=="function")g=f.propTypes;else{if(typeof f!="object"||f.$$typeof!==y&&f.$$typeof!==I)return;g=f.propTypes}if(g){var D=o(f);(function(C,O,T,_,$){var M=Function.call.bind(pe);for(var j in C)if(M(C,j)){var A=void 0;try{if(typeof C[j]!="function"){var G=Error((_||"React class")+": "+T+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}A=C[j](O,j,_,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){A=X}!A||A instanceof Error||(J($),e("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",T,j,typeof A),J(null)),A instanceof Error&&!(A.message in V)&&(V[A.message]=!0,J($),e("Failed %s type: %s",T,A.message),J(null))}})(g,n.props,"prop",D,n)}else f.PropTypes===void 0||ke||(ke=!0,e("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o(f)||"Unknown"));typeof f.getDefaultProps!="function"||f.getDefaultProps.isReactClassApproved||e("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var be={};function xe(n,g,f,D,C,O){var T=function(U){return typeof U=="string"||typeof U=="function"||U===m||U===i||U===N||U===k||U===w||U===P||typeof U=="object"&&U!==null&&(U.$$typeof===x||U.$$typeof===I||U.$$typeof===F||U.$$typeof===E||U.$$typeof===y||U.$$typeof===h||U.getModuleId!==void 0)}(n);if(!T){var _,$="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),$+=Se(),n===null?_="null":ue(n)?_="array":n!==void 0&&n.$$typeof===c?(_="<"+(o(n.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):_=typeof n,e("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,$)}var M=Ie(n,g,f,C,O);if(M==null)return M;if(T){var j=g.children;if(j!==void 0)if(D)if(ue(j)){for(var A=0;A<j.length;A++)se(j[A],n);Object.freeze&&Object.freeze(j)}else e("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else se(j,n)}if(pe.call(g,"key")){var G=o(n),X=Object.keys(g).filter(function(U){return U!=="key"}),R=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";be[G+R]||(e(`A props object containing a "key" prop is being spread into JSX:
|
|
10
|
+
let props = %s;
|
|
11
|
+
<%s {...props} />
|
|
12
|
+
React keys must be passed directly to JSX without using spread:
|
|
13
|
+
let props = %s;
|
|
14
|
+
<%s key={someKey} {...props} />`,R,G,X.length>0?"{"+X.join(": ..., ")+": ...}":"{}",G),be[G+R]=!0)}return n===m?function(U){for(var Fe=Object.keys(U.props),Te=0;Te<Fe.length;Te++){var ce=Fe[Te];if(ce!=="children"&&ce!=="key"){me(U),e("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),me(null);break}}U.ref!==null&&(me(U),e("Invalid attribute `ref` supplied to `React.Fragment`."),me(null))}(M):le(M),M}var Ae=function(n,g,f){return xe(n,g,f,!1)},Ge=function(n,g,f){return xe(n,g,f,!0)};Oe.Fragment=m,Oe.jsx=Ae,Oe.jsxs=Ge}()),Oe);var l=je.exports,Be={exports:{}};(function(h){var t=function(c){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,m=0,N={},i={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function r(e){return e instanceof F?new F(e.type,r(e.content),e.alias):Array.isArray(e)?e.map(r):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(r){return Object.prototype.toString.call(r).slice(8,-1)},objId:function(r){return r.__id||Object.defineProperty(r,"__id",{value:++m}),r.__id},clone:function r(e,a){var o,s;switch(a=a||{},i.util.type(e)){case"Object":if(s=i.util.objId(e),a[s])return a[s];for(var p in o={},a[s]=o,e)e.hasOwnProperty(p)&&(o[p]=r(e[p],a));return o;case"Array":return s=i.util.objId(e),a[s]?a[s]:(o=[],a[s]=o,e.forEach(function(d,v){o[v]=r(d,a)}),o);default:return e}},getLanguage:function(r){for(;r;){var e=u.exec(r.className);if(e)return e[1].toLowerCase();r=r.parentElement}return"none"},setLanguage:function(r,e){r.className=r.className.replace(RegExp(u,"gi"),""),r.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(o){var r=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack)||[])[1];if(r){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==r)return e[a]}return null}},isActive:function(r,e,a){for(var o="no-"+e;r;){var s=r.classList;if(s.contains(e))return!0;if(s.contains(o))return!1;r=r.parentElement}return!!a}},languages:{plain:N,plaintext:N,text:N,txt:N,extend:function(r,e){var a=i.util.clone(i.languages[r]);for(var o in e)a[o]=e[o];return a},insertBefore:function(r,e,a,o){var s=(o=o||i.languages)[r],p={};for(var d in s)if(s.hasOwnProperty(d)){if(d==e)for(var v in a)a.hasOwnProperty(v)&&(p[v]=a[v]);a.hasOwnProperty(d)||(p[d]=s[d])}var B=o[r];return o[r]=p,i.languages.DFS(i.languages,function(z,re){re===B&&z!=r&&(this[z]=p)}),p},DFS:function r(e,a,o,s){s=s||{};var p=i.util.objId;for(var d in e)if(e.hasOwnProperty(d)){a.call(e,d,e[d],o||d);var v=e[d],B=i.util.type(v);B!=="Object"||s[p(v)]?B!=="Array"||s[p(v)]||(s[p(v)]=!0,r(v,a,d,s)):(s[p(v)]=!0,r(v,a,null,s))}}},plugins:{},highlightAll:function(r,e){i.highlightAllUnder(document,r,e)},highlightAllUnder:function(r,e,a){var o={callback:a,container:r,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),i.hooks.run("before-all-elements-highlight",o);for(var s,p=0;s=o.elements[p++];)i.highlightElement(s,e===!0,o.callback)},highlightElement:function(r,e,a){var o=i.util.getLanguage(r),s=i.languages[o];i.util.setLanguage(r,o);var p=r.parentElement;p&&p.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(p,o);var d={element:r,language:o,grammar:s,code:r.textContent};function v(z){d.highlightedCode=z,i.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,i.hooks.run("after-highlight",d),i.hooks.run("complete",d),a&&a.call(d.element)}if(i.hooks.run("before-sanity-check",d),(p=d.element.parentElement)&&p.nodeName.toLowerCase()==="pre"&&!p.hasAttribute("tabindex")&&p.setAttribute("tabindex","0"),!d.code)return i.hooks.run("complete",d),void(a&&a.call(d.element));if(i.hooks.run("before-highlight",d),d.grammar)if(e&&c.Worker){var B=new Worker(i.filename);B.onmessage=function(z){v(z.data)},B.postMessage(JSON.stringify({language:d.language,code:d.code,immediateClose:!0}))}else v(i.highlight(d.code,d.grammar,d.language));else v(i.util.encode(d.code))},highlight:function(r,e,a){var o={code:r,grammar:e,language:a};if(i.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=i.tokenize(o.code,o.grammar),i.hooks.run("after-tokenize",o),F.stringify(i.util.encode(o.tokens),o.language)},tokenize:function(r,e){var a=e.rest;if(a){for(var o in a)e[o]=a[o];delete e.rest}var s=new k;return w(s,s.head,r),y(r,s,e,s.head,0),function(p){for(var d=[],v=p.head.next;v!==p.tail;)d.push(v.value),v=v.next;return d}(s)},hooks:{all:{},add:function(r,e){var a=i.hooks.all;a[r]=a[r]||[],a[r].push(e)},run:function(r,e){var a=i.hooks.all[r];if(a&&a.length)for(var o,s=0;o=a[s++];)o(e)}},Token:F};function F(r,e,a,o){this.type=r,this.content=e,this.alias=a,this.length=0|(o||"").length}function E(r,e,a,o){r.lastIndex=e;var s=r.exec(a);if(s&&o&&s[1]){var p=s[1].length;s.index+=p,s[0]=s[0].slice(p)}return s}function y(r,e,a,o,s,p){for(var d in a)if(a.hasOwnProperty(d)&&a[d]){var v=a[d];v=Array.isArray(v)?v:[v];for(var B=0;B<v.length;++B){if(p&&p.cause==d+","+B)return;var z=v[B],re=z.inside,W=!!z.lookbehind,ae=!!z.greedy,ye=z.alias;if(ae&&!z.pattern.global){var he=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,he+"g")}for(var Q=z.pattern||z,H=o.next,Y=s;H!==e.tail&&!(p&&Y>=p.reach);Y+=H.value.length,H=H.next){var q=H.value;if(e.length>r.length)return;if(!(q instanceof F)){var Z,oe=1;if(ae){if(!(Z=E(Q,Y,r,W))||Z.index>=r.length)break;var ee=Z.index,pe=Z.index+Z[0].length,V=Y;for(V+=H.value.length;ee>=V;)V+=(H=H.next).value.length;if(Y=V-=H.value.length,H.value instanceof F)continue;for(var ne=H;ne!==e.tail&&(V<pe||typeof ne.value=="string");ne=ne.next)oe++,V+=ne.value.length;oe--,q=r.slice(Y,V),Z.index-=Y}else if(!(Z=E(Q,0,q,W)))continue;ee=Z.index;var J=Z[0],ge=q.slice(0,ee),ue=q.slice(ee+J.length),te=Y+q.length;p&&te>p.reach&&(p.reach=te);var de=H.prev;if(ge&&(de=w(e,de,ge),Y+=ge.length),I(e,de,oe),H=w(e,de,new F(d,re?i.tokenize(J,re):J,ye,J)),ue&&w(e,H,ue),oe>1){var fe={cause:d+","+B,reach:te};y(r,e,a,H.prev,Y,fe),p&&fe.reach>p.reach&&(p.reach=fe.reach)}}}}}}function k(){var r={value:null,prev:null,next:null},e={value:null,prev:r,next:null};r.next=e,this.head=r,this.tail=e,this.length=0}function w(r,e,a){var o=e.next,s={value:a,prev:e,next:o};return e.next=s,o.prev=s,r.length++,s}function I(r,e,a){for(var o=e.next,s=0;s<a&&o!==r.tail;s++)o=o.next;e.next=o,o.prev=e,r.length-=s}if(c.Prism=i,F.stringify=function r(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var o="";return e.forEach(function(B){o+=r(B,a)}),o}var s={type:e.type,content:r(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},p=e.alias;p&&(Array.isArray(p)?Array.prototype.push.apply(s.classes,p):s.classes.push(p)),i.hooks.run("wrap",s);var d="";for(var v in s.attributes)d+=" "+v+'="'+(s.attributes[v]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+d+">"+s.content+"</"+s.tag+">"},!c.document)return c.addEventListener&&(i.disableWorkerMessageHandler||c.addEventListener("message",function(r){var e=JSON.parse(r.data),a=e.language,o=e.code,s=e.immediateClose;c.postMessage(i.highlight(o,i.languages[a],a)),s&&c.close()},!1)),i;var x=i.util.currentScript();function P(){i.manual||i.highlightAll()}if(x&&(i.filename=x.src,x.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var L=document.readyState;L==="loading"||L==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",P):window.requestAnimationFrame?window.requestAnimationFrame(P):window.setTimeout(P,16)}return i}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});h.exports&&(h.exports=t),$e!==void 0&&($e.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(c){c.type==="entity"&&(c.attributes.title=c.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(c,u){var m={};m["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[u]},m.cdata=/^<!\[CDATA\[|\]\]>$/i;var N={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:m}};N["language-"+u]={pattern:/[\s\S]+/,inside:t.languages[u]};var i={};i[c]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return c}),"i"),lookbehind:!0,greedy:!0,inside:N},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(c,u){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+c+")"+/\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:[u,"language-"+u],inside:t.languages[u]},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(c){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;c.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.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\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,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:/[(){};:,]/},c.languages.css.atrule.inside.rest=c.languages.css;var m=c.languages.markup;m&&(m.tag.addInlined("style","css"),m.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(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var c={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",m="loading",N="loaded",i="pre[data-src]:not(["+u+'="'+N+'"]):not(['+u+'="'+m+'"])';t.hooks.add("before-highlightall",function(E){E.selector+=", "+i}),t.hooks.add("before-sanity-check",function(E){var y=E.element;if(y.matches(i)){E.code="",y.setAttribute(u,m);var k=y.appendChild(document.createElement("CODE"));k.textContent="Loading…";var w=y.getAttribute("data-src"),I=E.language;if(I==="none"){var x=(/\.(\w+)$/.exec(w)||[,"none"])[1];I=c[x]||x}t.util.setLanguage(k,I),t.util.setLanguage(y,I);var P=t.plugins.autoloader;P&&P.loadLanguages(I),function(L,r,e){var a=new XMLHttpRequest;a.open("GET",L,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?r(a.responseText):a.status>=400?e("✖ Error "+a.status+" while fetching file: "+a.statusText):e("✖ Error: File does not exist or is empty"))},a.send(null)}(w,function(L){y.setAttribute(u,N);var r=function(s){var p=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(s||"");if(p){var d=Number(p[1]),v=p[2],B=p[3];return v?B?[d,Number(B)]:[d,void 0]:[d,d]}}(y.getAttribute("data-range"));if(r){var e=L.split(/\r\n?|\n/g),a=r[0],o=r[1]==null?e.length:r[1];a<0&&(a+=e.length),a=Math.max(0,Math.min(a-1,e.length)),o<0&&(o+=e.length),o=Math.max(0,Math.min(o,e.length)),L=e.slice(a,o).join(`
|
|
15
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(a+1))}k.textContent=L,t.highlightElement(k)},function(L){y.setAttribute(u,"failed"),k.textContent=L})}}),t.plugins.fileHighlight={highlight:function(E){for(var y,k=(E||document).querySelectorAll(i),w=0;y=k[w++];)t.highlightElement(y)}};var F=!1;t.fileHighlight=function(){F||(F=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()})(Be);const Pe=We(Be.exports);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://,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(h){var t=/\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/,c=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,u={pattern:RegExp(/(^|[^\w.])/.source+c+/[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:/\./}};h.languages.java=h.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[u,{pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:u.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+c+/[A-Z]\w*\b/.source),lookbehind:!0,inside:u.inside}],keyword:t,function:[h.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/}),h.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),h.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":u,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+c+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:u.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+c+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:u.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 t.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(h){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,c=0;c<2;c++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),h.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},h.languages.rust["closure-params"].inside.rest=h.languages.rust,h.languages.rust.attribute.inside.string=h.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(h){var t="\\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",c={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:c,environment:{pattern:RegExp("\\$"+t),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("(\\{)"+t),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})/};h.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;|&]|[<>]\\()"+t),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:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:c}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:u.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}},c.inside=h.languages.bash;for(var m=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],N=u.variable[1].inside,i=0;i<m.length;i++)N[m[i]]=h.languages.bash[m[i]];h.languages.sh=h.languages.bash,h.languages.shell=h.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;window.Prism=Pe;const Ye={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"},Xe=({value:h,language:t,theme:c="dark",disabled:u=!1,onChange:m,onCodeChange:N})=>{const i=b.useRef(null),F=b.useRef(null),E=b.useRef(null),y=b.useMemo(()=>Ye[t.toLowerCase()]||"javascript",[t]),k=c==="dark"?"#1e1e1e":"#fafafa",w=b.useMemo(()=>{try{const x=Pe.languages[y];if(x)return Pe.highlight(h||"",x,y)}catch{}return function(x){const P=document.createElement("div");return P.textContent=x,P.innerHTML}(h||"")},[h,y]),I=b.useCallback(x=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{N==null||N(x)},500)},[N]);return b.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),b.useEffect(()=>{(function(x){if(typeof document>"u")return;const P="hep-cr-prism-styles",L=document.getElementById(P),r=x==="dark"?`
|
|
16
|
+
/* 默认代码颜色 */
|
|
17
|
+
.hep-cr-editor .hep-cr-highlight code,
|
|
18
|
+
.hep-cr-editor .hep-cr-highlight pre {
|
|
19
|
+
color: #f8f8f2 !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.hep-cr-editor .token.comment,
|
|
23
|
+
.hep-cr-editor .token.prolog,
|
|
24
|
+
.hep-cr-editor .token.doctype,
|
|
25
|
+
.hep-cr-editor .token.cdata {
|
|
26
|
+
color: #8292a2 !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.hep-cr-editor .token.punctuation {
|
|
30
|
+
color: #f8f8f2 !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.hep-cr-editor .token.property,
|
|
34
|
+
.hep-cr-editor .token.tag,
|
|
35
|
+
.hep-cr-editor .token.constant,
|
|
36
|
+
.hep-cr-editor .token.symbol,
|
|
37
|
+
.hep-cr-editor .token.deleted {
|
|
38
|
+
color: #f92672 !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* console 单独处理 - 必须是白色 */
|
|
42
|
+
.hep-cr-editor .token.property.console,
|
|
43
|
+
.hep-cr-editor .token.console {
|
|
44
|
+
color: #f8f8f2 !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.hep-cr-editor .token.boolean,
|
|
48
|
+
.hep-cr-editor .token.number {
|
|
49
|
+
color: #ae81ff !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.hep-cr-editor .token.selector,
|
|
53
|
+
.hep-cr-editor .token.attr-name,
|
|
54
|
+
.hep-cr-editor .token.string,
|
|
55
|
+
.hep-cr-editor .token.char,
|
|
56
|
+
.hep-cr-editor .token.builtin,
|
|
57
|
+
.hep-cr-editor .token.inserted {
|
|
58
|
+
color: #a6e22e !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hep-cr-editor .token.operator,
|
|
62
|
+
.hep-cr-editor .token.entity,
|
|
63
|
+
.hep-cr-editor .token.url,
|
|
64
|
+
.hep-cr-editor .language-css .hep-cr-editor .token.string,
|
|
65
|
+
.hep-cr-editor .style .hep-cr-editor .token.string,
|
|
66
|
+
.hep-cr-editor .token.variable {
|
|
67
|
+
color: #f8f8f2 !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.hep-cr-editor .token.atrule,
|
|
71
|
+
.hep-cr-editor .token.attr-value,
|
|
72
|
+
.hep-cr-editor .token.function,
|
|
73
|
+
.hep-cr-editor .token.class-name {
|
|
74
|
+
color: #e6db74 !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.hep-cr-editor .token.keyword,
|
|
78
|
+
.hep-cr-editor .token.keyword-control {
|
|
79
|
+
color: #66d9ef !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hep-cr-editor .token.regex,
|
|
83
|
+
.hep-cr-editor .token.important {
|
|
84
|
+
color: #fd971f !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* 覆盖用户项目的 text-shadow 样式,避免白边 */
|
|
88
|
+
.hep-cr-editor code[class*="language-"],
|
|
89
|
+
.hep-cr-editor pre[class*="language-"],
|
|
90
|
+
.hep-cr-editor .hep-cr-highlight code,
|
|
91
|
+
.hep-cr-editor .hep-cr-highlight pre {
|
|
92
|
+
text-shadow: none !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* 覆盖 console 等内置对象 */
|
|
96
|
+
.hep-cr-editor .token.console {
|
|
97
|
+
color: #f8f8f2 !important;
|
|
98
|
+
}
|
|
99
|
+
`:`
|
|
100
|
+
/* 默认代码颜色 */
|
|
101
|
+
.hep-cr-editor .hep-cr-highlight code,
|
|
102
|
+
.hep-cr-editor .hep-cr-highlight pre {
|
|
103
|
+
color: #333 !important;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.hep-cr-editor .token.comment,
|
|
107
|
+
.hep-cr-editor .token.prolog,
|
|
108
|
+
.hep-cr-editor .token.doctype,
|
|
109
|
+
.hep-cr-editor .token.cdata {
|
|
110
|
+
color: #708090;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hep-cr-editor .token.punctuation {
|
|
114
|
+
color: #333;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.hep-cr-editor .token.property,
|
|
118
|
+
.hep-cr-editor .token.tag,
|
|
119
|
+
.hep-cr-editor .token.constant,
|
|
120
|
+
.hep-cr-editor .token.symbol,
|
|
121
|
+
.hep-cr-editor .token.deleted {
|
|
122
|
+
color: #d73a49;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.hep-cr-editor .token.boolean,
|
|
126
|
+
.hep-cr-editor .token.number {
|
|
127
|
+
color: #005cc5;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.hep-cr-editor .token.selector,
|
|
131
|
+
.hep-cr-editor .token.attr-name,
|
|
132
|
+
.hep-cr-editor .token.string,
|
|
133
|
+
.hep-cr-editor .token.char,
|
|
134
|
+
.hep-cr-editor .token.builtin,
|
|
135
|
+
.hep-cr-editor .token.inserted {
|
|
136
|
+
color: #22863a;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hep-cr-editor .token.operator,
|
|
140
|
+
.hep-cr-editor .token.entity,
|
|
141
|
+
.hep-cr-editor .token.url,
|
|
142
|
+
.hep-cr-editor .language-css .hep-cr-editor .token.string,
|
|
143
|
+
.hep-cr-editor .style .hep-cr-editor .token.string,
|
|
144
|
+
.hep-cr-editor .token.variable {
|
|
145
|
+
color: #333;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.hep-cr-editor .token.atrule,
|
|
149
|
+
.hep-cr-editor .token.attr-value,
|
|
150
|
+
.hep-cr-editor .token.function,
|
|
151
|
+
.hep-cr-editor .token.class-name {
|
|
152
|
+
color: #6f42c1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.hep-cr-editor .token.keyword {
|
|
156
|
+
color: #d73a49;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.hep-cr-editor .token.regex,
|
|
160
|
+
.hep-cr-editor .token.important {
|
|
161
|
+
color: #e36209;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* 覆盖用户项目的 text-shadow 样式,避免白边 */
|
|
165
|
+
.hep-cr-editor code[class*="language-"],
|
|
166
|
+
.hep-cr-editor pre[class*="language-"],
|
|
167
|
+
.hep-cr-editor .hep-cr-highlight code,
|
|
168
|
+
.hep-cr-editor .hep-cr-highlight pre {
|
|
169
|
+
text-shadow: none !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* 覆盖 console 等内置对象 */
|
|
173
|
+
.hep-cr-editor .token.console {
|
|
174
|
+
color: #333 !important;
|
|
175
|
+
}
|
|
176
|
+
`;L&&L.remove();const e=document.createElement("style");e.id=P,e.textContent=r,document.head.appendChild(e)})(c)},[c]),l.jsxs("div",{className:`hep-cr-editor theme-${c}`,style:{background:k},children:[l.jsx("pre",{ref:F,className:`hep-cr-highlight language-${y}`,"aria-hidden":"true",children:l.jsx("code",{dangerouslySetInnerHTML:{__html:w}})}),l.jsx("textarea",{ref:i,className:"hep-cr-input",value:h,disabled:u,onChange:x=>{const P=x.target.value;m==null||m(P),I(P)},onScroll:()=>{i.current&&F.current&&(F.current.scrollTop=i.current.scrollTop,F.current.scrollLeft=i.current.scrollLeft)},onKeyDown:x=>{if(x.key==="Tab"){x.preventDefault();const P=x.target,L=P.selectionStart,r=P.selectionEnd,e=h.substring(0,L)+" "+h.substring(r);m==null||m(e),I(e),requestAnimationFrame(()=>{P.selectionStart=P.selectionEnd=L+2})}},spellCheck:!1,placeholder:"Write your code here..."})]})};if(typeof document<"u"){const h="hep-cr-editor-styles";if(!document.getElementById(h)){const t=document.createElement("style");t.id=h,t.textContent=`
|
|
177
|
+
.hep-cr-editor {
|
|
178
|
+
position: relative;
|
|
179
|
+
flex: 1;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.hep-cr-highlight,
|
|
184
|
+
.hep-cr-input {
|
|
185
|
+
position: absolute;
|
|
186
|
+
top: 0;
|
|
187
|
+
left: 0;
|
|
188
|
+
width: 100%;
|
|
189
|
+
height: 100%;
|
|
190
|
+
padding: 12px 16px;
|
|
191
|
+
margin: 0;
|
|
192
|
+
border: none;
|
|
193
|
+
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
line-height: 1.6;
|
|
196
|
+
white-space: pre;
|
|
197
|
+
overflow: auto;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.hep-cr-highlight {
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
z-index: 1;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.hep-cr-highlight.hep-cr-highlight {
|
|
206
|
+
background: transparent !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.hep-cr-highlight code {
|
|
210
|
+
display: block;
|
|
211
|
+
font-family: inherit;
|
|
212
|
+
background: transparent !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.hep-cr-input {
|
|
216
|
+
position: relative;
|
|
217
|
+
z-index: 2;
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: transparent;
|
|
220
|
+
caret-color: #d4d4d4;
|
|
221
|
+
resize: none;
|
|
222
|
+
outline: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.hep-cr-input:disabled {
|
|
226
|
+
opacity: 0.7;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Light theme caret */
|
|
230
|
+
.theme-light .hep-cr-input {
|
|
231
|
+
caret-color: #333333;
|
|
232
|
+
}
|
|
233
|
+
`,document.head.appendChild(t)}}var Ze=Object.defineProperty,ze=(h,t,c)=>((u,m,N)=>m in u?Ze(u,m,{enumerable:!0,configurable:!0,writable:!0,value:N}):u[m]=N)(h,typeof t!="symbol"?t+"":t,c);let Ce=null;class Ke{constructor(t={}){ze(this,"baseUrl"),ze(this,"timeout"),this.baseUrl=t.pistonUrl||"/api/piston",this.timeout=t.timeout||3e3}async getRuntimes(t=!1){if(Ce&&!t)return Ce;try{const c=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!c.ok)throw new Error(`Failed to fetch runtimes: ${c.statusText}`);const u=await c.json();return Ce=u,u}catch(c){throw c}}async execute(t,c,u={}){const m=(await this.getRuntimes()).find(E=>{var y;return E.language.toLowerCase()===t.toLowerCase()||((y=E.aliases)==null?void 0:y.some(k=>k.toLowerCase()===t.toLowerCase()))});if(!m)throw new Error(`Language '${t}' is not supported`);const N=this.getFileName(t),i={language:m.language,version:u.version||m.version,files:[{name:N,content:c}],stdin:u.stdin||"",args:u.args||[],run_timeout:u.runTimeout||this.timeout,compile_timeout:this.timeout},F=Date.now();try{const E=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!E.ok)throw new Error(`Execute failed: ${E.statusText}`);const y=await E.json(),k=Date.now()-F,w=y.run.stdout||"",I=y.run.stderr||"";return{success:y.run.code===0,output:w,stderr:I,code:y.run.code,executionTime:k,compile:y.compile?{stdout:y.compile.stdout||"",stderr:y.compile.stderr||"",code:y.compile.code}:void 0}}catch(E){return{success:!1,output:"",stderr:E instanceof Error?E.message:"Unknown error",code:-1,executionTime:Date.now()-F}}}getFileName(t){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"}[t.toLowerCase()]||`main.${t}`}}const qe={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:`package main
|
|
234
|
+
|
|
235
|
+
import "fmt"
|
|
236
|
+
|
|
237
|
+
func main() {
|
|
238
|
+
fmt.Println("Hello, World!")
|
|
239
|
+
}`,rust:`fn main() {
|
|
240
|
+
println!("Hello, World!");
|
|
241
|
+
}`,java:`public class Main {
|
|
242
|
+
public static void main(String[] args) {
|
|
243
|
+
System.out.println("Hello, World!");
|
|
244
|
+
}
|
|
245
|
+
}`,c:`#include <stdio.h>
|
|
246
|
+
|
|
247
|
+
int main() {
|
|
248
|
+
printf("Hello, World!\\n");
|
|
249
|
+
return 0;
|
|
250
|
+
}`,cpp:`#include <iostream>
|
|
251
|
+
|
|
252
|
+
int main() {
|
|
253
|
+
std::cout << "Hello, World!" << std::endl;
|
|
254
|
+
return 0;
|
|
255
|
+
}`,csharp:`using System;
|
|
256
|
+
|
|
257
|
+
class Main {
|
|
258
|
+
static void Main() {
|
|
259
|
+
Console.WriteLine("Hello, World!");
|
|
260
|
+
}
|
|
261
|
+
}`,ruby:'puts "Hello, World!"',php:`<?php
|
|
262
|
+
echo "Hello, World!";
|
|
263
|
+
?>`,bash:'echo "Hello, World!"',shell:'echo "Hello, World!"',perl:'print "Hello, World!\\n";',lua:'print("Hello, World!")',r:'print("Hello, World!")',swift:'print("Hello, World!")',kotlin:`fun main() {
|
|
264
|
+
println("Hello, World!")
|
|
265
|
+
}`,scala:`object Main extends App {
|
|
266
|
+
println("Hello, World!")
|
|
267
|
+
}`,haskell:'main = putStrLn "Hello, World!"',elixir:'IO.puts "Hello, World!"',erlang:'main() -> io:fwrite("Hello, World!~n").',clojure:'(println "Hello, World!")',fsharp:'printfn "Hello, World!"',dart:`void main() {
|
|
268
|
+
print("Hello, World!");
|
|
269
|
+
}`,assembly:`section .data
|
|
270
|
+
msg db 'Hello, World!', 0
|
|
271
|
+
section .text
|
|
272
|
+
global _start
|
|
273
|
+
_start:
|
|
274
|
+
mov rax, 1
|
|
275
|
+
mov rdi, 1
|
|
276
|
+
mov rsi, msg
|
|
277
|
+
mov rdx, 13
|
|
278
|
+
syscall
|
|
279
|
+
mov rax, 60
|
|
280
|
+
xor rdi, rdi
|
|
281
|
+
syscall`,html:`<!DOCTYPE html>
|
|
282
|
+
<html>
|
|
283
|
+
<head>
|
|
284
|
+
<title>Hello</title>
|
|
285
|
+
</head>
|
|
286
|
+
<body>
|
|
287
|
+
<h1>Hello, World!</h1>
|
|
288
|
+
</body>
|
|
289
|
+
</html>`,css:`body {
|
|
290
|
+
background-color: #f0f0f0;
|
|
291
|
+
font-family: Arial, sans-serif;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
h1 {
|
|
295
|
+
color: #333;
|
|
296
|
+
}`,sql:"SELECT 'Hello, World!' AS message;",markdown:`# Hello, World!
|
|
297
|
+
|
|
298
|
+
This is a sample markdown document.`};function Le(h){const t=h.toLowerCase();return qe[t]||`// ${h}
|
|
299
|
+
// Write your code here`}const De=({pistonUrl:h="/api/piston",language:t="javascript",defaultLanguage:c="",theme:u="light",themeColor:m="",showLanguageSelector:N=!0,showEditor:i=!0,editable:F=!0,defaultCode:E="",executorLabel:y="运行",onExecuteStart:k,onExecuteEnd:w,onLanguageChange:I,onChange:x})=>{const P="hep-cr-default-language",[L,r]=b.useState([]),[e,a]=b.useState(c||(typeof window>"u"?t:localStorage.getItem(P)||t)),[o,s]=b.useState(u),[p,d]=b.useState(E),[v,B]=b.useState(""),[z,re]=b.useState(""),[W,ae]=b.useState(!1),[ye,he]=b.useState(null),[Q,H]=b.useState("stdout"),[Y,q]=b.useState(null),[Z,oe]=b.useState(!0),[ee,pe]=b.useState(60),[V,ne]=b.useState(!1),[J,ge]=b.useState(!1),ue=b.useRef(!1),te=b.useMemo(()=>new Ke({pistonUrl:h}),[h]),de=b.useMemo(()=>L.map(S=>({value:`${S.language}:${S.version}`,label:`${S.language.charAt(0).toUpperCase()+S.language.slice(1)} ${S.version}`})),[L]),fe=b.useMemo(()=>{if(!m)return{};const S=u==="dark",K=(le,be)=>{const xe=parseInt(le.replace("#",""),16),Ae=Math.round(2.55*be);return"#"+(16777216+65536*Math.min(255,Math.max(0,(xe>>16)+Ae))+256*Math.min(255,Math.max(0,(xe>>8&255)+Ae))+Math.min(255,Math.max(0,(255&xe)+Ae))).toString(16).slice(1)},se=(le=>{const be=parseInt(le.replace("#",""),16);return(.299*(be>>16&255)+.587*(be>>8&255)+.114*(255&be))/255>.5})(m)?"#000":"#fff";return{"--hep-cr-theme-color":m,"--hep-cr-theme-color-hover":K(m,S?20:-20),"--hep-cr-tab-active-color":se}},[m,u]),ie=b.useMemo(()=>e.includes(":")?e.split(":")[0]:e,[e]);b.useEffect(()=>{(async function(){oe(!0),q(null);try{const S=await te.getRuntimes();r(S)}catch(S){q(S instanceof Error?S.message:"Failed to load runtimes")}finally{oe(!1)}})()},[te]),b.useEffect(()=>{!p&&L.length>0&&d(E||Le(ie))},[L,p,E,ie]),b.useEffect(()=>{x==null||x(p)},[]),b.useEffect(()=>{!Z&&L.length>0&&I&&!ue.current&&(ue.current=!0,I(ie,p))},[Z,L.length]);const Ne=b.useCallback(S=>{const K=S.target.value,se=K.includes(":")?K.split(":")[0]:K;a(K);const le=Le(se);d(le),I==null||I(se,le),c||typeof window>"u"||localStorage.setItem(P,K)},[I,c]),Re=b.useCallback(async()=>{if(!W){ae(!0),B(""),re(""),he(null),q(null),H("stdout"),k==null||k();try{const S=await te.execute(ie,p);B(S.output),re(S.stderr),he(S.executionTime||null),H(S.stderr?"stderr":"stdout"),w==null||w(S)}catch(S){const K=S instanceof Error?S.message:"Execution failed";q(K),w==null||w({success:!1,output:"",stderr:K,code:-1})}finally{ae(!1)}}},[W,e,p,te,k,w]),Ie=b.useCallback(async()=>{await navigator.clipboard.writeText(p),ne(!0),setTimeout(()=>{ne(!1)},2e3)},[p]),ke=b.useCallback(async()=>{const S=Q==="stdout"?v:z;await navigator.clipboard.writeText(S),ge(!0),setTimeout(()=>{ge(!1)},2e3)},[Q,v,z]),we=b.useCallback(()=>{d(Le(ie))},[e]),ve=b.useRef(!1),me=b.useCallback(S=>{ve.current=!0,document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",Se),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),Ee=b.useCallback(S=>{if(!ve.current)return;const K=document.querySelector(".hep-cr-main");if(!K)return;const se=K.getBoundingClientRect(),le=(S.clientX-se.left)/se.width*100;pe(Math.max(20,Math.min(80,le)))},[]),Se=b.useCallback(()=>{ve.current=!1,document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",Se),document.body.style.cursor="",document.body.style.userSelect=""},[Ee]);return l.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${o}`,style:fe,children:[l.jsxs("div",{className:"hep-cr-header",children:[l.jsx("div",{className:"hep-cr-controls",children:N&&l.jsx(l.Fragment,{children:l.jsxs("select",{value:e,onChange:Ne,className:"hep-cr-language-select",disabled:W,children:[Z&&l.jsx("option",{value:"",children:"加载中..."}),de.map(S=>l.jsx("option",{value:S.value,children:S.label},S.value))]})})}),l.jsxs("div",{className:"hep-cr-actions",children:[l.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:W||Z,onClick:Re,children:[W?l.jsx("span",{className:"hep-cr-spinner"}):l.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),W?"运行中...":y]}),i&&F&&l.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:we,children:"重置"}),l.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>s(o==="light"?"dark":"light"),title:o==="light"?"Switch to dark mode":"Switch to light mode",children:o==="light"?l.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:l.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"5"}),l.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),l.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),l.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),l.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),l.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),l.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),l.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),l.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),Y&&l.jsx("div",{className:"hep-cr-error-message",children:Y}),l.jsxs("div",{className:"hep-cr-main",children:[i&&l.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${ee}%`},children:[l.jsxs("div",{className:"hep-cr-panel-header",children:[l.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),l.jsxs("div",{className:"hep-cr-output-actions",children:[l.jsx("span",{className:"hep-cr-language-badge",children:ie}),l.jsx("button",{className:"hep-cr-btn-icon "+(V?"hep-cr-btn-copied":""),disabled:V,onClick:Ie,title:V?"已复制":"复制",children:V?l.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),l.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),l.jsx(Xe,{value:p,language:ie,theme:o,disabled:!F||W,onChange:d,onCodeChange:x})]}),i&&l.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:me,children:l.jsx("div",{className:"hep-cr-resize-line"})}),l.jsxs("div",{className:"hep-cr-output-panel",style:{width:i?100-ee+"%":"100%"},children:[l.jsxs("div",{className:"hep-cr-panel-header",children:[l.jsxs("div",{className:"hep-cr-output-tabs",children:[l.jsx("button",{className:"hep-cr-tab "+(Q==="stdout"?"active":""),onClick:()=>H("stdout"),children:"输出"}),z&&l.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+(Q==="stderr"?"active":""),onClick:()=>H("stderr"),children:"错误"})]}),l.jsxs("div",{className:"hep-cr-output-actions",children:[ye!==null&&l.jsxs("span",{className:"hep-cr-execution-time",children:[ye,"ms"]}),l.jsx("button",{className:"hep-cr-btn-icon "+(J?"hep-cr-btn-copied":""),disabled:J,onClick:ke,title:J?"已复制":"复制",children:J?l.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),l.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),l.jsx("div",{className:"hep-cr-output-content",children:l.jsx("pre",{children:Q==="stdout"?W?"代码执行中...":v||'点击"运行"执行代码':z})})]})]}),l.jsx("style",{children:`
|
|
300
|
+
.hep-cr-runner {
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
border: 1px solid #e0e0e0;
|
|
304
|
+
border-radius: 12px;
|
|
305
|
+
overflow: hidden;
|
|
306
|
+
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
307
|
+
}
|
|
308
|
+
.hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }
|
|
309
|
+
.hep-cr-runner-light { background: #ffffff; }
|
|
310
|
+
.hep-cr-header {
|
|
311
|
+
display: flex;
|
|
312
|
+
justify-content: space-between;
|
|
313
|
+
align-items: center;
|
|
314
|
+
padding: 12px 16px;
|
|
315
|
+
background: #252526;
|
|
316
|
+
border-bottom: 1px solid #333;
|
|
317
|
+
}
|
|
318
|
+
.hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }
|
|
319
|
+
.hep-cr-controls { display: flex; gap: 8px; }
|
|
320
|
+
.hep-cr-language-select {
|
|
321
|
+
padding: 6px 12px;
|
|
322
|
+
border: 1px solid #444;
|
|
323
|
+
border-radius: 6px;
|
|
324
|
+
background: #2d2d2d;
|
|
325
|
+
color: #d4d4d4;
|
|
326
|
+
font-size: 13px;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
outline: none;
|
|
329
|
+
}
|
|
330
|
+
.hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }
|
|
331
|
+
.hep-cr-language-select:focus { border-color: #4fc3f7; }
|
|
332
|
+
.hep-cr-actions { display: flex; gap: 8px; }
|
|
333
|
+
.hep-cr-btn {
|
|
334
|
+
padding: 6px 16px;
|
|
335
|
+
border: none;
|
|
336
|
+
border-radius: 6px;
|
|
337
|
+
font-size: 13px;
|
|
338
|
+
font-weight: 500;
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
gap: 6px;
|
|
343
|
+
transition: all 0.2s;
|
|
344
|
+
}
|
|
345
|
+
.hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
346
|
+
.hep-cr-btn-run {
|
|
347
|
+
background: var(--hep-cr-theme-color, #4caf50);
|
|
348
|
+
color: var(--hep-cr-tab-active-color, #fff);
|
|
349
|
+
font-weight: 600;
|
|
350
|
+
}
|
|
351
|
+
.hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }
|
|
352
|
+
.hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
|
|
353
|
+
.hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
|
|
354
|
+
.hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }
|
|
355
|
+
.hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }
|
|
356
|
+
.hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }
|
|
357
|
+
.hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
|
|
358
|
+
.hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }
|
|
359
|
+
.hep-cr-error-message {
|
|
360
|
+
padding: 10px 16px;
|
|
361
|
+
background: #c62828;
|
|
362
|
+
color: white;
|
|
363
|
+
font-size: 13px;
|
|
364
|
+
}
|
|
365
|
+
.hep-cr-main { display: flex; height: 400px; overflow: hidden; }
|
|
366
|
+
.hep-cr-editor-panel {
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
min-width: 20%;
|
|
370
|
+
max-width: 80%;
|
|
371
|
+
}
|
|
372
|
+
.hep-cr-panel-header {
|
|
373
|
+
display: flex;
|
|
374
|
+
justify-content: space-between;
|
|
375
|
+
align-items: center;
|
|
376
|
+
padding: 8px 12px;
|
|
377
|
+
background: #2d2d2d;
|
|
378
|
+
border-bottom: 1px solid #333;
|
|
379
|
+
}
|
|
380
|
+
.hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }
|
|
381
|
+
.hep-cr-panel-title {
|
|
382
|
+
font-size: 12px;
|
|
383
|
+
font-weight: 600;
|
|
384
|
+
color: #888;
|
|
385
|
+
text-transform: uppercase;
|
|
386
|
+
letter-spacing: 0.5px;
|
|
387
|
+
}
|
|
388
|
+
.hep-cr-language-badge {
|
|
389
|
+
font-size: 11px;
|
|
390
|
+
padding: 2px 8px;
|
|
391
|
+
background: var(--hep-cr-theme-color, #4fc3f7);
|
|
392
|
+
color: var(--hep-cr-tab-active-color, #000);
|
|
393
|
+
border-radius: 10px;
|
|
394
|
+
font-weight: 600;
|
|
395
|
+
}
|
|
396
|
+
.hep-cr-editor {
|
|
397
|
+
flex: 1;
|
|
398
|
+
width: 100%;
|
|
399
|
+
background: #1e1e1e;
|
|
400
|
+
position: relative;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
}
|
|
403
|
+
.hep-cr-editor .hep-cr-highlight,
|
|
404
|
+
.hep-cr-editor .hep-cr-input {
|
|
405
|
+
position: absolute;
|
|
406
|
+
top: 0;
|
|
407
|
+
left: 0;
|
|
408
|
+
width: 100%;
|
|
409
|
+
height: 100%;
|
|
410
|
+
padding: 12px 16px;
|
|
411
|
+
margin: 0;
|
|
412
|
+
border: none;
|
|
413
|
+
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
414
|
+
font-size: 14px;
|
|
415
|
+
line-height: 1.6;
|
|
416
|
+
white-space: pre;
|
|
417
|
+
overflow: auto;
|
|
418
|
+
}
|
|
419
|
+
.hep-cr-editor .hep-cr-highlight {
|
|
420
|
+
background: transparent !important;
|
|
421
|
+
pointer-events: none;
|
|
422
|
+
z-index: 1;
|
|
423
|
+
}
|
|
424
|
+
.hep-cr-editor .hep-cr-highlight code {
|
|
425
|
+
display: block;
|
|
426
|
+
font-family: inherit;
|
|
427
|
+
}
|
|
428
|
+
.hep-cr-editor .hep-cr-input {
|
|
429
|
+
background: transparent !important;
|
|
430
|
+
color: transparent !important;
|
|
431
|
+
caret-color: #d4d4d4;
|
|
432
|
+
resize: none;
|
|
433
|
+
outline: none;
|
|
434
|
+
z-index: 2;
|
|
435
|
+
}
|
|
436
|
+
.hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }
|
|
437
|
+
.hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {
|
|
438
|
+
color: #333333;
|
|
439
|
+
}
|
|
440
|
+
.hep-cr-runner-light .hep-cr-editor .hep-cr-input {
|
|
441
|
+
caret-color: #333333;
|
|
442
|
+
}
|
|
443
|
+
.hep-cr-resize-handle {
|
|
444
|
+
width: 8px;
|
|
445
|
+
background: #2d2d2d;
|
|
446
|
+
cursor: col-resize;
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
justify-content: center;
|
|
450
|
+
border-left: 1px solid #3d3d3d;
|
|
451
|
+
border-right: 1px solid #3d3d3d;
|
|
452
|
+
}
|
|
453
|
+
.hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
|
|
454
|
+
.hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }
|
|
455
|
+
.hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
|
|
456
|
+
.hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }
|
|
457
|
+
.hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }
|
|
458
|
+
.hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
|
|
459
|
+
.hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
|
|
460
|
+
.hep-cr-output-panel {
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-direction: column;
|
|
463
|
+
min-width: 20%;
|
|
464
|
+
border-left: 1px solid #333;
|
|
465
|
+
}
|
|
466
|
+
.hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }
|
|
467
|
+
.hep-cr-output-tabs { display: flex; gap: 4px; }
|
|
468
|
+
.hep-cr-tab {
|
|
469
|
+
padding: 4px 12px;
|
|
470
|
+
border: none;
|
|
471
|
+
background: transparent;
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
font-size: 12px;
|
|
474
|
+
border-radius: 4px;
|
|
475
|
+
color: #888;
|
|
476
|
+
transition: all 0.2s;
|
|
477
|
+
}
|
|
478
|
+
.hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }
|
|
479
|
+
.hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }
|
|
480
|
+
.hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }
|
|
481
|
+
.hep-cr-tab-error.active { background: #f44336; color: #fff; }
|
|
482
|
+
.hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }
|
|
483
|
+
.hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }
|
|
484
|
+
.hep-cr-btn-icon {
|
|
485
|
+
background: transparent;
|
|
486
|
+
border: none;
|
|
487
|
+
cursor: pointer;
|
|
488
|
+
padding: 4px;
|
|
489
|
+
border-radius: 4px;
|
|
490
|
+
color: #888;
|
|
491
|
+
display: flex;
|
|
492
|
+
align-items: center;
|
|
493
|
+
justify-content: center;
|
|
494
|
+
transition: all 0.2s;
|
|
495
|
+
}
|
|
496
|
+
.hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }
|
|
497
|
+
.hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }
|
|
498
|
+
.hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }
|
|
499
|
+
.hep-cr-btn-copied { color: #4caf50 !important; }
|
|
500
|
+
.hep-cr-copied-text { font-size: 12px; color: #4caf50; }
|
|
501
|
+
.hep-cr-output-content {
|
|
502
|
+
flex: 1;
|
|
503
|
+
padding: 12px 16px;
|
|
504
|
+
overflow: auto;
|
|
505
|
+
background: #1e1e1e;
|
|
506
|
+
}
|
|
507
|
+
.hep-cr-runner-light .hep-cr-output-content { background: #fff; }
|
|
508
|
+
.hep-cr-output-content pre {
|
|
509
|
+
margin: 0;
|
|
510
|
+
font-size: 13px;
|
|
511
|
+
line-height: 1.6;
|
|
512
|
+
white-space: pre-wrap;
|
|
513
|
+
word-break: break-all;
|
|
514
|
+
color: #d4d4d4;
|
|
515
|
+
}
|
|
516
|
+
.hep-cr-runner-light .hep-cr-output-content pre { color: #333; }
|
|
517
|
+
.hep-cr-output-content .stderr { color: #f44336; }
|
|
518
|
+
.hep-cr-spinner {
|
|
519
|
+
width: 12px;
|
|
520
|
+
height: 12px;
|
|
521
|
+
border: 2px solid rgba(255,255,255,0.3);
|
|
522
|
+
border-top-color: white;
|
|
523
|
+
border-radius: 50%;
|
|
524
|
+
animation: spin 0.8s linear infinite;
|
|
525
|
+
}
|
|
526
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
527
|
+
`})]})},He=b.forwardRef(({open:h,defaultOpen:t=!1,title:c="代码执行器",width:u=800,onClose:m,footer:N,theme:i="light",...F},E)=>{const[y,k]=b.useState(t),w=h!==void 0,I=w?h:y;b.useEffect(()=>{w&&h!==y&&k(h)},[h,w]);const x=b.useCallback(()=>{w||k(!1),m==null||m()},[w,m]);b.useImperativeHandle(E,()=>({close:x}));const P=typeof u=="number"?`${u}px`:u;return I?l.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:L=>{L.target===L.currentTarget&&x()},children:[l.jsxs("div",{className:"hep-cr-dialog-container",style:{width:P},children:[l.jsxs("div",{className:"hep-cr-dialog-header",children:[l.jsx("h3",{className:"hep-cr-dialog-title",children:c}),l.jsx("button",{className:"hep-cr-dialog-close",onClick:x,children:l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),l.jsx("div",{className:"hep-cr-dialog-body",children:l.jsx(De,{theme:i,...F})}),N&&l.jsx("div",{className:"hep-cr-dialog-footer",children:N})]}),l.jsx("style",{children:`
|
|
528
|
+
.hep-cr-dialog-overlay {
|
|
529
|
+
position: fixed;
|
|
530
|
+
top: 0;
|
|
531
|
+
left: 0;
|
|
532
|
+
right: 0;
|
|
533
|
+
bottom: 0;
|
|
534
|
+
background: rgba(0, 0, 0, 0.5);
|
|
535
|
+
display: flex;
|
|
536
|
+
align-items: center;
|
|
537
|
+
justify-content: center;
|
|
538
|
+
z-index: 9999;
|
|
539
|
+
animation: hep-cr-dialog-fade-in 0.2s ease;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.hep-cr-dialog-container {
|
|
543
|
+
background: #fff;
|
|
544
|
+
border-radius: 12px;
|
|
545
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
546
|
+
max-width: 90vw;
|
|
547
|
+
max-height: 90vh;
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
overflow: hidden;
|
|
551
|
+
animation: hep-cr-dialog-scale-in 0.2s ease;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.hep-cr-dialog-header {
|
|
555
|
+
display: flex;
|
|
556
|
+
align-items: center;
|
|
557
|
+
justify-content: space-between;
|
|
558
|
+
padding: 16px 20px;
|
|
559
|
+
border-bottom: 1px solid #e0e0e0;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.hep-cr-dialog-title {
|
|
563
|
+
margin: 0;
|
|
564
|
+
font-size: 16px;
|
|
565
|
+
font-weight: 600;
|
|
566
|
+
color: #333;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.hep-cr-dialog-close {
|
|
570
|
+
background: none;
|
|
571
|
+
border: none;
|
|
572
|
+
cursor: pointer;
|
|
573
|
+
padding: 4px;
|
|
574
|
+
border-radius: 4px;
|
|
575
|
+
color: #666;
|
|
576
|
+
display: flex;
|
|
577
|
+
align-items: center;
|
|
578
|
+
justify-content: center;
|
|
579
|
+
transition: all 0.2s;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.hep-cr-dialog-close:hover {
|
|
583
|
+
background: #f0f0f0;
|
|
584
|
+
color: #333;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.hep-cr-dialog-body {
|
|
588
|
+
flex: 1;
|
|
589
|
+
overflow: auto;
|
|
590
|
+
padding: 0;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.hep-cr-dialog-body .hep-cr-runner {
|
|
594
|
+
border: none;
|
|
595
|
+
border-radius: 0;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.hep-cr-dialog-footer {
|
|
599
|
+
padding: 12px 20px;
|
|
600
|
+
border-top: 1px solid #e0e0e0;
|
|
601
|
+
display: flex;
|
|
602
|
+
justify-content: flex-end;
|
|
603
|
+
gap: 12px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
@keyframes hep-cr-dialog-fade-in {
|
|
607
|
+
from { opacity: 0; }
|
|
608
|
+
to { opacity: 1; }
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
@keyframes hep-cr-dialog-scale-in {
|
|
612
|
+
from { transform: scale(0.95); }
|
|
613
|
+
to { transform: scale(1); }
|
|
614
|
+
}
|
|
615
|
+
`})]}):null});He.displayName="CodeRunnerDialog",exports.CodeRunner=De,exports.CodeRunnerDialog=He,exports.default=De;
|