define(“ace/mode/json”,,function(a,b,c){var d=a(“../lib/oop”),e=a(“./text”).Mode,f=a(“../tokenizer”).Tokenizer,g=a(“./json_highlight_rules”).JsonHighlightRules,h=a(“./matching_brace_outdent”).MatchingBraceOutdent,i=a(“./behaviour/cstyle”).CstyleBehaviour,j=a(“./folding/cstyle”).FoldMode,k=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h,this.$behaviour=new i,this.foldingRules=new j};d.inherits(k,e),function(){this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b);if(a==“start”){var e=b.match(/^.*[{(s*$/);e&&(d+=c)}return d},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(k.prototype),b.Mode=k}),define(“ace/mode/json_highlight_rules”,,function(a,b,c){var d=a(“../lib/oop”),e=a(“../lib/lang”),f=a(“./text_highlight_rules”).TextHighlightRules,g=function(){this.$rules={start:[{token:“string”,regex:‘(?:(?:\\.)|(?:[^“\\]))*?[”]'},{token:“constant.numeric”,regex:“0[0-9a-fA-F]+\b”},{token:“constant.numeric”,regex:“?\d+(?:(?:\.\d*)?(?:[+-]?\d+)?)?\b”},{token:“constant.language.boolean”,regex:“(?:true|false)\b”},{token:“invalid.illegal”,regex:“(?:(?:\\.)|(?:[^'\\]))*?[']”},{token:“invalid.illegal”,regex:“\/\/.*$”},{token:“paren.lparen”,regex:“[”},{token:“paren.rparen”,regex:“)}]”},{token:“text”,regex:“\s+”}]}};d.inherits(g,f),b.JsonHighlightRules=g}),define(“ace/mode/matching_brace_outdent”,,function(a,b,c){var d=a(“../range”).Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^s+$/.test(a)?/^s*}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(s*})/);if(!e)return 0;var f=e.length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(s+)/);return b?b:“”}})).call(e.prototype),b.MatchingBraceOutdent=e}),define(“ace/mode/behaviour/cstyle”,,function(a,b,c){var d=a(“../../lib/oop”),e=a(“../behaviour”).Behaviour,f=function(){this.add(“braces”,“insertion”,function(a,b,c,d,e){if(e==“{”){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==“”?{text:“{”g
“}”,selection:!1}:{text:“{}”,selection:}}if(e==“}”){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==“}”){var k=d.$findOpeningBracket(“}”,{column:h.column+1,row:h.row});if(k!==null)return{text:“”,selection:}}}else if(e==“n”){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==“}”){var l=d.findMatchingBracket({row:h.row,column:h.column+1});if(!l)return null;var m=this.getNextLineIndent(a,i.substring(0,i.length-1),d.getTabString()),n=this.$getIndent(d.doc.getLine(l.row));return{text:“n”m
“n”+n,selection:}}}}),this.add(“braces”,“deletion”,function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f==“{”){var g=d.doc.getLine(e.start.row),h=g.substring(e.end.column,e.end.column+1);if(h==“}”)return e.end.column++,e}}),this.add(“parens”,“insertion”,function(a,b,c,d,e){if(e==“(”){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);return g!==“”?{text:“(”g
“)”,selection:!1}:{text:“()”,selection:}}if(e==“)”){var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column,h.column+1);if(j==“)”){var k=d.$findOpeningBracket(“)”,{column:h.column+1,row:h.row});if(k!==null)return{text:“”,selection:}}}}),this.add(“parens”,“deletion”,function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f==“(”){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h==“)”)return e.end.column++,e}}),this.add(“string_dquotes”,“insertion”,function(a,b,c,d,e){if(e=='“'){var f=c.getSelectionRange(),g=d.doc.getTextRange(f);if(g!==”“)return{text:'”'g
'“',selection:!1};var h=c.getCursorPosition(),i=d.doc.getLine(h.row),j=i.substring(h.column-1,h.column);if(j==”\“)return null;var k=d.getTokens(f.start.row,f.start.row).tokens,l=0,m,n=-1;for(var o=0;o<k.length;o++){m=k,m.type==”string“?n=-1:n<0&&(n=m.value.indexOf('"'));if(m.value.length+l>f.start.column)break;l+=k.value.length}if(!m||n<0&&m.type!==”comment“&&(m.type!==”string“||f.start.column!==m.value.length+l-1&&m.value.lastIndexOf('”')===m.value.length-1))return{text:’“”‘,selection:};if(m&&m.type===“string”){var p=i.substring(h.column,h.column+1);if(p=='“')return{text:”“,selection:}}}}),this.add(”string_dquotes“,”deletion“,function(a,b,c,d,e){var f=d.doc.getTextRange(e);if(!e.isMultiLine()&&f=='”'){var g=d.doc.getLine(e.start.row),h=g.substring(e.start.column+1,e.start.column+2);if(h=='“')return e.end.column++,e}})};d.inherits(f,e),b.CstyleBehaviour=f}),define(”ace/mode/folding/cstyle“,,function(a,b,c){var d=a(”../../lib/oop“),e=a(”../../range“).Range,f=a(”./fold_mode“).FoldMode,g=b.FoldMode=function(){};d.inherits(g,f),function(){this.foldingStartMarker=/({|[)[^}]]*$|^s*(/*)/,this.foldingStopMarker=/^[^*(}|])|^[s*]*(*/)/,this.getFoldWidgetRange=function(a,b){var c=a.getLine(b),d=c.match(this.foldingStartMarker);if(d){var f=d.index;if(d)return a.getCommentFoldRange(b,f+d.length);var g={row:b,column:f+1},h=a.$findClosingBracket(d,g);if(h){var i=a.foldWidgets;i==null&&(i=this.getFoldWidget(a,h.row)),i==”start“&&(h.row–,h.column=a.getLine(h.row).length)}return e.fromPoints(g,h)}var d=c.match(this.foldingStopMarker);if(d){var f=d.index+d.length;if(d)return a.getCommentFoldRange(b,f);var h={row:b,column:f},g=a.$findOpeningBracket(d,h);return g&&(g.column++,h.column–),e.fromPoints(g,h)}}}.call(g.prototype)}),define(”ace/mode/folding/fold_mode“,,function(a,b,c){var d=a(”../../range“).Range,e=b.FoldMode=function(){};((function(){this.FOO=12,this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(a,b){return this.foldingStartMarker?this.foldingStopMarker?(e.prototype.getFoldWidget=this.$testBoth,this.$testBoth(a,b)):(e.prototype.getFoldWidget=this.$testStart,this.$testStart(a,b)):”“},this.getFoldWidgetRange=function(a,b){return null},this.indentationBlock=function(a,b){var c=/^s*/,e=b,f=b,g=a.getLine(b),h=g.length-1,i=g.match©.length;while(g=a.getLine(++b)){var j=g.match©.length;if(j==g.length)continue;if(j<=i)break;f=b}if(f>e){var k=a.getLine(f).length;return new d(e,h,f,k)}},this.$testStart=function(a,b){return this.foldingStartMarker.test(a.getLine(b))?”start“:”“},this.$testBoth=function(a,b){var c=a.getLine(b);return this.foldingStartMarker.test©?”start“:this.foldingStopMarker.test©?”end“:”“}})).call(e.prototype)})