filesbox/web/dist/44576.1a11a32f.async.js
2024-07-26 14:10:54 +08:00

2 lines
6.9 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[44576],{44576:function(p,R,v){p=v.nmd(p),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(g,d,k){"use strict";var m=g("../lib/oop"),s=g("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};m.inherits(l,s),l.getTagRule=function(c){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(c){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:c}},l.getEndRule=function(c){return{token:"comment.doc",regex:"\\*\\/",next:c}},d.DocCommentHighlightRules=l}),ace.define("ace/mode/golang_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(g,d,k){var m=g("../lib/oop"),s=g("./doc_comment_highlight_rules").DocCommentHighlightRules,l=g("./text_highlight_rules").TextHighlightRules,c=function(){var e="else|break|case|return|goto|if|const|select|continue|struct|default|switch|for|range|func|import|package|chan|defer|fallthrough|go|interface|map|range|select|type|var",n="string|uint8|uint16|uint32|uint64|int8|int16|int32|int64|float32|float64|complex64|complex128|byte|rune|uint|int|uintptr|bool|error",t="new|close|cap|copy|panic|panicln|print|println|len|make|delete|real|recover|imag|append",o="nil|true|false|iota",i=this.createKeywordMapper({keyword:e,"constant.language":o,"support.function":t,"support.type":n},""),r=`\\\\(?:[0-7]{3}|x\\h{2}|u{4}|U\\h{6}|[abfnrtv'"\\\\])`.replace(/\\h/g,"[a-fA-F\\d]");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},s.getStartRule("doc-start"),{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"string",regex:/"(?:[^"\\]|\\.)*?"/},{token:"string",regex:"`",next:"bqstring"},{token:"constant.numeric",regex:"'(?:[^\\'\uD800-\uDBFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|"+r.replace('"',"")+")'"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:["keyword","text","entity.name.function"],regex:"(func)(\\s+)([a-zA-Z_$][a-zA-Z0-9_$]*)\\b"},{token:function(a){return a[a.length-1]=="("?[{type:i(a.slice(0,-1))||"support.function",value:a.slice(0,-1)},{type:"paren.lparen",value:a.slice(-1)}]:i(a)||"identifier"},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:"text",regex:"\\s+"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],bqstring:[{token:"string",regex:"`",next:"start"},{defaultToken:"string"}]},this.embedRules(s,"doc-",[s.getEndRule("start")])};m.inherits(c,l),d.GolangHighlightRules=c}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(g,d,k){"use strict";var m=g("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,c){return/^\s+$/.test(l)?/^\s*\}/.test(c):!1},this.autoOutdent=function(l,c){var e=l.getLine(c),n=e.match(/^(\s*\})/);if(!n)return 0;var t=n[1].length,o=l.findMatchingBracket({row:c,column:t});if(!o||o.row==c)return 0;var i=this.$getIndent(l.getLine(o.row));l.replace(new m(c,0,c,t-1),i)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),d.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(g,d,k){"use strict";var m=g("../../lib/oop"),s=g("../../range").Range,l=g("./fold_mode").FoldMode,c=d.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};m.inherits(c,l),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,n,t){var o=e.getLine(t);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var i=this._getFoldWidgetBase(e,n,t);return!i&&this.startRegionRe.test(o)?"start":i},this.getFoldWidgetRange=function(e,n,t,o){var i=e.getLine(t);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,t);var r=i.match(this.foldingStartMarker);if(r){var a=r.index;if(r[1])return this.openingBracketBlock(e,r[1],t,a);var u=e.getCommentFoldRange(t,a+r[0].length,1);return u&&!u.isMultiLine()&&(o?u=this.getSectionRange(e,t):n!="all"&&(u=null)),u}if(n!=="markbegin"){var r=i.match(this.foldingStopMarker);if(r){var a=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],t,a):e.getCommentFoldRange(t,a,-1)}}},this.getSectionRange=function(e,n){var t=e.getLine(n),o=t.search(/\S/),i=n,r=t.length;n=n+1;for(var a=n,u=e.getLength();++n<u;){t=e.getLine(n);var h=t.search(/\S/);if(h!==-1){if(o>h)break;var f=this.getFoldWidgetRange(e,"all",n);if(f){if(f.start.row<=i)break;if(f.isMultiLine())n=f.end.row;else if(o==h)break}a=n}}return new s(i,r,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,n,t){for(var o=n.search(/\s*$/),i=e.getLength(),r=t,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,u=1;++t<i;){n=e.getLine(t);var h=a.exec(n);if(!!h&&(h[1]?u--:u++,!u))break}var f=t;if(f>r)return new s(r,o,f,n.length)}}.call(c.prototype)}),ace.define("ace/mode/golang",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/golang_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(g,d,k){var m=g("../lib/oop"),s=g("./text").Mode,l=g("./golang_highlight_rules").GolangHighlightRules,c=g("./matching_brace_outdent").MatchingBraceOutdent,e=g("./behaviour/cstyle").CstyleBehaviour,n=g("./folding/cstyle").FoldMode,t=function(){this.HighlightRules=l,this.$outdent=new c,this.foldingRules=new n,this.$behaviour=new e};m.inherits(t,s),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,i,r){var a=this.$getIndent(i),u=this.getTokenizer().getLineTokens(i,o),h=u.tokens,f=u.state;if(h.length&&h[h.length-1].type=="comment")return a;if(o=="start"){var x=i.match(/^.*[\{\(\[]\s*$/);x&&(a+=r)}return a},this.checkOutdent=function(o,i,r){return this.$outdent.checkOutdent(i,r)},this.autoOutdent=function(o,i,r){this.$outdent.autoOutdent(i,r)},this.$id="ace/mode/golang"}.call(t.prototype),d.Mode=t}),function(){ace.require(["ace/mode/golang"],function(g){p&&(p.exports=g)})}()}}]);