123 |
- import{g as C}from"./index-3157015c.js";function H(x,y){for(var n=0;n<y.length;n++){const g=y[n];if(typeof g!="string"&&!Array.isArray(g)){for(const v in g)if(v!=="default"&&!(v in x)){const h=Object.getOwnPropertyDescriptor(g,v);h&&Object.defineProperty(x,v,h.get?h:{enumerable:!0,get:()=>g[v]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(x,y){ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,g,v){var h=n("../lib/oop"),d=n("./text_highlight_rules").TextHighlightRules,k=g.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",c=g.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",e=function(){var i=this.createKeywordMapper({keyword:k,"support.function.builtin":c,"invalid.deprecated":"debugger"},"identifier"),o="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",r="(?:\\d+)",a="(?:(?:"+r+"?"+s+")|(?:"+r+"\\.))",l="(?:(?:"+a+"|"+r+"))",t="(?:"+l+"|"+a+")",u="(?:&"+r+")",f="[a-zA-Z_][a-zA-Z0-9_]*",$="(?:"+f+"(?==))",S="(?:\\$(?:SHLVL|\\$|\\!|\\?))",F="(?:"+f+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(m,b,p){var L=m[2]=="-"?"indentedHeredoc":"heredoc",R=m.split(this.splitRegex);return p.push(L,R[4]),[{type:"constant",value:R[1]},{type:"text",value:R[2]},{type:"string",value:R[3]},{type:"support.class",value:R[4]},{type:"string",value:R[5]}]},rules:{heredoc:[{onMatch:function(m,b,p){return m===p[1]?(p.shift(),p.shift(),this.next=p[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(m,b,p){return m===p[1]?(p.shift(),p.shift(),this.next=p[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(m,b){return b[0]==="heredoc"||b[0]==="indentedHeredoc"?b[0]:m}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:S},{token:"variable",regex:$},{include:"variables"},{token:"support.function",regex:F},{token:"support.function",regex:u},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:t},{token:"constant.numeric",regex:o+"\\b"},{token:i,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};h.inherits(e,d),g.ShHighlightRules=e}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,g,v){var h=n("../../lib/oop"),d=n("../../range").Range,k=n("./fold_mode").FoldMode,c=g.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};h.inherits(c,k),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,i,o){var s=e.getLine(o);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var r=this._getFoldWidgetBase(e,i,o);return!r&&this.startRegionRe.test(s)?"start":r},this.getFoldWidgetRange=function(e,i,o,s){var r=e.getLine(o);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,o);var t=r.match(this.foldingStartMarker);if(t){var a=t.index;if(t[1])return this.openingBracketBlock(e,t[1],o,a);var l=e.getCommentFoldRange(o,a+t[0].length,1);return l&&!l.isMultiLine()&&(s?l=this.getSectionRange(e,o):i!="all"&&(l=null)),l}if(i!=="markbegin"){var t=r.match(this.foldingStopMarker);if(t){var a=t.index+t[0].length;return t[1]?this.closingBracketBlock(e,t[1],o,a):e.getCommentFoldRange(o,a,-1)}}},this.getSectionRange=function(e,i){var o=e.getLine(i),s=o.search(/\S/),r=i,a=o.length;i=i+1;for(var l=i,t=e.getLength();++i<t;){o=e.getLine(i);var u=o.search(/\S/);if(u!==-1){if(s>u)break;var f=this.getFoldWidgetRange(e,"all",i);if(f){if(f.start.row<=r)break;if(f.isMultiLine())i=f.end.row;else if(s==u)break}l=i}}return new d(r,a,l,e.getLine(l).length)},this.getCommentRegionBlock=function(e,i,o){for(var s=i.search(/\s*$/),r=e.getLength(),a=o,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,t=1;++o<r;){i=e.getLine(o);var u=l.exec(i);if(u&&(u[1]?t--:t++,!t))break}var f=o;if(f>a)return new d(a,s,f,i.length)}}.call(c.prototype)}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(n,g,v){var h=n("../lib/oop"),d=n("./text").Mode,k=n("./sh_highlight_rules").ShHighlightRules,c=n("../range").Range,e=n("./folding/cstyle").FoldMode,i=function(){this.HighlightRules=k,this.foldingRules=new e,this.$behaviour=this.$defaultBehaviour};h.inherits(i,d),function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,r,a){var l=this.$getIndent(r),t=this.getTokenizer().getLineTokens(r,s),u=t.tokens;if(u.length&&u[u.length-1].type=="comment")return l;if(s=="start"){var f=r.match(/^.*[\{\(\[:]\s*$/);f&&(l+=a)}return l};var o={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,r,a){if(a!==`\r
- `&&a!=="\r"&&a!==`
- `)return!1;var l=this.getTokenizer().getLineTokens(r.trim(),s).tokens;if(!l)return!1;do var t=l.pop();while(t&&(t.type=="comment"||t.type=="text"&&t.value.match(/^\s+$/)));return t?t.type=="keyword"&&o[t.value]:!1},this.autoOutdent=function(s,r,a){a+=1;var l=this.$getIndent(r.getLine(a)),t=r.getTabString();l.slice(-t.length)==t&&r.remove(new c(a,l.length-t.length,a,l.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(i.prototype),g.Mode=i}),ace.define("ace/mode/dockerfile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/sh_highlight_rules"],function(n,g,v){var h=n("../lib/oop"),d=n("./sh_highlight_rules").ShHighlightRules,k=function(){d.call(this);for(var c=this.$rules.start,e=0;e<c.length;e++)if(c[e].token=="variable.language"){c.splice(e,0,{token:"constant.language",regex:"(?:^(?:FROM|MAINTAINER|RUN|CMD|EXPOSE|ENV|ADD|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|COPY|LABEL)\\b)",caseInsensitive:!0});break}};h.inherits(k,d),g.DockerfileHighlightRules=k}),ace.define("ace/mode/dockerfile",["require","exports","module","ace/lib/oop","ace/mode/sh","ace/mode/dockerfile_highlight_rules","ace/mode/folding/cstyle"],function(n,g,v){var h=n("../lib/oop"),d=n("./sh").Mode,k=n("./dockerfile_highlight_rules").DockerfileHighlightRules,c=n("./folding/cstyle").FoldMode,e=function(){d.call(this),this.HighlightRules=k,this.foldingRules=new c};h.inherits(e,d),function(){this.$id="ace/mode/dockerfile"}.call(e.prototype),g.Mode=e}),function(){ace.require(["ace/mode/dockerfile"],function(n){x&&(x.exports=n)})}()})(_);var M=_.exports;const w=C(M),D=H({__proto__:null,default:w},[M]);export{D as m};
|