(function(){functiong(a){if(typeofrequirejs!="undefined"){vare=b.define;b.define=function(a,b,c){returntypeofc!="function"?e.apply(this,arguments):e(a,b,function(a,d,e){returnb[2]=="module"&&(e.packaged=!0),c.apply(this,arguments)})},b.define.packaged=!0;return}varf=function(a,b){returnd("",a,b)};f.packaged=!0;varg=b;a&&(b[a]||(b[a]={}),g=b[a]),g.define&&(c.original=g.define),g.define=c,g.require&&(d.original=g.require),g.require=f}vara="",b=function(){returnthis}(),c=function(a,b,d){if(typeofa!="string"){c.original?c.original.apply(window,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(d=b),c.modules||(c.modules={}),c.modules[a]=d},d=function(a,b,c){if(Object.prototype.toString.call(b)==="[object Array]"){vare=[];for(varg=0,h=b.length;g<h;++g){vari=f(a,b[g]);if(!i&&d.original)returnd.original.apply(window,arguments);e.push(i)}c&&c.apply(null,e)}else{if(typeofb=="string"){varj=f(a,b);return!j&&d.original?d.original.apply(window,arguments):(c&&c(),j)}if(d.original)returnd.original.apply(window,arguments)}},e=function(a,b){if(b.indexOf("!")!==-1){varc=b.split("!");returne(a,c[0])+"!"+e(a,c[1])}if(b.charAt(0)=="."){vard=a.split("/").slice(0,-1).join("/");b=d+"/"+b;while(b.indexOf(".")!==-1&&f!=b){varf=b;b=b.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}returnb},f=function(a,b){b=e(a,b);varf=c.modules[b];if(!f)returnnull;if(typeoff=="function"){varg={},h={id:b,uri:"",exports:g,packaged:!0},i=function(a,c){returnd(b,a,c)},j=f(i,g,h);returng=j||h.exports,c.modules[b]=g,g}returnf};g(a)})(),define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/multi_select","ace/worker/worker_client","ace/keyboard/hash_handler","ace/keyboard/state_handler","ace/placeholder","ace/config","ace/theme/textmate"],function(a,b,c){a("./lib/fixoldbrowsers");vard=a("./lib/dom"),e=a("./lib/event"),f=a("./editor").Editor,g=a("./edit_session").EditSession,h=a("./undomanager").UndoManager,i=a("./virtual_renderer").VirtualRenderer,j=a("./multi_select").MultiSelect;a("./worker/worker_client"),a("./keyboard/hash_handler"),a("./keyboard/state_handler"),a("./placeholder"),b.config=a("./config"),b.edit=function(b){typeofb=="string"&&(b=document.getElementById(b));if(b.env&&b.env.editorinstanceoff)returnb.env.editor;varc=newg(d.getInnerText(b));c.setUndoManager(newh),b.innerHTML="";vark=newf(newi(b,a("./theme/textmate")));newj(k),k.setSession(c);varl={};returnl.document=c,l.editor=k,k.resize(),e.addListener(window,"resize",function(){k.resize()}),b.env=l,k.env=l,k}}),define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(a,b,c){a("./regexp"),a("./es5-shim")}),define("ace/lib/regexp",["require","exports","module"],function(a,b,c){functiong(a){return(a.global?"g":"")+(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":"")}functionh(a,b,c){if(Array.prototype.indexOf)returna.indexOf(b,c);for(vard=c||0;d<a.length;d++)if(a[d]===b)returnd;return-1}vard={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},e=d.exec.call(/()??/,"")[1]===undefined,f=function(){vara=/^/g;returnd.test.call(a,""),!a.lastIndex}();if(f&&e)return;RegExp.prototype.exec=function(a){varb=d.exec.apply(this,arguments),c,i;if(typeofa=="string"&&b){!e&&b.length>1&&h(b,"")>-1&&(i=RegExp(this.source,d.replace.call(g(this),"g","")),d.replace.call(a.slice(b.index),i,function(){for(vara=1;a<arguments.length-2;a++)arguments[a]===undefined&&(b[a]=undefined)}));if(this._xregexp&&this._xregexp.captureNames)for(varj=1;j<b.length;j++)c=this._xregexp.captureNames[j-1],c&&(b[c]=b[j]);!f&&this.global&&!b[0].length&&this.lastIndex>b.index&&this.lastIndex--}returnb},f||(RegExp.prototype.test=function(a){varb=d.exec.call(this,a);returnb&&this.global&&!b[0].length&&this.lastIndex>b.index&&th