2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[41171],{41171:function(m,k,b){m=b.nmd(m),ace.define("ace/mode/applescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,u,v){"use strict";var f=n("../lib/oop"),g=n("./text_highlight_rules").TextHighlightRules,h=function(){var d="about|above|after|against|and|around|as|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contain|contains|continue|copy|div|does|eighth|else|end|equal|equals|error|every|exit|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|into|is|it|its|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|over|prop|property|put|ref|reference|repeat|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|try|until|where|while|whose|with|without",e="AppleScript|false|linefeed|return|pi|quote|result|space|tab|true",t="activate|beep|count|delay|launch|log|offset|read|round|run|say|summarize|write",i="alias|application|boolean|class|constant|date|file|integer|list|number|real|record|string|text|character|characters|contents|day|frontmost|id|item|length|month|name|paragraph|paragraphs|rest|reverse|running|time|version|weekday|word|words|year",o=this.createKeywordMapper({"support.function":t,"constant.language":e,"support.type":i,keyword:d},"identifier");this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",regex:"\\(\\*",next:"comment"},{token:"string",regex:'".*?"'},{token:"support.type",regex:"\\b(POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{token:"support.function",regex:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{token:"constant.language",regex:"\\b(text item delimiters|current application|missing value)\\b"},{token:"keyword",regex:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"},{token:o,regex:"[a-zA-Z][a-zA-Z0-9_]*\\b"}],comment:[{token:"comment",regex:"\\*\\)",next:"start"},{defaultToken:"comment"}]},this.normalizeRules()};f.inherits(h,g),u.AppleScriptHighlightRules=h}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,u,v){"use strict";var f=n("../../lib/oop"),g=n("../../range").Range,h=n("./fold_mode").FoldMode,d=u.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};f.inherits(d,h),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,t,i){var o=e.getLine(i);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var a=this._getFoldWidgetBase(e,t,i);return!a&&this.startRegionRe.test(o)?"start":a},this.getFoldWidgetRange=function(e,t,i,o){var a=e.getLine(i);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,i);var r=a.match(this.foldingStartMarker);if(r){var l=r.index;if(r[1])return this.openingBracketBlock(e,r[1],i,l);var s=e.getCommentFoldRange(i,l+r[0].length,1);return s&&!s.isMultiLine()&&(o?s=this.getSectionRange(e,i):t!="all"&&(s=null)),s}if(t!=="markbegin"){var r=a.match(this.foldingStopMarker);if(r){var l=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],i,l):e.getCommentFoldRange(i,l,-1)}}},this.getSectionRange=function(e,t){var i=e.getLine(t),o=i.search(/\S/),a=t,r=i.length;t=t+1;for(var l=t,s=e.getLength();++t<s;){i=e.getLine(t);var p=i.search(/\S/);if(p!==-1){if(o>p)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=a)break;if(c.isMultiLine())t=c.end.row;else if(o==p)break}l=t}}return new g(a,r,l,e.getLine(l).length)},this.getCommentRegionBlock=function(e,t,i){for(var o=t.search(/\s*$/),a=e.getLength(),r=i,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,s=1;++i<a;){t=e.getLine(i);var p=l.exec(t);if(!!p&&(p[1]?s--:s++,!s))break}var c=i;if(c>r)return new g(r,o,c,t.length)}}.call(d.prototype)}),ace.define("ace/mode/applescript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/applescript_highlight_rules","ace/mode/folding/cstyle"],function(n,u,v){"use strict";var f=n("../lib/oop"),g=n("./text").Mode,h=n("./applescript_highlight_rules").AppleScriptHighlightRules,d=n("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=h,this.foldingRules=new d,this.$behaviour=this.$defaultBehaviour};f.inherits(e,g),function(){this.lineCommentStart="--",this.blockComment={start:"(*",end:"*)"},this.$id="ace/mode/applescript"}.call(e.prototype),u.Mode=e}),function(){ace.require(["ace/mode/applescript"],function(n){m&&(m.exports=n)})}()}}]);
|