functionsimpleUpload(e,l,n){functiont(){if("object"==typeofn&&null!==n){if("boolean"==typeofn.forceIframe&&(U=n.forceIframe),"function"==typeofn.init&&(I=n.init),"function"==typeofn.start&&(L=n.start),"function"==typeofn.progress&&(q=n.progress),"function"==typeofn.success&&(W=n.success),"function"==typeofn.error&&(_=n.error),"function"==typeofn.cancel&&(M=n.cancel),"function"==typeofn.complete&&(D=n.complete),"function"==typeofn.finish&&(N=n.finish),"string"==typeofn.hashWorker&&""!=n.hashWorker&&(S=n.hashWorker),"function"==typeofn.hashComplete&&(z=n.hashComplete),"object"==typeofn.data&&null!==n.data)for(vareinn.data)F[e]=n.data[e];if("number"==typeofn.limit&&y(n.limit)&&n.limit>0&&(w=n.limit),"number"==typeofn.maxFileSize&&y(n.maxFileSize)&&n.maxFileSize>0&&(x=n.maxFileSize),"object"==typeofn.allowedExts&&null!==n.allowedExts)for(vareinn.allowedExts)j.push(n.allowedExts[e]);if("object"==typeofn.allowedTypes&&null!==n.allowedTypes)for(vareinn.allowedTypes)k.push(n.allowedTypes[e]);if("string"==typeofn.expect&&""!=n.expect){vart=n.expect.toLowerCase(),o=["auto","json","xml","html","script","text"];for(vareino)if(o[e]==t){E=t;break}}if("object"==typeofn.xhrFields&&null!==n.xhrFields)for(vareinn.xhrFields)T[e]=n.xhrFields[e]}if("object"==typeofl&&null!==l&&linstanceofjQuery){if(!(l.length>0))return!1;l=l.get(0)}if(!U&&window.File&&window.FileReader&&window.FileList&&window.Blob&&("object"==typeofn&&null!==n&&"object"==typeofn.files&&null!==n.files?b=n.files:"object"==typeofl&&null!==l&&"object"==typeofl.files&&null!==l.files&&(b=l.files)),("object"!=typeofl||null===l)&&null==b)return!1;"object"==typeofn&&null!==n&&"string"==typeofn.name&&""!=n.name?C=n.name.replace(/\[\s*\]/g,"[0]"):"object"==typeofl&&null!==l&&"string"==typeofl.name&&""!=l.name&&(C=l.name.replace(/\[\s*\]/g,"[0]"));varr=0;if(null!=b?b.length>0&&(r=b.length>1&&window.FormData&&$.ajaxSettings.xhr().upload?w>0&&b.length>w?w:b.length:1):""!=l.value&&(r=1),r>0){if("object"==typeofl&&null!==l){vari=$(l);J=$("<form>").hide().attr("enctype","multipart/form-data").attr("method","post").appendTo("body"),i.after(i.clone(!0).val("")).removeAttr("onchange").off().removeAttr("id").attr("name",C).appendTo(J)}for(vars=0;r>s;s++)!function(e){R[e]={state:0,hashWorker:null,xhr:null,iframe:null},A[e]={upload:{index:e,state:"init",file:null!=b?b[e]:{name:l.value.split(/(\\|\/)/g).pop()},cancel:function(){if(0==u(e))d(e,4);else{if(1!=u(e))return!1;d(e,4),null!=R[e].hashWorker&&(R[e].hashWorker.terminate(),R[e].hashWorker=null),null!=R[e].xhr&&(R[e].xhr.abort(),R[e].xhr=null),null!=R[e].iframe&&($("iframe[name=simpleUpload_iframe_"+R[e].iframe+"]").attr("src","javascript:false;"),simpleUpload.dequeueIframe(R[e].iframe),R[e].iframe=null),P(e)}return!0}}}}(s);varp=H(r);if(p!==!1){varf=r;if("number"==typeofp&&y(p)&&p>=0&&r>p){f=p;for(varm=f;r>m;m++)d(m,4)}for(varc=[],v=0;f>v;v++)X(v,A[v].upload.file)!==!1&&(c[c.length]=v);c.length>0?(B=c.length,simpleUpload.queueUpload(c,function(e){a(e)}),simpleUpload.uploadNext()):Z()}else{for(varminA)d(m,4);Z()}}}functiona(e){if(1==u(e)){varn=null;if(null!=b){if(void0==b[e]||null==b[e])returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});n=b[e]}elseif(""==l.value)returnvoidK(e,{name:"InternalError",message:"There was an error uploading the file"});returnj.length>0&&!c(j,n)?voidK(e,{name:"InvalidFileExtensionError",message:"That file format is not allowed"}):k.length>0&&!v(k,n)?voidK(e,{name:"InvalidFileTypeError",message:"That file format is not allowed"}):x>0&&!h(x,n)?voidK(e,{name:"MaxFileSizeError",message:"That file is too big"}):void(null!=S&&null!=z?o(e):i(e))}}functiono(e){if(null!=b&&void0!=b[e]&&null!=b[e]&&window.Worker){varl=b[e];if(void0!=l.size&&null!=l.size&&""!=l.size&&y(l.size)&&(l.slice||l.webkitSlice||l.mozSlice))try{varn=newWorker(S);n.addEventListener("error",function(){n.terminate(),R[e].hashWorker=null,i(e)},!1),n.addEventListener("message",function(l){if(l.data.result){vart=l.data.result;n.terminate(),R[e].h
}catch(e){returnvoidsetTimeout(function(){self.onError(e)},0)}global.document&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)},Request.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Request.prototype.onData=function(data){this.emit("data",data),this.onSuccess()},Request.prototype.onError=function(err){this.emit("error",err),this.cleanup(!0)},Request.prototype.cleanup=function(fromError){if("undefined"!=typeofthis.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=empty:this.xhr.onreadystatechange=empty,fromError)try{this.xhr.abort()}catch(e){}global.document&&deleteRequest.requests[this.index],this.xhr=null}},Request.prototype.onLoad=function(){vardata;try{varcontentType;try{contentType=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(e){}if("application/octet-stream"===contentType)data=this.xhr.response||this.xhr.responseText;elseif(this.supportsBinary)try{data=String.fromCharCode.apply(null,newUint8Array(this.xhr.response))}catch(e){for(varui8Arr=newUint8Array(this.xhr.response),dataArray=[],idx=0,length=ui8Arr.length;idx<length;idx++)dataArray.push(ui8Arr[idx]);data=String.fromCharCode.apply(null,dataArray)}elsedata=this.xhr.responseText}catch(e){this.onError(e)}null!=data&&this.onData(data)},Request.prototype.hasXDR=function(){return"undefined"!=typeofglobal.XDomainRequest&&!this.xs&&this.enablesXDR},Request.prototype.abort=function(){this.cleanup()},Request.requestsCount=0,Request.requests={},global.document&&(global.attachEvent?global.attachEvent("onunload",unloadHandler):global.addEventListener&&global.addEventListener("beforeunload",unloadHandler,!1))}).call(exports,function(){returnthis}())},function(module,exports,__webpack_require__){functionPolling(opts){varforceBase64=opts&&opts.forceBase64;hasXHR2&&!forceBase64||(this.supportsBinary=!1),Transport.call(this,opts)}varTransport=__webpack_require__(22),parseqs=__webpack_require__(32),parser=__webpack_require__(23),inherit=__webpack_require__(33),yeast=__webpack_require__(34),debug=__webpack_require__(3)("engine.io-client:polling");module.exports=Polling;varhasXHR2=function(){varXMLHttpRequest=__webpack_require__(18),xhr=newXMLHttpRequest({xdomain:!1});returnnull!=xhr.responseType}();inherit(Polling,Transport),Polling.prototype.name="polling",Polling.prototype.doOpen=function(){this.poll()},Polling.prototype.pause=function(onPause){functionpause(){debug("paused"),self.readyState="paused",onPause()}varself=this;if(this.readyState="pausing",this.polling||!this.writable){vartotal=0;this.polling&&(debug("we are currently polling - waiting to pause"),total++,this.once("pollComplete",function(){debug("pre-pause polling complete"),--total||pause()})),this.writable||(debug("we are currently writing - waiting to pause"),total++,this.once("drain",function(){debug("pre-pause writing complete"),--total||pause()}))}elsepause()},Polling.prototype.poll=function(){debug("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Polling.prototype.onData=function(data){varself=this;debug("polling got data %s",data);varcallback=function(packet,index,total){return"opening"===self.readyState&&self.onOpen(),"close"===packet.type?(self.onClose(),!1):voidself.onPacket(packet)};parser.decodePayload(data,this.socket.binaryType,callback),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():debug('ignoring poll - transport state "%s"',this.readyState))},Polling.prototype.doClose=function(){functionclose(){debug("writing close packet"),self.write([{type:"close"}])}varself=this;"open"===this.readyState?(debug("transport open - closing"),close()):(debug("transport not open - deferring close"),this.once("open",close))},Polling.prototype.write=function(packets){varself=this;this.writable=!1;varcallbackfn=function(){self.writable=!0,self.emit("drain")};parser.encodePayload(packets,this.supportsBinary,function(data){self.doWrite(data,callbackfn)})},Polling.prototype.uri=function(){varquery=this.query||{},schema=this.secure?"https"
}}).call(exports,function(){returnthis}())},function(module,exports,__webpack_require__){"use strict";functionSocket(io,nsp,opts){this.io=io,this.nsp=nsp,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,opts&&opts.query&&(this.query=opts.query),this.io.autoConnect&&this.open()}varparser=__webpack_require__(6),Emitter=__webpack_require__(41),toArray=__webpack_require__(42),on=__webpack_require__(43),bind=__webpack_require__(44),debug=__webpack_require__(3)("socket.io-client:socket"),hasBin=__webpack_require__(45);module.exports=exports=Socket;varevents={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},emit=Emitter.prototype.emit;Emitter(Socket.prototype),Socket.prototype.subEvents=function(){if(!this.subs){vario=this.io;this.subs=[on(io,"open",bind(this,"onopen")),on(io,"packet",bind(this,"onpacket")),on(io,"close",bind(this,"onclose"))]}},Socket.prototype.open=Socket.prototype.connect=function(){returnthis.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},Socket.prototype.send=function(){varargs=toArray(arguments);returnargs.unshift("message"),this.emit.apply(this,args),this},Socket.prototype.emit=function(ev){if(events.hasOwnProperty(ev))returnemit.apply(this,arguments),this;varargs=toArray(arguments),parserType=parser.EVENT;hasBin(args)&&(parserType=parser.BINARY_EVENT);varpacket={type:parserType,data:args};returnpacket.options={},packet.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeofargs[args.length-1]&&(debug("emitting packet with ack id %d",this.ids),this.acks[this.ids]=args.pop(),packet.id=this.ids++),this.connected?this.packet(packet):this.sendBuffer.push(packet),deletethis.flags,this},Socket.prototype.packet=function(packet){packet.nsp=this.nsp,this.io.packet(packet)},Socket.prototype.onopen=function(){debug("transport is open - connecting"),"/"!==this.nsp&&(this.query?this.packet({type:parser.CONNECT,query:this.query}):this.packet({type:parser.CONNECT}))},Socket.prototype.onclose=function(reason){debug("close (%s)",reason),this.connected=!1,this.disconnected=!0,deletethis.id,this.emit("disconnect",reason)},Socket.prototype.onpacket=function(packet){if(packet.nsp===this.nsp)switch(packet.type){caseparser.CONNECT:this.onconnect();break;caseparser.EVENT:this.onevent(packet);break;caseparser.BINARY_EVENT:this.onevent(packet);break;caseparser.ACK:this.onack(packet);break;caseparser.BINARY_ACK:this.onack(packet);break;caseparser.DISCONNECT:this.ondisconnect();break;caseparser.ERROR:this.emit("error",packet.data)}},Socket.prototype.onevent=function(packet){varargs=packet.data||[];debug("emitting event %j",args),null!=packet.id&&(debug("attaching ack callback to event"),args.push(this.ack(packet.id))),this.connected?emit.apply(this,args):this.receiveBuffer.push(args)},Socket.prototype.ack=function(id){varself=this,sent=!1;returnfunction(){if(!sent){sent=!0;varargs=toArray(arguments);debug("sending ack %j",args);vartype=hasBin(args)?parser.BINARY_ACK:parser.ACK;self.packet({type:type,id:id,data:args})}}},Socket.prototype.onack=function(packet){varack=this.acks[packet.id];"function"==typeofack?(debug("calling ack %s with %j",packet.id,packet.data),ack.apply(this,packet.data),deletethis.acks[packet.id]):debug("bad ack %s",packet.id)},Socket.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},Socket.prototype.emitBuffered=function(){vari;for(i=0;i<this.receiveBuffer.length;i++)emit.apply(this,this.receiveBuffer[i]);for(this.receiveBuffer=[],i=0;i<this.sendBuffer.length;i++)this.packet(this.sendBuffer[i]);this.sendBuffer=[]},Socket.prototype.ondisconnect=function(){debug("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},Socket.prototype.destroy=function(){if(this.subs){for(vari=0;i<this.subs.length;i++)thi
if(r&&!a(r).length&&(l=!1),g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(c(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}elsel=!1;l&&(g.preventDefault&&b.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:e}),a.smoothScroll(m))};returnnull!==b.delegateSelector?this.off("click.smoothscroll",b.delegateSelector).on("click.smoothscroll",b.delegateSelector,e):this.off("click.smoothscroll").on("click.smoothscroll",e),this}}),a.smoothScroll=function(b,d){if("options"===b&&"object"==typeofd)returna.extend(c,d);vare,f,g,h,i,j=0,k="offset",l="scrollTop",m={},n={};"number"==typeofb?(e=a.extend({link:null},a.fn.smoothScroll.defaults,c),g=b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,b||{},c),e.scrollElement&&(k="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative"))),l="left"===e.direction?"scrollLeft":l,e.scrollElement?(f=e.scrollElement,/^(?:HTML|BODY)$/.test(f[0].nodeName)||(j=f[l]())):f=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(f,e),g="number"==typeofb?b:d||a(e.scrollTarget)[k]()&&a(e.scrollTarget)[k]()[e.direction]||0,m[l]=g+j+e.offset,h=e.speed,"auto"===h&&(i=Math.abs(m[l]-f[l]()),h=i/e.autoCoefficient),n={duration:h,easing:e.easing,complete:function(){e.afterScroll.call(e.link,e)}},e.step&&(n.step=e.step),f.length?f.stop().animate(m,n):e.afterScroll.call(e.link,e)},a.smoothScroll.version=b,a.smoothScroll.filterPath=function(a){returna=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},a.fn.smoothScroll.defaults=d}),simpleUpload.maxUploads=10,simpleUpload.activeUploads=0,simpleUpload.uploads=[],simpleUpload.iframes={},simpleUpload.iframeCount=0,simpleUpload.queueUpload=function(e,l){simpleUpload.uploads[simpleUpload.uploads.length]={uploads:e,callback:l}},simpleUpload.uploadNext=function(){if(simpleUpload.uploads.length>0&&simpleUpload.activeUploads<simpleUpload.maxUploads){vare=simpleUpload.uploads[0],l=e.callback,n=e.uploads.splice(0,1)[0];0==e.uploads.length&&simpleUpload.uploads.splice(0,1),simpleUpload.activeUploads++,l(n),simpleUpload.uploadNext()}},simpleUpload.queueIframe=function(e){for(varl=0;0==l||linsimpleUpload.iframes;)l=Math.floor(999999999*Math.random()+1);returnsimpleUpload.iframes[l]=e,simpleUpload.iframeCount++,$("body").append('<iframe name="simpleUpload_iframe_'+l+'" style="display: none;"></iframe>'),l},simpleUpload.dequeueIframe=function(e){einsimpleUpload.iframes&&($("iframe[name=simpleUpload_iframe_"+e+"]").remove(),deletesimpleUpload.iframes[e],simpleUpload.iframeCount--)},simpleUpload.convertDataType=function(e,l,n){vart="auto";if("auto"==e){if("string"==typeofl&&""!=l){vara=l.toLowerCase(),o=["json","xml","html","script","text"];for(varrino)if(o[r]==a){t=a;break}}}elset=e;if("auto"==t)return"undefined"==typeofn?"":"object"==typeofn?n:String(n);if("json"==t){if("undefined"==typeofn||null===n)returnnull;if("object"==typeofn)returnn;if("string"==typeofn)try{return$.parseJSON(n)}catch(i){return!1}return!1}if("xml"==t){if("undefined"==typeofn||null===n)returnnull;if("string"==typeofn)try{return$.parseXML(n)}catch(i){return!1}return!1}if("script"==t){if("undefined"==typeofn)return"";if("string"==typeofn)try{return$.globalEval(n),n}catch(i){return!1}return!1}return"undefined"==typeofn?"":String(n)},simpleUpload.iframeCallback=function(e){if("object"==typeofe&&null!==e){varl=e.id;if(linsimpleUpload.iframes){varn=simpleUpload.convertDataType(simpleUpload.iframes[l].expect,e.type,e.data);n!==!1?simpleUpload.iframes[l].complete(n):simpleUpload.iframes[l].error("Could not get response from server")}}},simpleUpload.postMessageCallback=function(e){try{varl=e.message?"message":"data",n=e[l];if("string"==typeofn&&""!=n&&(n=$.parseJSON(n),"object"==typeofn&&null!==n&&"string"==typeofn.namespace&&"simpleUpload"==n.namespace)){vart=n.id;if(tinsimpleUpload.iframes&&e.origin===simpleUpload.iframes[t].origin){vara=simpleUpload.convertDataType(simpleUpload.iframes[t].expect,n.type,n.data);a!==!1?simpleUpload.ifram
this.setState("dragReady")},this.onMouseDrag=function(e){vart=this.editor.container;if(s.isIE&&"dragReady"==this.state){varn=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){varn=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;vart=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(1===i&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();varo=e.domEvent.target||e.domEvent.srcElement;if("unselectable"ino&&(o.unselectable="on"),t.getDragDelay()){if(s.isWebKit){this.cancelDrag=!0;varu=t.container;u.draggable=!0}this.setState("dragWait")}elsethis.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(f.prototype),t.DragdropHandler=f}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";varr=e("./dom");t.get=function(e,t){varn=newXMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){varn=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){vart=document.createElement("a");returnt.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,n){"use strict";varr={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});varn=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeoft&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(varo=0;o<n.length&&(n[o](t,this),!t.propagationStopped);o++);returnr&&!t.defaultPrevented?r(t,this):void0}},r._signal=function(e,t){varn=(this._eventRegistry||{})[e];if(n){n=n.slice();for(varr=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){varn=this;t&&this.addEventListener(e,functionr(){n.removeEventListener(e,r),t.apply(null,arguments)})},r.setDefaultHandler=function(e,t){varn=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){varr=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);vars=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){varn=this._defaultHandlers;if(n){varr=n._disabled_[e];if(n[e]==t){n[e];r&&this.setDefaultHandler(e,r.pop())}elseif(r){vars=r.indexOf(t);s!=-1&&r.splice(s,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};varr=this._eventRegistry[e];returnr||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};varn=this._eventRegistry[e];if(n){varr=n.indexOf(t);r!==-1&&n.splice(r,1)}},r.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=r}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"no use strict";functiono(e){"undefined"!=typeofconsole&&console.warn&&console.warn.apply(console,arguments)}functionu(e,t){varn=newError(e);n.data=t,"object"==typeofconsole&&console.error&&console.error(n),setTimeout(function(){thrown})}varr=e("./oop"),i=e("./event_emitter").EventEmitter,s={setOptions:function(e){Object.keys(e).forEach(function(t){this.setOption(t,e[t])},this)},getOptions:function(e){vart={};returne?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach(function(e){t[e]=this.getOption(e)}
t=n.shift())}elsevarn=[];varr=t||"start",s=this.states[r];s||(r="start",s=this.states[r]);varo=this.matchMappings[r],u=this.regExps[r];u.lastIndex=0;for(vara,f=[],l=0,c=0,h={type:null,value:""};a=u.exec(e);){varp=o.defaultToken,d=null,v=a[0],m=u.lastIndex;if(m-v.length>l){varg=e.substring(l,m-v.length);h.type==p?h.value+=g:(h.type&&f.push(h),h={type:p,value:g})}for(vary=0;y<a.length-2;y++)if(void0!==a[y+1]){d=s[o[y]],p=d.onMatch?d.onMatch(v,r,n):d.token,d.next&&(r="string"==typeofd.next?d.next:d.next(r,n),s=this.states[r],s||(this.reportError("state doesn't exist",r),r="start",s=this.states[r]),o=this.matchMappings[r],l=m,u=this.regExps[r],u.lastIndex=m);break}if(v)if("string"==typeofp)d&&d.merge===!1||h.type!==p?(h.type&&f.push(h),h={type:p,value:v}):h.value+=v;elseif(p){h.type&&f.push(h),h={type:null,value:""};for(vary=0;y<p.length;y++)f.push(p[y])}if(l==e.length)break;if(l=m,c++>i){for(c>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});l<e.length;)h.type&&f.push(h),h={value:e.substring(l,l+=2e3),type:"overflow"};r="start",n=[];break}}returnh.type&&f.push(h),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:f,state:n.length?n:r}},this.reportError=r.reportError}).call(s.prototype),t.Tokenizer=s}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,n){"use strict";varr=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(varnine){for(varr=e[n],i=0;i<r.length;i++){vars=r[i];(s.next||s.onMatch)&&("string"==typeofs.next&&0!==s.next.indexOf(t)&&(s.next=t+s.next),s.nextState&&0!==s.nextState.indexOf(t)&&(s.nextState=t+s.nextState))}this.$rules[t+n]=r}elsefor(varnine)this.$rules[n]=e[n]},this.getRules=function(){returnthis.$rules},this.embedRules=function(e,t,n,i,s){varo="function"==typeofe?(newe).getRules():e;if(i)for(varu=0;u<i.length;u++)i[u]=t+i[u];else{i=[];for(varaino)i.push(t+a)}if(this.addRules(o,t),n)for(varf=Array.prototype[s?"push":"unshift"],u=0;u<i.length;u++)f.apply(this.$rules[i[u]],r.deepCopy(n));this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){returnthis.$embeds};vare=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){returnt.shift(),t.shift()||"start"};this.normalizeRules=function(){functioni(s){varo=r[s];o.processed=!0;for(varu=0;u<o.length;u++){vara=o[u],f=null;Array.isArray(a)&&(f=a,a={}),!a.regex&&a.start&&(a.regex=a.start,a.next||(a.next=[]),a.next.push({defaultToken:a.token},{token:a.token+".end",regex:a.end||a.start,next:"pop"}),a.token=a.token+".start",a.push=!0);varl=a.next||a.push;if(l&&Array.isArray(l)){varc=a.stateName;c||(c=a.token,"string"!=typeofc&&(c=c[0]||""),r[c]&&(c+=n++)),r[c]=l,a.next=c,i(c)}else"pop"==l&&(a.next=t);if(a.push&&(a.nextState=a.next||a.push,a.next=e,deletea.push),a.rules)for(varhina.rules)r[h]?r[h].push&&r[h].push.apply(r[h],a.rules[h]):r[h]=a.rules[h];varp="string"==typeofa?a:"string"==typeofa.include?a.include:"";if(p&&(f=r[p]),f){vard=[u,1].concat(f);a.noEscape&&(d=d.filter(function(e){return!e.next})),o.splice.apply(o,d),u--}a.keywordMap&&(a.token=this.createKeywordMapper(a.keywordMap,a.defaultToken||"text",a.caseInsensitive),deletea.defaultToken)}}varn=0,r=this.$rules;Object.keys(r).forEach(i,this)},this.createKeywordMapper=function(e,t,n,r){vari=Object.create(null);returnObject.keys(e).forEach(function(t){vars=e[t];n&&(s=s.toLowerCase());for(varo=s.split(r||"|"),u=o.length;u--;)i[o[u]]=t}),Object.getPrototypeOf(i)&&(i.__proto__=null),this.$keywordList=Object.keys(i),e=null,n?function(e){returni[e.toLowerCase()]||t}:function(e){returni[e]||t}},this.getKeywords=function(){returnthis.$keywords}}).call(i.prototype),t.TextHighlightRules=i}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,n){"use strict";varr=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void0){casethis.$behaviours
!r)returnnull;for(vars,o,i={end:{column:0}},u=0;u<r.folds.length;u++){o=r.folds[u];vara=o.range.compareEnd(e,t);if(a==-1){s=this.getLine(o.start.row).substring(i.end.column,o.start.column);break}if(0===a)returnnull;i=o}returns||(s=this.getLine(o.start.row).substring(i.end.column)),n==-1?s.substring(0,t-i.end.column):1==n?s.substring(t-i.end.column):s},this.getFoldLine=function(e,t){varn=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),r==-1&&(r=0),r;r<n.length;r++){vari=n[r];if(i.start.row<=e&&i.end.row>=e)returni;if(i.end.row>e)returnnull}returnnull},this.getNextFoldLine=function(e,t){varn=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),r==-1&&(r=0),r;r<n.length;r++){vari=n[r];if(i.end.row>=e)returni}returnnull},this.getFoldedRowCount=function(e,t){for(varn=this.$foldData,r=t-e+1,i=0;i<n.length;i++){vars=n[i],o=s.end.row,u=s.start.row;if(o>=t){u<t&&(u>=e?r-=t-u:r=0);break}o>=e&&(r-=u>=e?o-u:o-e+1)}returnr},this.$addFoldLine=function(e){returnthis.$foldData.push(e),this.$foldData.sort(function(e,t){returne.start.row-t.start.row}),e},this.addFold=function(e,t){varo,n=this.$foldData,r=!1;einstanceofs?o=e:(o=news(t,e),o.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(o.range);varu=o.start.row,a=o.start.column,f=o.end.row,l=o.end.column;if(u<f||u==f&&a<=l-2){varc=this.getFoldAt(u,a,1),h=this.getFoldAt(f,l,-1);if(c&&h==c)returnc.addSubFold(o);c&&!c.range.isStart(u,a)&&this.removeFold(c),h&&!h.range.isEnd(f,l)&&this.removeFold(h);varp=this.getFoldsInRange(o.range);p.length>0&&(this.removeFolds(p),p.forEach(function(e){o.addSubFold(e)}));for(vard=0;d<n.length;d++){varv=n[d];if(f==v.start.row){v.addFold(o),r=!0;break}if(u==v.end.row){if(v.addFold(o),r=!0,!o.sameRow){varm=n[d+1];if(m&&m.start.row==f){v.merge(m);break}}break}if(f<=v.start.row)break}returnr||(v=this.$addFoldLine(newi(this.$foldData,o))),this.$useWrapMode?this.$updateWrapData(v.start.row,v.start.row):this.$updateRowLengthCache(v.start.row,v.start.row),this.$modified=!0,this._signal("changeFold",{data:o,action:"add"}),o}thrownewError("The range has to be at least 2 characters width")},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){vart=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,s=t.folds;if(1==s.length)i.splice(i.indexOf(t),1);elseif(t.range.isEnd(e.end.row,e.end.column))s.pop(),t.end.row=s[s.length-1].end.row,t.end.column=s[s.length-1].end.column;elseif(t.range.isStart(e.start.row,e.start.column))s.shift(),t.start.row=s[0].start.row,t.start.column=s[0].start.column;elseif(e.sameRow)s.splice(s.indexOf(e),1);else{varo=t.split(e.start.row,e.start.column);s=o.folds,s.shift(),o.start.row=s[0].start.row,o.start.column=s[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(vart=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach(function(t){e.restoreRange(t),this.addFold(t)},this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){varn,i;if(null==e?(n=newr(0,0,this.getLength(),0),t=!0):n="number"==typeofe?newr(e,0,e,this.getLine(e).length):"row"ine?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);elsefor(vars=i;s.length;)this.expandFolds(s),s=this.getFoldsInRangeList(n);if(i.length)returni},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){varn=this.getFoldLine(e,t);returnn?n.end.row:e},this.getRowFoldStart=function(e,t){varn=this.getFoldLine(e,t);returnn?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);vars=this.doc,o="";returne.walk(function(e,t,n,u){if(!(t<r
vars=t[e],h=n?n(s):s,s=r||0!==s?s:0;if(o&&h===h){for(varp=l.length;p--;)if(l[p]===h)continuet;n&&l.push(h),f.push(s)}elseu(l,h,r)||(l!==f&&l.push(h),f.push(s))}returnf}functionmr(t,n,r,e){for(varu=t.length,i=e?u:-1;(e?i--:++i<u)&&n(t[i],i,t););returnr?vr(t,e?0:i,e?i+1:u):vr(t,e?i+1:0,e?u:i)}functionAr(t,n){varr=t;returnrinstanceofDt&&(r=r.value()),h(n,function(t,n){returnn.func.apply(n.thisArg,s([t],n.args))},r)}functionkr(t,n,r){for(vare=-1,u=t.length;++e<u;)vari=i?s(wn(i,t[e],n,r),wn(t[e],i,n,r)):t[e];returni&&i.length?wr(i,n,r):[]}functionEr(t,n,r){for(vare=-1,u=t.length,i=n.length,o={};++e<u;)r(o,t[e],e<i?n[e]:F);returno}functionOr(t){returnau(t)?t:[]}functionSr(t){returnnf(t)?t:vo(t)}functionIr(t,n,r){vare=t.length;returnr=r===F?e:r,!n&&r>=e?t:vr(t,n,r)}functionRr(t,n){if(n)returnt.slice();varr=t.length,r=pi?pi(r):newt.constructor(r);returnt.copy(r),r}functionzr(t){varn=newt.constructor(t.byteLength);returnnewhi(n).set(newhi(t)),n}functionWr(t,n){returnnewt.constructor(n?zr(t.buffer):t.buffer,t.byteOffset,t.length)}functionBr(t,n){if(t!==n){varr=t!==F,e=null===t,u=t===t,i=bu(t),o=n!==F,f=null===n,c=n===n,a=bu(n);if(!f&&!a&&!i&&t>n||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return1;if(!e&&!i&&!a&&t<n||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return0}functionLr(t,n,r,e){varu=-1,i=t.length,o=r.length,f=-1,c=n.length,a=zi(i-o,0),l=Zu(c+a);for(e=!e;++f<c;)l[f]=n[f];for(;++u<o;)(e||u<i)&&(l[r[u]]=t[u]);for(;a--;)l[f++]=t[u++];returnl}functionUr(t,n,r,e){varu=-1,i=t.length,o=-1,f=r.length,c=-1,a=n.length,l=zi(i-f,0),s=Zu(l+a);for(e=!e;++u<l;)s[u]=t[u];for(l=u;++c<a;)s[l+c]=n[c];for(;++o<f;)(e||u<i)&&(s[l+r[o]]=t[u++]);returns}functionCr(t,n){varr=-1,e=t.length;for(n||(n=Zu(e));++r<e;)n[r]=t[r];returnn}functionMr(t,n,r,e){varu=!r;r||(r={});for(vari=-1,o=n.length;++i<o;){varf=n[i],c=e?e(r[f],t[f],f,r,t):F;c===F&&(c=t[f]),u?vn(r,f,c):sn(r,f,c)}returnr}functionDr(t,n){returnMr(t,ao(t),n)}functionTr(t,n){returnfunction(r,u){vari=nf(r)?e:pn,o=n?n():{};returni(r,t,_e(u,2),o)}}function$r(t){returnlr(function(n,r){vare=-1,u=r.length,i=1<u?r[u-1]:F,o=2<u?r[2]:F,i=3<t.length&&"function"==typeofi?(u--,i):F;for(o&&Ae(r[0],r[1],o)&&(i=3>u?F:i,u=1),n=Ju(n);++e<u;)(o=r[e])&&t(n,o,e,i);returnn})}functionFr(t,n){returnfunction(r,e){if(null==r)returnr;if(!cu(r))returnt(r,e);for(varu=r.length,i=n?u:-1,o=Ju(r);(n?i--:++i<u)&&!1!==e(o[i],i,o););returnr}}functionNr(t){returnfunction(n,r,e){varu=-1,i=Ju(n);e=e(n);for(varo=e.length;o--;){varf=e[t?o:++u];if(!1===r(i[f],f,i))break}returnn}}functionPr(t,n,r){functione(){return(this&&this!==Pt&&thisinstanceofe?i:t).apply(u?r:this,arguments)}varu=1&n,i=Vr(t);returne}functionZr(t){returnfunction(n){n=Eu(n);varr=Wt.test(n)?$(n):F,e=r?r[0]:n.charAt(0);returnn=r?Ir(r,1).join(""):n.slice(1),e[t]()+n}}functionqr(t){returnfunction(n){returnh(Uu(Lu(n).replace(St,"")),t,"")}}functionVr(t){returnfunction(){varn=arguments;switch(n.length){case0:returnnewt;case1:returnnewt(n[0]);case2:returnnewt(n[0],n[1]);case3:returnnewt(n[0],n[1],n[2]);case4:returnnewt(n[0],n[1],n[2],n[3]);case5:returnnewt(n[0],n[1],n[2],n[3],n[4]);case6:returnnewt(n[0],n[1],n[2],n[3],n[4],n[5]);case7:returnnewt(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}varr=Xi(t.prototype),n=t.apply(r,n);return_u(n)?n:r}}functionKr(t,n,e){functionu(){for(varo=arguments.length,f=Zu(o),c=o,a=pe(u);c--;)f[c]=arguments[c];returnc=3>o&&f[0]!==a&&f[o-1]!==a?[]:C(f,a),o-=c.length,o<e?ue(t,n,Yr,u.placeholder,F,f,c,F,F,e-o):r(this&&this!==Pt&&thisinstanceofu?i:t,this,f)}vari=Vr(t);returnu}functionGr(t){returnfunction(n,r,e){varu=Ju(n);if(!cu(n)){vari=_e(r,3);n=Iu(n),r=function(t){returni(u[t],t,u)}}returnr=t(n,r,e),-1<r?u[i?n[r]:r]:F}}functionJr(t){returnle(function(n){varr=n.length,e=r,u=Mt.prototype.thru;for(t&&n.reverse();e--;){vari=n[e];if("function"!=typeofi)thrownewQu("Expected a function");if(u&&!o&&"wrapper"==he(i))varo=newMt([],(!0))}for(e=o?e:r;++e<r;)vari=n[e],u=he(i),f="wrapper"==u?co(i):F,o=f&&Ee(f[0])&&424==f[1]&&!f
vare=-1,u=[],i=t.length;for(n=_e(n,3);++e<i;){varo=t[e];n(o,e,t)&&(r.push(o),u.push(e))}returnfr(t,u),r},Ot.rest=function(t,n){if("function"!=typeoft)thrownewQu("Expected a function");returnn=n===F?n:wu(n),lr(t,n)},Ot.reverse=qe,Ot.sampleSize=function(t,n,r){returnn=(r?Ae(t,n,r):n===F)?1:wu(n),(nf(t)?fn:hr)(t,n)},Ot.set=function(t,n,r){returnnull==t?t:pr(t,n,r)},Ot.setWith=function(t,n,r,e){returne="function"==typeofe?e:F,null==t?t:pr(t,n,r,e)},Ot.shuffle=function(t){return(nf(t)?cn:_r)(t)},Ot.slice=function(t,n,r){vare=t?t.length:0;returne?(r&&"number"!=typeofr&&Ae(t,n,r)?(n=0,r=e):(n=null==n?0:wu(n),r=r===F?e:wu(r)),vr(t,n,r)):[]},Ot.sortBy=No,Ot.sortedUniq=function(t){returnt&&t.length?br(t):[]},Ot.sortedUniqBy=function(t,n){returnt&&t.length?br(t,_e(n,2)):[]},Ot.split=function(t,n,r){returnr&&"number"!=typeofr&&Ae(t,n,r)&&(n=r=F),r=r===F?4294967295:r>>>0,r?(t=Eu(t))&&("string"==typeofn||null!=n&&!ff(n))&&(n=jr(n),!n&&Wt.test(t))?Ir($(t),0,r):t.split(n,r):[]},Ot.spread=function(t,n){if("function"!=typeoft)thrownewQu("Expected a function");returnn=n===F?0:zi(wu(n),0),lr(function(e){varu=e[n];returne=Ir(e,0,n),u&&s(e,u),r(t,this,e)})},Ot.tail=function(t){varn=t?t.length:0;returnn?vr(t,1,n):[]},Ot.take=function(t,n,r){returnt&&t.length?(n=r||n===F?1:wu(n),vr(t,0,0>n?0:n)):[]},Ot.takeRight=function(t,n,r){vare=t?t.length:0;returne?(n=r||n===F?1:wu(n),n=e-n,vr(t,0>n?0:n,e)):[]},Ot.takeRightWhile=function(t,n){returnt&&t.length?mr(t,_e(n,3),!1,!0):[]},Ot.takeWhile=function(t,n){returnt&&t.length?mr(t,_e(n,3)):[]},Ot.tap=function(t,n){returnn(t),t},Ot.throttle=function(t,n,r){vare=!0,u=!0;if("function"!=typeoft)thrownewQu("Expected a function");return_u(r)&&(e="leading"inr?!!r.leading:e,u="trailing"inr?!!r.trailing:u),uu(t,n,{leading:e,maxWait:n,trailing:u})},Ot.thru=Je,Ot.toArray=xu,Ot.toPairs=Ef,Ot.toPairsIn=Of,Ot.toPath=function(t){returnnf(t)?l(t,Ue):bu(t)?[t]:Cr(vo(t))},Ot.toPlainObject=ku,Ot.transform=function(t,n,r){vare=nf(t),i=e||ef(t)||af(t);if(n=_e(n,4),null==r){varo=t&&t.constructor;r=i?e?newo:[]:_u(t)&&su(o)?Xi(_i(t)):{}}return(i?u:On)(t,function(t,e,u){returnn(r,t,e,u)}),r},Ot.unary=function(t){returntu(t,1)},Ot.union=ko,Ot.unionBy=Eo,Ot.unionWith=Oo,Ot.uniq=function(t){returnt&&t.length?wr(t):[]},Ot.uniqBy=function(t,n){returnt&&t.length?wr(t,_e(n,2)):[]},Ot.uniqWith=function(t,n){returnt&&t.length?wr(t,F,n):[]},Ot.unset=function(t,n){varr;if(null==t)r=!0;else{r=t;vare=n,e=ke(e,r)?[e]:Sr(e);r=ze(r,e),e=Ue(Pe(e)),r=!(null!=r&&ui.call(r,e))||deleter[e]}returnr},Ot.unzip=Ve,Ot.unzipWith=Ke,Ot.update=function(t,n,r){returnnull==t?t:pr(t,n,("function"==typeofr?r:Mu)(Rn(t,n)),void0)},Ot.updateWith=function(t,n,r,e){returne="function"==typeofe?e:F,null!=t&&(t=pr(t,n,("function"==typeofr?r:Mu)(Rn(t,n)),e)),t},Ot.values=Wu,Ot.valuesIn=function(t){returnnull==t?[]:I(t,Ru(t))},Ot.without=So,Ot.words=Uu,Ot.wrap=function(t,n){returnn=null==n?Mu:n,Jo(n,t)},Ot.xor=Io,Ot.xorBy=Ro,Ot.xorWith=zo,Ot.zip=Wo,Ot.zipObject=function(t,n){returnEr(t||[],n||[],sn)},Ot.zipObjectDeep=function(t,n){returnEr(t||[],n||[],pr)},Ot.zipWith=Bo,Ot.entries=Ef,Ot.entriesIn=Of,Ot.extend=pf,Ot.extendWith=_f,Tu(Ot,Ot),Ot.add=Kf,Ot.attempt=Cf,Ot.camelCase=Sf,Ot.capitalize=Bu,Ot.ceil=Gf,Ot.clamp=function(t,n,r){returnr===F&&(r=n,n=F),r!==F&&(r=Au(r),r=r===r?r:0),n!==F&&(n=Au(n),n=n===n?n:0),dn(Au(t),n,r)},Ot.clone=function(t){returnyn(t,!1,!0)},Ot.cloneDeep=function(t){returnyn(t,!0,!0)},Ot.cloneDeepWith=function(t,n){returnyn(t,!0,!0,n)},Ot.cloneWith=function(t,n){returnyn(t,!1,!0,n)},Ot.conformsTo=function(t,n){returnnull==n||xn(t,n,Iu(n))},Ot.deburr=Lu,Ot.defaultTo=function(t,n){returnnull==t||t!==t?n:t},Ot.divide=Jf,Ot.endsWith=function(t,n,r){t=Eu(t),n=jr(n);vare=t.length,e=r=r===F?e:dn(wu(r),0,e);returnr-=n.length,0<=r&&t.slice(r,e)==n},Ot.eq=fu,Ot.escape=function(t){return(t=Eu(t))&&H.test(t)?t.replace(J,rn):t},Ot.escapeRegExp=function(t){return(t=Eu(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Ot.every=function(t,n,r){vare=nf(t)?o:mn;returnr&&Ae(t,n,r)&&(n=F),e(t,_e(n,3))},Ot