1 |
- import{g as $}from"./index-b2e76ed2.js";function b(l,y){for(var o=0;o<y.length;o++){const s=y[o];if(typeof s!="string"&&!Array.isArray(s)){for(const d in s)if(d!=="default"&&!(d in l)){const a=Object.getOwnPropertyDescriptor(s,d);a&&Object.defineProperty(l,d,a.get?a:{enumerable:!0,get:()=>s[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(l,y){ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(o,s,d){var a=o("../range").Range,f=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var h=e.getLine(t),p=h.match(/^(\s*\})/);if(!p)return 0;var n=p[1].length,r=e.findMatchingBracket({row:t,column:n});if(!r||r.row==t)return 0;var i=this.$getIndent(e.getLine(r.row));e.replace(new a(t,0,t,n-1),i)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(f.prototype),s.MatchingBraceOutdent=f}),ace.define("ace/mode/livescript",["require","exports","module","ace/tokenizer","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/text"],function(o,s,d){var a,f,e,t;a="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",s.Mode=f=function(n){var r,i=h((p(c,n).displayName="LiveScriptMode",c),n).prototype;function c(){var u;this.$tokenizer=new(o("../tokenizer")).Tokenizer(c.Rules),(u=o("../mode/matching_brace_outdent"))&&(this.$outdent=new u.MatchingBraceOutdent),this.$id="ace/mode/livescript",this.$behaviour=new(o("./behaviour/cstyle")).CstyleBehaviour}return r=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+a+")?))\\s*$"),i.getNextLineIndent=function(u,x,k){var g,m;return g=this.$getIndent(x),m=this.$tokenizer.getLineTokens(x,u).tokens,m.length&&m[m.length-1].type==="comment"||u==="start"&&r.test(x)&&(g+=k),g},i.lineCommentStart="#",i.blockComment={start:"###",end:"###"},i.checkOutdent=function(u,x,k){var g;return(g=this.$outdent)!=null?g.checkOutdent(x,k):void 0},i.autoOutdent=function(u,x,k){var g;return(g=this.$outdent)!=null?g.autoOutdent(x,k):void 0},c}(o("../mode/text").Mode),e="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",t={defaultToken:"string"},f.Rules={start:[{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+e},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+e},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+e},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+e},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+e},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+e},{token:"identifier",regex:a+"\\s*:(?![:=])"},{token:"variable",regex:a},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"[\\^!|&%+\\-]+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{defaultToken:"string.regex"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:a,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{defaultToken:"comment.doc"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},t],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},t],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},t],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},t],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},t],words:[{token:"string",regex:".*?\\]>",next:"key"},t]};function h(n,r){function i(){}return i.prototype=(n.superclass=r).prototype,(n.prototype=new i).constructor=n,typeof r.extended=="function"&&r.extended(n),n}function p(n,r){var i={}.hasOwnProperty;for(var c in r)i.call(r,c)&&(n[c]=r[c]);return n}}),function(){ace.require(["ace/mode/livescript"],function(o){l&&(l.exports=o)})}()})(v);var w=v.exports;const O=$(w),A=b({__proto__:null,default:O},[w]);export{A as m};
|