"no use strict";(function(e){if(typeofe.window!="undefined"&&e.document)return;e.console=function(){vare=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console,e.window=e,e.ace=e,e.normalizeModule=function(t,n){if(n.indexOf("!")!==-1){varr=n.split("!");returne.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if(n.charAt(0)=="."){vari=t.split("/").slice(0,-1).join("/");n=(i?i+"/":"")+n;while(n.indexOf(".")!==-1&&s!=n){vars=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}returnn},e.require=function(t,n){n||(n=t,t=null);if(!n.charAt)thrownewError("worker.js require() accepts only (parentId, id) as arguments");n=e.normalizeModule(t,n);varr=e.require.modules[n];if(r)returnr.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;vari=n.split("/");if(!e.require.tlns)returnconsole.log("unable to load "+n);i[0]=e.require.tlns[i[0]]||i[0];vars=i.join("/")+".js";returne.require.id=n,importScripts(s),e.require(t,n)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeoft!="string"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id),n.length||(n=["require","exports","module"]);if(t.indexOf("text!")===0)return;vari=function(n){returne.require(t,n)};e.require.modules[t]={exports:{},factory:function(){vare=this,t=r.apply(this,n.map(function(t){switch(t){case"require":returni;case"exports":returne.exports;case"module":returne;default:returni(t)}}));returnt&&(e.exports=t),e}}},e.define.amd={},e.initBaseUrls=function(e){require.tlns=e},e.initSender=function(){vart=e.require("ace/lib/event_emitter").EventEmitter,n=e.require("ace/lib/oop"),r=function(){};returnfunction(){n.implement(this,t),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(r.prototype),newr},e.main=null,e.sender=null,e.onmessage=function(e){vart=e.data;if(t.command){if(!main[t.command])thrownewError("Unknown command:"+t.command);main[t.command].apply(main,t.args)}elseif(t.init){initBaseUrls(t.tlns),require("ace/lib/es5-shim"),sender=initSender();varn=require(t.module)[t.classname];main=newn(sender)}elset.event&&sender&&sender._emit(t.event,t.data)}})(this),ace.define("ace/lib/es5-shim",["require","exports","module"],function(e,t,n){functionr(){}functioni(e){try{returnObject.defineProperty(e,"sentinel",{}),"sentinel"ine}catch(t){}}functions(e){returne=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}functiono(e){vart=typeofe;returne===null||t==="undefined"||t==="boolean"||t==="number"||t==="string"}functionu(e){vart,n,r;if(o(e))returne;n=e.valueOf;if(typeofn=="function"){t=n.call(e);if(o(t))returnt}r=e.toString;if(typeofr=="function"){t=r.call(e);if(o(t))returnt}thrownewTypeError}Function.prototype.bind||(Function.prototype.bind=function(e){vart=this;if(typeoft!="function")thrownewTypeError("Function.prototype.bind called on incompatible "+t);varn=c.call(arguments,1),i=function(){if(thisinstanceofi){varr=t.apply(this,n.concat(c.call(arguments)));returnObject(r)===r?r:this}returnt.apply(e,n.concat(c.call(arguments)))};returnt.prototype&&(r.prototype=t.prototype,i.prototype=newr,r.prototype=null),i});vara=Function.prototype.call,f=Array.prototype,l=Object.prototype,c=f.slice,h=a.bind(l.toString),p=a.bind(l.hasOwnProperty),d,v,m,g,y;if(y=p(l,"__defineGetter__"))d=a.bind(l.__defineGetter__),v=a.bind(l.__defineSetter__),m=a.bind(l.__lookupGetter__),g=a.bind(l.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){functione(e){vart=newArray(e+2);returnt[0]=t[1]=0,t}vart=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,"XXX"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){varn=this.length;e>0?e>n&&(e=n):e==void0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);varr=this.slice(e,e+t),i=c.call(arguments,2),s=i.length;if(e===n)s&&this