iobroker.admin 7.7.0 → 7.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -8
- package/adminWww/assets/{AdapterUpdateDialog-n1ctcGKb.js → AdapterUpdateDialog-DHGhgEEq.js} +1 -1
- package/adminWww/assets/{Adapters-Byzq4dfE.js → Adapters-CgSIajcF.js} +2 -2
- package/adminWww/assets/{Config-BufFy_Z3.js → Config-BQSl4bfA.js} +1 -1
- package/adminWww/assets/{CustomModal-ASkCycZn.js → CustomModal-DNMTLv4y.js} +1 -1
- package/adminWww/assets/{CustomTab-D5ZlRfQA.js → CustomTab-Bl8S8QZW.js} +1 -1
- package/adminWww/assets/{DefaultPropsProvider-DxsXuIyE.js → DefaultPropsProvider-u5xB1Fxz.js} +1 -1
- package/adminWww/assets/{EasyMode-CTuK0TL7.js → EasyMode-xDbqrply.js} +1 -1
- package/adminWww/assets/{Enums-C5pau2hV.js → Enums-BSICIhWI.js} +1 -1
- package/adminWww/assets/{Fields-Cj6QGc97.js → Fields-C3JkTmfP.js} +1 -1
- package/adminWww/assets/{Files-DJmRnmH6.js → Files-DK85-COY.js} +2 -2
- package/adminWww/assets/{FilledInput-CKswrNd5.js → FilledInput-CysG4ax_.js} +1 -1
- package/adminWww/assets/{Hosts-B5BgwMoO.js → Hosts-qIsB4Gub.js} +2 -2
- package/adminWww/assets/Instances-BA_DCzs8.js +2 -0
- package/adminWww/assets/{Intro-Do7uao_1.js → Intro-00oh6SLw.js} +1 -1
- package/adminWww/assets/{Logs-DK0nfkio.js → Logs-Cvpgh-zN.js} +1 -1
- package/adminWww/assets/{Objects-9W6F_Gl6.js → Objects-Dp71iotS.js} +3 -3
- package/adminWww/assets/{State-CdKRELiQ.js → State-BqfD2ABf.js} +1 -1
- package/adminWww/assets/{Tabs-BJ1rL35Z.js → Tabs-sxfWgN0b.js} +2 -2
- package/adminWww/assets/{Users-7TI-QdQA.js → Users-CDcWqTfZ.js} +1 -1
- package/adminWww/assets/ace-BG5WYul1.js +985 -0
- package/adminWww/assets/{blueGrey-D-KQaGde.js → blueGrey-DYsiMDOn.js} +1 -1
- package/adminWww/assets/{bootstrap-BX2s0oWJ.js → bootstrap-BYQTdf9r.js} +10 -10
- package/adminWww/assets/{createSvgIcon-DuKI6CvW.js → createSvgIcon-Bh3KWtyp.js} +1 -1
- package/adminWww/assets/{emotion-react.browser.esm-DApPKwaj.js → emotion-react.browser.esm-BCDt9NrH.js} +1 -1
- package/adminWww/assets/{emotion-styled.browser.esm-Dc05hmeu.js → emotion-styled.browser.esm-CyFqGgyG.js} +1 -1
- package/adminWww/assets/{emotion-utils.browser.esm-DOjH6Olm.js → emotion-utils.browser.esm-pglN4_eI.js} +1 -1
- package/adminWww/assets/{geosearch.module-CWfRtxrN.js → geosearch.module-DH4NhiPj.js} +1 -1
- package/adminWww/assets/hostInit-fzxL8JAx.js +1 -1
- package/adminWww/assets/{iconBase-CgxZ5MMC.js → iconBase-C3vi24ZE.js} +1 -1
- package/adminWww/assets/{index-BmWdDCX_.js → index-B1ITPhEY.js} +2 -2
- package/adminWww/assets/{index-D7Rlw-5R.js → index-D--ojYan.js} +1 -1
- package/adminWww/assets/{index-nYRrWzRm.js → index-D3IAEXXP.js} +1 -1
- package/adminWww/assets/{index-HOidq_rM.js → index-DPDg2YA0.js} +1 -1
- package/adminWww/assets/{index-Bsv_DXxB.js → index-DTGUg51P.js} +1 -1
- package/adminWww/assets/{index-BP5kWU3L.js → index-Qa7Q_Dz5.js} +1 -1
- package/adminWww/assets/{index-4ywCzYtt.js → index-qcIeekse.js} +2 -2
- package/adminWww/assets/{index-gHyOgbGJ.js → index-rKfs-rCa.js} +1 -1
- package/adminWww/assets/{index-CL669NIb.js → index-wN1ZlPSW.js} +2 -2
- package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js +1 -0
- package/adminWww/assets/{iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js → iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js} +1 -1
- package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js +1 -0
- package/adminWww/assets/{iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js → iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js} +1 -1
- package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js +5 -0
- package/adminWww/assets/{sentry-CVjuw0L7.js → sentry-H_UdJ2zx.js} +1 -1
- package/adminWww/assets/{zh-cn-Dv2ND1_P.js → zh-cn-vvAC9zpl.js} +3 -3
- package/adminWww/index.html +2 -2
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/remoteEntry.js +2 -2
- package/io-package.json +27 -27
- package/package.json +9 -9
- package/adminWww/assets/Instances-W2t3Z5_r.js +0 -2
- package/adminWww/assets/ace-kRq1OCR-.js +0 -985
- package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js +0 -1
- package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js +0 -1
- package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js +0 -10
|
@@ -1,985 +0,0 @@
|
|
|
1
|
-
var ye={exports:{}};(function(pe,$e){(function(){var R="ace",x=function(){return this}();!x&&typeof window<"u"&&(x=window);var P=function(r,o,i){if(typeof r!="string"){P.original?P.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(i=o),P.modules[r]||(P.payloads[r]=i,P.modules[r]=null)};P.modules={},P.payloads={};var k=function(r,o,i){if(typeof o=="string"){var t=a(r,o);if(t!=null)return i&&i(),t}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var e=[],n=0,s=o.length;n<s;++n){var l=a(r,o[n]);if(l==null&&A.original)return;e.push(l)}return i&&i.apply(null,e)||!0}},A=function(r,o){var i=k("",r,o);return i==null&&A.original?A.original.apply(this,arguments):i},C=function(r,o){if(o.indexOf("!")!==-1){var i=o.split("!");return C(r,i[0])+"!"+C(r,i[1])}if(o.charAt(0)=="."){var t=r.split("/").slice(0,-1).join("/");for(o=t+"/"+o;o.indexOf(".")!==-1&&e!=o;){var e=o;o=o.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return o},a=function(r,o){o=C(r,o);var i=P.modules[o];if(!i){if(i=P.payloads[o],typeof i=="function"){var t={},e={id:o,uri:"",exports:t,packaged:!0},n=function(l,c){return k(o,l,c)},s=i(n,t,e);t=s||e.exports,P.modules[o]=t,delete P.payloads[o]}i=P.modules[o]=t||i}return i};function h(r){var o=x;x[r]||(x[r]={}),o=x[r],(!o.define||!o.define.packaged)&&(P.original=o.define,o.define=P,o.define.packaged=!0),(!o.require||!o.require.packaged)&&(A.original=o.require,o.require=A,o.require.packaged=!0)}h(R)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(R,x,P){function k(A,C,a){Object.defineProperty(A,C,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||k(String.prototype,"startsWith",function(A,C){return C=C||0,this.lastIndexOf(A,C)===C}),String.prototype.endsWith||k(String.prototype,"endsWith",function(A,C){var a=this;(C===void 0||C>a.length)&&(C=a.length),C-=A.length;var h=a.indexOf(A,C);return h!==-1&&h===C}),String.prototype.repeat||k(String.prototype,"repeat",function(A){for(var C="",a=this;A>0;)A&1&&(C+=a),(A>>=1)&&(a+=a);return C}),String.prototype.includes||k(String.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Object.assign||(Object.assign=function(A){if(A==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(A),a=1;a<arguments.length;a++){var h=arguments[a];h!=null&&Object.keys(h).forEach(function(r){C[r]=h[r]})}return C}),Object.values||(Object.values=function(A){return Object.keys(A).map(function(C){return A[C]})}),Array.prototype.find||k(Array.prototype,"find",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var r=this[h];if(A.call(a,r,h,this))return r}}),Array.prototype.findIndex||k(Array.prototype,"findIndex",function(A){for(var C=this.length,a=arguments[1],h=0;h<C;h++){var r=this[h];if(A.call(a,r,h,this))return h}}),Array.prototype.includes||k(Array.prototype,"includes",function(A,C){return this.indexOf(A,C)!=-1}),Array.prototype.fill||k(Array.prototype,"fill",function(A){for(var C=this,a=C.length>>>0,h=arguments[1],r=h>>0,o=r<0?Math.max(a+r,0):Math.min(r,a),i=arguments[2],t=i===void 0?a:i>>0,e=t<0?Math.max(a+t,0):Math.min(t,a);o<e;)C[o]=A,o++;return C}),Array.of||k(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(R,x,P){R("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(R,x,P){x.deepCopy=function k(A){if(typeof A!="object"||!A)return A;var C;if(Array.isArray(A)){C=[];for(var a=0;a<A.length;a++)C[a]=k(A[a]);return C}if(Object.prototype.toString.call(A)!=="[object Object]")return A;C={};for(var a in A)C[a]=k(A[a]);return C}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(R,x,P){x.last=function(C){return C[C.length-1]},x.stringReverse=function(C){return C.split("").reverse().join("")},x.stringRepeat=function(C,a){for(var h="";a>0;)a&1&&(h+=C),(a>>=1)&&(C+=C);return h};var k=/^\s\s*/,A=/\s\s*$/;x.stringTrimLeft=function(C){return C.replace(k,"")},x.stringTrimRight=function(C){return C.replace(A,"")},x.copyObject=function(C){var a={};for(var h in C)a[h]=C[h];return a},x.copyArray=function(C){for(var a=[],h=0,r=C.length;h<r;h++)C[h]&&typeof C[h]=="object"?a[h]=this.copyObject(C[h]):a[h]=C[h];return a},x.deepCopy=R("./deep_copy").deepCopy,x.arrayToMap=function(C){for(var a={},h=0;h<C.length;h++)a[C[h]]=1;return a},x.createMap=function(C){var a=Object.create(null);for(var h in C)a[h]=C[h];return a},x.arrayRemove=function(C,a){for(var h=0;h<=C.length;h++)a===C[h]&&C.splice(h,1)},x.escapeRegExp=function(C){return C.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},x.escapeHTML=function(C){return(""+C).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},x.getMatchOffsets=function(C,a){var h=[];return C.replace(a,function(r){h.push({offset:arguments[arguments.length-2],length:r.length})}),h},x.deferredCall=function(C){var a=null,h=function(){a=null,C()},r=function(o){return r.cancel(),a=setTimeout(h,o||0),r};return r.schedule=r,r.call=function(){return this.cancel(),C(),r},r.cancel=function(){return clearTimeout(a),a=null,r},r.isPending=function(){return a},r},x.delayedCall=function(C,a){var h=null,r=function(){h=null,C()},o=function(i){h==null&&(h=setTimeout(r,i||a))};return o.delay=function(i){h&&clearTimeout(h),h=setTimeout(r,i||a)},o.schedule=o,o.call=function(){this.cancel(),C()},o.cancel=function(){h&&clearTimeout(h),h=null},o.isPending=function(){return h},o},x.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},x.skipEmptyMatch=function(C,a,h){return h&&C.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(R,x,P){x.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},x.getOS=function(){return x.isMac?x.OS.MAC:x.isLinux?x.OS.LINUX:x.OS.WINDOWS};var k=typeof navigator=="object"?navigator:{},A=(/mac|win|linux/i.exec(k.platform)||["other"])[0].toLowerCase(),C=k.userAgent||"",a=k.appName||"";x.isWin=A=="win",x.isMac=A=="mac",x.isLinux=A=="linux",x.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((C.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((C.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),x.isOldIE=x.isIE&&x.isIE<9,x.isGecko=x.isMozilla=C.match(/ Gecko\/\d+/),x.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",x.isWebKit=parseFloat(C.split("WebKit/")[1])||void 0,x.isChrome=parseFloat(C.split(" Chrome/")[1])||void 0,x.isSafari=parseFloat(C.split(" Safari/")[1])&&!x.isChrome||void 0,x.isEdge=parseFloat(C.split(" Edge/")[1])||void 0,x.isAIR=C.indexOf("AdobeAIR")>=0,x.isAndroid=C.indexOf("Android")>=0,x.isChromeOS=C.indexOf(" CrOS ")>=0,x.isIOS=/iPad|iPhone|iPod/.test(C)&&!window.MSStream,x.isIOS&&(x.isMac=!0),x.isMobile=x.isIOS||x.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(R,x,P){var k=R("./useragent"),A="http://www.w3.org/1999/xhtml";x.buildDom=function i(t,e,n){if(typeof t=="string"&&t){var s=document.createTextNode(t);return e&&e.appendChild(s),s}if(!Array.isArray(t))return t&&t.appendChild&&e&&e.appendChild(t),t;if(typeof t[0]!="string"||!t[0]){for(var l=[],c=0;c<t.length;c++){var m=i(t[c],e,n);m&&l.push(m)}return l}var v=document.createElement(t[0]),g=t[1],f=1;g&&typeof g=="object"&&!Array.isArray(g)&&(f=2);for(var c=f;c<t.length;c++)i(t[c],v,n);return f==2&&Object.keys(g).forEach(function(b){var L=g[b];b==="class"?v.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||b=="value"||b[0]=="$"?v[b]=L:b==="ref"?n&&(n[L]=v):b==="style"?typeof L=="string"&&(v.style.cssText=L):L!=null&&v.setAttribute(b,L)}),e&&e.appendChild(v),v},x.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},x.createElement=function(i,t){return document.createElementNS?document.createElementNS(t||A,i):document.createElement(i)},x.removeChildren=function(i){i.innerHTML=""},x.createTextNode=function(i,t){var e=t?t.ownerDocument:document;return e.createTextNode(i)},x.createFragment=function(i){var t=i?i.ownerDocument:document;return t.createDocumentFragment()},x.hasCssClass=function(i,t){var e=(i.className+"").split(/\s+/g);return e.indexOf(t)!==-1},x.addCssClass=function(i,t){x.hasCssClass(i,t)||(i.className+=" "+t)},x.removeCssClass=function(i,t){for(var e=i.className.split(/\s+/g);;){var n=e.indexOf(t);if(n==-1)break;e.splice(n,1)}i.className=e.join(" ")},x.toggleCssClass=function(i,t){for(var e=i.className.split(/\s+/g),n=!0;;){var s=e.indexOf(t);if(s==-1)break;n=!1,e.splice(s,1)}return n&&e.push(t),i.className=e.join(" "),n},x.setCssClass=function(i,t,e){e?x.addCssClass(i,t):x.removeCssClass(i,t)},x.hasCssString=function(i,t){var e=0,n;if(t=t||document,n=t.querySelectorAll("style")){for(;e<n.length;)if(n[e++].id===i)return!0}},x.removeElementById=function(i,t){t=t||document,t.getElementById(i)&&t.getElementById(i).remove()};var C,a=[];x.useStrictCSP=function(i){C=i,i==!1?h():a||(a=[])};function h(){var i=a;a=null,i&&i.forEach(function(t){r(t[0],t[1])})}function r(i,t,e){if(!(typeof document>"u")){if(a){if(e)h();else if(e===!1)return a.push([i,t])}if(!C){var n=e;!e||!e.getRootNode?n=document:(n=e.getRootNode(),(!n||n==e)&&(n=document));var s=n.ownerDocument||n;if(t&&x.hasCssString(t,n))return null;t&&(i+=`
|
|
2
|
-
/*# sourceURL=ace/css/`+t+" */");var l=x.createElement("style");l.appendChild(s.createTextNode(i)),t&&(l.id=t),n==s&&(n=x.getDocumentHead(s)),n.insertBefore(l,n.firstChild)}}}if(x.importCssString=r,x.importCssStylsheet=function(i,t){x.buildDom(["link",{rel:"stylesheet",href:i}],x.getDocumentHead(t))},x.scrollbarWidth=function(i){var t=x.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var e=x.createElement("ace_outer"),n=e.style;n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",e.appendChild(t);var s=i&&i.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(e);var l=t.offsetWidth;n.overflow="scroll";var c=t.offsetWidth;return l===c&&(c=e.clientWidth),s.removeChild(e),l-c},x.computedStyle=function(i,t){return window.getComputedStyle(i,"")||{}},x.setStyle=function(i,t,e){i[t]!==e&&(i[t]=e)},x.HAS_CSS_ANIMATION=!1,x.HAS_CSS_TRANSFORMS=!1,x.HI_DPI=k.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,k.isChromeOS&&(x.HI_DPI=!1),typeof document<"u"){var o=document.createElement("div");x.HI_DPI&&o.style.transform!==void 0&&(x.HAS_CSS_TRANSFORMS=!0),!k.isEdge&&typeof o.style.animationName<"u"&&(x.HAS_CSS_ANIMATION=!0),o=null}x.HAS_CSS_TRANSFORMS?x.translate=function(i,t,e){i.style.transform="translate("+Math.round(t)+"px, "+Math.round(e)+"px)"}:x.translate=function(i,t,e){i.style.top=Math.round(e)+"px",i.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(R,x,P){/*
|
|
3
|
-
* based on code from:
|
|
4
|
-
*
|
|
5
|
-
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
|
6
|
-
* Available via the MIT or new BSD license.
|
|
7
|
-
* see: http://github.com/jrburke/requirejs for details
|
|
8
|
-
*/var k=R("./dom");x.get=function(A,C){var a=new XMLHttpRequest;a.open("GET",A,!0),a.onreadystatechange=function(){a.readyState===4&&C(a.responseText)},a.send(null)},x.loadScript=function(A,C){var a=k.getDocumentHead(),h=document.createElement("script");h.src=A,a.appendChild(h),h.onload=h.onreadystatechange=function(r,o){(o||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,o||C())}},x.qualifyURL=function(A){var C=document.createElement("a");return C.href=A,C.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(R,x,P){x.inherits=function(k,A){k.super_=A,k.prototype=Object.create(A.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}})},x.mixin=function(k,A){for(var C in A)k[C]=A[C];return k},x.implement=function(k,A){x.mixin(k,A)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(R,x,P){var k={},A=function(){this.propagationStopped=!0},C=function(){this.defaultPrevented=!0};k._emit=k._dispatchEvent=function(a,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var r=this._eventRegistry[a]||[],o=this._defaultHandlers[a];if(!(!r.length&&!o)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=a),h.stopPropagation||(h.stopPropagation=A),h.preventDefault||(h.preventDefault=C),r=r.slice();for(var i=0;i<r.length&&(r[i](h,this),!h.propagationStopped);i++);if(o&&!h.defaultPrevented)return o(h,this)}},k._signal=function(a,h){var r=(this._eventRegistry||{})[a];if(r){r=r.slice();for(var o=0;o<r.length;o++)r[o](h,this)}},k.once=function(a,h){var r=this;if(this.on(a,function o(){r.off(a,o),h.apply(null,arguments)}),!h)return new Promise(function(o){h=o})},k.setDefaultHandler=function(a,h){var r=this._defaultHandlers;if(r||(r=this._defaultHandlers={_disabled_:{}}),r[a]){var o=r[a],i=r._disabled_[a];i||(r._disabled_[a]=i=[]),i.push(o);var t=i.indexOf(h);t!=-1&&i.splice(t,1)}r[a]=h},k.removeDefaultHandler=function(a,h){var r=this._defaultHandlers;if(r){var o=r._disabled_[a];if(r[a]==h)o&&this.setDefaultHandler(a,o.pop());else if(o){var i=o.indexOf(h);i!=-1&&o.splice(i,1)}}},k.on=k.addEventListener=function(a,h,r){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[a];return o||(o=this._eventRegistry[a]=[]),o.indexOf(h)==-1&&o[r?"unshift":"push"](h),h},k.off=k.removeListener=k.removeEventListener=function(a,h){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[a];if(r){var o=r.indexOf(h);o!==-1&&r.splice(o,1)}},k.removeAllListeners=function(a){a||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[a]=void 0),this._defaultHandlers&&(this._defaultHandlers[a]=void 0)},x.EventEmitter=k}),ace.define("ace/lib/report_error",["require","exports","module"],function(R,x,P){x.reportError=function(A,C){var a=new Error(A);a.data=C,typeof console=="object"&&console.error&&console.error(a),setTimeout(function(){throw a})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(R,x,P){var k={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};x.defaultEnglishMessages=k}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(R,x,P){"no use strict";var k=R("./oop"),A=R("./event_emitter").EventEmitter,C=R("./report_error").reportError,a=R("./default_english_messages").defaultEnglishMessages,h={setOptions:function(e){Object.keys(e).forEach(function(n){this.setOption(n,e[n])},this)},getOptions:function(e){var n={};if(e)Array.isArray(e)||(e=Object.keys(e));else{var s=this.$options;e=Object.keys(s).filter(function(l){return!s[l].hidden})}return e.forEach(function(l){n[l]=this.getOption(l)},this),n},setOption:function(e,n){if(this["$"+e]!==n){var s=this.$options[e];if(!s)return r('misspelled option "'+e+'"');if(s.forwardTo)return this[s.forwardTo]&&this[s.forwardTo].setOption(e,n);s.handlesSet||(this["$"+e]=n),s&&s.set&&s.set.call(this,n)}},getOption:function(e){var n=this.$options[e];return n?n.forwardTo?this[n.forwardTo]&&this[n.forwardTo].getOption(e):n&&n.get?n.get.call(this):this["$"+e]:r('misspelled option "'+e+'"')}};function r(e){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var o,i,t=function(){function e(){this.$defaultOptions={},o=a,i="dollarSigns"}return e.prototype.defineOptions=function(n,s,l){return n.$options||(this.$defaultOptions[s]=n.$options={}),Object.keys(l).forEach(function(c){var m=l[c];typeof m=="string"&&(m={forwardTo:m}),m.name||(m.name=c),n.$options[m.name]=m,"initialValue"in m&&(n["$"+m.name]=m.initialValue)}),k.implement(n,h),this},e.prototype.resetOptions=function(n){Object.keys(n.$options).forEach(function(s){var l=n.$options[s];"value"in l&&n.setOption(s,l.value)})},e.prototype.setDefaultValue=function(n,s,l){if(!n){for(n in this.$defaultOptions)if(this.$defaultOptions[n][s])break;if(!this.$defaultOptions[n][s])return!1}var c=this.$defaultOptions[n]||(this.$defaultOptions[n]={});c[s]&&(c.forwardTo?this.setDefaultValue(c.forwardTo,s,l):c[s].value=l)},e.prototype.setDefaultValues=function(n,s){Object.keys(s).forEach(function(l){this.setDefaultValue(n,l,s[l])},this)},e.prototype.setMessages=function(n,s){o=n,s&&s.placeholders&&(i=s.placeholders)},e.prototype.nls=function(n,s,l){o[n]||(r("No message found for the key '"+n+"' in messages with id "+o.$id+", trying to find a translation for the default string '"+s+"'."),o[s]||r("No message found for the default string '"+s+"' in the provided messages. Falling back to the default English message."));var c=o[n]||o[s]||s;return l&&(i==="dollarSigns"&&(c=c.replace(/\$(\$|[\d]+)/g,function(m,v){return v=="$"?"$":l[v]})),i==="curlyBrackets"&&(c=c.replace(/\{([^\}]+)\}/g,function(m,v){return l[v]}))),c},e}();t.prototype.warn=r,t.prototype.reportError=C,k.implement(t.prototype,A),x.AppConfig=t}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(R,x,P){P.exports=`.ace-tm .ace_gutter {
|
|
9
|
-
background: #f0f0f0;
|
|
10
|
-
color: #333;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ace-tm .ace_print-margin {
|
|
14
|
-
width: 1px;
|
|
15
|
-
background: #e8e8e8;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ace-tm .ace_fold {
|
|
19
|
-
background-color: #6B72E6;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ace-tm {
|
|
23
|
-
background-color: #FFFFFF;
|
|
24
|
-
color: black;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ace-tm .ace_cursor {
|
|
28
|
-
color: black;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ace-tm .ace_invisible {
|
|
32
|
-
color: rgb(191, 191, 191);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ace-tm .ace_storage,
|
|
36
|
-
.ace-tm .ace_keyword {
|
|
37
|
-
color: blue;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ace-tm .ace_constant {
|
|
41
|
-
color: rgb(197, 6, 11);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ace-tm .ace_constant.ace_buildin {
|
|
45
|
-
color: rgb(88, 72, 246);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ace-tm .ace_constant.ace_language {
|
|
49
|
-
color: rgb(88, 92, 246);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ace-tm .ace_constant.ace_library {
|
|
53
|
-
color: rgb(6, 150, 14);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ace-tm .ace_invalid {
|
|
57
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
58
|
-
color: red;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ace-tm .ace_support.ace_function {
|
|
62
|
-
color: rgb(60, 76, 114);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ace-tm .ace_support.ace_constant {
|
|
66
|
-
color: rgb(6, 150, 14);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ace-tm .ace_support.ace_type,
|
|
70
|
-
.ace-tm .ace_support.ace_class {
|
|
71
|
-
color: rgb(109, 121, 222);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ace-tm .ace_keyword.ace_operator {
|
|
75
|
-
color: rgb(104, 118, 135);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ace-tm .ace_string {
|
|
79
|
-
color: rgb(3, 106, 7);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ace-tm .ace_comment {
|
|
83
|
-
color: rgb(76, 136, 107);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.ace-tm .ace_comment.ace_doc {
|
|
87
|
-
color: rgb(0, 102, 255);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
91
|
-
color: rgb(128, 159, 191);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ace-tm .ace_constant.ace_numeric {
|
|
95
|
-
color: rgb(0, 0, 205);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ace-tm .ace_variable {
|
|
99
|
-
color: rgb(49, 132, 149);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ace-tm .ace_xml-pe {
|
|
103
|
-
color: rgb(104, 104, 91);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
|
107
|
-
color: #0000A2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.ace-tm .ace_heading {
|
|
112
|
-
color: rgb(12, 7, 255);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ace-tm .ace_list {
|
|
116
|
-
color:rgb(185, 6, 144);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ace-tm .ace_meta.ace_tag {
|
|
120
|
-
color:rgb(0, 22, 142);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ace-tm .ace_string.ace_regex {
|
|
124
|
-
color: rgb(255, 0, 0)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
|
128
|
-
background: rgb(181, 213, 255);
|
|
129
|
-
}
|
|
130
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
131
|
-
box-shadow: 0 0 3px 0px white;
|
|
132
|
-
}
|
|
133
|
-
.ace-tm .ace_marker-layer .ace_step {
|
|
134
|
-
background: rgb(252, 255, 0);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
|
138
|
-
background: rgb(164, 229, 101);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
|
142
|
-
margin: -1px 0 0 -1px;
|
|
143
|
-
border: 1px solid rgb(192, 192, 192);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
|
147
|
-
background: rgba(0, 0, 0, 0.07);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ace-tm .ace_gutter-active-line {
|
|
151
|
-
background-color : #dcdcdc;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
155
|
-
background: rgb(250, 250, 255);
|
|
156
|
-
border: 1px solid rgb(200, 200, 250);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ace-tm .ace_indent-guide {
|
|
160
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.ace-tm .ace_indent-guide-active {
|
|
164
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
|
-
}
|
|
166
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(R,x,P){x.isDark=!1,x.cssClass="ace-tm",x.cssText=R("./textmate-css"),x.$id="ace/theme/textmate";var k=R("../lib/dom");k.importCssString(x.cssText,x.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(R,x,P){"no use strict";var k=R("./lib/lang"),A=R("./lib/net"),C=R("./lib/dom"),a=R("./lib/app_config").AppConfig;P.exports=x=new a;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};x.get=function(t){if(!h.hasOwnProperty(t))throw new Error("Unknown config key: "+t);return h[t]},x.set=function(t,e){if(h.hasOwnProperty(t))h[t]=e;else if(this.setDefaultValue("",t,e)==!1)throw new Error("Unknown config key: "+t);t=="useStrictCSP"&&C.useStrictCSP(e)},x.all=function(){return k.copyObject(h)},x.$modes={},x.moduleUrl=function(t,e){if(h.$moduleUrls[t])return h.$moduleUrls[t];var n=t.split("/");e=e||n[n.length-2]||"";var s=e=="snippets"?"/":"-",l=n[n.length-1];if(e=="worker"&&s=="-"){var c=new RegExp("^"+e+"[\\-_]|[\\-_]"+e+"$","g");l=l.replace(c,"")}(!l||l==e)&&n.length>1&&(l=n[n.length-2]);var m=h[e+"Path"];return m==null?m=h.basePath:s=="/"&&(e=s=""),m&&m.slice(-1)!="/"&&(m+="/"),m+e+s+l+this.get("suffix")},x.setModuleUrl=function(t,e){return h.$moduleUrls[t]=e};var r=function(t,e){if(t==="ace/theme/textmate"||t==="./theme/textmate")return e(null,R("./theme/textmate"));if(o)return o(t,e);console.error("loader is not configured")},o;x.setLoader=function(t){o=t},x.dynamicModules=Object.create(null),x.$loading={},x.$loaded={},x.loadModule=function(t,e){var n;if(Array.isArray(t))var s=t[0],l=t[1];else if(typeof t=="string")var l=t;var c=function(m){if(m&&!x.$loading[l])return e&&e(m);if(x.$loading[l]||(x.$loading[l]=[]),x.$loading[l].push(e),!(x.$loading[l].length>1)){var v=function(){r(l,function(g,f){f&&(x.$loaded[l]=f),x._emit("load.module",{name:l,module:f});var b=x.$loading[l];x.$loading[l]=null,b.forEach(function(L){L&&L(f)})})};if(!x.get("packaged"))return v();A.loadScript(x.moduleUrl(l,s),v),i()}};if(x.dynamicModules[l])x.dynamicModules[l]().then(function(m){m.default?c(m.default):c(m)});else{try{n=this.$require(l)}catch{}c(n||x.$loaded[l])}},x.$require=function(t){if(typeof P.require=="function"){var e="require";return P[e](t)}},x.setModuleLoader=function(t,e){x.dynamicModules[t]=e};var i=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};x.version="1.42.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(R,x,P){R("./lib/fixoldbrowsers");var k=R("./config");k.setLoader(function(h,r){R([h],function(o){r(null,o)})});var A=function(){return this||typeof window<"u"&&window}();P.exports=function(h){k.init=C,k.$require=R,h.require=R},C(!0);function C(h){if(!(!A||!A.document)){k.set("packaged",h||R.packaged||P.packaged||A.define&&(void 0).packaged);var r={},o="",i=document.currentScript||document._currentScript,t=i&&i.ownerDocument||document;i&&i.src&&(o=i.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var e=t.getElementsByTagName("script"),n=0;n<e.length;n++){var s=e[n],l=s.src||s.getAttribute("src");if(l){for(var c=s.attributes,m=0,v=c.length;m<v;m++){var g=c[m];g.name.indexOf("data-ace-")===0&&(r[a(g.name.replace(/^data-ace-/,""))]=g.value)}var f=l.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);f&&(o=f[1])}}o&&(r.base=r.base||o,r.packaged=!0),r.basePath=r.base,r.workerPath=r.workerPath||r.base,r.modePath=r.modePath||r.base,r.themePath=r.themePath||r.base,delete r.base;for(var b in r)typeof r[b]<"u"&&k.set(b,r[b])}}function a(h){return h.replace(/-(.)/g,function(r,o){return o.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(R,x,P){var k=function(){function A(C,a,h,r){this.start={row:C,column:a},this.end={row:h,column:r}}return A.prototype.isEqual=function(C){return this.start.row===C.start.row&&this.end.row===C.end.row&&this.start.column===C.start.column&&this.end.column===C.end.column},A.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},A.prototype.contains=function(C,a){return this.compare(C,a)==0},A.prototype.compareRange=function(C){var a,h=C.end,r=C.start;return a=this.compare(h.row,h.column),a==1?(a=this.compare(r.row,r.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(r.row,r.column),a==-1?-1:a==1?42:0)},A.prototype.comparePoint=function(C){return this.compare(C.row,C.column)},A.prototype.containsRange=function(C){return this.comparePoint(C.start)==0&&this.comparePoint(C.end)==0},A.prototype.intersects=function(C){var a=this.compareRange(C);return a==-1||a==0||a==1},A.prototype.isEnd=function(C,a){return this.end.row==C&&this.end.column==a},A.prototype.isStart=function(C,a){return this.start.row==C&&this.start.column==a},A.prototype.setStart=function(C,a){typeof C=="object"?(this.start.column=C.column,this.start.row=C.row):(this.start.row=C,this.start.column=a)},A.prototype.setEnd=function(C,a){typeof C=="object"?(this.end.column=C.column,this.end.row=C.row):(this.end.row=C,this.end.column=a)},A.prototype.inside=function(C,a){return this.compare(C,a)==0?!(this.isEnd(C,a)||this.isStart(C,a)):!1},A.prototype.insideStart=function(C,a){return this.compare(C,a)==0?!this.isEnd(C,a):!1},A.prototype.insideEnd=function(C,a){return this.compare(C,a)==0?!this.isStart(C,a):!1},A.prototype.compare=function(C,a){return!this.isMultiLine()&&C===this.start.row?a<this.start.column?-1:a>this.end.column?1:0:C<this.start.row?-1:C>this.end.row?1:this.start.row===C?a>=this.start.column?0:-1:this.end.row===C?a<=this.end.column?0:1:0},A.prototype.compareStart=function(C,a){return this.start.row==C&&this.start.column==a?-1:this.compare(C,a)},A.prototype.compareEnd=function(C,a){return this.end.row==C&&this.end.column==a?1:this.compare(C,a)},A.prototype.compareInside=function(C,a){return this.end.row==C&&this.end.column==a?1:this.start.row==C&&this.start.column==a?-1:this.compare(C,a)},A.prototype.clipRows=function(C,a){if(this.end.row>a)var h={row:a+1,column:0};else if(this.end.row<C)var h={row:C,column:0};if(this.start.row>a)var r={row:a+1,column:0};else if(this.start.row<C)var r={row:C,column:0};return A.fromPoints(r||this.start,h||this.end)},A.prototype.extend=function(C,a){var h=this.compare(C,a);if(h==0)return this;if(h==-1)var r={row:C,column:a};else var o={row:C,column:a};return A.fromPoints(r||this.start,o||this.end)},A.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},A.prototype.isMultiLine=function(){return this.start.row!==this.end.row},A.prototype.clone=function(){return A.fromPoints(this.start,this.end)},A.prototype.collapseRows=function(){return this.end.column==0?new A(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new A(this.start.row,0,this.end.row,0)},A.prototype.toScreenRange=function(C){var a=C.documentToScreenPosition(this.start),h=C.documentToScreenPosition(this.end);return new A(a.row,a.column,h.row,h.column)},A.prototype.moveBy=function(C,a){this.start.row+=C,this.start.column+=a,this.end.row+=C,this.end.column+=a},A}();k.fromPoints=function(A,C){return new k(A.row,A.column,C.row,C.column)},k.comparePoints=function(A,C){return A.row-C.row||A.column-C.column},x.Range=k}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(R,x,P){for(var k=R("./oop"),A={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},C={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},a=0;a<10;a++)C["Digit"+a]=48+a,C["Numpad"+a]=96+a,A.PRINTABLE_KEYS[48+a]=""+a,A.FUNCTION_KEYS[96+a]="Numpad"+a;for(var a=65;a<91;a++){var h=String.fromCharCode(a+32);C["Key"+h.toUpperCase()]=a,A.PRINTABLE_KEYS[a]=h}for(var a=1;a<13;a++)C["F"+a]=111+a,A.FUNCTION_KEYS[111+a]="F"+a;var r={Shift:16,Control:17,Alt:18,Meta:224};for(var o in r)C[o]=C[o+"Left"]=C[o+"Right"]=r[o];x.$codeToKeyCode=C,A.PRINTABLE_KEYS[173]="-";for(var i in A.FUNCTION_KEYS){var t=A.FUNCTION_KEYS[i].toLowerCase();A[t]=parseInt(i,10)}for(var i in A.PRINTABLE_KEYS){var t=A.PRINTABLE_KEYS[i].toLowerCase();A[t]=parseInt(i,10)}k.mixin(A,A.MODIFIER_KEYS),k.mixin(A,A.PRINTABLE_KEYS),k.mixin(A,A.FUNCTION_KEYS),A.enter=A.return,A.escape=A.esc,A.del=A.delete,function(){for(var e=["cmd","ctrl","alt","shift"],n=Math.pow(2,e.length);n--;)A.KEY_MODS[n]=e.filter(function(s){return n&A.KEY_MODS[s]}).join("-")+"-"}(),A.KEY_MODS[0]="",A.KEY_MODS[-1]="input-",k.mixin(x,A),x.default=x,x.keyCodeToString=function(e){var n=A[e];return typeof n!="string"&&(n=String.fromCharCode(e)),n.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(R,x,P){var k=R("./keys"),A=R("./useragent"),C=null,a=0,h;function r(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return h={passive:!1},!0}})}catch{}}function o(){return h==null&&r(),h}function i(m,v,g){this.elem=m,this.type=v,this.callback=g}i.prototype.destroy=function(){e(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var t=x.addListener=function(m,v,g,f){m.addEventListener(v,g,o()),f&&f.$toDestroy.push(new i(m,v,g))},e=x.removeListener=function(m,v,g){m.removeEventListener(v,g,o())};x.stopEvent=function(m){return x.stopPropagation(m),x.preventDefault(m),!1},x.stopPropagation=function(m){m.stopPropagation&&m.stopPropagation()},x.preventDefault=function(m){m.preventDefault&&m.preventDefault()},x.getButton=function(m){return m.type=="dblclick"?0:m.type=="contextmenu"||A.isMac&&m.ctrlKey&&!m.altKey&&!m.shiftKey?2:m.button},x.capture=function(m,v,g){var f=m&&m.ownerDocument||document;function b(L){v&&v(L),g&&g(L),e(f,"mousemove",v),e(f,"mouseup",b),e(f,"dragstart",b)}return t(f,"mousemove",v),t(f,"mouseup",b),t(f,"dragstart",b),b},x.addMouseWheelListener=function(m,v,g){t(m,"wheel",function(f){var b=.15,L=f.deltaX||0,M=f.deltaY||0;switch(f.deltaMode){case f.DOM_DELTA_PIXEL:f.wheelX=L*b,f.wheelY=M*b;break;case f.DOM_DELTA_LINE:var $=15;f.wheelX=L*$,f.wheelY=M*$;break;case f.DOM_DELTA_PAGE:var _=150;f.wheelX=L*_,f.wheelY=M*_;break}v(f)},g)},x.addMultiMouseDownListener=function(m,v,g,f,b){var L=0,M,$,_,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function y(d){if(x.getButton(d)!==0?L=0:d.detail>1?(L++,L>4&&(L=1)):L=1,A.isIE){var u=Math.abs(d.clientX-M)>5||Math.abs(d.clientY-$)>5;(!_||u)&&(L=1),_&&clearTimeout(_),_=setTimeout(function(){_=null},v[L-1]||600),L==1&&(M=d.clientX,$=d.clientY)}if(d._clicks=L,g[f]("mousedown",d),L>4)L=0;else if(L>1)return g[f](w[L],d)}Array.isArray(m)||(m=[m]),m.forEach(function(d){t(d,"mousedown",y,b)})};function n(m){return 0|(m.ctrlKey?1:0)|(m.altKey?2:0)|(m.shiftKey?4:0)|(m.metaKey?8:0)}x.getModifierString=function(m){return k.KEY_MODS[n(m)]};function s(m,v,g){var f=n(v);if(!g&&v.code&&(g=k.$codeToKeyCode[v.code]||g),!A.isMac&&C){if(v.getModifierState&&(v.getModifierState("OS")||v.getModifierState("Win"))&&(f|=8),C.altGr)if((3&f)!=3)C.altGr=0;else return;if(g===18||g===17){var b=v.location;if(g===17&&b===1)C[g]==1&&(a=v.timeStamp);else if(g===18&&f===3&&b===2){var L=v.timeStamp-a;L<50&&(C.altGr=!0)}}}if(g in k.MODIFIER_KEYS&&(g=-1),!(!f&&g===13&&v.location===3&&(m(v,f,-g),v.defaultPrevented))){if(A.isChromeOS&&f&8){if(m(v,f,g),v.defaultPrevented)return;f&=-9}return!f&&!(g in k.FUNCTION_KEYS)&&!(g in k.PRINTABLE_KEYS)?!1:m(v,f,g)}}x.addCommandKeyListener=function(m,v,g){var f=null;t(m,"keydown",function(b){C[b.keyCode]=(C[b.keyCode]||0)+1;var L=s(v,b,b.keyCode);return f=b.defaultPrevented,L},g),t(m,"keypress",function(b){f&&(b.ctrlKey||b.altKey||b.shiftKey||b.metaKey)&&(x.stopEvent(b),f=null)},g),t(m,"keyup",function(b){C[b.keyCode]=null},g),C||(l(),t(window,"focus",l))};function l(){C=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!A.isOldIE){var c=1;x.nextTick=function(m,v){v=v||window;var g="zero-timeout-message-"+c++,f=function(b){b.data==g&&(x.stopPropagation(b),e(v,"message",f),m())};t(v,"message",f),v.postMessage(g,"*")}}x.$idleBlocked=!1,x.onIdle=function(m,v){return setTimeout(function g(){x.$idleBlocked?setTimeout(g,100):m()},v)},x.$idleBlockId=null,x.blockIdle=function(m){x.$idleBlockId&&clearTimeout(x.$idleBlockId),x.$idleBlocked=!0,x.$idleBlockId=setTimeout(function(){x.$idleBlocked=!1},m||100)},x.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),x.nextFrame?x.nextFrame=x.nextFrame.bind(window):x.nextFrame=function(m){setTimeout(m,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(R,x,P){var k;P.exports={lineMode:!1,pasteCancelled:function(){return k&&k>Date.now()-50?!0:k=!1},cancel:function(){k=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(R,x,P){var k=R("../lib/event"),A=R("../config").nls,C=R("../lib/useragent"),a=R("../lib/dom"),h=R("../lib/lang"),r=R("../clipboard"),o=C.isChrome<18,i=C.isIE,t=C.isChrome>63,e=400,n=R("../lib/keys"),s=n.KEY_MODS,l=C.isIOS,c=l?/\s/:/\n/,m=C.isMobile,v;v=function(g,f){var b=a.createElement("textarea");b.className="ace_text-input",b.setAttribute("wrap","off"),b.setAttribute("autocorrect","off"),b.setAttribute("autocapitalize","off"),b.setAttribute("spellcheck","false"),b.style.opacity="0",g.insertBefore(b,g.firstChild),this.setHost=function(B){f=B};var L=!1,M=!1,$=!1,_=!1,w="";m||(b.style.fontSize="1px");var y=!1,d=!1,u="",p=0,S=0,T=0,E=Number.MAX_SAFE_INTEGER,I=Number.MIN_SAFE_INTEGER,D=0;try{var H=document.activeElement===b}catch{}this.setNumberOfExtraLines=function(B){if(E=Number.MAX_SAFE_INTEGER,I=Number.MIN_SAFE_INTEGER,B<0){D=0;return}D=B},this.setAriaLabel=function(){var B="";if(f.$textInputAriaLabel&&(B+="".concat(f.$textInputAriaLabel,", ")),f.session){var G=f.session.selection.cursor.row;B+=A("text-input.aria-label","Cursor at row $0",[G+1])}b.setAttribute("aria-label",B)},this.setAriaOptions=function(B){B.activeDescendant?(b.setAttribute("aria-haspopup","true"),b.setAttribute("aria-autocomplete",B.inline?"both":"list"),b.setAttribute("aria-activedescendant",B.activeDescendant)):(b.setAttribute("aria-haspopup","false"),b.setAttribute("aria-autocomplete","both"),b.removeAttribute("aria-activedescendant")),B.role&&b.setAttribute("role",B.role),B.setLabel&&(b.setAttribute("aria-roledescription",A("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),k.addListener(b,"blur",function(B){d||(f.onBlur(B),H=!1)},f),k.addListener(b,"focus",function(B){if(!d){if(H=!0,C.isEdge)try{if(!document.hasFocus())return}catch{}f.onFocus(B),C.isEdge?setTimeout(N):N()}},f),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:f.renderer.enableKeyboardAccessibility}),w||t||this.$focusScroll=="browser")return b.focus({preventScroll:!0});var B=b.style.top;b.style.position="fixed",b.style.top="0px";try{var G=b.getBoundingClientRect().top!=0}catch{return}var K=[];if(G)for(var Q=b.parentElement;Q&&Q.nodeType==1;)K.push(Q),Q.setAttribute("ace_nocontext","true"),!Q.parentElement&&Q.getRootNode?Q=Q.getRootNode().host:Q=Q.parentElement;b.focus({preventScroll:!0}),G&&K.forEach(function(X){X.removeAttribute("ace_nocontext")}),setTimeout(function(){b.style.position="",b.style.top=="0px"&&(b.style.top=B)},0)},this.blur=function(){b.blur()},this.isFocused=function(){return H},f.on("beforeEndOperation",function(){var B=f.curOp,G=B&&B.command&&B.command.name;if(G!="insertstring"){var K=G&&(B.docChanged||B.selectionChanged);$&&K&&(u=b.value="",ce()),N()}}),f.on("changeSelection",this.setAriaLabel);var O=function(B,G){for(var K=G,Q=1;Q<=B-E&&Q<2*D+1;Q++)K+=f.session.getLine(B-Q).length+1;return K},N=l?function(B){if(!(!H||L&&!B||_)){B||(B="");var G=`
|
|
167
|
-
ab`+B+`cde fg
|
|
168
|
-
`;G!=b.value&&(b.value=u=G);var K=4,Q=4+(B.length||(f.selection.isEmpty()?0:1));(p!=K||S!=Q)&&b.setSelectionRange(K,Q),p=K,S=Q}}:function(){if(!($||_)&&!(!H&&!U)){$=!0;var B=0,G=0,K="";if(f.session){var Q=f.selection,X=Q.getRange(),ie=Q.cursor.row;ie===I+1?(E=I+1,I=E+2*D):ie===E-1?(I=E-1,E=I-2*D):(ie<E-1||ie>I+1)&&(E=ie>D?ie-D:0,I=ie>D?ie+D:2*D);for(var re=[],ne=E;ne<=I;ne++)re.push(f.session.getLine(ne));if(K=re.join(`
|
|
169
|
-
`),B=O(X.start.row,X.start.column),G=O(X.end.row,X.end.column),X.start.row<E){var ee=f.session.getLine(E-1);B=X.start.row<E-1?0:B,G+=ee.length+1,K=ee+`
|
|
170
|
-
`+K}else if(X.end.row>I){var J=f.session.getLine(I+1);G=X.end.row>I+1?J.length:X.end.column,G+=K.length+1,K=K+`
|
|
171
|
-
`+J}else m&&ie>0&&(K=`
|
|
172
|
-
`+K,G+=1,B+=1);K.length>e&&(B<e&&G<e?K=K.slice(0,e):(K=`
|
|
173
|
-
`,B==G?B=G=0:(B=0,G=1)));var se=K+`
|
|
174
|
-
|
|
175
|
-
`;se!=u&&(b.value=u=se,p=S=se.length)}if(U&&(p=b.selectionStart,S=b.selectionEnd),S!=G||p!=B||b.selectionEnd!=S)try{b.setSelectionRange(B,G),p=B,S=G}catch{}$=!1}};this.resetSelection=N,H&&f.onFocus();var F=function(B){return B.selectionStart===0&&B.selectionEnd>=u.length&&B.value===u&&u&&B.selectionEnd!==S},W=function(B){$||(L?L=!1:F(b)?(f.selectAll(),N()):m&&b.selectionStart!=p&&N())},z=null;this.setInputHandler=function(B){z=B},this.getInputHandler=function(){return z};var U=!1,V=function(B,G){if(U&&(U=!1),M)return N(),B&&f.onPaste(B),M=!1,"";for(var K=b.selectionStart,Q=b.selectionEnd,X=p,ie=u.length-S,re=B,ne=B.length-K,ee=B.length-Q,J=0;X>0&&u[J]==B[J];)J++,X--;for(re=re.slice(J),J=1;ie>0&&u.length-J>p-1&&u[u.length-J]==B[B.length-J];)J++,ie--;ne-=J-1,ee-=J-1;var se=re.length-J+1;if(se<0&&(X=-se,se=0),re=re.slice(0,se),!G&&!re&&!ne&&!X&&!ie&&!ee)return"";_=!0;var he=!1;return C.isAndroid&&re==". "&&(re=" ",he=!0),re&&!X&&!ie&&!ne&&!ee||y?f.onTextInput(re):f.onTextInput(re,{extendLeft:X,extendRight:ie,restoreStart:ne,restoreEnd:ee}),_=!1,u=B,p=K,S=Q,T=ee,he?`
|
|
176
|
-
`:re},j=function(B){if($)return le();if(B&&B.inputType){if(B.inputType=="historyUndo")return f.execCommand("undo");if(B.inputType=="historyRedo")return f.execCommand("redo")}var G=b.value,K=V(G,!0);(G.length>e+100||c.test(K)||m&&p<1&&p==S)&&N()},Y=function(B,G,K){var Q=B.clipboardData||window.clipboardData;if(!(!Q||o)){var X=i||K?"Text":"text/plain";try{return G?Q.setData(X,G)!==!1:Q.getData(X)}catch(ie){if(!K)return Y(ie,G,!0)}}},Z=function(B,G){var K=f.getCopyText();if(!K)return k.preventDefault(B);Y(B,K)?(l&&(N(K),L=K,setTimeout(function(){L=!1},10)),G?f.onCut():f.onCopy(),k.preventDefault(B)):(L=!0,b.value=K,b.select(),setTimeout(function(){L=!1,N(),G?f.onCut():f.onCopy()}))},te=function(B){Z(B,!0)},oe=function(B){Z(B,!1)},q=function(B){var G=Y(B);r.pasteCancelled()||(typeof G=="string"?(G&&f.onPaste(G,B),C.isIE&&setTimeout(N),k.preventDefault(B)):(b.value="",M=!0))};k.addCommandKeyListener(b,function(B,G,K){if(!$)return f.onCommandKey(B,G,K)},f),k.addListener(b,"select",W,f),k.addListener(b,"input",j,f),k.addListener(b,"cut",te,f),k.addListener(b,"copy",oe,f),k.addListener(b,"paste",q,f),(!("oncut"in b)||!("oncopy"in b)||!("onpaste"in b))&&k.addListener(g,"keydown",function(B){if(!(C.isMac&&!B.metaKey||!B.ctrlKey))switch(B.keyCode){case 67:oe(B);break;case 86:q(B);break;case 88:te(B);break}},f);var ae=function(B){if(!($||!f.onCompositionStart||f.$readOnly)&&($={},!y)){B.data&&($.useTextareaForIME=!1),setTimeout(le,0),f._signal("compositionStart"),f.on("mousedown",de);var G=f.getSelectionRange();G.end.row=G.start.row,G.end.column=G.start.column,$.markerRange=G,$.selectionStart=p,f.onCompositionStart($),$.useTextareaForIME?(u=b.value="",p=0,S=0):(b.msGetInputContext&&($.context=b.msGetInputContext()),b.getInputContext&&($.context=b.getInputContext()))}},le=function(){if(!(!$||!f.onCompositionUpdate||f.$readOnly)){if(y)return de();if($.useTextareaForIME)f.onCompositionUpdate(b.value);else{var B=b.value;V(B),$.markerRange&&($.context&&($.markerRange.start.column=$.selectionStart=$.context.compositionStartOffset),$.markerRange.end.column=$.markerRange.start.column+S-$.selectionStart+T)}}},ce=function(B){!f.onCompositionEnd||f.$readOnly||($=!1,f.onCompositionEnd(),f.off("mousedown",de),B&&j())};function de(){d=!0,b.blur(),b.focus(),d=!1}var ve=h.delayedCall(le,50).schedule.bind(null,null);function we(B){B.keyCode==27&&b.value.length<b.selectionStart&&($||(u=b.value),p=S=-1,N()),ve()}k.addListener(b,"compositionstart",ae,f),k.addListener(b,"compositionupdate",le,f),k.addListener(b,"keyup",we,f),k.addListener(b,"keydown",ve,f),k.addListener(b,"compositionend",ce,f),this.getElement=function(){return b},this.setCommandMode=function(B){y=B,b.readOnly=!1},this.setReadOnly=function(B){y||(b.readOnly=B)},this.setCopyWithEmptySelection=function(B){},this.onContextMenu=function(B){U=!0,N(),f._emit("nativecontextmenu",{target:f,domEvent:B}),this.moveToMouse(B,!0)},this.moveToMouse=function(B,G){w||(w=b.style.cssText),b.style.cssText=(G?"z-index:100000;":"")+(C.isIE?"opacity:0.1;":"")+"text-indent: -"+(p+S)*f.renderer.characterWidth*.5+"px;";var K=f.container.getBoundingClientRect(),Q=a.computedStyle(f.container),X=K.top+(parseInt(Q.borderTopWidth)||0),ie=K.left+(parseInt(Q.borderLeftWidth)||0),re=K.bottom-X-b.clientHeight-2,ne=function(ee){a.translate(b,ee.clientX-ie-2,Math.min(ee.clientY-X-2,re))};ne(B),B.type=="mousedown"&&(f.renderer.$isMousePressed=!0,clearTimeout(fe),C.isWin&&k.capture(f.container,ne,ue))},this.onContextMenuClose=ue;var fe;function ue(){clearTimeout(fe),fe=setTimeout(function(){w&&(b.style.cssText=w,w=""),f.renderer.$isMousePressed=!1,f.renderer.$keepTextAreaAtCursor&&f.renderer.$moveTextAreaToCursor()},0)}var ge=function(B){f.textInput.onContextMenu(B),ue()};k.addListener(b,"mouseup",ge,f),k.addListener(b,"mousedown",function(B){B.preventDefault(),ue()},f),k.addListener(f.renderer.scroller,"contextmenu",ge,f),k.addListener(b,"contextmenu",ge,f),l&&be(g,f,b);function be(B,G,K){var Q=null,X=!1;K.addEventListener("keydown",function(re){Q&&clearTimeout(Q),X=!0},!0),K.addEventListener("keyup",function(re){Q=setTimeout(function(){X=!1},100)},!0);var ie=function(re){if(document.activeElement===K&&!(X||$||G.$mouseHandler.isMousePressed)&&!L){var ne=K.selectionStart,ee=K.selectionEnd,J=null,se=0;if(ne==0?J=n.up:ne==1?J=n.home:ee>S&&u[ee]==`
|
|
177
|
-
`?J=n.end:ne<p&&u[ne-1]==" "?(J=n.left,se=s.option):ne<p||ne==p&&S!=p&&ne==ee?J=n.left:ee>S&&u.slice(0,ee).split(`
|
|
178
|
-
`).length>2?J=n.down:ee>S&&u[ee-1]==" "?(J=n.right,se=s.option):(ee>S||ee==S&&S!=p&&ne==ee)&&(J=n.right),ne!==ee&&(se|=s.shift),J){var he=G.onCommandKey({},se,J);if(!he&&G.commands){J=n.keyCodeToString(J);var me=G.commands.findKeyCommand(se,J);me&&G.execCommand(me)}p=ne,S=ee,N("")}}};document.addEventListener("selectionchange",ie),G.on("destroy",function(){document.removeEventListener("selectionchange",ie)})}this.destroy=function(){b.parentElement&&b.parentElement.removeChild(b)}},x.TextInput=v,x.$setUserAgentForTests=function(g,f){m=g,l=f}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(R,x,P){var k=R("../lib/useragent"),A=0,C=550,a=function(){function o(i){i.$clickSelection=null;var t=i.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i));var e=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];e.forEach(function(n){i[n]=this[n]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}return o.prototype.onMouseDown=function(i){var t=i.inSelection(),e=i.getDocumentPosition();this.mousedownEvent=i;var n=this.editor,s=i.getButton();if(s!==0){var l=n.getSelectionRange(),c=l.isEmpty();(c||s==1)&&n.selection.moveToPosition(e),s==2&&(n.textInput.onContextMenu(i.domEvent),k.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),t&&!n.isFocused()&&(n.focus(),this.$focusTimeout&&!this.$clickSelection&&!n.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(e,i.domEvent._clicks>1),i.preventDefault()},o.prototype.startSelect=function(i,t){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var e=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?e.selection.selectToPosition(i):t||e.selection.moveToPosition(i),t||this.select(),e.setStyle("ace_selecting"),this.setState("select"))},o.prototype.select=function(){var i,t=this.editor,e=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(e);if(n==-1)i=this.$clickSelection.end;else if(n==1)i=this.$clickSelection.start;else{var s=r(this.$clickSelection,e);e=s.cursor,i=s.anchor}t.selection.setSelectionAnchor(i.row,i.column)}t.selection.selectToPosition(e),t.renderer.scrollCursorIntoView()},o.prototype.extendSelectionBy=function(i){var t,e=this.editor,n=e.renderer.screenToTextCoordinates(this.x,this.y),s=e.selection[i](n.row,n.column);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(s.start),c=this.$clickSelection.comparePoint(s.end);if(l==-1&&c<=0)t=this.$clickSelection.end,(s.end.row!=n.row||s.end.column!=n.column)&&(n=s.start);else if(c==1&&l>=0)t=this.$clickSelection.start,(s.start.row!=n.row||s.start.column!=n.column)&&(n=s.end);else if(l==-1&&c==1)n=s.end,t=s.start;else{var m=r(this.$clickSelection,n);n=m.cursor,t=m.anchor}e.selection.setSelectionAnchor(t.row,t.column)}e.selection.selectToPosition(n),e.renderer.scrollCursorIntoView()},o.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},o.prototype.focusWait=function(){var i=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(i>A||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},o.prototype.onDoubleClick=function(i){var t=i.getDocumentPosition(),e=this.editor,n=e.session,s=n.getBracketRange(t);s?(s.isEmpty()&&(s.start.column--,s.end.column++),this.setState("select")):(s=e.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=s,this.select()},o.prototype.onTripleClick=function(i){var t=i.getDocumentPosition(),e=this.editor;this.setState("selectByLines");var n=e.getSelectionRange();n.isMultiLine()&&n.contains(t.row,t.column)?(this.$clickSelection=e.selection.getLineRange(n.start.row),this.$clickSelection.end=e.selection.getLineRange(n.end.row).end):this.$clickSelection=e.selection.getLineRange(t.row),this.select()},o.prototype.onQuadClick=function(i){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},o.prototype.onMouseWheel=function(i){if(!i.getAccelKey()){i.getShiftKey()&&i.wheelY&&!i.wheelX&&(i.wheelX=i.wheelY,i.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var e=this.$lastScroll,n=i.domEvent.timeStamp,s=n-e.t,l=s?i.wheelX/s:e.vx,c=s?i.wheelY/s:e.vy;s<C&&(l=(l+e.vx)/2,c=(c+e.vy)/2);var m=Math.abs(l/c),v=!1;if(m>=1&&t.renderer.isScrollableBy(i.wheelX*i.speed,0)&&(v=!0),m<=1&&t.renderer.isScrollableBy(0,i.wheelY*i.speed)&&(v=!0),v)e.allowed=n;else if(n-e.allowed<C){var g=Math.abs(l)<=1.5*Math.abs(e.vx)&&Math.abs(c)<=1.5*Math.abs(e.vy);g?(v=!0,e.allowed=n):e.allowed=0}if(e.t=n,e.vx=l,e.vy=c,v)return t.renderer.scrollBy(i.wheelX*i.speed,i.wheelY*i.speed),i.stop()}},o}();a.prototype.selectEnd=a.prototype.selectByLinesEnd,a.prototype.selectAllEnd=a.prototype.selectByLinesEnd,a.prototype.selectByWordsEnd=a.prototype.selectByLinesEnd,x.DefaultHandlers=a;function h(o,i,t,e){return Math.sqrt(Math.pow(t-o,2)+Math.pow(e-i,2))}function r(o,i){if(o.start.row==o.end.row)var t=2*i.column-o.start.column-o.end.column;else if(o.start.row==o.end.row-1&&!o.start.column&&!o.end.column)var t=i.column-4;else var t=2*i.row-o.start.row-o.end.row;return t<0?{cursor:o.start,anchor:o.end}:{cursor:o.end,anchor:o.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(R,x,P){x.preventParentScroll=function(A){A.stopPropagation();var C=A.currentTarget,a=C.scrollHeight>C.clientHeight;a||A.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(R,x,P){var k=this&&this.__extends||function(){var n=function(s,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,m){c.__proto__=m}||function(c,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(c[v]=m[v])},n(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),A=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&n[s],c=0;if(l)return l.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},C=R("./lib/dom");R("./lib/event");var a=R("./range").Range,h=R("./lib/scroll").preventParentScroll,r="ace_tooltip",o=function(){function n(s){this.isOpen=!1,this.$element=null,this.$parentNode=s}return n.prototype.$init=function(){return this.$element=C.createElement("div"),this.$element.className=r,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},n.prototype.getElement=function(){return this.$element||this.$init()},n.prototype.setText=function(s){this.getElement().textContent=s},n.prototype.setHtml=function(s){this.getElement().innerHTML=s},n.prototype.setPosition=function(s,l){this.getElement().style.left=s+"px",this.getElement().style.top=l+"px"},n.prototype.setClassName=function(s){C.addCssClass(this.getElement(),s)},n.prototype.setTheme=function(s){this.$element.className=r+" "+(s.isDark?"ace_dark ":"")+(s.cssClass||"")},n.prototype.show=function(s,l,c){s!=null&&this.setText(s),l!=null&&c!=null&&this.setPosition(l,c),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},n.prototype.hide=function(s){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=r,this.isOpen=!1)},n.prototype.getHeight=function(){return this.getElement().offsetHeight},n.prototype.getWidth=function(){return this.getElement().offsetWidth},n.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},n}(),i=function(){function n(){this.popups=[]}return n.prototype.addPopup=function(s){this.popups.push(s),this.updatePopups()},n.prototype.removePopup=function(s){var l=this.popups.indexOf(s);l!==-1&&(this.popups.splice(l,1),this.updatePopups())},n.prototype.updatePopups=function(){var s,l,c,m;this.popups.sort(function(w,y){return y.priority-w.priority});var v=[];try{for(var g=A(this.popups),f=g.next();!f.done;f=g.next()){var b=f.value,L=!0;try{for(var M=(c=void 0,A(v)),$=M.next();!$.done;$=M.next()){var _=$.value;if(this.doPopupsOverlap(_,b)){L=!1;break}}}catch(w){c={error:w}}finally{try{$&&!$.done&&(m=M.return)&&m.call(M)}finally{if(c)throw c.error}}L?v.push(b):b.hide()}}catch(w){s={error:w}}finally{try{f&&!f.done&&(l=g.return)&&l.call(g)}finally{if(s)throw s.error}}},n.prototype.doPopupsOverlap=function(s,l){var c=s.getElement().getBoundingClientRect(),m=l.getElement().getBoundingClientRect();return c.left<m.right&&c.right>m.left&&c.top<m.bottom&&c.bottom>m.top},n}(),t=new i;x.popupManager=t,x.Tooltip=o;var e=function(n){k(s,n);function s(l){l===void 0&&(l=document.body);var c=n.call(this,l)||this;c.timeout=void 0,c.lastT=0,c.idleTime=350,c.lastEvent=void 0,c.onMouseOut=c.onMouseOut.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.waitForHover=c.waitForHover.bind(c),c.hide=c.hide.bind(c);var m=c.getElement();return m.style.whiteSpace="pre-wrap",m.style.pointerEvents="auto",m.addEventListener("mouseout",c.onMouseOut),m.tabIndex=-1,m.addEventListener("blur",function(){m.contains(document.activeElement)||this.hide()}.bind(c)),m.addEventListener("wheel",h),c}return s.prototype.addToEditor=function(l){l.on("mousemove",this.onMouseMove),l.on("mousedown",this.hide),l.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},s.prototype.removeFromEditor=function(l){l.off("mousemove",this.onMouseMove),l.off("mousedown",this.hide),l.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.onMouseMove=function(l,c){this.lastEvent=l,this.lastT=Date.now();var m=c.$mouseHandler.isMousePressed;if(this.isOpen){var v=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(v.row,v.column)||m||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||m||(this.lastEvent=l,this.timeout=setTimeout(this.waitForHover,this.idleTime))},s.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var l=Date.now()-this.lastT;if(this.idleTime-l>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-l);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},s.prototype.isOutsideOfText=function(l){var c=l.editor,m=l.getDocumentPosition(),v=c.session.getLine(m.row);if(m.column==v.length){var g=c.renderer.pixelToScreenCoordinates(l.clientX,l.clientY),f=c.session.documentToScreenPosition(m.row,m.column);if(f.column!=g.column||f.row!=g.row)return!0}return!1},s.prototype.setDataProvider=function(l){this.$gatherData=l},s.prototype.showForRange=function(l,c,m,v){var g=10;if(!(v&&v!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var f=l.renderer;this.isOpen||(t.addPopup(this),this.$registerCloseEvents(),this.setTheme(f.theme)),this.isOpen=!0,this.addMarker(c,l.session),this.range=a.fromPoints(c.start,c.end);var b=f.textToScreenCoordinates(c.start.row,c.start.column),L=f.scroller.getBoundingClientRect();b.pageX<L.left&&(b.pageX=L.left);var M=this.getElement();M.innerHTML="",M.appendChild(m),M.style.maxHeight="",M.style.display="block";var $=M.clientHeight,_=M.clientWidth,w=window.innerHeight-b.pageY-f.lineHeight,y=!0;b.pageY-$<0&&b.pageY<w&&(y=!1),M.style.maxHeight=(y?b.pageY:w)-g+"px",M.style.top=y?"":b.pageY+f.lineHeight+"px",M.style.bottom=y?window.innerHeight-b.pageY+"px":"",M.style.left=Math.min(b.pageX,window.innerWidth-_-g)+"px"}},s.prototype.addMarker=function(l,c){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=c,this.marker=c&&c.addMarker(l,"ace_highlight-marker","text")},s.prototype.hide=function(l){!l&&document.activeElement==this.getElement()||l&&l.target&&(l.type!="keydown"||l.ctrlKey||l.metaKey)&&this.$element.contains(l.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,t.removePopup(this)))},s.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},s.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},s.prototype.onMouseOut=function(l){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!l.relatedTarget||this.getElement().contains(l.relatedTarget)||l&&l.currentTarget.contains(l.relatedTarget)||l.relatedTarget.classList.contains("ace_content")||this.hide())},s}(o);x.HoverTooltip=e}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(R,x,P){var k=this&&this.__extends||function(){var n=function(s,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,m){c.__proto__=m}||function(c,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(c[v]=m[v])},n(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),A=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&n[s],c=0;if(l)return l.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},C=R("../lib/dom"),a=R("../lib/event"),h=R("../tooltip").Tooltip,r=R("../config").nls,o=5,i=3;x.GUTTER_TOOLTIP_LEFT_OFFSET=o,x.GUTTER_TOOLTIP_TOP_OFFSET=i;function t(n){var s=n.editor,l=s.renderer.$gutterLayer,c=new e(s,!0);n.editor.setDefaultHandler("guttermousedown",function(L){if(!(!s.isFocused()||L.getButton()!=0)){var M=l.getRegion(L);if(M!="foldWidgets"){var $=L.getDocumentPosition().row,_=s.session.selection;if(L.getShiftKey())_.selectTo($,0);else{if(L.domEvent.detail==2)return s.selectAll(),L.preventDefault();n.$clickSelection=s.selection.getLineRange($)}return n.setState("selectByLines"),n.captureMouse(L),L.preventDefault()}}});var m,v;function g(){var L=v.getDocumentPosition().row,M=s.session.getLength();if(L==M){var $=s.renderer.pixelToScreenCoordinates(0,v.y).row,_=v.$pos;if($>s.session.documentToScreenRow(_.row,_.column))return f()}if(c.showTooltip(L),!!c.isOpen)if(s.on("mousewheel",f),s.on("changeSession",f),window.addEventListener("keydown",f,!0),n.$tooltipFollowsMouse)b(v);else{var w=v.getGutterRow(),y=l.$lines.get(w);if(y){var d=y.element.querySelector(".ace_gutter_annotation"),u=d.getBoundingClientRect(),p=c.getElement().style;p.left=u.right-o+"px",p.top=u.bottom-i+"px"}else b(v)}}function f(L){L&&L.type==="keydown"&&(L.ctrlKey||L.metaKey)||L&&L.type==="mouseout"&&(!L.relatedTarget||c.getElement().contains(L.relatedTarget))||(m&&(m=clearTimeout(m)),c.isOpen&&(c.hideTooltip(),s.off("mousewheel",f),s.off("changeSession",f),window.removeEventListener("keydown",f,!0)))}function b(L){c.setPosition(L.x,L.y)}n.editor.setDefaultHandler("guttermousemove",function(L){var M=L.domEvent.target||L.domEvent.srcElement;if(C.hasCssClass(M,"ace_fold-widget")||C.hasCssClass(M,"ace_custom-widget"))return f();c.isOpen&&n.$tooltipFollowsMouse&&b(L),v=L,!m&&(m=setTimeout(function(){m=null,v&&!n.isMousePressed&&g()},50))}),a.addListener(s.renderer.$gutter,"mouseout",function(L){v=null,c.isOpen&&(m=setTimeout(function(){m=null,f(L)},50))},s)}x.GutterHandler=t;var e=function(n){k(s,n);function s(l,c){c===void 0&&(c=!1);var m=n.call(this,l.container)||this;m.editor=l,m.visibleTooltipRow;var v=m.getElement();return v.setAttribute("role","tooltip"),v.style.pointerEvents="auto",c&&(m.onMouseOut=m.onMouseOut.bind(m),v.addEventListener("mouseout",m.onMouseOut)),m}return s.prototype.onMouseOut=function(l){this.isOpen&&(!l.relatedTarget||this.getElement().contains(l.relatedTarget)||l&&l.currentTarget.contains(l.relatedTarget)||this.hideTooltip())},s.prototype.setPosition=function(l,c){var m=window.innerWidth||document.documentElement.clientWidth,v=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),f=this.getHeight();l+=15,c+=15,l+g>m&&(l-=l+g-m),c+f>v&&(c-=20+f),h.prototype.setPosition.call(this,l,c)},Object.defineProperty(s,"annotationLabels",{get:function(){return{error:{singular:r("gutter-tooltip.aria-label.error.singular","error"),plural:r("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:r("gutter-tooltip.aria-label.security.singular","security finding"),plural:r("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:r("gutter-tooltip.aria-label.warning.singular","warning"),plural:r("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:r("gutter-tooltip.aria-label.info.singular","information message"),plural:r("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:r("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:r("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),s.prototype.showTooltip=function(l){var c,m=this.editor.renderer.$gutterLayer,v=m.$annotations[l],g;v?g={displayText:Array.from(v.displayText),type:Array.from(v.type)}:g={displayText:[],type:[]};var f=m.session.getFoldLine(l);if(f&&m.$showFoldedAnnotations){for(var b={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},M,$=l+1;$<=f.end.row;$++)if(m.$annotations[$])for(var _=0;_<m.$annotations[$].text.length;_++){var w=m.$annotations[$].type[_];b[w].push(m.$annotations[$].text[_]),(!M||L[w]<L[M])&&(M=w)}if(["error","security","warning"].includes(M)){var y="".concat(s.annotationsToSummaryString(b)," in folded code.");g.displayText.push(y),g.type.push(M+"_fold")}}if(g.displayText.length===0)return this.hideTooltip();for(var d={error:[],security:[],warning:[],info:[],hint:[]},u=m.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",$=0;$<g.displayText.length;$++){var p=C.createElement("span"),S=C.createElement("span");(c=S.classList).add.apply(c,["ace_".concat(g.type[$]),u]),S.setAttribute("aria-label","".concat(s.annotationLabels[g.type[$].replace("_fold","")].singular)),S.setAttribute("role","img"),S.appendChild(C.createTextNode(" ")),p.appendChild(S),p.appendChild(C.createTextNode(g.displayText[$])),p.appendChild(C.createElement("br")),d[g.type[$].replace("_fold","")].push(p)}var T=this.getElement();C.removeChildren(T),d.error.forEach(function(E){return T.appendChild(E)}),d.security.forEach(function(E){return T.appendChild(E)}),d.warning.forEach(function(E){return T.appendChild(E)}),d.info.forEach(function(E){return T.appendChild(E)}),d.hint.forEach(function(E){return T.appendChild(E)}),T.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=l,this.editor._signal("showGutterTooltip",this)},s.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},s.annotationsToSummaryString=function(l){var c,m,v=[],g=["error","security","warning","info","hint"];try{for(var f=A(g),b=f.next();!b.done;b=f.next()){var L=b.value;if(l[L].length){var M=l[L].length===1?s.annotationLabels[L].singular:s.annotationLabels[L].plural;v.push("".concat(l[L].length," ").concat(M))}}}catch($){c={error:$}}finally{try{b&&!b.done&&(m=f.return)&&m.call(f)}finally{if(c)throw c.error}}return v.join(", ")},s}(h);x.GutterTooltip=e}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(R,x,P){var k=R("../lib/event"),A=R("../lib/useragent"),C=function(){function a(h,r){this.speed,this.wheelX,this.wheelY,this.domEvent=h,this.editor=r,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return a.prototype.stopPropagation=function(){k.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){k.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row,r=this.editor.session.documentToScreenRow(h,0),o=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return r-o},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var h=this.editor,r=h.getSelectionRange();if(r.isEmpty())this.$inSelection=!1;else{var o=this.getDocumentPosition();this.$inSelection=r.contains(o.row,o.column)}return this.$inSelection},a.prototype.getButton=function(){return k.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return A.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();x.MouseEvent=C}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(R,x,P){var k=R("../lib/dom"),A=R("../lib/event"),C=R("../lib/useragent"),a=200,h=200,r=5;function o(t){var e=t.editor,n=k.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";var s=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];s.forEach(function(O){t[O]=this[O]},this),e.on("mousedown",this.onMouseDown.bind(t));var l=e.container,c,m,v,g,f,b,L=0,M,$,_,w,y;this.onDragStart=function(O){if(this.cancelDrag||!l.draggable){var N=this;return setTimeout(function(){N.startSelect(),N.captureMouse(O)},0),O.preventDefault()}f=e.getSelectionRange();var F=O.dataTransfer;F.effectAllowed=e.getReadOnly()?"copy":"copyMove",e.container.appendChild(n),F.setDragImage&&F.setDragImage(n,0,0),setTimeout(function(){e.container.removeChild(n)}),F.clearData(),F.setData("Text",e.session.getTextRange()),$=!0,this.setState("drag")},this.onDragEnd=function(O){if(l.draggable=!1,$=!1,this.setState(null),!e.getReadOnly()){var N=O.dataTransfer.dropEffect;!M&&N=="move"&&e.session.remove(e.getSelectionRange()),e.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(O){if(!(e.getReadOnly()||!D(O.dataTransfer)))return m=O.clientX,v=O.clientY,c||S(),L++,O.dataTransfer.dropEffect=M=H(O),A.preventDefault(O)},this.onDragOver=function(O){if(!(e.getReadOnly()||!D(O.dataTransfer)))return m=O.clientX,v=O.clientY,c||(S(),L++),E!==null&&(E=null),O.dataTransfer.dropEffect=M=H(O),A.preventDefault(O)},this.onDragLeave=function(O){if(L--,L<=0&&c)return T(),M=null,A.preventDefault(O)},this.onDrop=function(O){if(b){var N=O.dataTransfer;if($)switch(M){case"move":f.contains(b.row,b.column)?f={start:b,end:b}:f=e.moveText(f,b);break;case"copy":f=e.moveText(f,b,!0);break}else{var F=N.getData("Text");f={start:b,end:e.session.insert(b,F)},e.focus(),M=null}return T(),A.preventDefault(O)}},A.addListener(l,"dragstart",this.onDragStart.bind(t),e),A.addListener(l,"dragend",this.onDragEnd.bind(t),e),A.addListener(l,"dragenter",this.onDragEnter.bind(t),e),A.addListener(l,"dragover",this.onDragOver.bind(t),e),A.addListener(l,"dragleave",this.onDragLeave.bind(t),e),A.addListener(l,"drop",this.onDrop.bind(t),e);function d(O,N){var F=Date.now(),W=!N||O.row!=N.row,z=!N||O.column!=N.column;if(!w||W||z)e.moveCursorToPosition(O),w=F,y={x:m,y:v};else{var U=i(y.x,y.y,m,v);U>r?w=null:F-w>=h&&(e.renderer.scrollCursorIntoView(),w=null)}}function u(O,N){var F=Date.now(),W=e.renderer.layerConfig.lineHeight,z=e.renderer.layerConfig.characterWidth,U=e.renderer.scroller.getBoundingClientRect(),V={x:{left:m-U.left,right:U.right-m},y:{top:v-U.top,bottom:U.bottom-v}},j=Math.min(V.x.left,V.x.right),Y=Math.min(V.y.top,V.y.bottom),Z={row:O.row,column:O.column};j/z<=2&&(Z.column+=V.x.left<V.x.right?-3:2),Y/W<=1&&(Z.row+=V.y.top<V.y.bottom?-1:1);var te=O.row!=Z.row,oe=O.column!=Z.column,q=!N||O.row!=N.row;te||oe&&!q?_?F-_>=a&&e.renderer.scrollCursorIntoView(Z):_=F:_=null}function p(){var O=b;b=e.renderer.screenToTextCoordinates(m,v),d(b,O),u(b,O)}function S(){f=e.selection.toOrientedRange(),c=e.session.addMarker(f,"ace_selection",e.getSelectionStyle()),e.clearSelection(),e.isFocused()&&e.renderer.$cursorLayer.setBlinking(!1),clearInterval(g),p(),g=setInterval(p,20),L=0,A.addListener(document,"mousemove",I)}function T(){clearInterval(g),e.session.removeMarker(c),c=null,e.selection.fromOrientedRange(f),e.isFocused()&&!$&&e.$resetCursorStyle(),f=null,b=null,L=0,_=null,w=null,A.removeListener(document,"mousemove",I)}var E=null;function I(){E==null&&(E=setTimeout(function(){E!=null&&c&&T()},20))}function D(O){var N=O.types;return!N||Array.prototype.some.call(N,function(F){return F=="text/plain"||F=="Text"})}function H(O){var N=["copy","copymove","all","uninitialized"],F=["move","copymove","linkmove","all","uninitialized"],W=C.isMac?O.altKey:O.ctrlKey,z="uninitialized";try{z=O.dataTransfer.effectAllowed.toLowerCase()}catch{}var U="none";return W&&N.indexOf(z)>=0?U="copy":F.indexOf(z)>=0?U="move":N.indexOf(z)>=0&&(U="copy"),U}}(function(){this.dragWait=function(){var t=Date.now()-this.mousedownEvent.time;t>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var t=this.editor.container;t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor,e=t.container;e.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var n=C.isWin?"default":"move";t.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(t){var e=this.editor.container;if(C.isIE&&this.state=="dragReady"){var n=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&e.dragDrop()}if(this.state==="dragWait"){var n=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var e=this.editor,n=t.inSelection(),s=t.getButton(),l=t.domEvent.detail||1;if(l===1&&s===0&&n){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var c=t.domEvent.target||t.domEvent.srcElement;if("unselectable"in c&&(c.unselectable="on"),e.getDragDelay()){if(C.isWebKit){this.cancelDrag=!0;var m=e.container;m.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(o.prototype);function i(t,e,n,s){return Math.sqrt(Math.pow(n-t,2)+Math.pow(s-e,2))}x.DragdropHandler=o}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(R,x,P){var k=R("./mouse_event").MouseEvent,A=R("../lib/event"),C=R("../lib/dom");x.addTouchListeners=function(a,h){var r="scroll",o,i,t,e,n,s,l=0,c,m=0,v=0,g=0,f,b;function L(){var d=window.navigator&&window.navigator.clipboard,u=!1,p=function(){var E=h.getCopyText(),I=h.session.getUndoManager().hasUndo();b.replaceChild(C.buildDom(u?["span",!E&&S("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],E&&S("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],E&&S("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],d&&S("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],I&&S("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],S("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],S("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),b.firstChild)},S=function(E){return h.commands.canExecute(E,h)},T=function(E){var I=E.target.getAttribute("action");if(I=="more"||!u)return u=!u,p();I=="paste"?d.readText().then(function(D){h.execCommand(I,D)}):I&&((I=="cut"||I=="copy")&&(d?d.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(I)),b.firstChild.style.display="none",u=!1,I!="openCommandPalette"&&h.focus()};b=C.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(E){r="menu",E.stopPropagation(),E.preventDefault(),h.textInput.focus()},ontouchend:function(E){E.stopPropagation(),E.preventDefault(),T(E)},onclick:T},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function M(){if(!h.getOption("enableMobileMenu")){b&&$();return}b||L();var d=h.selection.cursor,u=h.renderer.textToScreenCoordinates(d.row,d.column),p=h.renderer.textToScreenCoordinates(0,0).pageX,S=h.renderer.scrollLeft,T=h.container.getBoundingClientRect();b.style.top=u.pageY-T.top-3+"px",u.pageX-T.left<T.width-70?(b.style.left="",b.style.right="10px"):(b.style.right="",b.style.left=p+S-T.left+"px"),b.style.display="",b.firstChild.style.display="none",h.on("input",$)}function $(d){b&&(b.style.display="none"),h.off("input",$)}function _(){n=null,clearTimeout(n);var d=h.selection.getRange(),u=d.contains(c.row,c.column);(d.isEmpty()||!u)&&(h.selection.moveToPosition(c),h.selection.selectWord()),r="wait",M()}function w(){n=null,clearTimeout(n),h.selection.moveToPosition(c);var d=m>=2?h.selection.getLineRange(c.row):h.session.getBracketRange(c);d&&!d.isEmpty()?h.selection.setRange(d):h.selection.selectWord(),r="wait"}A.addListener(a,"contextmenu",function(d){if(f){var u=h.textInput.getElement();u.focus()}},h),A.addListener(a,"touchstart",function(d){var u=d.touches;if(n||u.length>1){clearTimeout(n),n=null,t=-1,r="zoom";return}f=h.$mouseHandler.isMousePressed=!0;var p=h.renderer.layerConfig.lineHeight,S=h.renderer.layerConfig.lineHeight,T=d.timeStamp;e=T;var E=u[0],I=E.clientX,D=E.clientY;Math.abs(o-I)+Math.abs(i-D)>p&&(t=-1),o=d.clientX=I,i=d.clientY=D,v=g=0;var H=new k(d,h);if(c=H.getDocumentPosition(),T-t<500&&u.length==1&&!l)m++,d.preventDefault(),d.button=0,w();else{m=0;var O=h.selection.cursor,N=h.selection.isEmpty()?O:h.selection.anchor,F=h.renderer.$cursorLayer.getPixelPosition(O,!0),W=h.renderer.$cursorLayer.getPixelPosition(N,!0),z=h.renderer.scroller.getBoundingClientRect(),U=h.renderer.layerConfig.offset,V=h.renderer.scrollLeft,j=function(te,oe){return te=te/S,oe=oe/p-.75,te*te+oe*oe};if(d.clientX<z.left){r="zoom";return}var Y=j(d.clientX-z.left-F.left+V,d.clientY-z.top-F.top+U),Z=j(d.clientX-z.left-W.left+V,d.clientY-z.top-W.top+U);Y<3.5&&Z<3.5&&(r=Y>Z?"cursor":"anchor"),Z<3.5?r="anchor":Y<3.5?r="cursor":r="scroll",n=setTimeout(_,450)}t=T},h),A.addListener(a,"touchend",function(d){f=h.$mouseHandler.isMousePressed=!1,s&&clearInterval(s),r=="zoom"?(r="",l=0):n?(h.selection.moveToPosition(c),l=0,M()):r=="scroll"?(y(),$()):M(),clearTimeout(n),n=null},h),A.addListener(a,"touchmove",function(d){n&&(clearTimeout(n),n=null);var u=d.touches;if(!(u.length>1||r=="zoom")){var p=u[0],S=o-p.clientX,T=i-p.clientY;if(r=="wait")if(S*S+T*T>4)r="cursor";else return d.preventDefault();o=p.clientX,i=p.clientY,d.clientX=p.clientX,d.clientY=p.clientY;var E=d.timeStamp,I=E-e;if(e=E,r=="scroll"){var D=new k(d,h);D.speed=1,D.wheelX=S,D.wheelY=T,10*Math.abs(S)<Math.abs(T)&&(S=0),10*Math.abs(T)<Math.abs(S)&&(T=0),I!=0&&(v=S/I,g=T/I),h._emit("mousewheel",D),D.propagationStopped||(v=g=0)}else{var H=new k(d,h),O=H.getDocumentPosition();r=="cursor"?h.selection.moveCursorToPosition(O):r=="anchor"&&h.selection.setSelectionAnchor(O.row,O.column),h.renderer.scrollCursorIntoView(O),d.preventDefault()}}},h);function y(){l+=60,s=setInterval(function(){l--<=0&&(clearInterval(s),s=null),Math.abs(v)<.01&&(v=0),Math.abs(g)<.01&&(g=0),l<20&&(v=.9*v),l<20&&(g=.9*g);var d=h.session.getScrollTop();h.renderer.scrollBy(10*v,10*g),d==h.session.getScrollTop()&&(l=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(R,x,P){var k=R("../lib/event"),A=R("../lib/useragent"),C=R("./default_handlers").DefaultHandlers,a=R("./default_gutter_handler").GutterHandler,h=R("./mouse_event").MouseEvent,r=R("./dragdrop_handler").DragdropHandler,o=R("./touch_handler").addTouchListeners,i=R("../config"),t=function(){function e(n){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var s=this;this.editor=n,new C(this),new a(this),new r(this);var l=function(v){var g=!document.hasFocus||!document.hasFocus()||!n.isFocused()&&document.activeElement==(n.textInput&&n.textInput.getElement());g&&window.focus(),n.focus(),setTimeout(function(){n.isFocused()||n.focus()})},c=n.renderer.getMouseEventTarget();k.addListener(c,"click",this.onMouseEvent.bind(this,"click"),n),k.addListener(c,"mousemove",this.onMouseMove.bind(this,"mousemove"),n),k.addMultiMouseDownListener([c,n.renderer.scrollBarV&&n.renderer.scrollBarV.inner,n.renderer.scrollBarH&&n.renderer.scrollBarH.inner,n.textInput&&n.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",n),k.addMouseWheelListener(n.container,this.onMouseWheel.bind(this,"mousewheel"),n),o(n.container,n);var m=n.renderer.$gutter;k.addListener(m,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),n),k.addListener(m,"click",this.onMouseEvent.bind(this,"gutterclick"),n),k.addListener(m,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),n),k.addListener(m,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),n),k.addListener(c,"mousedown",l,n),k.addListener(m,"mousedown",l,n),A.isIE&&n.renderer.scrollBarV&&(k.addListener(n.renderer.scrollBarV.element,"mousedown",l,n),k.addListener(n.renderer.scrollBarH.element,"mousedown",l,n)),n.on("mousemove",function(v){if(!(s.state||s.$dragDelay||!s.$dragEnabled)){var g=n.renderer.screenToTextCoordinates(v.x,v.y),f=n.session.selection.getRange(),b=n.renderer;!f.isEmpty()&&f.insideStart(g.row,g.column)?b.setCursorStyle("default"):b.setCursorStyle("")}},n)}return e.prototype.onMouseEvent=function(n,s){this.editor.session&&this.editor._emit(n,new h(s,this.editor))},e.prototype.onMouseMove=function(n,s){var l=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!l||!l.length||this.editor._emit(n,new h(s,this.editor))},e.prototype.onMouseWheel=function(n,s){var l=new h(s,this.editor);l.speed=this.$scrollSpeed*2,l.wheelX=s.wheelX,l.wheelY=s.wheelY,this.editor._emit(n,l)},e.prototype.setState=function(n){this.state=n},e.prototype.captureMouse=function(n,s){this.x=n.x,this.y=n.y,this.isMousePressed=!0;var l=this.editor,c=this.editor.renderer;c.$isMousePressed=!0;var m=this,v=!0,g=function($){if($){if(A.isWebKit&&!$.which&&m.releaseMouse)return m.releaseMouse();m.x=$.clientX,m.y=$.clientY,s&&s($),m.mouseEvent=new h($,m.editor),m.$mouseMoved=!0}},f=function($){l.off("beforeEndOperation",M),v=!1,l.session&&b(),m[m.state+"End"]&&m[m.state+"End"]($),m.state="",m.isMousePressed=c.$isMousePressed=!1,c.$keepTextAreaAtCursor&&c.$moveTextAreaToCursor(),m.$onCaptureMouseMove=m.releaseMouse=null,$&&m.onMouseEvent("mouseup",$),l.endOperation()},b=function(){m[m.state]&&m[m.state](),m.$mouseMoved=!1},L=function(){v&&(b(),k.nextFrame(L))};if(A.isOldIE&&n.domEvent.type=="dblclick")return setTimeout(function(){f(n)});var M=function($){m.releaseMouse&&l.curOp.command.name&&l.curOp.selectionChanged&&(m[m.state+"End"]&&m[m.state+"End"](),m.state="",m.releaseMouse())};l.on("beforeEndOperation",M),l.startOperation({command:{name:"mouse"}}),m.$onCaptureMouseMove=g,m.releaseMouse=k.capture(this.editor.container,g,f),L()},e.prototype.cancelContextMenu=function(){var n=function(s){s&&s.domEvent&&s.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",n),s&&s.domEvent&&k.stopEvent(s.domEvent))}.bind(this);setTimeout(n,10),this.editor.on("nativecontextmenu",n)},e.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},e}();t.prototype.releaseMouse=null,i.defineOptions(t.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:A.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),x.MouseHandler=t}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(R,x,P){var k=R("../lib/dom"),A=function(){function C(a){a.on("click",function(h){var r=h.getDocumentPosition(),o=a.session,i=o.getFoldAt(r.row,r.column,1);i&&(h.getAccelKey()?o.removeFold(i):o.expandFold(i),h.stop());var t=h.domEvent&&h.domEvent.target;t&&k.hasCssClass(t,"ace_inline_button")&&k.hasCssClass(t,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),a.renderer.scrollCursorIntoView())}),a.on("gutterclick",function(h){var r=a.renderer.$gutterLayer.getRegion(h);if(r=="foldWidgets"){var o=h.getDocumentPosition().row,i=a.session;i.foldWidgets&&i.foldWidgets[o]&&a.session.onFoldWidgetClick(o,h),a.isFocused()||a.focus(),h.stop()}}),a.on("gutterdblclick",function(h){var r=a.renderer.$gutterLayer.getRegion(h);if(r=="foldWidgets"){var o=h.getDocumentPosition().row,i=a.session,t=i.getParentFoldRangeData(o,!0),e=t.range||t.firstRange;if(e){o=e.start.row;var n=i.getFoldAt(o,i.getLine(o).length,1);n?i.removeFold(n):(i.addFold("...",e),a.renderer.scrollCursorIntoView({row:e.start.row,column:0}))}h.stop()}})}return C}();x.FoldHandler=A}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(R,x,P){var k=R("../lib/keys"),A=R("../lib/event"),C=function(){function a(h){this.$editor=h,this.$data={editor:h},this.$handlers=[],this.setDefaultHandler(h.commands)}return a.prototype.setDefaultHandler=function(h){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=h,this.addKeyboardHandler(h,0)},a.prototype.setKeyboardHandler=function(h){var r=this.$handlers;if(r[r.length-1]!=h){for(;r[r.length-1]&&r[r.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(r[r.length-1]);this.addKeyboardHandler(h,1)}},a.prototype.addKeyboardHandler=function(h,r){if(h){typeof h=="function"&&!h.handleKeyboard&&(h.handleKeyboard=h);var o=this.$handlers.indexOf(h);o!=-1&&this.$handlers.splice(o,1),r==null?this.$handlers.push(h):this.$handlers.splice(r,0,h),o==-1&&h.attach&&h.attach(this.$editor)}},a.prototype.removeKeyboardHandler=function(h){var r=this.$handlers.indexOf(h);return r==-1?!1:(this.$handlers.splice(r,1),h.detach&&h.detach(this.$editor),!0)},a.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},a.prototype.getStatusText=function(){var h=this.$data,r=h.editor;return this.$handlers.map(function(o){return o.getStatusText&&o.getStatusText(r,h)||""}).filter(Boolean).join(" ")},a.prototype.$callKeyboardHandlers=function(h,r,o,i){for(var t,e=!1,n=this.$editor.commands,s=this.$handlers.length;s--&&(t=this.$handlers[s].handleKeyboard(this.$data,h,r,o,i),!(!(!t||!t.command)&&(t.command=="null"?e=!0:e=n.exec(t.command,this.$editor,t.args,i),e&&i&&h!=-1&&t.passEvent!=!0&&t.command.passEvent!=!0&&A.stopEvent(i),e))););return!e&&h==-1&&(t={command:"insertstring"},e=n.exec("insertstring",this.$editor,r)),e&&this.$editor._signal&&this.$editor._signal("keyboardActivity",t),e},a.prototype.onCommandKey=function(h,r,o){var i=k.keyCodeToString(o);return this.$callKeyboardHandlers(r,i,o,h)},a.prototype.onTextInput=function(h){return this.$callKeyboardHandlers(-1,h)},a}();x.KeyBinding=C}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(R,x,P){var k=0,A=0,C=!1,a=!1,h=!1,r=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],o=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],i=0,t=1,e=0,n=1,s=2,l=3,c=4,m=5,v=6,g=7,f=8,b=9,L=10,M=11,$=12,_=13,w=14,y=15,d=16,u=17,p=18,S=[p,p,p,p,p,p,p,p,p,v,m,v,f,m,p,p,p,p,p,p,p,p,p,p,p,p,p,p,m,m,m,v,f,c,c,M,M,M,c,c,c,c,c,L,b,L,b,b,s,s,s,s,s,s,s,s,s,s,b,c,c,c,c,c,c,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,c,c,c,c,c,c,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,c,c,c,c,p,p,p,p,p,p,m,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,b,c,M,M,M,M,c,c,c,c,e,c,c,p,c,c,M,M,s,s,c,e,c,c,c,s,e,c,c,c,c,c],T=[f,f,f,f,f,f,f,f,f,f,f,p,p,p,e,n,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,f,m,_,w,y,d,u,b,M,M,M,M,M,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,b,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,f];function E(O,N,F,W){var z=k?o:r,U=null,V=null,j=null,Y=0,Z=null,te=null,oe=-1,q=null,ae=null,le=[];if(!W)for(q=0,W=[];q<F;q++)W[q]=H(O[q]);for(A=k,C=!1,a=!1,h=!1,ae=0;ae<F;ae++){if(U=Y,le[ae]=V=D(O,W,le,ae),Y=z[U][V],Z=Y&240,Y&=15,N[ae]=j=z[Y][5],Z>0)if(Z==16){for(q=oe;q<ae;q++)N[q]=1;oe=-1}else oe=-1;if(te=z[Y][6],te)oe==-1&&(oe=ae);else if(oe>-1){for(q=oe;q<ae;q++)N[q]=j;oe=-1}W[ae]==m&&(N[ae]=0),A|=j}if(h){for(q=0;q<F;q++)if(W[q]==v){N[q]=k;for(var ce=q-1;ce>=0&&W[ce]==f;ce--)N[ce]=k}}}function I(O,N,F){if(!(A<O)){if(O==1&&k==t&&!a){F.reverse();return}for(var W=F.length,z=0,U,V,j,Y;z<W;){if(N[z]>=O){for(U=z+1;U<W&&N[U]>=O;)U++;for(V=z,j=U-1;V<j;V++,j--)Y=F[V],F[V]=F[j],F[j]=Y;z=U}z++}}}function D(O,N,F,W){var z=N[W],U,V,j,Y;switch(z){case e:case n:C=!1;case c:case l:return z;case s:return C?l:s;case g:return C=!0,n;case f:return c;case b:return W<1||W+1>=N.length||(U=F[W-1])!=s&&U!=l||(V=N[W+1])!=s&&V!=l?c:(C&&(V=l),V==U?V:c);case L:return U=W>0?F[W-1]:m,U==s&&W+1<N.length&&N[W+1]==s?s:c;case M:if(W>0&&F[W-1]==s)return s;if(C)return c;for(Y=W+1,j=N.length;Y<j&&N[Y]==M;)Y++;return Y<j&&N[Y]==s?s:c;case $:for(j=N.length,Y=W+1;Y<j&&N[Y]==$;)Y++;if(Y<j){var Z=O[W],te=Z>=1425&&Z<=2303||Z==64286;if(U=N[Y],te&&(U==n||U==g))return n}return W<1||(U=N[W-1])==m?c:F[W-1];case m:return C=!1,a=!0,k;case v:return h=!0,c;case _:case w:case d:case u:case y:C=!1;case p:return c}}function H(O){var N=O.charCodeAt(0),F=N>>8;return F==0?N>191?e:S[N]:F==5?/[\u0591-\u05f4]/.test(O)?n:e:F==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(O)?$:/[\u0660-\u0669\u066b-\u066c]/.test(O)?l:N==1642?M:/[\u06f0-\u06f9]/.test(O)?s:g:F==32&&N<=8287?T[N&255]:F==254&&N>=65136?g:c}x.L=e,x.R=n,x.EN=s,x.ON_R=3,x.AN=4,x.R_H=5,x.B=6,x.RLE=7,x.DOT="·",x.doBidiReorder=function(O,N,F){if(O.length<2)return{};var W=O.split(""),z=new Array(W.length),U=new Array(W.length),V=[];k=F?t:i,E(W,V,W.length,N);for(var j=0;j<z.length;z[j]=j,j++);I(2,V,z),I(1,V,z);for(var j=0;j<z.length-1;j++)N[j]===l?V[j]=x.AN:V[j]===n&&(N[j]>g&&N[j]<_||N[j]===c||N[j]===p)?V[j]=x.ON_R:j>0&&W[j-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(W[j])&&(V[j-1]=V[j]=x.R_H,j++);W[W.length-1]===x.DOT&&(V[W.length-1]=x.B),W[0]===""&&(V[0]=x.RLE);for(var j=0;j<z.length;j++)U[j]=V[z[j]];return{logicalFromVisual:z,bidiLevels:U}},x.hasBidiCharacters=function(O,N){for(var F=!1,W=0;W<O.length;W++)N[W]=H(O.charAt(W)),!F&&(N[W]==n||N[W]==g||N[W]==l)&&(F=!0);return F},x.getVisualFromLogicalIdx=function(O,N){for(var F=0;F<N.logicalFromVisual.length;F++)if(N.logicalFromVisual[F]==O)return F;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(R,x,P){var k=R("./lib/bidiutil"),A=R("./lib/lang"),C=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(){function h(r){this.session=r,this.bidiMap={},this.currentRow=null,this.bidiUtil=k,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=C.test(r.getValue())}return h.prototype.isBidiRow=function(r,o,i){return this.seenBidi?(r!==this.currentRow&&(this.currentRow=r,this.updateRowLine(o,i),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},h.prototype.onChange=function(r){this.seenBidi?this.currentRow=null:r.action=="insert"&&C.test(r.lines.join(`
|
|
179
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var r=0,o=this.session.$screenRowCache;if(o.length){var i=this.session.$getRowCacheIndex(o,this.currentRow);i>=0&&(r=this.session.$docRowCache[i])}return r},h.prototype.getSplitIndex=function(){var r=0,o=this.session.$screenRowCache;if(o.length)for(var i,t=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-r>0&&(i=this.session.$getRowCacheIndex(o,this.currentRow-r-1),i===t);)t=i,r++;else r=this.currentRow;return r},h.prototype.updateRowLine=function(r,o){r===void 0&&(r=this.getDocumentRow());var i=r===this.session.getLength()-1,t=i?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(r),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var e=this.session.$wrapData[r];e&&(o===void 0&&(o=this.getSplitIndex()),o>0&&e.length?(this.wrapIndent=e.indent,this.wrapOffset=this.wrapIndent*this.charWidths[k.L],this.line=o<e.length?this.line.substring(e[o-1],e[o]):this.line.substring(e[e.length-1])):this.line=this.line.substring(0,e[o]),o==e.length&&(this.line+=this.showInvisibles?t:k.DOT))}else this.line+=this.showInvisibles?t:k.DOT;var n=this.session,s=0,l;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(c,m){return c===" "||n.isFullWidth(c.charCodeAt(0))?(l=c===" "?n.getScreenTabSize(m+s):2,s+=l-1,A.stringRepeat(k.DOT,l)):c}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==k.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},h.prototype.updateBidiMap=function(){var r=[];k.hasBidiCharacters(this.line,r)||this.isRtlDir?this.bidiMap=k.doBidiReorder(this.line,r,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(r){if(this.characterWidth!==r.$characterSize.width){this.fontMetrics=r;var o=this.characterWidth=r.$characterSize.width,i=r.$measureCharWidth("ה");this.charWidths[k.L]=this.charWidths[k.EN]=this.charWidths[k.ON_R]=o,this.charWidths[k.R]=this.charWidths[k.AN]=i,this.charWidths[k.R_H]=i*.45,this.charWidths[k.B]=this.charWidths[k.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(r){this.showInvisibles=r,this.currentRow=null},h.prototype.setEolChar=function(r){this.EOL=r},h.prototype.setContentWidth=function(r){this.contentWidth=r},h.prototype.isRtlLine=function(r){return this.$isRtl?!0:r!=null?this.session.getLine(r).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(r,o){for(var i=r.getCursorPosition(),t=r.selection.getSelectionAnchor().row;t<=i.row;t++)!o&&r.session.getLine(t).charAt(0)===r.session.$bidiHandler.RLE?r.session.doc.removeInLine(t,0,1):o&&r.session.getLine(t).charAt(0)!==r.session.$bidiHandler.RLE&&r.session.doc.insert({column:0,row:t},r.session.$bidiHandler.RLE)},h.prototype.getPosLeft=function(r){r-=this.wrapIndent;var o=this.line.charAt(0)===this.RLE?1:0,i=r>o?this.session.getOverwrite()?r:r-1:o,t=k.getVisualFromLogicalIdx(i,this.bidiMap),e=this.bidiMap.bidiLevels,n=0;!this.session.getOverwrite()&&r<=o&&e[t]%2!==0&&t++;for(var s=0;s<t;s++)n+=this.charWidths[e[s]];return!this.session.getOverwrite()&&r>o&&e[t]%2===0&&(n+=this.charWidths[e[t]]),this.wrapIndent&&(n+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(n+=this.rtlLineOffset),n},h.prototype.getSelections=function(r,o){var i=this.bidiMap,t=i.bidiLevels,e,n=[],s=0,l=Math.min(r,o)-this.wrapIndent,c=Math.max(r,o)-this.wrapIndent,m=!1,v=!1,g=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,b=0;b<t.length;b++)f=i.logicalFromVisual[b],e=t[b],m=f>=l&&f<c,m&&!v?g=s:!m&&v&&n.push({left:g,width:s-g}),s+=this.charWidths[e],v=m;if(m&&b===t.length&&n.push({left:g,width:s-g}),this.isRtlDir)for(var L=0;L<n.length;L++)n[L].left+=this.rtlLineOffset;return n},h.prototype.offsetToCol=function(i){this.isRtlDir&&(i-=this.rtlLineOffset);var o=0,i=Math.max(i,0),t=0,e=0,n=this.bidiMap.bidiLevels,s=this.charWidths[n[e]];for(this.wrapIndent&&(i-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);i>t+s/2;){if(t+=s,e===n.length-1){s=0;break}s=this.charWidths[n[++e]]}return e>0&&n[e-1]%2!==0&&n[e]%2===0?(i<t&&e--,o=this.bidiMap.logicalFromVisual[e]):e>0&&n[e-1]%2===0&&n[e]%2!==0?o=1+(i>t?this.bidiMap.logicalFromVisual[e]:this.bidiMap.logicalFromVisual[e-1]):this.isRtlDir&&e===n.length-1&&s===0&&n[e-1]%2===0||!this.isRtlDir&&e===0&&n[e]%2!==0?o=1+this.bidiMap.logicalFromVisual[e]:(e>0&&n[e-1]%2!==0&&s!==0&&e--,o=this.bidiMap.logicalFromVisual[e]),o===0&&this.isRtlDir&&o++,o+this.wrapIndent},h}();x.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(R,x,P){var k=R("./lib/oop"),A=R("./lib/lang"),C=R("./lib/event_emitter").EventEmitter,a=R("./range").Range,h=function(){function r(o){this.session=o,this.doc=o.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var i=this;this.cursor.on("change",function(t){i.$cursorChanged=!0,i.$silent||i._emit("changeCursor"),!i.$isEmpty&&!i.$silent&&i._emit("changeSelection"),!i.$keepDesiredColumnOnChange&&t.old.column!=t.value.column&&(i.$desiredColumn=null)}),this.anchor.on("change",function(){i.$anchorChanged=!0,!i.$isEmpty&&!i.$silent&&i._emit("changeSelection")})}return r.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},r.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},r.prototype.getCursor=function(){return this.lead.getPosition()},r.prototype.setAnchor=function(o,i){this.$isEmpty=!1,this.anchor.setPosition(o,i)},r.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},r.prototype.getSelectionLead=function(){return this.lead.getPosition()},r.prototype.isBackwards=function(){var o=this.anchor,i=this.lead;return o.row>i.row||o.row==i.row&&o.column>i.column},r.prototype.getRange=function(){var o=this.anchor,i=this.lead;return this.$isEmpty?a.fromPoints(i,i):this.isBackwards()?a.fromPoints(i,o):a.fromPoints(o,i)},r.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},r.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},r.prototype.setRange=function(o,i){var t=i?o.end:o.start,e=i?o.start:o.end;this.$setSelection(t.row,t.column,e.row,e.column)},r.prototype.$setSelection=function(o,i,t,e){if(!this.$silent){var n=this.$isEmpty,s=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(o,i),this.cursor.setPosition(t,e),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||n!=this.$isEmpty||s)&&this._emit("changeSelection")}},r.prototype.$moveSelection=function(o){var i=this.lead;this.$isEmpty&&this.setSelectionAnchor(i.row,i.column),o.call(this)},r.prototype.selectTo=function(o,i){this.$moveSelection(function(){this.moveCursorTo(o,i)})},r.prototype.selectToPosition=function(o){this.$moveSelection(function(){this.moveCursorToPosition(o)})},r.prototype.moveTo=function(o,i){this.clearSelection(),this.moveCursorTo(o,i)},r.prototype.moveToPosition=function(o){this.clearSelection(),this.moveCursorToPosition(o)},r.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},r.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},r.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},r.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},r.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},r.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},r.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},r.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},r.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},r.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},r.prototype.getWordRange=function(o,i){if(typeof i>"u"){var t=o||this.lead;o=t.row,i=t.column}return this.session.getWordRange(o,i)},r.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},r.prototype.selectAWord=function(){var o=this.getCursor(),i=this.session.getAWordRange(o.row,o.column);this.setSelectionRange(i)},r.prototype.getLineRange=function(o,i){var t=typeof o=="number"?o:this.lead.row,e,n=this.session.getFoldLine(t);return n?(t=n.start.row,e=n.end.row):e=t,i===!0?new a(t,0,e,this.session.getLine(e).length):new a(t,0,e+1,0)},r.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},r.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},r.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},r.prototype.wouldMoveIntoSoftTab=function(o,i,t){var e=o.column,n=o.column+i;return t<0&&(e=o.column-i,n=o.column),this.session.isTabStop(o)&&this.doc.getLine(o.row).slice(e,n).split(" ").length-1==i},r.prototype.moveCursorLeft=function(){var o=this.lead.getPosition(),i;if(i=this.session.getFoldAt(o.row,o.column,-1))this.moveCursorTo(i.start.row,i.start.column);else if(o.column===0)o.row>0&&this.moveCursorTo(o.row-1,this.doc.getLine(o.row-1).length);else{var t=this.session.getTabSize();this.wouldMoveIntoSoftTab(o,t,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-t):this.moveCursorBy(0,-1)}},r.prototype.moveCursorRight=function(){var o=this.lead.getPosition(),i;if(i=this.session.getFoldAt(o.row,o.column,1))this.moveCursorTo(i.end.row,i.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var t=this.session.getTabSize(),o=this.lead;this.wouldMoveIntoSoftTab(o,t,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,t):this.moveCursorBy(0,1)}},r.prototype.moveCursorLineStart=function(){var o=this.lead.row,i=this.lead.column,t=this.session.documentToScreenRow(o,i),e=this.session.screenToDocumentPosition(t,0),n=this.session.getDisplayLine(o,null,e.row,e.column),s=n.match(/^\s*/);s[0].length!=i&&!this.session.$useEmacsStyleLineStart&&(e.column+=s[0].length),this.moveCursorToPosition(e)},r.prototype.moveCursorLineEnd=function(){var o=this.lead,i=this.session.getDocumentLastRowColumnPosition(o.row,o.column);if(this.lead.column==i.column){var t=this.session.getLine(i.row);if(i.column==t.length){var e=t.search(/\s+$/);e>0&&(i.column=e)}}this.moveCursorTo(i.row,i.column)},r.prototype.moveCursorFileEnd=function(){var o=this.doc.getLength()-1,i=this.doc.getLine(o).length;this.moveCursorTo(o,i)},r.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},r.prototype.moveCursorLongWordRight=function(){var o=this.lead.row,i=this.lead.column,t=this.doc.getLine(o),e=t.substring(i);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var n=this.session.getFoldAt(o,i,1);if(n){this.moveCursorTo(n.end.row,n.end.column);return}if(this.session.nonTokenRe.exec(e)&&(i+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,e=t.substring(i)),i>=t.length){this.moveCursorTo(o,t.length),this.moveCursorRight(),o<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(e)&&(i+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(o,i)},r.prototype.moveCursorLongWordLeft=function(){var o=this.lead.row,i=this.lead.column,t;if(t=this.session.getFoldAt(o,i,-1)){this.moveCursorTo(t.start.row,t.start.column);return}var e=this.session.getFoldStringAt(o,i,-1);e==null&&(e=this.doc.getLine(o).substring(0,i));var n=A.stringReverse(e);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(n)&&(i-=this.session.nonTokenRe.lastIndex,n=n.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0){this.moveCursorTo(o,0),this.moveCursorLeft(),o>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(n)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(o,i)},r.prototype.$shortWordEndIndex=function(o){var i=0,t,e=/\s/,n=this.session.tokenRe;if(n.lastIndex=0,this.session.tokenRe.exec(o))i=this.session.tokenRe.lastIndex;else{for(;(t=o[i])&&e.test(t);)i++;if(i<1){for(n.lastIndex=0;(t=o[i])&&!n.test(t);)if(n.lastIndex=0,i++,e.test(t))if(i>2){i--;break}else{for(;(t=o[i])&&e.test(t);)i++;if(i>2)break}}}return n.lastIndex=0,i},r.prototype.moveCursorShortWordRight=function(){var o=this.lead.row,i=this.lead.column,t=this.doc.getLine(o),e=t.substring(i),n=this.session.getFoldAt(o,i,1);if(n)return this.moveCursorTo(n.end.row,n.end.column);if(i==t.length){var s=this.doc.getLength();do o++,e=this.doc.getLine(o);while(o<s&&/^\s*$/.test(e));/^\s+/.test(e)||(e=""),i=0}var l=this.$shortWordEndIndex(e);this.moveCursorTo(o,i+l)},r.prototype.moveCursorShortWordLeft=function(){var o=this.lead.row,i=this.lead.column,t;if(t=this.session.getFoldAt(o,i,-1))return this.moveCursorTo(t.start.row,t.start.column);var e=this.session.getLine(o).substring(0,i);if(i===0){do o--,e=this.doc.getLine(o);while(o>0&&/^\s*$/.test(e));i=e.length,/\s+$/.test(e)||(e="")}var n=A.stringReverse(e),s=this.$shortWordEndIndex(n);return this.moveCursorTo(o,i-s)},r.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},r.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},r.prototype.moveCursorBy=function(o,i){var t=this.session.documentToScreenPosition(this.lead.row,this.lead.column),e;if(i===0&&(o!==0&&(this.session.$bidiHandler.isBidiRow(t.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(t.column),t.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=t.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?t.column=this.$desiredColumn:this.$desiredColumn=t.column),o!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var n=this.session.lineWidgets[this.lead.row];o<0?o-=n.rowsAbove||0:o>0&&(o+=n.rowCount-(n.rowsAbove||0))}var s=this.session.screenToDocumentPosition(t.row+o,t.column,e);o!==0&&i===0&&s.row===this.lead.row&&(s.column,this.lead.column),this.moveCursorTo(s.row,s.column+i,i===0)},r.prototype.moveCursorToPosition=function(o){this.moveCursorTo(o.row,o.column)},r.prototype.moveCursorTo=function(o,i,t){var e=this.session.getFoldAt(o,i,1);e&&(o=e.start.row,i=e.start.column),this.$keepDesiredColumnOnChange=!0;var n=this.session.getLine(o);/[\uDC00-\uDFFF]/.test(n.charAt(i))&&n.charAt(i-1)&&(this.lead.row==o&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(o,i),this.$keepDesiredColumnOnChange=!1,t||(this.$desiredColumn=null)},r.prototype.moveCursorToScreen=function(o,i,t){var e=this.session.screenToDocumentPosition(o,i);this.moveCursorTo(e.row,e.column,t)},r.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},r.prototype.fromOrientedRange=function(o){this.setSelectionRange(o,o.cursor==o.start),this.$desiredColumn=o.desiredColumn||this.$desiredColumn},r.prototype.toOrientedRange=function(o){var i=this.getRange();return o?(o.start.column=i.start.column,o.start.row=i.start.row,o.end.column=i.end.column,o.end.row=i.end.row):o=i,o.cursor=this.isBackwards()?o.start:o.end,o.desiredColumn=this.$desiredColumn,o},r.prototype.getRangeOfMovements=function(o){var i=this.getCursor();try{o(this);var t=this.getCursor();return a.fromPoints(i,t)}catch{return a.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},r.prototype.toJSON=function(){if(this.rangeCount)var o=this.ranges.map(function(i){var t=i.clone();return t.isBackwards=i.cursor==i.start,t});else{var o=this.getRange();o.isBackwards=this.isBackwards()}return o},r.prototype.fromJSON=function(o){if(o.start==null)if(this.rangeList&&o.length>1){this.toSingleRange(o[0]);for(var i=o.length;i--;){var t=a.fromPoints(o[i].start,o[i].end);o[i].isBackwards&&(t.cursor=t.start),this.addRange(t,!0)}return}else o=o[0];this.rangeList&&this.toSingleRange(o),this.setSelectionRange(o,o.isBackwards)},r.prototype.isEqual=function(o){if((o.length||this.rangeCount)&&o.length!=this.rangeCount)return!1;if(!o.length||!this.ranges)return this.getRange().isEqual(o);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(o[i]))return!1;return!0},r}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,k.implement(h.prototype,C),x.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(R,x,P){var k=R("./lib/report_error").reportError,A=2e3,C=function(){function a(h){this.splitRegex,this.states=h,this.regExps={},this.matchMappings={};for(var r in this.states){for(var o=this.states[r],i=[],t=0,e=this.matchMappings[r]={defaultToken:"text"},n="g",s=[],l=0;l<o.length;l++){var c=o[l];if(c.defaultToken&&(e.defaultToken=c.defaultToken),c.caseInsensitive&&n.indexOf("i")===-1&&(n+="i"),c.unicode&&n.indexOf("u")===-1&&(n+="u"),c.regex!=null){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var m=c.regex,v=new RegExp("(?:("+m+")|(.))").exec("a").length-2;Array.isArray(c.token)?c.token.length==1||v==1?c.token=c.token[0]:v-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:v-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):typeof c.token=="function"&&!c.onMatch&&(v>1?c.onMatch=this.$applyToken:c.onMatch=c.token),v>1&&(/\\\d/.test(c.regex)?m=c.regex.replace(/\\([0-9]+)/g,function(g,f){return"\\"+(parseInt(f,10)+t+1)}):(v=1,m=this.removeCapturingGroups(c.regex)),!c.splitRegex&&typeof c.token!="string"&&s.push(c)),e[t]=l,t+=v,i.push(m),c.onMatch||(c.onMatch=null)}}i.length||(e[0]=0,i.push("$")),s.forEach(function(g){g.splitRegex=this.createSplitterRegexp(g.regex,n)},this),this.regExps[r]=new RegExp("("+i.join(")|(")+")|($)",n)}}return a.prototype.$setMaxTokenCount=function(h){A=h|0},a.prototype.$applyToken=function(h){var r=this.splitRegex.exec(h).slice(1),o=this.token.apply(this,r);if(typeof o=="string")return[{type:o,value:h}];for(var i=[],t=0,e=o.length;t<e;t++)r[t]&&(i[i.length]={type:o[t],value:r[t]});return i},a.prototype.$arrayTokens=function(h){if(!h)return[];var r=this.splitRegex.exec(h);if(!r)return"text";for(var o=[],i=this.tokenArray,t=0,e=i.length;t<e;t++)r[t+1]&&(o[o.length]={type:i[t],value:r[t+1]});return o},a.prototype.removeCapturingGroups=function(h){var r=h.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(o,i){return i?"(?:":o});return r},a.prototype.createSplitterRegexp=function(h,r){if(h.indexOf("(?=")!=-1){var o=0,i=!1,t={};h.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,n,s,l,c,m){return i?i=c!="]":c?i=!0:l?(o==t.stack&&(t.end=m+1,t.stack=-1),o--):s&&(o++,s.length!=1&&(t.stack=o,t.start=m)),e}),t.end!=null&&/^\)*$/.test(h.substr(t.end))&&(h=h.substring(0,t.start)+h.substr(t.end))}return h.charAt(0)!="^"&&(h="^"+h),h.charAt(h.length-1)!="$"&&(h+="$"),new RegExp(h,(r||"").replace("g",""))},a.prototype.getLineTokens=function(h,r){if(r&&typeof r!="string"){var o=r.slice(0);r=o[0],r==="#tmp"&&(o.shift(),r=o.shift())}else var o=[];var i=r||"start",t=this.states[i];t||(i="start",t=this.states[i]);var e=this.matchMappings[i],n=this.regExps[i];n.lastIndex=0;for(var s,l=[],c=0,m=0,v={type:null,value:""};s=n.exec(h);){var g=e.defaultToken,f=null,b=s[0],L=n.lastIndex;if(L-b.length>c){var M=h.substring(c,L-b.length);v.type==g?v.value+=M:(v.type&&l.push(v),v={type:g,value:M})}for(var $=0;$<s.length-2;$++)if(s[$+1]!==void 0){f=t[e[$]],f.onMatch?g=f.onMatch(b,i,o,h):g=f.token,f.next&&(typeof f.next=="string"?i=f.next:i=f.next(i,o),t=this.states[i],t||(this.reportError("state doesn't exist",i),i="start",t=this.states[i]),e=this.matchMappings[i],c=L,n=this.regExps[i],n.lastIndex=L),f.consumeLineEnd&&(c=L);break}if(b){if(typeof g=="string")(!f||f.merge!==!1)&&v.type===g?v.value+=b:(v.type&&l.push(v),v={type:g,value:b});else if(g){v.type&&l.push(v),v={type:null,value:""};for(var $=0;$<g.length;$++)l.push(g[$])}}if(c==h.length)break;if(c=L,m++>A){for(m>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:r,line:h});c<h.length;)v.type&&l.push(v),v={value:h.substring(c,c+=500),type:"overflow"};i="start",o=[];break}}return v.type&&l.push(v),o.length>1&&o[0]!==i&&o.unshift("#tmp",i),{tokens:l,state:o.length?o:i}},a}();C.prototype.reportError=k,x.Tokenizer=C}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(R,x,P){var k=R("../lib/deep_copy").deepCopy,A;A=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},function(){this.addRules=function(h,r){if(!r){for(var o in h)this.$rules[o]=h[o];return}for(var o in h){for(var i=h[o],t=0;t<i.length;t++){var e=i[t];(e.next||e.onMatch)&&(typeof e.next=="string"&&e.next.indexOf(r)!==0&&(e.next=r+e.next),e.nextState&&e.nextState.indexOf(r)!==0&&(e.nextState=r+e.nextState))}this.$rules[r+o]=i}},this.getRules=function(){return this.$rules},this.embedRules=function(h,r,o,i,t){var e=typeof h=="function"?new h().getRules():h;if(i)for(var n=0;n<i.length;n++)i[n]=r+i[n];else{i=[];for(var s in e)i.push(r+s)}if(this.addRules(e,r),o)for(var l=Array.prototype[t?"push":"unshift"],n=0;n<i.length;n++)l.apply(this.$rules[i[n]],k(o));this.$embeds||(this.$embeds=[]),this.$embeds.push(r)},this.getEmbeds=function(){return this.$embeds};var C=function(h,r){return(h!="start"||r.length)&&r.unshift(this.nextState,h),this.nextState},a=function(h,r){return r.shift(),r.shift()||"start"};this.normalizeRules=function(){var h=0,r=this.$rules;function o(i){var t=r[i];t.processed=!0;for(var e=0;e<t.length;e++){var n=t[e],s=null;Array.isArray(n)&&(s=n,n={}),!n.regex&&n.start&&(n.regex=n.start,n.next||(n.next=[]),n.next.push({defaultToken:n.token},{token:n.token+".end",regex:n.end||n.start,next:"pop"}),n.token=n.token+".start",n.push=!0);var l=n.next||n.push;if(l&&Array.isArray(l)){var c=n.stateName;c||(c=n.token,typeof c!="string"&&(c=c[0]||""),r[c]&&(c+=h++)),r[c]=l,n.next=c,o(c)}else l=="pop"&&(n.next=a);if(n.push&&(n.nextState=n.next||n.push,n.next=C,delete n.push),n.rules)for(var m in n.rules)r[m]?r[m].push&&r[m].push.apply(r[m],n.rules[m]):r[m]=n.rules[m];var v=typeof n=="string"?n:n.include;if(v&&(v==="$self"&&(v="start"),Array.isArray(v)?s=v.map(function(f){return r[f]}):s=r[v]),s){var g=[e,1].concat(s);n.noEscape&&(g=g.filter(function(f){return!f.next})),t.splice.apply(t,g),e--}n.keywordMap&&(n.token=this.createKeywordMapper(n.keywordMap,n.defaultToken||"text",n.caseInsensitive),delete n.defaultToken)}}Object.keys(r).forEach(o,this)},this.createKeywordMapper=function(h,r,o,i){var t=Object.create(null);return this.$keywordList=[],Object.keys(h).forEach(function(e){for(var n=h[e],s=n.split(i||"|"),l=s.length;l--;){var c=s[l];this.$keywordList.push(c),o&&(c=c.toLowerCase()),t[c]=e}},this),h=null,o?function(e){return t[e.toLowerCase()]||r}:function(e){return t[e]||r}},this.getKeywords=function(){return this.$keywords}}.call(A.prototype),x.TextHighlightRules=A}),ace.define("ace/mode/behaviour",["require","exports","module"],function(R,x,P){var k;k=function(){this.$behaviours={}},function(){this.add=function(A,C,a){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[A]:this.$behaviours[A]={}}this.$behaviours[A][C]=a},this.addBehaviours=function(A){for(var C in A)for(var a in A[C])this.add(C,a,A[C][a])},this.remove=function(A){this.$behaviours&&this.$behaviours[A]&&delete this.$behaviours[A]},this.inherit=function(A,C){if(typeof A=="function")var a=new A().getBehaviours(C);else var a=A.getBehaviours(C);this.addBehaviours(a)},this.getBehaviours=function(A){if(A){for(var C={},a=0;a<A.length;a++)this.$behaviours[A[a]]&&(C[A[a]]=this.$behaviours[A[a]]);return C}else return this.$behaviours}}.call(k.prototype),x.Behaviour=k}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(R,x,P){var k=R("./range").Range,A=function(){function C(a,h,r){this.$session=a,this.$row=h,this.$rowTokens=a.getTokens(h);var o=a.getTokenAt(h,r);this.$tokenIndex=o?o.index:-1}return C.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},C.prototype.stepForward=function(){this.$tokenIndex+=1;for(var a;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentTokenRow=function(){return this.$row},C.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,h=this.$tokenIndex,r=a[h].start;if(r!==void 0)return r;for(r=0;h>0;)h-=1,r+=a[h].value.length;return r},C.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},C.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],h=this.getCurrentTokenColumn();return new k(this.$row,h,this.$row,h+a.value.length)},C}();x.TokenIterator=A}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(R,x,P){var k=R("../../lib/oop"),A=R("../behaviour").Behaviour,C=R("../../token_iterator").TokenIterator,a=R("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],r=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],o,i={},t={'"':'"',"'":"'"},e=function(l){var c=-1;if(l.multiSelect&&(c=l.selection.index,i.rangeCount!=l.multiSelect.rangeCount&&(i={rangeCount:l.multiSelect.rangeCount})),i[c])return o=i[c];o=i[c]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},n=function(l,c,m,v){var g=l.end.row-l.start.row;return{text:m+c+v,selection:[0,l.start.column+1,g,l.end.column+(g?0:1)]}},s;s=function(l){l=l||{},this.add("braces","insertion",function(c,m,v,g,f){var b=v.getCursorPosition(),L=g.doc.getLine(b.row);if(f=="{"){e(v);var M=v.getSelectionRange(),$=g.doc.getTextRange(M),_=g.getTokenAt(b.row,b.column);if($!==""&&$!=="{"&&v.getWrapBehavioursEnabled())return n(M,$,"{","}");if(_&&/(?:string)\.quasi|\.xml/.test(_.type)){var w=[/tag\-(?:open|name)/,/attribute\-name/];return w.some(function(E){return E.test(_.type)})||/(string)\.quasi/.test(_.type)&&_.value[b.column-_.start-1]!=="$"?void 0:(s.recordAutoInsert(v,g,"}"),{text:"{}",selection:[1,1]})}else if(s.isSaneInsertion(v,g))return/[\]\}\)]/.test(L[b.column])||v.inMultiSelectMode||l.braces?(s.recordAutoInsert(v,g,"}"),{text:"{}",selection:[1,1]}):(s.recordMaybeInsert(v,g,"{"),{text:"{",selection:[1,1]})}else if(f=="}"){e(v);var y=L.substring(b.column,b.column+1);if(y=="}"){var d=g.$findOpeningBracket("}",{column:b.column+1,row:b.row});if(d!==null&&s.isAutoInsertedClosing(b,L,f))return s.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(f==`
|
|
180
|
-
`||f==`\r
|
|
181
|
-
`){e(v);var u="";s.isMaybeInsertedClosing(b,L)&&(u=a.stringRepeat("}",o.maybeInsertedBrackets),s.clearMaybeInsertedClosing());var y=L.substring(b.column,b.column+1);if(y==="}"){var p=g.findMatchingBracket({row:b.row,column:b.column+1},"}");if(!p)return null;var S=this.$getIndent(g.getLine(p.row))}else if(u)var S=this.$getIndent(L);else{s.clearMaybeInsertedClosing();return}var T=S+g.getTabString();return{text:`
|
|
182
|
-
`+T+`
|
|
183
|
-
`+S+u,selection:[1,T.length,1,T.length]}}else s.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(c,m,v,g,f){var b=g.doc.getTextRange(f);if(!f.isMultiLine()&&b=="{"){e(v);var L=g.doc.getLine(f.start.row),M=L.substring(f.end.column,f.end.column+1);if(M=="}")return f.end.column++,f;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(c,m,v,g,f){if(f=="("){e(v);var b=v.getSelectionRange(),L=g.doc.getTextRange(b);if(L!==""&&v.getWrapBehavioursEnabled())return n(b,L,"(",")");if(s.isSaneInsertion(v,g))return s.recordAutoInsert(v,g,")"),{text:"()",selection:[1,1]}}else if(f==")"){e(v);var M=v.getCursorPosition(),$=g.doc.getLine(M.row),_=$.substring(M.column,M.column+1);if(_==")"){var w=g.$findOpeningBracket(")",{column:M.column+1,row:M.row});if(w!==null&&s.isAutoInsertedClosing(M,$,f))return s.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(c,m,v,g,f){var b=g.doc.getTextRange(f);if(!f.isMultiLine()&&b=="("){e(v);var L=g.doc.getLine(f.start.row),M=L.substring(f.start.column+1,f.start.column+2);if(M==")")return f.end.column++,f}}),this.add("brackets","insertion",function(c,m,v,g,f){if(f=="["){e(v);var b=v.getSelectionRange(),L=g.doc.getTextRange(b);if(L!==""&&v.getWrapBehavioursEnabled())return n(b,L,"[","]");if(s.isSaneInsertion(v,g))return s.recordAutoInsert(v,g,"]"),{text:"[]",selection:[1,1]}}else if(f=="]"){e(v);var M=v.getCursorPosition(),$=g.doc.getLine(M.row),_=$.substring(M.column,M.column+1);if(_=="]"){var w=g.$findOpeningBracket("]",{column:M.column+1,row:M.row});if(w!==null&&s.isAutoInsertedClosing(M,$,f))return s.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(c,m,v,g,f){var b=g.doc.getTextRange(f);if(!f.isMultiLine()&&b=="["){e(v);var L=g.doc.getLine(f.start.row),M=L.substring(f.start.column+1,f.start.column+2);if(M=="]")return f.end.column++,f}}),this.add("string_dquotes","insertion",function(c,m,v,g,f){var b=g.$mode.$quotes||t;if(f.length==1&&b[f]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(f)!=-1)return;e(v);var L=f,M=v.getSelectionRange(),$=g.doc.getTextRange(M);if($!==""&&($.length!=1||!b[$])&&v.getWrapBehavioursEnabled())return n(M,$,L,L);if(!$){var _=v.getCursorPosition(),w=g.doc.getLine(_.row),y=w.substring(_.column-1,_.column),d=w.substring(_.column,_.column+1),u=g.getTokenAt(_.row,_.column),p=g.getTokenAt(_.row,_.column+1);if(y=="\\"&&u&&/escape/.test(u.type))return null;var S=u&&/string|escape/.test(u.type),T=!p||/string|escape/.test(p.type),E;if(d==L)E=S!==T,E&&/string\.end/.test(p.type)&&(E=!1);else{if(S&&!T||S&&T)return null;var I=g.$mode.tokenRe;I.lastIndex=0;var D=I.test(y);I.lastIndex=0;var H=I.test(d),O=g.$mode.$pairQuotesAfter,N=O&&O[L]&&O[L].test(y);if(!N&&D||H||d&&!/[\s;,.})\]\\]/.test(d))return null;var F=w[_.column-2];if(y==L&&(F==L||I.test(F)))return null;E=!0}return{text:E?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(c,m,v,g,f){var b=g.$mode.$quotes||t,L=g.doc.getTextRange(f);if(!f.isMultiLine()&&b.hasOwnProperty(L)){e(v);var M=g.doc.getLine(f.start.row),$=M.substring(f.start.column+1,f.start.column+2);if($==L)return f.end.column++,f}}),l.closeDocComment!==!1&&this.add("doc comment end","insertion",function(c,m,v,g,f){if(c==="doc-start"&&(f===`
|
|
184
|
-
`||f===`\r
|
|
185
|
-
`)&&v.selection.isEmpty()){var b=v.getCursorPosition();if(b.column===0)return;for(var L=g.doc.getLine(b.row),M=g.doc.getLine(b.row+1),$=g.getTokens(b.row),_=0,w=0;w<$.length;w++){_+=$[w].value.length;var y=$[w];if(_>=b.column){if(_===b.column){if(!/\.doc/.test(y.type))return;if(/\*\//.test(y.value)){var d=$[w+1];if(!d||!/\.doc/.test(d.type))return}}var u=b.column-(_-y.value.length),p=y.value.indexOf("*/"),S=y.value.indexOf("/**",p>-1?p+2:0);if(S!==-1&&u>S&&u<S+3||p!==-1&&S!==-1&&u>=p&&u<=S||!/\.doc/.test(y.type))return;break}}var T=this.$getIndent(L);if(/\s*\*/.test(M))return/^\s*\*/.test(L)?{text:f+T+"* ",selection:[1,2+T.length,1,2+T.length]}:{text:f+T+" * ",selection:[1,3+T.length,1,3+T.length]};if(/\/\*\*/.test(L.substring(0,b.column)))return{text:f+T+" * "+f+" "+T+"*/",selection:[1,4+T.length,1,4+T.length]}}})},s.isSaneInsertion=function(l,c){var m=l.getCursorPosition(),v=new C(c,m.row,m.column);if(!this.$matchTokenType(v.getCurrentToken()||"text",h)){if(/[)}\]]/.test(l.session.getLine(m.row)[m.column]))return!0;var g=new C(c,m.row,m.column+1);if(!this.$matchTokenType(g.getCurrentToken()||"text",h))return!1}return v.stepForward(),v.getCurrentTokenRow()!==m.row||this.$matchTokenType(v.getCurrentToken()||"text",r)},s.$matchTokenType=function(l,c){return c.indexOf(l.type||l)>-1},s.recordAutoInsert=function(l,c,m){var v=l.getCursorPosition(),g=c.doc.getLine(v.row);this.isAutoInsertedClosing(v,g,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=v.row,o.autoInsertedLineEnd=m+g.substr(v.column),o.autoInsertedBrackets++},s.recordMaybeInsert=function(l,c,m){var v=l.getCursorPosition(),g=c.doc.getLine(v.row);this.isMaybeInsertedClosing(v,g)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=v.row,o.maybeInsertedLineStart=g.substr(0,v.column)+m,o.maybeInsertedLineEnd=g.substr(v.column),o.maybeInsertedBrackets++},s.isAutoInsertedClosing=function(l,c,m){return o.autoInsertedBrackets>0&&l.row===o.autoInsertedRow&&m===o.autoInsertedLineEnd[0]&&c.substr(l.column)===o.autoInsertedLineEnd},s.isMaybeInsertedClosing=function(l,c){return o.maybeInsertedBrackets>0&&l.row===o.maybeInsertedRow&&c.substr(l.column)===o.maybeInsertedLineEnd&&c.substr(0,l.column)==o.maybeInsertedLineStart},s.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},s.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},k.inherits(s,A),x.CstyleBehaviour=s}),ace.define("ace/unicode",["require","exports","module"],function(R,x,P){for(var k=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],A=0,C=[],a=0;a<k.length;a+=2)C.push(A+=k[a]),k[a+1]&&C.push(45,A+=k[a+1]);x.wordChars=String.fromCharCode.apply(null,C)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(R,x,P){var k=R("../config"),A=R("../tokenizer").Tokenizer,C=R("./text_highlight_rules").TextHighlightRules,a=R("./behaviour/cstyle").CstyleBehaviour,h=R("../unicode"),r=R("../lib/lang"),o=R("../token_iterator").TokenIterator,i=R("../range").Range,t;t=function(){this.HighlightRules=C},function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+h.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+h.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new A(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,n,s,l){var c=n.doc,m=!0,v=!0,g=1/0,f=n.getTabSize(),b=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var $=this.lineCommentStart.map(r.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var $=r.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;$=new RegExp("^(\\s*)(?:"+$+") ?"),b=n.getUseSoftTabs();var y=function(H,O){var N=H.match($);if(N){var F=N[1].length,W=N[0].length;!p(H,F,W)&&N[0][W-1]==" "&&W--,c.removeInLine(O,F,W)}},u=L+" ",w=function(H,O){(!m||/\S/.test(H))&&(p(H,g,g)?c.insertInLine({row:O,column:g},u):c.insertInLine({row:O,column:g},L))},d=function(H,O){return $.test(H)},p=function(H,O,N){for(var F=0;O--&&H.charAt(O)==" ";)F++;if(F%f!=0)return!1;for(var F=0;H.charAt(N++)==" ";)F++;return f>2?F%f!=f-1:F%f==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,M=this.blockComment.end,$=new RegExp("^(\\s*)(?:"+r.escapeRegExp(L)+")"),_=new RegExp("(?:"+r.escapeRegExp(M)+")\\s*$"),w=function(E,I){d(E,I)||(!m||/\S/.test(E))&&(c.insertInLine({row:I,column:E.length},M),c.insertInLine({row:I,column:g},L))},y=function(E,I){var D;(D=E.match(_))&&c.removeInLine(I,E.length-D[0].length,E.length),(D=E.match($))&&c.removeInLine(I,D[1].length,D[0].length)},d=function(E,I){if($.test(E))return!0;for(var D=n.getTokens(I),H=0;H<D.length;H++)if(D[H].type==="comment")return!0}}function S(E){for(var I=s;I<=l;I++)E(c.getLine(I),I)}var T=1/0;S(function(E,I){var D=E.search(/\S/);D!==-1?(D<g&&(g=D),v&&!d(E,I)&&(v=!1)):T>E.length&&(T=E.length)}),g==1/0&&(g=T,m=!1,v=!1),b&&g%f!=0&&(g=Math.floor(g/f)*f),S(v?y:w)},this.toggleBlockComment=function(e,n,s,l){var c=this.blockComment;if(c){!c.start&&c[0]&&(c=c[0]);var m=new o(n,l.row,l.column),v=m.getCurrentToken();n.selection;var g=n.selection.toOrientedRange(),f,b;if(v&&/comment/.test(v.type)){for(var L,M;v&&/comment/.test(v.type);){var $=v.value.indexOf(c.start);if($!=-1){var _=m.getCurrentTokenRow(),w=m.getCurrentTokenColumn()+$;L=new i(_,w,_,w+c.start.length);break}v=m.stepBackward()}for(var m=new o(n,l.row,l.column),v=m.getCurrentToken();v&&/comment/.test(v.type);){var $=v.value.indexOf(c.end);if($!=-1){var _=m.getCurrentTokenRow(),w=m.getCurrentTokenColumn()+$;M=new i(_,w,_,w+c.end.length);break}v=m.stepForward()}M&&n.remove(M),L&&(n.remove(L),f=L.start.row,b=-c.start.length)}else b=c.start.length,f=s.start.row,n.insert(s.end,c.end),n.insert(s.start,c.start);g.start.row==f&&(g.start.column+=b),g.end.row==f&&(g.end.column+=b),n.selection.fromOrientedRange(g)}},this.getNextLineIndent=function(e,n,s){return this.$getIndent(n)},this.checkOutdent=function(e,n,s){return!1},this.autoOutdent=function(e,n,s){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){this.$embeds=[],this.$modes={};for(var n in e)if(e[n]){var s=e[n],l=s.prototype.$id,c=k.$modes[l];c||(k.$modes[l]=c=new s),k.$modes[n]||(k.$modes[n]=c),this.$embeds.push(n),this.$modes[n]=c}for(var m=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],v=function(f){(function(b){var L=m[f],M=b[L];b[m[f]]=function(){return this.$delegator(L,arguments,M)}})(g)},g=this,n=0;n<m.length;n++)v(n)},this.$delegator=function(e,n,s){var l=n[0]||"start";if(typeof l!="string"){if(Array.isArray(l[2])){var c=l[2][l[2].length-1],m=this.$modes[c];if(m)return m[e].apply(m,[l[1]].concat([].slice.call(n,1)))}l=l[0]||"start"}for(var v=0;v<this.$embeds.length;v++)if(this.$modes[this.$embeds[v]]){var g=l.split(this.$embeds[v]);if(!g[0]&&g[1]){n[0]=g[1];var m=this.$modes[this.$embeds[v]];return m[e].apply(m,n)}}var f=s.apply(this,n);return s?f:void 0},this.transformAction=function(e,n,s,l,c){if(this.$behaviour){var m=this.$behaviour.getBehaviours();for(var v in m)if(m[v][n]){var g=m[v][n].apply(this,arguments);if(g)return g}}},this.getKeywords=function(e){if(!this.completionKeywords){var n=this.$tokenizer.rules,s=[];for(var l in n)for(var c=n[l],m=0,v=c.length;m<v;m++)if(typeof c[m].token=="string")/keyword|support|storage/.test(c[m].token)&&s.push(c[m].regex);else if(typeof c[m].token=="object"){for(var g=0,f=c[m].token.length;g<f;g++)if(/keyword|support|storage/.test(c[m].token[g])){var l=c[m].regex.match(/\(.+?\)/g)[g];s.push(l.substr(1,l.length-2))}}this.completionKeywords=s}return e?s.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,n,s,l){var c=this.$keywordList||this.$createKeywordList();return c.map(function(m){return{name:m,value:m,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}.call(t.prototype),x.Mode=t}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(R,x,P){var k=R("./lib/dom"),A=function(){function C(a){this.session=a,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return C.prototype.getRowLength=function(a){var h;return this.lineWidgets?h=this.lineWidgets[a]&&this.lineWidgets[a].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[a]?1+h:this.$wrapData[a].length+1+h},C.prototype.$getWidgetScreenLength=function(){var a=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(a+=h.rowCount)}),a},C.prototype.$onChangeEditor=function(a){this.attach(a.editor)},C.prototype.attach=function(a){a&&a.widgetManager&&a.widgetManager!=this&&a.widgetManager.detach(),this.editor!=a&&(this.detach(),this.editor=a,a&&(a.widgetManager=this,a.renderer.on("beforeRender",this.measureWidgets),a.renderer.on("afterRender",this.renderWidgets)))},C.prototype.detach=function(a){var h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.renderer.off("afterRender",this.renderWidgets);var r=this.session.lineWidgets;r&&r.forEach(function(o){o&&o.el&&o.el.parentNode&&(o._inDocument=!1,o.el.parentNode.removeChild(o.el))})}},C.prototype.updateOnFold=function(a,h){var r=h.lineWidgets;if(!(!r||!a.action)){for(var o=a.data,i=o.start.row,t=o.end.row,e=a.action=="add",n=i+1;n<t;n++)r[n]&&(r[n].hidden=e);r[t]&&(e?r[i]?r[t].hidden=e:r[i]=r[t]:(r[i]==r[t]&&(r[i]=void 0),r[t].hidden=e))}},C.prototype.updateOnChange=function(a){var h=this.session.lineWidgets;if(h){var r=a.start.row,o=a.end.row-r;if(o!==0)if(a.action=="remove"){var i=h.splice(r+1,o);!h[r]&&i[i.length-1]&&(h[r]=i.pop()),i.forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var t=new Array(o);h[r]&&h[r].column!=null&&a.start.column>h[r].column&&r++,t.unshift(r,0),h.splice.apply(h,t),this.$updateRows()}}},C.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var h=!0;a.forEach(function(r,o){if(r)for(h=!1,r.row=o;r.$oldWidget;)r.$oldWidget.row=o,r=r.$oldWidget}),h&&(this.session.lineWidgets=null)}},C.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[a.row];return h&&(a.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},C.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var h=this.editor.renderer;a.html&&!a.el&&(a.el=k.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=k.createElement("div"),a.el.textContent=a.text),a.el&&(k.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&k.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex="5",h.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex="3"),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/h.layerConfig.lineHeight);var r=this.session.getFoldAt(a.row,0);if(a.$fold=r,r){var o=this.session.lineWidgets;a.row==r.end.row&&!o[r.start.row]?o[r.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(a),a},C.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[a.row];if(h==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;h;){if(h.$oldWidget==a){h.$oldWidget=a.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},C.prototype.getWidgetsAtRow=function(a){for(var h=this.session.lineWidgets,r=h&&h[a],o=[];r;)o.push(r),r=r.$oldWidget;return o},C.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},C.prototype.measureWidgets=function(a,h){var r=this.session._changedWidgets,o=h.layerConfig;if(!(!r||!r.length)){for(var i=1/0,t=0;t<r.length;t++){var e=r[t];if(!(!e||!e.el)&&e.session==this.session){if(!e._inDocument){if(this.session.lineWidgets[e.row]!=e)continue;e._inDocument=!0,h.container.appendChild(e.el)}e.h=e.el.offsetHeight,e.fixedWidth||(e.w=e.el.offsetWidth,e.screenWidth=Math.ceil(e.w/o.characterWidth));var n=e.h/o.lineHeight;e.coverLine&&(n-=this.session.getRowLineCount(e.row),n<0&&(n=0)),e.rowCount!=n&&(e.rowCount=n,e.row<i&&(i=e.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},C.prototype.renderWidgets=function(a,h){var r=h.layerConfig,o=this.session.lineWidgets;if(o){for(var i=Math.min(this.firstRow,r.firstRow),t=Math.max(this.lastRow,r.lastRow,o.length);i>0&&!o[i];)i--;this.firstRow=r.firstRow,this.lastRow=r.lastRow,h.$cursorLayer.config=r;for(var e=i;e<=t;e++){var n=o[e];if(!(!n||!n.el)){if(n.hidden){n.el.style.top=-100-(n.pixelHeight||0)+"px";continue}n._inDocument||(n._inDocument=!0,h.container.appendChild(n.el));var s=h.$cursorLayer.getPixelPosition({row:e,column:0},!0).top;n.coverLine||(s+=r.lineHeight*this.session.getRowLineCount(n.row)),n.el.style.top=s-r.offset+"px";var l=n.coverGutter?0:h.gutterWidth;n.fixedWidth||(l-=h.scrollLeft),n.el.style.left=l+"px",n.fullWidth&&n.screenWidth&&(n.el.style.minWidth=r.width+2*r.padding+"px"),n.fixedWidth?n.el.style.right=h.scrollBar.getWidth()+"px":n.el.style.right=""}}}},C}();x.LineWidgets=A}),ace.define("ace/apply_delta",["require","exports","module"],function(R,x,P){x.applyDelta=function(k,A,C){var a=A.start.row,h=A.start.column,r=k[a]||"";switch(A.action){case"insert":var o=A.lines;if(o.length===1)k[a]=r.substring(0,h)+A.lines[0]+r.substring(h);else{var i=[a,1].concat(A.lines);k.splice.apply(k,i),k[a]=r.substring(0,h)+k[a],k[a+A.lines.length-1]+=r.substring(h)}break;case"remove":var t=A.end.column,e=A.end.row;a===e?k[a]=r.substring(0,h)+r.substring(t):k.splice(a,e-a+1,r.substring(0,h)+k[e].substring(t));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(R,x,P){var k=R("./lib/oop"),A=R("./lib/event_emitter").EventEmitter,C=function(){function r(o,i,t){this.$onChange=this.onChange.bind(this),this.attach(o),typeof i!="number"?this.setPosition(i.row,i.column):this.setPosition(i,t)}return r.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},r.prototype.getDocument=function(){return this.document},r.prototype.onChange=function(o){if(!(o.start.row==o.end.row&&o.start.row!=this.row)&&!(o.start.row>this.row)){var i=h(o,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},r.prototype.setPosition=function(o,i,t){var e;if(t?e={row:o,column:i}:e=this.$clipPositionToDocument(o,i),!(this.row==e.row&&this.column==e.column)){var n={row:this.row,column:this.column};this.row=e.row,this.column=e.column,this._signal("change",{old:n,value:e})}},r.prototype.detach=function(){this.document.off("change",this.$onChange)},r.prototype.attach=function(o){this.document=o||this.document,this.document.on("change",this.$onChange)},r.prototype.$clipPositionToDocument=function(o,i){var t={};return o>=this.document.getLength()?(t.row=Math.max(0,this.document.getLength()-1),t.column=this.document.getLine(t.row).length):o<0?(t.row=0,t.column=0):(t.row=o,t.column=Math.min(this.document.getLine(t.row).length,Math.max(0,i))),i<0&&(t.column=0),t},r}();C.prototype.$insertRight=!1,k.implement(C.prototype,A);function a(r,o,i){var t=i?r.column<=o.column:r.column<o.column;return r.row<o.row||r.row==o.row&&t}function h(r,o,i){var t=r.action=="insert",e=(t?1:-1)*(r.end.row-r.start.row),n=(t?1:-1)*(r.end.column-r.start.column),s=r.start,l=t?s:r.end;return a(o,s,i)?{row:o.row,column:o.column}:a(l,o,!i)?{row:o.row+e,column:o.column+(o.row==l.row?n:0)}:{row:s.row,column:s.column}}x.Anchor=C}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(R,x,P){var k=R("./lib/oop"),A=R("./apply_delta").applyDelta,C=R("./lib/event_emitter").EventEmitter,a=R("./range").Range,h=R("./anchor").Anchor,r=function(){function o(i){this.$lines=[""],i.length===0?this.$lines=[""]:Array.isArray(i)?this.insertMergedLines({row:0,column:0},i):this.insert({row:0,column:0},i)}return o.prototype.setValue=function(i){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},i||"")},o.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},o.prototype.createAnchor=function(i,t){return new h(this,i,t)},o.prototype.$detectNewLine=function(i){var t=i.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:`
|
|
186
|
-
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
187
|
-
`;case"unix":return`
|
|
188
|
-
`;default:return this.$autoNewLine||`
|
|
189
|
-
`}},o.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(i){return i==`\r
|
|
190
|
-
`||i=="\r"||i==`
|
|
191
|
-
`},o.prototype.getLine=function(i){return this.$lines[i]||""},o.prototype.getLines=function(i,t){return this.$lines.slice(i,t+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(i){var t;if(i.start.row===i.end.row)t=[this.getLine(i.start.row).substring(i.start.column,i.end.column)];else{t=this.getLines(i.start.row,i.end.row),t[0]=(t[0]||"").substring(i.start.column);var e=t.length-1;i.end.row-i.start.row==e&&(t[e]=t[e].substring(0,i.end.column))}return t},o.prototype.insertLines=function(i,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,t)},o.prototype.removeLines=function(i,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,t)},o.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},o.prototype.insert=function(i,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(i,this.$split(t))},o.prototype.insertInLine=function(i,t){var e=this.clippedPos(i.row,i.column),n=this.pos(i.row,i.column+t.length);return this.applyDelta({start:e,end:n,action:"insert",lines:[t]},!0),this.clonePos(n)},o.prototype.clippedPos=function(i,t){var e=this.getLength();i===void 0?i=e:i<0?i=0:i>=e&&(i=e-1,t=void 0);var n=this.getLine(i);return t==null&&(t=n.length),t=Math.min(Math.max(t,0),n.length),{row:i,column:t}},o.prototype.clonePos=function(i){return{row:i.row,column:i.column}},o.prototype.pos=function(i,t){return{row:i,column:t}},o.prototype.$clipPosition=function(i){var t=this.getLength();return i.row>=t?(i.row=Math.max(0,t-1),i.column=this.getLine(t-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},o.prototype.insertFullLines=function(i,t){i=Math.min(Math.max(i,0),this.getLength());var e=0;i<this.getLength()?(t=t.concat([""]),e=0):(t=[""].concat(t),i--,e=this.$lines[i].length),this.insertMergedLines({row:i,column:e},t)},o.prototype.insertMergedLines=function(i,t){var e=this.clippedPos(i.row,i.column),n={row:e.row+t.length-1,column:(t.length==1?e.column:0)+t[t.length-1].length};return this.applyDelta({start:e,end:n,action:"insert",lines:t}),this.clonePos(n)},o.prototype.remove=function(i){var t=this.clippedPos(i.start.row,i.start.column),e=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})}),this.clonePos(t)},o.prototype.removeInLine=function(i,t,e){var n=this.clippedPos(i,t),s=this.clippedPos(i,e);return this.applyDelta({start:n,end:s,action:"remove",lines:this.getLinesForRange({start:n,end:s})},!0),this.clonePos(n)},o.prototype.removeFullLines=function(i,t){i=Math.min(Math.max(0,i),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var e=t==this.getLength()-1&&i>0,n=t<this.getLength()-1,s=e?i-1:i,l=e?this.getLine(s).length:0,c=n?t+1:t,m=n?0:this.getLine(c).length,v=new a(s,l,c,m),g=this.$lines.slice(i,t+1);return this.applyDelta({start:v.start,end:v.end,action:"remove",lines:this.getLinesForRange(v)}),g},o.prototype.removeNewLine=function(i){i<this.getLength()-1&&i>=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(i,t){if(i instanceof a||(i=a.fromPoints(i.start,i.end)),t.length===0&&i.isEmpty())return i.start;if(t==this.getTextRange(i))return i.end;this.remove(i);var e;return t?e=this.insert(i.start,t):e=i.start,e},o.prototype.applyDeltas=function(i){for(var t=0;t<i.length;t++)this.applyDelta(i[t])},o.prototype.revertDeltas=function(i){for(var t=i.length-1;t>=0;t--)this.revertDelta(i[t])},o.prototype.applyDelta=function(i,t){var e=i.action=="insert";(e?i.lines.length<=1&&!i.lines[0]:!a.comparePoints(i.start,i.end))||(e&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(A(this.$lines,i,t),this._signal("change",i)))},o.prototype.$safeApplyDelta=function(i){var t=this.$lines.length;(i.action=="remove"&&i.start.row<t&&i.end.row<t||i.action=="insert"&&i.start.row<=t)&&this.applyDelta(i)},o.prototype.$splitAndapplyLargeDelta=function(i,t){for(var e=i.lines,n=e.length-t+1,s=i.start.row,l=i.start.column,c=0,m=0;c<n;c=m){m+=t-1;var v=e.slice(c,m);v.push(""),this.applyDelta({start:this.pos(s+c,l),end:this.pos(s+m,l=0),action:i.action,lines:v},!0)}i.lines=e.slice(c),i.start.row=s+c,i.start.column=l,this.applyDelta(i,!0)},o.prototype.revertDelta=function(i){this.$safeApplyDelta({start:this.clonePos(i.start),end:this.clonePos(i.end),action:i.action=="insert"?"remove":"insert",lines:i.lines.slice()})},o.prototype.indexToPosition=function(i,t){for(var e=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,s=t||0,l=e.length;s<l;s++)if(i-=e[s].length+n,i<0)return{row:s,column:i+e[s].length+n};return{row:l-1,column:i+e[l-1].length+n}},o.prototype.positionToIndex=function(i,t){for(var e=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,s=0,l=Math.min(i.row,e.length),c=t||0;c<l;++c)s+=e[c].length+n;return s+i.column},o.prototype.$split=function(i){return i.split(/\r\n|\r|\n/)},o}();r.prototype.$autoNewLine="",r.prototype.$newLineMode="auto",k.implement(r.prototype,C),x.Document=r}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(R,x,P){var k=R("./lib/oop"),A=R("./lib/event_emitter").EventEmitter,C=function(){function a(h,r){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=h;var o=this;this.$worker=function(){if(o.running){for(var i=new Date,t=o.currentLine,e=-1,n=o.doc,s=t;o.lines[t];)t++;var l=n.getLength(),c=0;for(o.running=!1;t<l;){o.$tokenizeRow(t),e=t;do t++;while(o.lines[t]);if(c++,c%5===0&&new Date-i>20){o.running=setTimeout(o.$worker,20);break}}o.currentLine=t,e==-1&&(e=t),s<=e&&o.fireUpdateEvent(s,e)}}}return a.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(h,r){var o={first:h,last:r};this._signal("update",{data:o})},a.prototype.start=function(h){this.currentLine=Math.min(h||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(h){var r=h.start.row,o=h.end.row-r;if(o===0)this.lines[r]=null;else if(h.action=="remove")this.lines.splice(r,o+1,null),this.states.splice(r,o+1,null);else{var i=Array(o+1);i.unshift(r,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(r,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(h){return this.lines[h]||this.$tokenizeRow(h)},a.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},a.prototype.$tokenizeRow=function(h){var r=this.doc.getLine(h),o=this.states[h-1],i=this.tokenizer.getLineTokens(r,o,h);return this.states[h]+""!=i.state+""?(this.states[h]=i.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=i.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();k.implement(C.prototype,A),x.BackgroundTokenizer=C}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(R,x,P){var k=R("./lib/lang"),A=R("./range").Range,C=function(){function a(h,r,o){o===void 0&&(o="text"),this.setRegexp(h),this.clazz=r,this.type=o,this.docLen=0}return a.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},a.prototype.update=function(h,r,o,i){if(this.regExp){for(var t=i.firstRow,e=i.lastRow,n={},s=o.$editor&&o.$editor.$search,l=s&&s.$isMultilineSearch(o.$editor.getLastSearchOptions()),c=t;c<=e;c++){var m=this.cache[c];if(m==null||o.getValue().length!=this.docLen){if(l){m=[];var v=s.$multiLineForward(o,this.regExp,c,e);if(v){var g=v.endRow<=e?v.endRow-1:e;g>c&&(c=g),m.push(new A(v.startRow,v.startCol,v.endRow,v.endCol))}m.length>this.MAX_RANGES&&(m=m.slice(0,this.MAX_RANGES))}else m=k.getMatchOffsets(o.getLine(c),this.regExp),m.length>this.MAX_RANGES&&(m=m.slice(0,this.MAX_RANGES)),m=m.map(function(M){return new A(c,M.offset,c,M.offset+M.length)});this.cache[c]=m.length?m:""}if(m.length!==0)for(var f=m.length;f--;){var b=m[f].toScreenRange(o),L=b.toString();n[L]||(n[L]=!0,r.drawSingleLineMarker(h,b,this.clazz,i))}}this.docLen=o.getValue().length}},a}();C.prototype.MAX_RANGES=500,x.SearchHighlight=C}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(R,x,P){var k=function(){function g(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return g.prototype.addSession=function(f){this.$session=f},g.prototype.add=function(f,b,L){if(!this.$fromUndo&&f!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),b===!1||!this.lastDeltas){this.lastDeltas=[];var M=this.$undoStack.length;M>this.$undoDepth-1&&this.$undoStack.splice(0,M-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),f.id=this.$rev=++this.$maxRev}(f.action=="remove"||f.action=="insert")&&(this.$lastDelta=f),this.lastDeltas.push(f)}},g.prototype.addSelection=function(f,b){this.selections.push({value:f,rev:b||this.$rev})},g.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},g.prototype.markIgnored=function(f,b){b==null&&(b=this.$rev+1);for(var L=this.$undoStack,M=L.length;M--;){var $=L[M][0];if($.id<=f)break;$.id<b&&($.ignore=!0)}this.lastDeltas=null},g.prototype.getSelection=function(f,b){for(var L=this.selections,M=L.length;M--;){var $=L[M];if($.rev<f)return b&&($=L[M+1]),$}},g.prototype.getRevision=function(){return this.$rev},g.prototype.getDeltas=function(f,b){b==null&&(b=this.$rev+1);for(var L=this.$undoStack,M=null,$=0,_=L.length;_--;){var w=L[_][0];if(w.id<b&&!M&&(M=_+1),w.id<=f){$=_+1;break}}return L.slice($,M)},g.prototype.getChangedRanges=function(f,b){b==null&&(b=this.$rev+1)},g.prototype.getChangedLines=function(f,b){b==null&&(b=this.$rev+1)},g.prototype.undo=function(f,b){this.lastDeltas=null;var L=this.$undoStack;if(A(L,L.length)){f||(f=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var M=L.pop(),$=null;return M&&($=f.undoChanges(M,b),this.$redoStack.push(M),this.$syncRev()),this.$fromUndo=!1,$}},g.prototype.redo=function(f,b){if(this.lastDeltas=null,f||(f=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);v(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(_){_[0].id=++this.$maxRev},this)}var M=this.$redoStack.pop(),$=null;return M&&($=f.redoChanges(M,b),this.$undoStack.push(M),this.$syncRev()),this.$fromUndo=!1,$},g.prototype.$syncRev=function(){var f=this.$undoStack,b=f[f.length-1],L=b&&b[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},g.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},g.prototype.canUndo=function(){return this.$undoStack.length>0},g.prototype.canRedo=function(){return this.$redoStack.length>0},g.prototype.bookmark=function(f){f==null&&(f=this.$rev),this.mark=f},g.prototype.isAtBookmark=function(){return this.$rev===this.mark},g.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},g.prototype.fromJSON=function(f){this.reset(),this.$undoStack=f.$undoStack,this.$redoStack=f.$redoStack},g.prototype.$prettyPrint=function(f){return f?o(f):o(this.$undoStack)+`
|
|
192
|
-
---
|
|
193
|
-
`+o(this.$redoStack)},g}();k.prototype.hasUndo=k.prototype.canUndo,k.prototype.hasRedo=k.prototype.canRedo,k.prototype.isClean=k.prototype.isAtBookmark,k.prototype.markClean=k.prototype.bookmark;function A(g,f){for(var b=f;b--;){var L=g[b];if(L&&!L[0].ignore){for(;b<f-1;){var M=e(g[b],g[b+1]);g[b]=M[0],g[b+1]=M[1],b++}return!0}}}var C=R("./range").Range,a=C.comparePoints;C.comparePoints;function h(g){return{row:g.row,column:g.column}}function r(g){return{start:h(g.start),end:h(g.end),action:g.action,lines:g.lines.slice()}}function o(g){if(g=g||this,Array.isArray(g))return g.map(o).join(`
|
|
194
|
-
`);var f="";return g.action?(f=g.action=="insert"?"+":"-",f+="["+g.lines+"]"):g.value&&(Array.isArray(g.value)?f=g.value.map(i).join(`
|
|
195
|
-
`):f=i(g.value)),g.start&&(f+=i(g)),(g.id||g.rev)&&(f+=" ("+(g.id||g.rev)+")"),f}function i(g){return g.start.row+":"+g.start.column+"=>"+g.end.row+":"+g.end.column}function t(g,f){var b=g.action=="insert",L=f.action=="insert";if(b&&L)if(a(f.start,g.end)>=0)s(f,g,-1);else if(a(f.start,g.start)<=0)s(g,f,1);else return null;else if(b&&!L)if(a(f.start,g.end)>=0)s(f,g,-1);else if(a(f.end,g.start)<=0)s(g,f,-1);else return null;else if(!b&&L)if(a(f.start,g.start)>=0)s(f,g,1);else if(a(f.start,g.start)<=0)s(g,f,1);else return null;else if(!b&&!L)if(a(f.start,g.start)>=0)s(f,g,1);else if(a(f.end,g.start)<=0)s(g,f,-1);else return null;return[f,g]}function e(g,f){for(var b=g.length;b--;)for(var L=0;L<f.length;L++)if(!t(g[b],f[L])){for(;b<g.length;){for(;L--;)t(f[L],g[b]);L=f.length,b++}return[g,f]}return g.selectionBefore=f.selectionBefore=g.selectionAfter=f.selectionAfter=null,[f,g]}function n(g,f){var b=g.action=="insert",L=f.action=="insert";if(b&&L)a(g.start,f.start)<0?s(f,g,1):s(g,f,1);else if(b&&!L)a(g.start,f.end)>=0?s(g,f,-1):(a(g.start,f.start)<=0||s(g,C.fromPoints(f.start,g.start),-1),s(f,g,1));else if(!b&&L)a(f.start,g.end)>=0?s(f,g,-1):(a(f.start,g.start)<=0||s(f,C.fromPoints(g.start,f.start),-1),s(g,f,1));else if(!b&&!L)if(a(f.start,g.end)>=0)s(f,g,-1);else if(a(f.end,g.start)<=0)s(g,f,-1);else{var M,$;return a(g.start,f.start)<0&&(M=g,g=c(g,f.start)),a(g.end,f.end)>0&&($=c(g,f.end)),l(f.end,g.start,g.end,-1),$&&!M&&(g.lines=$.lines,g.start=$.start,g.end=$.end,$=g),[f,M,$].filter(Boolean)}return[f,g]}function s(g,f,b){l(g.start,f.start,f.end,b),l(g.end,f.start,f.end,b)}function l(g,f,b,L){g.row==(L==1?f:b).row&&(g.column+=L*(b.column-f.column)),g.row+=L*(b.row-f.row)}function c(g,f){var b=g.lines,L=g.end;g.end=h(f);var M=g.end.row-g.start.row,$=b.splice(M,b.length),_=M?f.column:f.column-g.start.column;b.push($[0].substring(0,_)),$[0]=$[0].substr(_);var w={start:h(f),end:L,lines:$,action:g.action};return w}function m(g,f){f=r(f);for(var b=g.length;b--;){for(var L=g[b],M=0;M<L.length;M++){var $=L[M],_=n($,f);f=_[0],_.length!=2&&(_[2]?(L.splice(M+1,1,_[1],_[2]),M++):_[1]||(L.splice(M,1),M--))}L.length||g.splice(b,1)}return g}function v(g,f){for(var b=0;b<f.length;b++)for(var L=f[b],M=0;M<L.length;M++)m(g,L[M])}x.UndoManager=k}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(R,x,P){var k=R("../range").Range,A=function(){function C(a,h){this.foldData=a,Array.isArray(h)?this.folds=h:h=this.folds=[h];var r=h[h.length-1];this.range=new k(h[0].start.row,h[0].start.column,r.end.row,r.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(o){o.setFoldLine(this)},this)}return C.prototype.shiftRow=function(a){this.start.row+=a,this.end.row+=a,this.folds.forEach(function(h){h.start.row+=a,h.end.row+=a})},C.prototype.addFold=function(a){if(a.sameRow){if(a.start.row<this.startRow||a.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(h,r){return-h.range.compareEnd(r.start.row,r.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},C.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},C.prototype.walk=function(a,h,r){var o=0,i=this.folds,t,e,n,s=!0;h==null&&(h=this.end.row,r=this.end.column);for(var l=0;l<i.length;l++){if(t=i[l],e=t.range.compareStart(h,r),e==-1){a(null,h,r,o,s);return}if(n=a(null,t.start.row,t.start.column,o,s),n=!n&&a(t.placeholder,t.start.row,t.start.column,o),n||e===0)return;s=!t.sameRow,o=t.end.column}a(null,h,r,o,s)},C.prototype.getNextFoldTo=function(a,h){for(var r,o,i=0;i<this.folds.length;i++){if(r=this.folds[i],o=r.range.compareEnd(a,h),o==-1)return{fold:r,kind:"after"};if(o===0)return{fold:r,kind:"inside"}}return null},C.prototype.addRemoveChars=function(a,h,r){var o=this.getNextFoldTo(a,h),i,t;if(o){if(i=o.fold,o.kind=="inside"&&i.start.column!=h&&i.start.row!=a)window.console&&window.console.log(a,h,i);else if(i.start.row==a){t=this.folds;var e=t.indexOf(i);for(e===0&&(this.start.column+=r),e;e<t.length;e++){if(i=t[e],i.start.column+=r,!i.sameRow)return;i.end.column+=r}this.end.column+=r}}},C.prototype.split=function(a,h){var r=this.getNextFoldTo(a,h);if(!r||r.kind=="inside")return null;var o=r.fold,i=this.folds,t=this.foldData,e=i.indexOf(o),n=i[e-1];this.end.row=n.end.row,this.end.column=n.end.column,i=i.splice(e,i.length-e);var s=new C(t,i);return t.splice(t.indexOf(this)+1,0,s),s},C.prototype.merge=function(a){for(var h=a.folds,r=0;r<h.length;r++)this.addFold(h[r]);var o=this.foldData;o.splice(o.indexOf(a),1)},C.prototype.toString=function(){var a=[this.range.toString()+": ["];return this.folds.forEach(function(h){a.push(" "+h.toString())}),a.push("]"),a.join(`
|
|
196
|
-
`)},C.prototype.idxToPosition=function(a){for(var h=0,r=0;r<this.folds.length;r++){var o=this.folds[r];if(a-=o.start.column-h,a<0)return{row:o.start.row,column:o.start.column+a};if(a-=o.placeholder.length,a<0)return o.start;h=o.end.column}return{row:this.end.row,column:this.end.column+a}},C}();x.FoldLine=A}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(R,x,P){var k=R("./range").Range,A=k.comparePoints,C=function(){function a(){this.ranges=[],this.$bias=1}return a.prototype.pointIndex=function(h,r,o){for(var i=this.ranges,t=o||0;t<i.length;t++){var e=i[t],n=A(h,e.end);if(!(n>0)){var s=A(h,e.start);return n===0?r&&s!==0?-t-2:t:s>0||s===0&&!r?t:-t-1}}return-t-1},a.prototype.add=function(h){var r=!h.isEmpty(),o=this.pointIndex(h.start,r);o<0&&(o=-o-1);var i=this.pointIndex(h.end,r,o);return i<0?i=-i-1:i++,this.ranges.splice(o,i-o,h)},a.prototype.addList=function(h){for(var r=[],o=h.length;o--;)r.push.apply(r,this.add(h[o]));return r},a.prototype.substractPoint=function(h){var r=this.pointIndex(h);if(r>=0)return this.ranges.splice(r,1)},a.prototype.merge=function(){var h=[],r=this.ranges;r=r.sort(function(n,s){return A(n.start,s.start)});for(var o=r[0],i,t=1;t<r.length;t++){i=o,o=r[t];var e=A(i.end,o.start);e<0||e==0&&!i.isEmpty()&&!o.isEmpty()||(A(i.end,o.end)<0&&(i.end.row=o.end.row,i.end.column=o.end.column),r.splice(t,1),h.push(o),o=i,t--)}return this.ranges=r,h},a.prototype.contains=function(h,r){return this.pointIndex({row:h,column:r})>=0},a.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},a.prototype.rangeAtPoint=function(h){var r=this.pointIndex(h);if(r>=0)return this.ranges[r]},a.prototype.clipRows=function(h,r){var o=this.ranges;if(o[0].start.row>r||o[o.length-1].start.row<h)return[];var i=this.pointIndex({row:h,column:0});i<0&&(i=-i-1);var t=this.pointIndex({row:r,column:0},i);t<0&&(t=-t-1);for(var e=[],n=i;n<t;n++)e.push(o[n]);return e},a.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},a.prototype.attach=function(h){this.session&&this.detach(),this.session=h,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},a.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},a.prototype.$onChange=function(h){for(var r=h.start,o=h.end,i=r.row,t=o.row,e=this.ranges,n=0,s=e.length;n<s;n++){var l=e[n];if(l.end.row>=i)break}if(h.action=="insert")for(var c=t-i,m=-r.column+o.column;n<s;n++){var l=e[n];if(l.start.row>i)break;if(l.start.row==i&&l.start.column>=r.column&&(l.start.column==r.column&&this.$bias<=0||(l.start.column+=m,l.start.row+=c)),l.end.row==i&&l.end.column>=r.column){if(l.end.column==r.column&&this.$bias<0)continue;l.end.column==r.column&&m>0&&n<s-1&&l.end.column>l.start.column&&l.end.column==e[n+1].start.column&&(l.end.column-=m),l.end.column+=m,l.end.row+=c}}else for(var c=i-t,m=r.column-o.column;n<s;n++){var l=e[n];if(l.start.row>t)break;l.end.row<t&&(i<l.end.row||i==l.end.row&&r.column<l.end.column)?(l.end.row=i,l.end.column=r.column):l.end.row==t?l.end.column<=o.column?(c||l.end.column>r.column)&&(l.end.column=r.column,l.end.row=r.row):(l.end.column+=m,l.end.row+=c):l.end.row>t&&(l.end.row+=c),l.start.row<t&&(i<l.start.row||i==l.start.row&&r.column<l.start.column)?(l.start.row=i,l.start.column=r.column):l.start.row==t?l.start.column<=o.column?(c||l.start.column>r.column)&&(l.start.column=r.column,l.start.row=r.row):(l.start.column+=m,l.start.row+=c):l.start.row>t&&(l.start.row+=c)}if(c!=0&&n<s)for(;n<s;n++){var l=e[n];l.start.row+=c,l.end.row+=c}},a}();C.prototype.comparePoints=A,x.RangeList=C}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(R,x,P){var k=this&&this.__extends||function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),A=R("../range_list").RangeList,C=function(i){k(t,i);function t(e,n){var s=i.call(this)||this;return s.foldLine=null,s.placeholder=n,s.range=e,s.start=e.start,s.end=e.end,s.sameRow=e.start.row==e.end.row,s.subFolds=s.ranges=[],s}return t.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},t.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach(function(n){n.setFoldLine(e)})},t.prototype.clone=function(){var e=this.range.clone(),n=new t(e,this.placeholder);return this.subFolds.forEach(function(s){n.subFolds.push(s.clone())}),n.collapseChildren=this.collapseChildren,n},t.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){h(e,this.start);for(var m=e.start.row,v=e.start.column,n=0,s=-1;n<this.subFolds.length&&(s=this.subFolds[n].range.compare(m,v),s==1);n++);var l=this.subFolds[n],c=0;if(s==0){if(l.range.containsRange(e))return l.addSubFold(e);c=1}for(var m=e.range.end.row,v=e.range.end.column,g=n,s=-1;g<this.subFolds.length&&(s=this.subFolds[g].range.compare(m,v),s==1);g++);s==0&&g++;for(var f=this.subFolds.splice(n,g-n,e),b=s==0?f.length-1:f.length,L=c;L<b;L++)e.addSubFold(f[L]);return e.setFoldLine(this.foldLine),e}},t.prototype.restoreRange=function(e){return o(e,this.start)},t}(A);function a(i,t){i.row-=t.row,i.row==0&&(i.column-=t.column)}function h(i,t){a(i.start,t),a(i.end,t)}function r(i,t){i.row==0&&(i.column+=t.column),i.row+=t.row}function o(i,t){r(i.start,t),r(i.end,t)}x.Fold=C}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(R,x,P){var k=R("../range").Range,A=R("./fold_line").FoldLine,C=R("./fold").Fold,a=R("../token_iterator").TokenIterator,h=R("../mouse/mouse_event").MouseEvent;function r(){this.getFoldAt=function(o,i,t){var e=this.getFoldLine(o);if(!e)return null;for(var n=e.folds,s=0;s<n.length;s++){var l=n[s].range;if(l.contains(o,i)){if(t==1&&l.isEnd(o,i)&&!l.isEmpty())continue;if(t==-1&&l.isStart(o,i)&&!l.isEmpty())continue;return n[s]}}},this.getFoldsInRange=function(o){var i=o.start,t=o.end,e=this.$foldData,n=[];i.column+=1,t.column-=1;for(var s=0;s<e.length;s++){var l=e[s].range.compareRange(o);if(l!=2){if(l==-2)break;for(var c=e[s].folds,m=0;m<c.length;m++){var v=c[m];if(l=v.range.compareRange(o),l==-2)break;if(l==2)continue;if(l==42)break;n.push(v)}}}return i.column-=1,t.column+=1,n},this.getFoldsInRangeList=function(o){if(Array.isArray(o)){var i=[];o.forEach(function(t){i=i.concat(this.getFoldsInRange(t))},this)}else var i=this.getFoldsInRange(o);return i},this.getAllFolds=function(){for(var o=[],i=this.$foldData,t=0;t<i.length;t++)for(var e=0;e<i[t].folds.length;e++)o.push(i[t].folds[e]);return o},this.getFoldStringAt=function(o,i,t,e){if(e=e||this.getFoldLine(o),!e)return null;for(var n={end:{column:0}},s,l,c=0;c<e.folds.length;c++){l=e.folds[c];var m=l.range.compareEnd(o,i);if(m==-1){s=this.getLine(l.start.row).substring(n.end.column,l.start.column);break}else if(m===0)return null;n=l}return s||(s=this.getLine(l.start.row).substring(n.end.column)),t==-1?s.substring(0,i-n.end.column):t==1?s.substring(i-n.end.column):s},this.getFoldLine=function(o,i){var t=this.$foldData,e=0;for(i&&(e=t.indexOf(i)),e==-1&&(e=0),e;e<t.length;e++){var n=t[e];if(n.start.row<=o&&n.end.row>=o)return n;if(n.end.row>o)return null}return null},this.getNextFoldLine=function(o,i){var t=this.$foldData,e=0;for(i&&(e=t.indexOf(i)),e==-1&&(e=0),e;e<t.length;e++){var n=t[e];if(n.end.row>=o)return n}return null},this.getFoldedRowCount=function(o,i){for(var t=this.$foldData,e=i-o+1,n=0;n<t.length;n++){var s=t[n],l=s.end.row,c=s.start.row;if(l>=i){c<i&&(c>=o?e-=i-c:e=0);break}else l>=o&&(c>=o?e-=l-c:e-=l-o+1)}return e},this.$addFoldLine=function(o){return this.$foldData.push(o),this.$foldData.sort(function(i,t){return i.start.row-t.start.row}),o},this.addFold=function(o,i){var t=this.$foldData,e=!1,n;o instanceof C?n=o:(n=new C(i,o),n.collapseChildren=i.collapseChildren),this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,m=n.end.column,v=this.getFoldAt(s,l,1),g=this.getFoldAt(c,m,-1);if(v&&g==v)return v.addSubFold(n);v&&!v.range.isStart(s,l)&&this.removeFold(v),g&&!g.range.isEnd(c,m)&&this.removeFold(g);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),n.collapseChildren||f.forEach(function($){n.addSubFold($)}));for(var b=0;b<t.length;b++){var L=t[b];if(c==L.start.row){L.addFold(n),e=!0;break}else if(s==L.end.row){if(L.addFold(n),e=!0,!n.sameRow){var M=t[b+1];if(M&&M.start.row==c){L.merge(M);break}}break}else if(c<=L.start.row)break}return e||(L=this.$addFoldLine(new A(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(o){o.forEach(function(i){this.addFold(i)},this)},this.removeFold=function(o){var i=o.foldLine,t=i.start.row,e=i.end.row,n=this.$foldData,s=i.folds;if(s.length==1)n.splice(n.indexOf(i),1);else if(i.range.isEnd(o.end.row,o.end.column))s.pop(),i.end.row=s[s.length-1].end.row,i.end.column=s[s.length-1].end.column;else if(i.range.isStart(o.start.row,o.start.column))s.shift(),i.start.row=s[0].start.row,i.start.column=s[0].start.column;else if(o.sameRow)s.splice(s.indexOf(o),1);else{var l=i.split(o.start.row,o.start.column);s=l.folds,s.shift(),l.start.row=s[0].start.row,l.start.column=s[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(t,e):this.$updateRowLengthCache(t,e)),this.$modified=!0,this._signal("changeFold",{data:o,action:"remove"})},this.removeFolds=function(o){for(var i=[],t=0;t<o.length;t++)i.push(o[t]);i.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(o){this.removeFold(o),o.subFolds.forEach(function(i){o.restoreRange(i),this.addFold(i)},this),o.collapseChildren>0&&this.foldAll(o.start.row+1,o.end.row,o.collapseChildren-1),o.subFolds=[]},this.expandFolds=function(o){o.forEach(function(i){this.expandFold(i)},this)},this.unfold=function(o,i){var t,e;if(o==null)t=new k(0,0,this.getLength(),0),i==null&&(i=!0);else if(typeof o=="number")t=new k(o,0,o,this.getLine(o).length);else if("row"in o)t=k.fromPoints(o,o);else{if(Array.isArray(o))return e=[],o.forEach(function(s){e=e.concat(this.unfold(s))},this),e;t=o}e=this.getFoldsInRangeList(t);for(var n=e;e.length==1&&k.comparePoints(e[0].start,t.start)<0&&k.comparePoints(e[0].end,t.end)>0;)this.expandFolds(e),e=this.getFoldsInRangeList(t);if(i!=!1?this.removeFolds(e):this.expandFolds(e),n.length)return n},this.isRowFolded=function(o,i){return!!this.getFoldLine(o,i)},this.getRowFoldEnd=function(o,i){var t=this.getFoldLine(o,i);return t?t.end.row:o},this.getRowFoldStart=function(o,i){var t=this.getFoldLine(o,i);return t?t.start.row:o},this.getFoldDisplayLine=function(o,i,t,e,n){e==null&&(e=o.start.row),n==null&&(n=0),i==null&&(i=o.end.row),t==null&&(t=this.getLine(i).length);var s=this.doc,l="";return o.walk(function(c,m,v,g){if(!(m<e)){if(m==e){if(v<n)return;g=Math.max(n,g)}c!=null?l+=c:l+=s.getLine(m).substring(g,v)}},i,t),l},this.getDisplayLine=function(o,i,t,e){var n=this.getFoldLine(o);if(n)return this.getFoldDisplayLine(n,o,i,t,e);var s;return s=this.doc.getLine(o),s.substring(e||0,i||s.length)},this.$cloneFoldData=function(){var o=[];return o=this.$foldData.map(function(i){var t=i.folds.map(function(e){return e.clone()});return new A(o,t)}),o},this.toggleFold=function(o){var i=this.selection,t=i.getRange(),e,n;if(t.isEmpty()){var s=t.start;if(e=this.getFoldAt(s.row,s.column),e){this.expandFold(e);return}else if(o){var l=this.getFoldLine(s.row);l&&this.expandFolds(l.folds);return}else(n=this.findMatchingBracket(s))?t.comparePoint(n)==1?t.end=n:(t.start=n,t.start.column++,t.end.column--):(n=this.findMatchingBracket({row:s.row,column:s.column+1}))?(t.comparePoint(n)==1?t.end=n:t.start=n,t.start.column++):t=this.getCommentFoldRange(s.row,s.column)||t}else{var c=this.getFoldsInRange(t);if(o&&c.length){this.expandFolds(c);return}else c.length==1&&(e=c[0])}if(e||(e=this.getFoldAt(t.start.row,t.start.column)),e&&e.range.toString()==t.toString()){this.expandFold(e);return}var m="...";if(!t.isMultiLine()){if(m=this.getTextRange(t),m.length<4)return;m=m.trim().substring(0,2)+".."}this.addFold(m,t)},this.getCommentFoldRange=function(o,i,t){var e=new a(this,o,i),n=e.getCurrentToken(),s=n&&n.type;if(n&&/^comment|string/.test(s)){s=s.match(/comment|string/)[0],s=="comment"&&(s+="|doc-start|\\.doc");var l=new RegExp(s),c=new k;if(t!=1){do n=e.stepBackward();while(n&&l.test(n.type));n=e.stepForward()}c.start.row=e.getCurrentTokenRow(),c.start.column=e.getCurrentTokenColumn()+n.value.length,e=new a(this,o,i);var m=this.getState(e.$row);if(t!=-1){var v=-1;do if(n=e.stepForward(),v==-1){var g=this.getState(e.$row);m.toString()!==g.toString()&&(v=e.$row)}else if(e.$row>v)break;while(n&&l.test(n.type));n=e.stepBackward()}else n=e.getCurrentToken();return c.end.row=e.getCurrentTokenRow(),c.end.column=e.getCurrentTokenColumn(),c.start.row==c.end.row&&c.start.column>c.end.column?void 0:c}},this.foldAll=function(o,i,t,e){t==null&&(t=1e5);var n=this.foldWidgets;if(n){i=i||this.getLength(),o=o||0;for(var s=o;s<i;s++)if(n[s]==null&&(n[s]=this.getFoldWidget(s)),n[s]=="start"&&!(e&&!e(s))){var l=this.getFoldWidgetRange(s);l&&l.isMultiLine()&&l.end.row<=i&&l.start.row>=o&&(s=l.end.row,l.collapseChildren=t,this.addFold("...",l))}}},this.foldToLevel=function(o){for(this.foldAll();o-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var o=this;this.foldAll(null,null,null,function(i){for(var t=o.getTokens(i),e=0;e<t.length;e++){var n=t[e];if(!(n.type=="text"&&/^\s+$/.test(n.value)))return!!/comment/.test(n.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(o){if(!this.$foldStyles[o])throw new Error("invalid fold style: "+o+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=o){this.$foldStyle=o,o=="manual"&&this.unfold();var i=this.$foldMode;this.$setFolding(null),this.$setFolding(i)}},this.$setFolding=function(o){if(this.$foldMode!=o){if(this.$foldMode=o,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!o||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=o.getFoldWidget.bind(o,this,this.$foldStyle),this.getFoldWidgetRange=o.getFoldWidgetRange.bind(o,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(o,i){var t=this.foldWidgets;if(!t||i&&t[o])return{};for(var e=o-1,n;e>=0;){var s=t[e];if(s==null&&(s=t[e]=this.getFoldWidget(e)),s=="start"){var l=this.getFoldWidgetRange(e);if(n||(n=l),l&&l.end.row>=o)break}e--}return{range:e!==-1&&l,firstRange:n}},this.onFoldWidgetClick=function(o,i){i instanceof h&&(i=i.domEvent);var t={children:i.shiftKey,all:i.ctrlKey||i.metaKey,siblings:i.altKey},e=this.$toggleFoldWidget(o,t);if(!e){var n=i.target||i.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(o,i){if(this.getFoldWidget){var t=this.getFoldWidget(o),e=this.getLine(o),n=t==="end"?-1:1,s=this.getFoldAt(o,n===-1?0:e.length,n);if(s)return i.children||i.all?this.removeFold(s):this.expandFold(s),s;var l=this.getFoldWidgetRange(o,!0);if(l&&!l.isMultiLine()&&(s=this.getFoldAt(l.start.row,l.start.column,1),s&&l.isEqual(s.range)))return this.removeFold(s),s;if(i.siblings){var c=this.getParentFoldRangeData(o);if(c.range)var m=c.range.start.row+1,v=c.range.end.row;this.foldAll(m,v,i.all?1e4:0)}else i.children?(v=l?l.end.row:this.getLength(),this.foldAll(o+1,v,i.all?1e4:0)):l&&(i.all&&(l.collapseChildren=1e4),this.addFold("...",l));return l}},this.toggleFoldWidget=function(o){var i=this.selection.getCursor().row;i=this.getRowFoldStart(i);var t=this.$toggleFoldWidget(i,{});if(!t){var e=this.getParentFoldRangeData(i,!0);if(t=e.range||e.firstRange,t){i=t.start.row;var n=this.getFoldAt(i,this.getLine(i).length,1);n?this.removeFold(n):this.addFold("...",t)}}},this.updateFoldWidgets=function(o){var i=o.start.row,t=o.end.row-i;if(t===0)this.foldWidgets[i]=null;else if(o.action=="remove")this.foldWidgets.splice(i,t+1,null);else{var e=Array(t+1);e.unshift(i,1),this.foldWidgets.splice.apply(this.foldWidgets,e)}},this.tokenizerUpdateFoldWidgets=function(o){var i=o.data;i.first!=i.last&&this.foldWidgets.length>i.first&&this.foldWidgets.splice(i.first,this.foldWidgets.length)}}x.Folding=r}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(R,x,P){var k=R("../token_iterator").TokenIterator,A=R("../range").Range;function C(){this.findMatchingBracket=function(a,h){if(a.column==0)return null;var r=h||this.getLine(a.row).charAt(a.column-1);if(r=="")return null;var o=r.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],a):this.$findOpeningBracket(o[2],a):null},this.getBracketRange=function(a){var h=this.getLine(a.row),r=!0,o,i=h.charAt(a.column-1),t=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(t||(i=h.charAt(a.column),a={row:a.row,column:a.column+1},t=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!t)return null;if(t[1]){var e=this.$findClosingBracket(t[1],a);if(!e)return null;o=A.fromPoints(a,e),r||(o.end.column++,o.start.column--),o.cursor=o.end}else{var e=this.$findOpeningBracket(t[2],a);if(!e)return null;o=A.fromPoints(e,a),r||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.getMatchingBracketRanges=function(a,h){var r=this.getLine(a.row),o=/([\(\[\{])|([\)\]\}])/,i=!h&&r.charAt(a.column-1),t=i&&i.match(o);if(t||(i=(h===void 0||h)&&r.charAt(a.column),a={row:a.row,column:a.column+1},t=i&&i.match(o)),!t)return null;var e=new A(a.row,a.column-1,a.row,a.column),n=t[1]?this.$findClosingBracket(t[1],a):this.$findOpeningBracket(t[2],a);if(!n)return[e];var s=new A(n.row,n.column,n.row,n.column+1);return[e,s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,h,r){var o=this.$brackets[a],i=1,t=new k(this,h.row,h.column),e=t.getCurrentToken();if(e||(e=t.stepForward()),!!e){r||(r=new RegExp("(\\.?"+e.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var n=h.column-t.getCurrentTokenColumn()-2,s=e.value;;){for(;n>=0;){var l=s.charAt(n);if(l==o){if(i-=1,i==0)return{row:t.getCurrentTokenRow(),column:n+t.getCurrentTokenColumn()}}else l==a&&(i+=1);n-=1}do e=t.stepBackward();while(e&&!r.test(e.type));if(e==null)break;s=e.value,n=s.length-1}return null}},this.$findClosingBracket=function(a,h,r){var o=this.$brackets[a],i=1,t=new k(this,h.row,h.column),e=t.getCurrentToken();if(e||(e=t.stepForward()),!!e){r||(r=new RegExp("(\\.?"+e.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var n=h.column-t.getCurrentTokenColumn();;){for(var s=e.value,l=s.length;n<l;){var c=s.charAt(n);if(c==o){if(i-=1,i==0)return{row:t.getCurrentTokenRow(),column:n+t.getCurrentTokenColumn()}}else c==a&&(i+=1);n+=1}do e=t.stepForward();while(e&&!r.test(e.type));if(e==null)break;n=0}return null}},this.getMatchingTags=function(a){var h=new k(this,a.row,a.column),r=this.$findTagName(h);if(r){var o=h.stepBackward();return o.value==="<"?this.$findClosingTag(h,r):this.$findOpeningTag(h,r)}},this.$findTagName=function(a){var h=a.getCurrentToken(),r=!1,o=!1;if(h&&h.type.indexOf("tag-name")===-1)do o?h=a.stepBackward():h=a.stepForward(),h&&(h.value==="/>"?o=!0:h.type.indexOf("tag-name")!==-1&&(r=!0));while(h&&!r);return h},this.$findClosingTag=function(a,h){var r,o=h.value,i=h.value,t=0,e=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);h=a.stepForward();var n=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+h.value.length),s=!1;do{if(r=h,r.type.indexOf("tag-close")!==-1&&!s){var l=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);s=!0}if(h=a.stepForward(),h){if(h.value===">"&&!s){var l=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);s=!0}if(h.type.indexOf("tag-name")!==-1){if(o=h.value,i===o){if(r.value==="<")t++;else if(r.value==="</"&&(t--,t<0)){a.stepBackward();var c=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2);h=a.stepForward();var m=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+h.value.length);if(h.type.indexOf("tag-close")===-1&&(h=a.stepForward()),h&&h.value===">")var v=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(i===o&&h.value==="/>"&&(t--,t<0))var c=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),m=c,v=m,l=new A(n.end.row,n.end.column,n.end.row,n.end.column+1)}}while(h&&t>=0);if(e&&l&&c&&v&&n&&m)return{openTag:new A(e.start.row,e.start.column,l.end.row,l.end.column),closeTag:new A(c.start.row,c.start.column,v.end.row,v.end.column),openTagName:n,closeTagName:m}},this.$findOpeningTag=function(a,h){var r=a.getCurrentToken(),o=h.value,i=0,t=a.getCurrentTokenRow(),e=a.getCurrentTokenColumn(),n=e+2,s=new A(t,e,t,n);a.stepForward();var l=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+h.value.length);if(h.type.indexOf("tag-close")===-1&&(h=a.stepForward()),!(!h||h.value!==">")){var c=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(h=r,t=a.getCurrentTokenRow(),e=a.getCurrentTokenColumn(),n=e+h.value.length,r=a.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(o===h.value)if(r.value==="<"){if(i++,i>0){var m=new A(t,e,t,n),v=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do h=a.stepForward();while(h&&h.value!==">");var g=new A(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else r.value==="</"&&i--}else if(h.value==="/>"){for(var f=0,b=r;b;){if(b.type.indexOf("tag-name")!==-1&&b.value===o){i--;break}else if(b.value==="<")break;b=a.stepBackward(),f++}for(var L=0;L<f;L++)a.stepForward()}}while(r&&i<=0);if(v&&g&&s&&c&&m&&l)return{openTag:new A(v.start.row,v.start.column,g.end.row,g.end.column),closeTag:new A(s.start.row,s.start.column,c.end.row,c.end.column),openTagName:m,closeTagName:l}}}}x.BracketMatch=C}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(R,x,P){var k=R("./lib/oop"),A=R("./lib/lang"),C=R("./bidihandler").BidiHandler,a=R("./config"),h=R("./lib/event_emitter").EventEmitter,r=R("./selection").Selection,o=R("./mode/text").Mode,i=R("./range").Range,t=R("./line_widgets").LineWidgets,e=R("./document").Document,n=R("./background_tokenizer").BackgroundTokenizer,s=R("./search_highlight").SearchHighlight,l=R("./undomanager").UndoManager,c=function(){function w(y,d){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++w.$uid,this.$foldData.toString=function(){return this.join(`
|
|
197
|
-
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new n(new o().getTokenizer(),this);var u=this;this.bgTokenizer.on("update",function(p){u._signal("tokenizerUpdate",p)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof y!="object"||!y.getLine)&&(y=new e(y)),this.setDocument(y),this.selection=new r(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new C(this),a.resetOptions(this),this.setMode(d),a._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return w.prototype.$initOperationListeners=function(){var y=this;this.curOp=null,this.on("change",function(){y.curOp||(y.startOperation(),y.curOp.selectionBefore=y.$lastSel),y.curOp.docChanged=!0},!0),this.on("changeSelection",function(){y.curOp||(y.startOperation(),y.curOp.selectionBefore=y.$lastSel),y.curOp.selectionChanged=!0},!0),this.$operationResetTimer=A.delayedCall(this.endOperation.bind(this,!0))},w.prototype.startOperation=function(y){if(this.curOp){if(!y||this.curOp.command)return;this.prevOp=this.curOp}y||(y={}),this.$operationResetTimer.schedule(),this.curOp={command:y.command||{},args:y.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",y)},w.prototype.endOperation=function(y){if(this.curOp){if(y&&y.returnValue===!1){this.curOp=null,this._signal("endOperation",y);return}if(y==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var d=this.selection.toJSON();this.curOp.selectionAfter=d,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(d),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",y)}},w.prototype.setDocument=function(y){this.doc&&this.doc.off("change",this.$onChange),this.doc=y,y.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},w.prototype.getDocument=function(){return this.doc},Object.defineProperty(w.prototype,"widgetManager",{get:function(){var y=new t(this);return this.widgetManager=y,this.$editor&&y.attach(this.$editor),y},set:function(y){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:y})},enumerable:!1,configurable:!0}),w.prototype.$resetRowCache=function(y){if(!y){this.$docRowCache=[],this.$screenRowCache=[];return}var d=this.$docRowCache.length,u=this.$getRowCacheIndex(this.$docRowCache,y)+1;d>u&&(this.$docRowCache.splice(u,d),this.$screenRowCache.splice(u,d))},w.prototype.$getRowCacheIndex=function(y,d){for(var u=0,p=y.length-1;u<=p;){var S=u+p>>1,T=y[S];if(d>T)u=S+1;else if(d<T)p=S-1;else return S}return u-1},w.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},w.prototype.onChangeFold=function(y){var d=y.data;this.$resetRowCache(d.start.row)},w.prototype.onChange=function(y){this.$modified=!0,this.$bidiHandler.onChange(y),this.$resetRowCache(y.start.row);var d=this.$updateInternalDataOnChange(y);!this.$fromUndo&&this.$undoManager&&(d&&d.length&&(this.$undoManager.add({action:"removeFolds",folds:d},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(y,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(y),this._signal("change",y)},w.prototype.onSelectionChange=function(){this._signal("changeSelection")},w.prototype.setValue=function(y){this.doc.setValue(y),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},w.fromJSON=function(y){typeof y=="string"&&(y=JSON.parse(y));var d=new l;d.$undoStack=y.history.undo,d.$redoStack=y.history.redo,d.mark=y.history.mark,d.$rev=y.history.rev;var u=new w(y.value);return y.folds.forEach(function(p){u.addFold("...",i.fromPoints(p.start,p.end))}),u.setAnnotations(y.annotations),u.setBreakpoints(y.breakpoints),u.setMode(y.mode),u.setScrollLeft(y.scrollLeft),u.setScrollTop(y.scrollTop),u.setUndoManager(d),u.selection.fromJSON(y.selection),u},w.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(y){return y.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},w.prototype.toString=function(){return this.doc.getValue()},w.prototype.getSelection=function(){return this.selection},w.prototype.getState=function(y){return this.bgTokenizer.getState(y)},w.prototype.getTokens=function(y){return this.bgTokenizer.getTokens(y)},w.prototype.getTokenAt=function(y,d){var u=this.bgTokenizer.getTokens(y),p,S=0;if(d==null){var T=u.length-1;S=this.getLine(y).length}else for(var T=0;T<u.length&&(S+=u[T].value.length,!(S>=d));T++);return p=u[T],p?(p.index=T,p.start=S-p.value.length,p):null},w.prototype.setUndoManager=function(y){if(this.$undoManager=y,this.$informUndoManager&&this.$informUndoManager.cancel(),y){var d=this;y.addSession(this),this.$syncInformUndoManager=function(){d.$informUndoManager.cancel(),d.mergeUndoDeltas=!1},this.$informUndoManager=A.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},w.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},w.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},w.prototype.getTabString=function(){return this.getUseSoftTabs()?A.stringRepeat(" ",this.getTabSize()):" "},w.prototype.setUseSoftTabs=function(y){this.setOption("useSoftTabs",y)},w.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},w.prototype.setTabSize=function(y){this.setOption("tabSize",y)},w.prototype.getTabSize=function(){return this.$tabSize},w.prototype.isTabStop=function(y){return this.$useSoftTabs&&y.column%this.$tabSize===0},w.prototype.setNavigateWithinSoftTabs=function(y){this.setOption("navigateWithinSoftTabs",y)},w.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},w.prototype.setOverwrite=function(y){this.setOption("overwrite",y)},w.prototype.getOverwrite=function(){return this.$overwrite},w.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},w.prototype.addGutterDecoration=function(y,d){this.$decorations[y]||(this.$decorations[y]=""),this.$decorations[y]+=" "+d,this._signal("changeBreakpoint",{})},w.prototype.removeGutterCustomWidget=function(y){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(y)},w.prototype.addGutterCustomWidget=function(y,d){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(y,d)},w.prototype.removeGutterDecoration=function(y,d){this.$decorations[y]=(this.$decorations[y]||"").replace(" "+d,""),this._signal("changeBreakpoint",{})},w.prototype.getBreakpoints=function(){return this.$breakpoints},w.prototype.setBreakpoints=function(y){this.$breakpoints=[];for(var d=0;d<y.length;d++)this.$breakpoints[y[d]]="ace_breakpoint";this._signal("changeBreakpoint",{})},w.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},w.prototype.setBreakpoint=function(y,d){d===void 0&&(d="ace_breakpoint"),d?this.$breakpoints[y]=d:delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},w.prototype.clearBreakpoint=function(y){delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},w.prototype.addMarker=function(y,d,u,p){var S=this.$markerId++,T={range:y,type:u||"line",renderer:typeof u=="function"?u:null,clazz:d,inFront:!!p,id:S};return p?(this.$frontMarkers[S]=T,this._signal("changeFrontMarker")):(this.$backMarkers[S]=T,this._signal("changeBackMarker")),S},w.prototype.addDynamicMarker=function(y,d){if(y.update){var u=this.$markerId++;return y.id=u,y.inFront=!!d,d?(this.$frontMarkers[u]=y,this._signal("changeFrontMarker")):(this.$backMarkers[u]=y,this._signal("changeBackMarker")),y}},w.prototype.removeMarker=function(y){var d=this.$frontMarkers[y]||this.$backMarkers[y];if(d){var u=d.inFront?this.$frontMarkers:this.$backMarkers;delete u[y],this._signal(d.inFront?"changeFrontMarker":"changeBackMarker")}},w.prototype.getMarkers=function(y){return y?this.$frontMarkers:this.$backMarkers},w.prototype.highlight=function(y){if(!this.$searchHighlight){var d=new s(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(d)}this.$searchHighlight.setRegexp(y)},w.prototype.highlightLines=function(y,d,u,p){typeof d!="number"&&(u=d,d=y),u||(u="ace_step");var S=new i(y,0,d,1/0);return S.id=this.addMarker(S,u,"fullLine",p),S},w.prototype.setAnnotations=function(y){this.$annotations=y,this._signal("changeAnnotation",{})},w.prototype.getAnnotations=function(){return this.$annotations||[]},w.prototype.clearAnnotations=function(){this.setAnnotations([])},w.prototype.$detectNewLine=function(y){var d=y.match(/^.*?(\r?\n)/m);d?this.$autoNewLine=d[1]:this.$autoNewLine=`
|
|
198
|
-
`},w.prototype.getWordRange=function(y,d){var u=this.getLine(y),p=!1;if(d>0&&(p=!!u.charAt(d-1).match(this.tokenRe)),p||(p=!!u.charAt(d).match(this.tokenRe)),p)var S=this.tokenRe;else if(/^\s+$/.test(u.slice(d-1,d+1)))var S=/\s/;else var S=this.nonTokenRe;var T=d;if(T>0){do T--;while(T>=0&&u.charAt(T).match(S));T++}for(var E=d;E<u.length&&u.charAt(E).match(S);)E++;return new i(y,T,y,E)},w.prototype.getAWordRange=function(y,d){for(var u=this.getWordRange(y,d),p=this.getLine(u.end.row);p.charAt(u.end.column).match(/[ \t]/);)u.end.column+=1;return u},w.prototype.setNewLineMode=function(y){this.doc.setNewLineMode(y)},w.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},w.prototype.setUseWorker=function(y){this.setOption("useWorker",y)},w.prototype.getUseWorker=function(){return this.$useWorker},w.prototype.onReloadTokenizer=function(y){var d=y.data;this.bgTokenizer.start(d.first),this._signal("tokenizerUpdate",y)},w.prototype.setMode=function(y,d){if(y&&typeof y=="object"){if(y.getTokenizer)return this.$onChangeMode(y);var u=y,p=u.path}else p=y||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[p]&&!u){this.$onChangeMode(this.$modes[p]),d&&d();return}this.$modeId=p,a.loadModule(["mode",p],function(S){if(!this.destroyed){if(this.$modeId!==p)return d&&d();this.$modes[p]&&!u?this.$onChangeMode(this.$modes[p]):S&&S.Mode&&(S=new S.Mode(u),u||(this.$modes[p]=S,S.$id=p),this.$onChangeMode(S)),d&&d()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},w.prototype.$onChangeMode=function(y,d){if(d||(this.$modeId=y.$id),this.$mode!==y){var u=this.$mode;this.$mode=y,this.$stopWorker(),this.$useWorker&&this.$startWorker();var p=y.getTokenizer();if(p.on!==void 0){var S=this.onReloadTokenizer.bind(this);p.on("update",S)}this.bgTokenizer.setTokenizer(p),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=y.tokenRe,this.nonTokenRe=y.nonTokenRe,d||(y.attachToSession&&y.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(y.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:u,mode:y}))}},w.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},w.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(y){a.warn("Could not load worker",y),this.$worker=null}},w.prototype.getMode=function(){return this.$mode},w.prototype.setScrollTop=function(y){this.$scrollTop===y||isNaN(y)||(this.$scrollTop=y,this._signal("changeScrollTop",y))},w.prototype.getScrollTop=function(){return this.$scrollTop},w.prototype.setScrollLeft=function(y){this.$scrollLeft===y||isNaN(y)||(this.$scrollLeft=y,this._signal("changeScrollLeft",y))},w.prototype.getScrollLeft=function(){return this.$scrollLeft},w.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},w.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var y=0;return this.lineWidgets.forEach(function(d){d&&d.screenWidth>y&&(y=d.screenWidth)}),this.lineWidgetWidth=y},w.prototype.$computeWidth=function(y){if(this.$modified||y){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var d=this.doc.getAllLines(),u=this.$rowLengthCache,p=0,S=0,T=this.$foldData[S],E=T?T.start.row:1/0,I=d.length,D=0;D<I;D++){if(D>E){if(D=T.end.row+1,D>=I)break;T=this.$foldData[S++],E=T?T.start.row:1/0}u[D]==null&&(u[D]=this.$getStringScreenWidth(d[D])[0]),u[D]>p&&(p=u[D])}this.screenWidth=p}},w.prototype.getLine=function(y){return this.doc.getLine(y)},w.prototype.getLines=function(y,d){return this.doc.getLines(y,d)},w.prototype.getLength=function(){return this.doc.getLength()},w.prototype.getTextRange=function(y){return this.doc.getTextRange(y||this.selection.getRange())},w.prototype.insert=function(y,d){return this.doc.insert(y,d)},w.prototype.remove=function(y){return this.doc.remove(y)},w.prototype.removeFullLines=function(y,d){return this.doc.removeFullLines(y,d)},w.prototype.undoChanges=function(y,d){if(y.length){this.$fromUndo=!0;for(var u=y.length-1;u!=-1;u--){var p=y[u];p.action=="insert"||p.action=="remove"?this.doc.revertDelta(p):p.folds&&this.addFolds(p.folds)}!d&&this.$undoSelect&&(y.selectionBefore?this.selection.fromJSON(y.selectionBefore):this.selection.setRange(this.$getUndoSelection(y,!0))),this.$fromUndo=!1}},w.prototype.redoChanges=function(y,d){if(y.length){this.$fromUndo=!0;for(var u=0;u<y.length;u++){var p=y[u];(p.action=="insert"||p.action=="remove")&&this.doc.$safeApplyDelta(p)}!d&&this.$undoSelect&&(y.selectionAfter?this.selection.fromJSON(y.selectionAfter):this.selection.setRange(this.$getUndoSelection(y,!1))),this.$fromUndo=!1}},w.prototype.setUndoSelect=function(y){this.$undoSelect=y},w.prototype.$getUndoSelection=function(y,d){function u(I){return d?I.action!=="insert":I.action==="insert"}for(var p,S,T=0;T<y.length;T++){var E=y[T];if(E.start){if(!p){u(E)?p=i.fromPoints(E.start,E.end):p=i.fromPoints(E.start,E.start);continue}u(E)?(S=E.start,p.compare(S.row,S.column)==-1&&p.setStart(S),S=E.end,p.compare(S.row,S.column)==1&&p.setEnd(S)):(S=E.start,p.compare(S.row,S.column)==-1&&(p=i.fromPoints(E.start,E.start)))}}return p},w.prototype.replace=function(y,d){return this.doc.replace(y,d)},w.prototype.moveText=function(y,d,u){var p=this.getTextRange(y),S=this.getFoldsInRange(y),T=i.fromPoints(d,d);if(!u){this.remove(y);var E=y.start.row-y.end.row,I=E?-y.end.column:y.start.column-y.end.column;I&&(T.start.row==y.end.row&&T.start.column>y.end.column&&(T.start.column+=I),T.end.row==y.end.row&&T.end.column>y.end.column&&(T.end.column+=I)),E&&T.start.row>=y.end.row&&(T.start.row+=E,T.end.row+=E)}if(T.end=this.insert(T.start,p),S.length){var D=y.start,H=T.start,E=H.row-D.row,I=H.column-D.column;this.addFolds(S.map(function(F){return F=F.clone(),F.start.row==D.row&&(F.start.column+=I),F.end.row==D.row&&(F.end.column+=I),F.start.row+=E,F.end.row+=E,F}))}return T},w.prototype.indentRows=function(y,d,u){u=u.replace(/\t/g,this.getTabString());for(var p=y;p<=d;p++)this.doc.insertInLine({row:p,column:0},u)},w.prototype.outdentRows=function(y){for(var d=y.collapseRows(),u=new i(0,0,0,0),p=this.getTabSize(),S=d.start.row;S<=d.end.row;++S){var T=this.getLine(S);u.start.row=S,u.end.row=S;for(var E=0;E<p&&T.charAt(E)==" ";++E);E<p&&T.charAt(E)==" "?(u.start.column=E,u.end.column=E+1):(u.start.column=0,u.end.column=E),this.remove(u)}},w.prototype.$moveLines=function(y,d,u){if(y=this.getRowFoldStart(y),d=this.getRowFoldEnd(d),u<0){var p=this.getRowFoldStart(y+u);if(p<0)return 0;var S=p-y}else if(u>0){var p=this.getRowFoldEnd(d+u);if(p>this.doc.getLength()-1)return 0;var S=p-d}else{y=this.$clipRowToDocument(y),d=this.$clipRowToDocument(d);var S=d-y+1}var T=new i(y,0,d,Number.MAX_VALUE),E=this.getFoldsInRange(T).map(function(D){return D=D.clone(),D.start.row+=S,D.end.row+=S,D}),I=u==0?this.doc.getLines(y,d):this.doc.removeFullLines(y,d);return this.doc.insertFullLines(y+S,I),E.length&&this.addFolds(E),S},w.prototype.moveLinesUp=function(y,d){return this.$moveLines(y,d,-1)},w.prototype.moveLinesDown=function(y,d){return this.$moveLines(y,d,1)},w.prototype.duplicateLines=function(y,d){return this.$moveLines(y,d,0)},w.prototype.$clipRowToDocument=function(y){return Math.max(0,Math.min(y,this.doc.getLength()-1))},w.prototype.$clipColumnToRow=function(y,d){return d<0?0:Math.min(this.doc.getLine(y).length,d)},w.prototype.$clipPositionToDocument=function(y,d){if(d=Math.max(0,d),y<0)y=0,d=0;else{var u=this.doc.getLength();y>=u?(y=u-1,d=this.doc.getLine(u-1).length):d=Math.min(this.doc.getLine(y).length,d)}return{row:y,column:d}},w.prototype.$clipRangeToDocument=function(y){y.start.row<0?(y.start.row=0,y.start.column=0):y.start.column=this.$clipColumnToRow(y.start.row,y.start.column);var d=this.doc.getLength()-1;return y.end.row>d?(y.end.row=d,y.end.column=this.doc.getLine(d).length):y.end.column=this.$clipColumnToRow(y.end.row,y.end.column),y},w.prototype.setUseWrapMode=function(y){if(y!=this.$useWrapMode){if(this.$useWrapMode=y,this.$modified=!0,this.$resetRowCache(0),y){var d=this.getLength();this.$wrapData=Array(d),this.$updateWrapData(0,d-1)}this._signal("changeWrapMode")}},w.prototype.getUseWrapMode=function(){return this.$useWrapMode},w.prototype.setWrapLimitRange=function(y,d){(this.$wrapLimitRange.min!==y||this.$wrapLimitRange.max!==d)&&(this.$wrapLimitRange={min:y,max:d},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},w.prototype.adjustWrapLimit=function(y,d){var u=this.$wrapLimitRange;u.max<0&&(u={min:d,max:d});var p=this.$constrainWrapLimit(y,u.min,u.max);return p!=this.$wrapLimit&&p>1?(this.$wrapLimit=p,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},w.prototype.$constrainWrapLimit=function(y,d,u){return d&&(y=Math.max(d,y)),u&&(y=Math.min(u,y)),y},w.prototype.getWrapLimit=function(){return this.$wrapLimit},w.prototype.setWrapLimit=function(y){this.setWrapLimitRange(y,y)},w.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},w.prototype.$updateInternalDataOnChange=function(y){var d=this.$useWrapMode,u=y.action,p=y.start,S=y.end,T=p.row,E=S.row,I=E-T,D=null;if(this.$updating=!0,I!=0)if(u==="remove"){this[d?"$wrapData":"$rowLengthCache"].splice(T,I);var H=this.$foldData;D=this.getFoldsInRange(y),this.removeFolds(D);var O=this.getFoldLine(S.row),N=0;if(O){O.addRemoveChars(S.row,S.column,p.column-S.column),O.shiftRow(-I);var F=this.getFoldLine(T);F&&F!==O&&(F.merge(O),O=F),N=H.indexOf(O)+1}for(N;N<H.length;N++){var O=H[N];O.start.row>=S.row&&O.shiftRow(-I)}E=T}else{var W=Array(I);W.unshift(T,0);var z=d?this.$wrapData:this.$rowLengthCache;z.splice.apply(z,W);var H=this.$foldData,O=this.getFoldLine(T),N=0;if(O){var U=O.range.compareInside(p.row,p.column);U==0?(O=O.split(p.row,p.column),O&&(O.shiftRow(I),O.addRemoveChars(E,0,S.column-p.column))):U==-1&&(O.addRemoveChars(T,0,S.column-p.column),O.shiftRow(I)),N=H.indexOf(O)+1}for(N;N<H.length;N++){var O=H[N];O.start.row>=T&&O.shiftRow(I)}}else{I=Math.abs(y.start.column-y.end.column),u==="remove"&&(D=this.getFoldsInRange(y),this.removeFolds(D),I=-I);var O=this.getFoldLine(T);O&&O.addRemoveChars(T,p.column,I)}return d&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,d?this.$updateWrapData(T,E):this.$updateRowLengthCache(T,E),D},w.prototype.$updateRowLengthCache=function(y,d){this.$rowLengthCache[y]=null,this.$rowLengthCache[d]=null},w.prototype.$updateWrapData=function(y,d){var u=this.doc.getAllLines(),p=this.getTabSize(),S=this.$wrapData,T=this.$wrapLimit,E,I,D=y;for(d=Math.min(d,u.length-1);D<=d;)I=this.getFoldLine(D,I),I?(E=[],I.walk(function(H,O,N,F){var W;if(H!=null){W=this.$getDisplayTokens(H,E.length),W[0]=g;for(var z=1;z<W.length;z++)W[z]=f}else W=this.$getDisplayTokens(u[O].substring(F,N),E.length);E=E.concat(W)}.bind(this),I.end.row,u[I.end.row].length+1),S[I.start.row]=this.$computeWrapSplits(E,T,p),D=I.end.row+1):(E=this.$getDisplayTokens(u[D]),S[D]=this.$computeWrapSplits(E,T,p),D++)},w.prototype.$computeWrapSplits=function(y,d,u){if(y.length==0)return[];var p=[],S=y.length,T=0,E=0,I=this.$wrapAsCode,D=this.$indentedSoftWrap,H=d<=Math.max(2*u,8)||D===!1?0:Math.floor(d/2);function O(){var U=0;if(H===0)return U;if(D)for(var V=0;V<y.length;V++){var j=y[V];if(j==L)U+=1;else if(j==M)U+=u;else{if(j==$)continue;break}}return I&&D!==!1&&(U+=u),Math.min(U,H)}function N(U){for(var V=U-T,j=T;j<U;j++){var Y=y[j];(Y===12||Y===2)&&(V-=1)}p.length||(F=O(),p.indent=F),E+=V,p.push(E),T=U}for(var F=0;S-T>d-F;){var W=T+d-F;if(y[W-1]>=L&&y[W]>=L){N(W);continue}if(y[W]==g||y[W]==f){for(W;W!=T-1&&y[W]!=g;W--);if(W>T){N(W);continue}for(W=T+d,W;W<y.length&&y[W]==f;W++);if(W==y.length)break;N(W);continue}for(var z=Math.max(W-(d-(d>>2)),T-1);W>z&&y[W]<g;)W--;if(I){for(;W>z&&y[W]<g;)W--;for(;W>z&&y[W]==b;)W--}else for(;W>z&&y[W]<L;)W--;if(W>z){N(++W);continue}W=T+d,y[W]==v&&W--,N(W-F)}return p},w.prototype.$getDisplayTokens=function(y,d){var u=[],p;d=d||0;for(var S=0;S<y.length;S++){var T=y.charCodeAt(S);if(T==9){p=this.getScreenTabSize(u.length+d),u.push(M);for(var E=1;E<p;E++)u.push($)}else T==32?u.push(L):T>39&&T<48||T>57&&T<64?u.push(b):T>=4352&&_(T)?u.push(m,v):u.push(m)}return u},w.prototype.$getStringScreenWidth=function(y,d,u){if(d==0)return[0,0];d==null&&(d=1/0),u=u||0;var p,S;for(S=0;S<y.length&&(p=y.charCodeAt(S),p==9?u+=this.getScreenTabSize(u):p>=4352&&_(p)?u+=2:u+=1,!(u>d));S++);return[u,S]},w.prototype.getRowLength=function(y){var d=1;return this.lineWidgets&&(d+=this.lineWidgets[y]&&this.lineWidgets[y].rowCount||0),!this.$useWrapMode||!this.$wrapData[y]?d:this.$wrapData[y].length+d},w.prototype.getRowLineCount=function(y){return!this.$useWrapMode||!this.$wrapData[y]?1:this.$wrapData[y].length+1},w.prototype.getRowWrapIndent=function(y){if(this.$useWrapMode){var d=this.screenToDocumentPosition(y,Number.MAX_VALUE),u=this.$wrapData[d.row];return u.length&&u[0]<d.column?u.indent:0}else return 0},w.prototype.getScreenLastRowColumn=function(y){var d=this.screenToDocumentPosition(y,Number.MAX_VALUE);return this.documentToScreenColumn(d.row,d.column)},w.prototype.getDocumentLastRowColumn=function(y,d){var u=this.documentToScreenRow(y,d);return this.getScreenLastRowColumn(u)},w.prototype.getDocumentLastRowColumnPosition=function(y,d){var u=this.documentToScreenRow(y,d);return this.screenToDocumentPosition(u,Number.MAX_VALUE/10)},w.prototype.getRowSplitData=function(y){if(this.$useWrapMode)return this.$wrapData[y]},w.prototype.getScreenTabSize=function(y){return this.$tabSize-(y%this.$tabSize|0)},w.prototype.screenToDocumentRow=function(y,d){return this.screenToDocumentPosition(y,d).row},w.prototype.screenToDocumentColumn=function(y,d){return this.screenToDocumentPosition(y,d).column},w.prototype.screenToDocumentPosition=function(y,d,u){if(y<0)return{row:0,column:0};var p,S=0,T=0,E,I=0,D=0,H=this.$screenRowCache,O=this.$getRowCacheIndex(H,y),N=H.length;if(N&&O>=0)var I=H[O],S=this.$docRowCache[O],F=y>H[N-1];else var F=!N;for(var W=this.getLength()-1,z=this.getNextFoldLine(S),U=z?z.start.row:1/0;I<=y&&(D=this.getRowLength(S),!(I+D>y||S>=W));)I+=D,S++,S>U&&(S=z.end.row+1,z=this.getNextFoldLine(S,z),U=z?z.start.row:1/0),F&&(this.$docRowCache.push(S),this.$screenRowCache.push(I));if(z&&z.start.row<=S)p=this.getFoldDisplayLine(z),S=z.start.row;else{if(I+D<=y||S>W)return{row:W,column:this.getLine(W).length};p=this.getLine(S),z=null}var V=0,j=Math.floor(y-I);if(this.$useWrapMode){var Y=this.$wrapData[S];Y&&(E=Y[j],j>0&&Y.length&&(V=Y.indent,T=Y[j-1]||Y[Y.length-1],p=p.substring(T)))}return u!==void 0&&this.$bidiHandler.isBidiRow(I+j,S,j)&&(d=this.$bidiHandler.offsetToCol(u)),T+=this.$getStringScreenWidth(p,d-V)[1],this.$useWrapMode&&T>=E&&(T=E-1),z?z.idxToPosition(T):{row:S,column:T}},w.prototype.documentToScreenPosition=function(y,d){if(typeof d>"u")var u=this.$clipPositionToDocument(y.row,y.column);else u=this.$clipPositionToDocument(y,d);y=u.row,d=u.column;var p=0,S=null,T=null;T=this.getFoldAt(y,d,1),T&&(y=T.start.row,d=T.start.column);var E,I=0,D=this.$docRowCache,H=this.$getRowCacheIndex(D,y),O=D.length;if(O&&H>=0)var I=D[H],p=this.$screenRowCache[H],N=y>D[O-1];else var N=!O;for(var F=this.getNextFoldLine(I),W=F?F.start.row:1/0;I<y;){if(I>=W){if(E=F.end.row+1,E>y)break;F=this.getNextFoldLine(E,F),W=F?F.start.row:1/0}else E=I+1;p+=this.getRowLength(I),I=E,N&&(this.$docRowCache.push(I),this.$screenRowCache.push(p))}var z="";F&&I>=W?(z=this.getFoldDisplayLine(F,y,d),S=F.start.row):(z=this.getLine(y).substring(0,d),S=y);var U=0;if(this.$useWrapMode){var V=this.$wrapData[S];if(V){for(var j=0;z.length>=V[j];)p++,j++;z=z.substring(V[j-1]||0,z.length),U=j>0?V.indent:0}}return this.lineWidgets&&this.lineWidgets[I]&&this.lineWidgets[I].rowsAbove&&(p+=this.lineWidgets[I].rowsAbove),{row:p,column:U+this.$getStringScreenWidth(z)[0]}},w.prototype.documentToScreenColumn=function(y,d){return this.documentToScreenPosition(y,d).column},w.prototype.documentToScreenRow=function(y,d){return this.documentToScreenPosition(y,d).row},w.prototype.getScreenLength=function(){var y=0,d=null;if(this.$useWrapMode)for(var S=this.$wrapData.length,T=0,p=0,d=this.$foldData[p++],E=d?d.start.row:1/0;T<S;){var I=this.$wrapData[T];y+=I?I.length+1:1,T++,T>E&&(T=d.end.row+1,d=this.$foldData[p++],E=d?d.start.row:1/0)}else{y=this.getLength();for(var u=this.$foldData,p=0;p<u.length;p++)d=u[p],y-=d.end.row-d.start.row}return this.lineWidgets&&(y+=this.$getWidgetScreenLength()),y},w.prototype.$setFontMetrics=function(y){this.$enableVarChar&&(this.$getStringScreenWidth=function(d,u,p){if(u===0)return[0,0];u||(u=1/0),p=p||0;var S,T;for(T=0;T<d.length&&(S=d.charAt(T),S===" "?p+=this.getScreenTabSize(p):p+=y.getCharacterWidth(S),!(p>u));T++);return[p,T]})},w.prototype.getPrecedingCharacter=function(){var y=this.selection.getCursor();if(y.column===0)return y.row===0?"":this.doc.getNewLineCharacter();var d=this.getLine(y.row);return d[y.column-1]},w.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},w}();c.$uid=0,c.prototype.$modes=a.$modes,c.prototype.getValue=c.prototype.toString,c.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},c.prototype.$overwrite=!1,c.prototype.$mode=null,c.prototype.$modeId=null,c.prototype.$scrollTop=0,c.prototype.$scrollLeft=0,c.prototype.$wrapLimit=80,c.prototype.$useWrapMode=!1,c.prototype.$wrapLimitRange={min:null,max:null},c.prototype.lineWidgets=null,c.prototype.isFullWidth=_,k.implement(c.prototype,h);var m=1,v=2,g=3,f=4,b=9,L=10,M=11,$=12;function _(w){return w<4352?!1:w>=4352&&w<=4447||w>=4515&&w<=4519||w>=4602&&w<=4607||w>=9001&&w<=9002||w>=11904&&w<=11929||w>=11931&&w<=12019||w>=12032&&w<=12245||w>=12272&&w<=12283||w>=12288&&w<=12350||w>=12353&&w<=12438||w>=12441&&w<=12543||w>=12549&&w<=12589||w>=12593&&w<=12686||w>=12688&&w<=12730||w>=12736&&w<=12771||w>=12784&&w<=12830||w>=12832&&w<=12871||w>=12880&&w<=13054||w>=13056&&w<=19903||w>=19968&&w<=42124||w>=42128&&w<=42182||w>=43360&&w<=43388||w>=44032&&w<=55203||w>=55216&&w<=55238||w>=55243&&w<=55291||w>=63744&&w<=64255||w>=65040&&w<=65049||w>=65072&&w<=65106||w>=65108&&w<=65126||w>=65128&&w<=65131||w>=65281&&w<=65376||w>=65504&&w<=65510}R("./edit_session/folding").Folding.call(c.prototype),R("./edit_session/bracket_match").BracketMatch.call(c.prototype),a.defineOptions(c.prototype,"session",{wrap:{set:function(w){if(!w||w=="off"?w=!1:w=="free"?w=!0:w=="printMargin"?w=-1:typeof w=="string"&&(w=parseInt(w,10)||!1),this.$wrap!=w)if(this.$wrap=w,!w)this.setUseWrapMode(!1);else{var y=typeof w=="number"?w:null;this.setWrapLimitRange(y,y),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(w){w=w=="auto"?this.$mode.type!="text":w!="text",w!=this.$wrapAsCode&&(this.$wrapAsCode=w,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(w){this.$useWorker=w,this.$stopWorker(),w&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(w){w=parseInt(w),w>0&&this.$tabSize!==w&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=w,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(w){this.setFoldStyle(w)},handlesSet:!0},overwrite:{set:function(w){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(w){this.doc.setNewLineMode(w)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(w){this.setMode(w)},get:function(){return this.$modeId},handlesSet:!0}}),x.EditSession=c}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(R,x,P){var k=R("./lib/lang"),A=R("./lib/oop"),C=R("./range").Range,a=function(){function i(){this.$options={}}return i.prototype.set=function(t){return A.mixin(this.$options,t),this},i.prototype.getOptions=function(){return k.copyObject(this.$options)},i.prototype.setOptions=function(t){this.$options=t},i.prototype.find=function(t){var e=this.$options,n=this.$matchIterator(t,e);if(!n)return!1;var s=null;return n.forEach(function(l,c,m,v){return s=new C(l,c,m,v),c==v&&e.start&&e.start.start&&e.skipCurrent!=!1&&s.isEqual(e.start)?(s=null,!1):!0}),s},i.prototype.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var n=e.range,s=n?t.getLines(n.start.row,n.end.row):t.doc.getAllLines(),l=[],c=e.re;if(e.$isMultiLine){var m=c.length,v=s.length-m,g;e:for(var f=c.offset||0;f<=v;f++){for(var b=0;b<m;b++)if(s[f+b].search(c[b])==-1)continue e;var L=s[f],M=s[f+m-1],$=L.length-L.match(c[0])[0].length,_=M.match(c[m-1])[0].length;g&&g.end.row===f&&g.end.column>$||(l.push(g=new C(f,$,f+m-1,_)),m>2&&(f=f+m-2))}}else for(var w,y=0;y<s.length;y++)if(this.$isMultilineSearch(e)){var d=s.length-1;if(w=this.$multiLineForward(t,c,y,d),w){var u=w.endRow<=d?w.endRow-1:d;u>y&&(y=u),l.push(new C(w.startRow,w.startCol,w.endRow,w.endCol))}}else{w=k.getMatchOffsets(s[y],c);for(var b=0;b<w.length;b++){var p=w[b];l.push(new C(y,p.offset,y,p.offset+p.length))}}if(n){for(var S=n.start.column,T=n.end.column,y=0,b=l.length-1;y<b&&l[y].start.column<S&&l[y].start.row==0;)y++;for(var E=n.end.row-n.start.row;y<b&&l[b].end.column>T&&l[b].end.row==E;)b--;for(l=l.slice(y,b+1),y=0,b=l.length;y<b;y++)l[y].start.row+=n.start.row,l[y].end.row+=n.start.row}return l},i.prototype.parseReplaceString=function(t){for(var e={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},n="",s=0,l=t.length;s<l;s++){var c=t.charCodeAt(s);if(c===e.Backslash){if(s++,s>=l){n+="\\";break}var m=t.charCodeAt(s);switch(m){case e.Backslash:n+="\\";break;case e.n:n+=`
|
|
199
|
-
`;break;case e.t:n+=" ";break}continue}if(c===e.DollarSign){if(s++,s>=l){n+="$";break}var v=t.charCodeAt(s);if(v===e.DollarSign){n+="$$";continue}if(v===e.Digit0||v===e.Ampersand){n+="$&";continue}if(e.Digit1<=v&&v<=e.Digit9){n+="$"+t[s];continue}}n+=t[s]}return n||t},i.prototype.replace=function(t,e){var n=this.$options,s=this.$assembleRegExp(n);if(n.$isMultiLine)return e;if(s){var l=this.$isMultilineSearch(n);l&&(t=t.replace(/\r\n|\r|\n/g,`
|
|
200
|
-
`));var c=s.exec(t);if(!c||!l&&c[0].length!=t.length)return null;if(e=n.regExp?this.parseReplaceString(e):e.replace(/\$/g,"$$$$"),e=t.replace(s,e),n.preserveCase){e=e.split("");for(var m=Math.min(t.length,t.length);m--;){var v=t[m];v&&v.toLowerCase()!=v?e[m]=e[m].toUpperCase():e[m]=e[m].toLowerCase()}e=e.join("")}return e}},i.prototype.$assembleRegExp=function(t,e){if(t.needle instanceof RegExp)return t.re=t.needle;var n=t.needle;if(!t.needle)return t.re=!1;t.regExp||(n=k.escapeRegExp(n));var s=t.caseSensitive?"gm":"gmi";try{new RegExp(n,"u"),t.$supportsUnicodeFlag=!0,s+="u"}catch{t.$supportsUnicodeFlag=!1}if(t.wholeWord&&(n=h(n,t)),t.$isMultiLine=!e&&/[\n\r]/.test(n),t.$isMultiLine)return t.re=this.$assembleMultilineRegExp(n,s);try{var l=new RegExp(n,s)}catch{l=!1}return t.re=l},i.prototype.$assembleMultilineRegExp=function(t,e){for(var n=t.replace(/\r\n|\r|\n/g,`$
|
|
201
|
-
^`).split(`
|
|
202
|
-
`),s=[],l=0;l<n.length;l++)try{s.push(new RegExp(n[l],e))}catch{return!1}return s},i.prototype.$isMultilineSearch=function(t){return t.re&&/\\r\\n|\\r|\\n/.test(t.re.source)&&t.regExp&&!t.$isMultiLine},i.prototype.$multiLineForward=function(t,e,n,s){for(var l,c=o(t,n),m=n;m<=s;){for(var v=0;v<c&&!(m>s);v++){var g=t.getLine(m++);l=l==null?g:l+`
|
|
203
|
-
`+g}var f=e.exec(l);if(e.lastIndex=0,f){var b=l.slice(0,f.index).split(`
|
|
204
|
-
`),L=f[0].split(`
|
|
205
|
-
`),M=n+b.length-1,$=b[b.length-1].length,_=M+L.length-1,w=L.length==1?$+L[0].length:L[L.length-1].length;return{startRow:M,startCol:$,endRow:_,endCol:w}}}return null},i.prototype.$multiLineBackward=function(t,e,n,s,l){for(var c,m=o(t,s),v=t.getLine(s).length-n,g=s;g>=l;){for(var f=0;f<m&&g>=l;f++){var b=t.getLine(g--);c=c==null?b:b+`
|
|
206
|
-
`+c}var L=r(c,e,v);if(L){var M=c.slice(0,L.index).split(`
|
|
207
|
-
`),$=L[0].split(`
|
|
208
|
-
`),_=g+M.length,w=M[M.length-1].length,y=_+$.length-1,d=$.length==1?w+$[0].length:$[$.length-1].length;return{startRow:_,startCol:w,endRow:y,endCol:d}}}return null},i.prototype.$matchIterator=function(t,e){var n=this.$assembleRegExp(e);if(!n)return!1;var s=this.$isMultilineSearch(e),l=this.$multiLineForward,c=this.$multiLineBackward,m=e.backwards==!0,v=e.skipCurrent!=!1,g=n.unicode,f=e.range,b=e.start;b||(b=f?f[m?"end":"start"]:t.selection.getRange()),b.start&&(b=b[v!=m?"end":"start"]);var L=f?f.start.row:0,M=f?f.end.row:t.getLength()-1;if(m)var $=function(y){var d=b.row;if(!w(d,b.column,y)){for(d--;d>=L;d--)if(w(d,Number.MAX_VALUE,y))return;if(e.wrap!=!1){for(d=M,L=b.row;d>=L;d--)if(w(d,Number.MAX_VALUE,y))return}}};else var $=function(d){var u=b.row;if(!w(u,b.column,d)){for(u=u+1;u<=M;u++)if(w(u,0,d))return;if(e.wrap!=!1){for(u=L,M=b.row;u<=M;u++)if(w(u,0,d))return}}};if(e.$isMultiLine)var _=n.length,w=function(y,d,u){var p=m?y-_+1:y;if(!(p<0||p+_>t.getLength())){var S=t.getLine(p),T=S.search(n[0]);if(!(!m&&T<d||T===-1)){for(var E=1;E<_;E++)if(S=t.getLine(p+E),S.search(n[E])==-1)return;var I=S.match(n[_-1])[0].length;if(!(m&&I>d)&&u(p,T,p+_-1,I))return!0}}};else if(m)var w=function(d,u,p){if(s){var S=c(t,n,u,d,L);if(!S)return!1;if(p(S.startRow,S.startCol,S.endRow,S.endCol))return!0}else{var T=t.getLine(d),E=[],I,D=0;for(n.lastIndex=0;I=n.exec(T);){var H=I[0].length;if(D=I.index,!H){if(D>=T.length)break;n.lastIndex=D+=k.skipEmptyMatch(T,D,g)}if(I.index+H>u)break;E.push(I.index,H)}for(var O=E.length-1;O>=0;O-=2){var N=E[O-1],H=E[O];if(p(d,N,d,N+H))return!0}}};else var w=function(d,u,p){if(n.lastIndex=u,s){var S=l(t,n,d,M);if(S){var T=S.endRow<=M?S.endRow-1:M;T>d&&(d=T)}if(!S)return!1;if(p(S.startRow,S.startCol,S.endRow,S.endCol))return!0}else for(var E=t.getLine(d),I,D;D=n.exec(E);){var H=D[0].length;if(I=D.index,p(d,I,d,I+H))return!0;if(!H&&(n.lastIndex=I+=k.skipEmptyMatch(E,I,g),I>=E.length))return!1}};return{forEach:$}},i}();function h(i,t){var e=k.supportsLookbehind();function n(m,v){v===void 0&&(v=!0);var g=e&&t.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return g.test(m)||t.regExp?e&&t.$supportsUnicodeFlag?v?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var s=Array.from(i),l=s[0],c=s[s.length-1];return n(l)+i+n(c,!1)}function r(i,t,e){for(var n=null,s=0;s<=i.length;){t.lastIndex=s;var l=t.exec(i);if(!l)break;var c=l.index+l[0].length;if(c>i.length-e)break;(!n||c>n.index+n[0].length)&&(n=l),s=l.index+1}return n}function o(i,t){var e=5e3,n={row:t,column:0},s=i.doc.positionToIndex(n),l=s+e,c=i.doc.indexToPosition(l),m=c.row;return m+1}x.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(R,x,P){var k=this&&this.__extends||function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),A=R("../lib/keys"),C=R("../lib/useragent"),a=A.KEY_MODS,h=function(){function i(t,e){this.$init(t,e,!1)}return i.prototype.$init=function(t,e,n){this.platform=e||(C.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=n},i.prototype.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),this.commands[t.name]=t,t.bindKey&&this._buildKeyHash(t)},i.prototype.removeCommand=function(t,e){var n=t&&(typeof t=="string"?t:t.name);t=this.commands[n],e||delete this.commands[n];var s=this.commandKeyBinding;for(var l in s){var c=s[l];if(c==t)delete s[l];else if(Array.isArray(c)){var m=c.indexOf(t);m!=-1&&(c.splice(m,1),c.length==1&&(s[l]=c[0]))}}},i.prototype.bindKey=function(t,e,n){if(typeof t=="object"&&t&&(n==null&&(n=t.position),t=t[this.platform]),!!t){if(typeof e=="function")return this.addCommand({exec:e,bindKey:t,name:e.name||t});t.split("|").forEach(function(s){var l="";if(s.indexOf(" ")!=-1){var c=s.split(/\s+/);s=c.pop(),c.forEach(function(g){var f=this.parseKeys(g),b=a[f.hashId]+f.key;l+=(l?" ":"")+b,this._addCommandToBinding(l,"chainKeys")},this),l+=" "}var m=this.parseKeys(s),v=a[m.hashId]+m.key;this._addCommandToBinding(l+v,e,n)},this)}},i.prototype._addCommandToBinding=function(t,e,n){var s=this.commandKeyBinding,l;if(!e)delete s[t];else if(!s[t]||this.$singleCommand)s[t]=e;else{Array.isArray(s[t])?(l=s[t].indexOf(e))!=-1&&s[t].splice(l,1):s[t]=[s[t]],typeof n!="number"&&(n=r(e));var c=s[t];for(l=0;l<c.length;l++){var m=c[l],v=r(m);if(v>n)break}c.splice(l,0,e)}},i.prototype.addCommands=function(t){t&&Object.keys(t).forEach(function(e){var n=t[e];if(n){if(typeof n=="string")return this.bindKey(n,e);typeof n=="function"&&(n={exec:n}),typeof n=="object"&&(n.name||(n.name=e),this.addCommand(n))}},this)},i.prototype.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},i.prototype.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},i.prototype._buildKeyHash=function(t){this.bindKey(t.bindKey,t)},i.prototype.parseKeys=function(t){var e=t.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(v){return v}),n=e.pop(),s=A[n];if(A.FUNCTION_KEYS[s])n=A.FUNCTION_KEYS[s].toLowerCase();else if(e.length){if(e.length==1&&e[0]=="shift")return{key:n.toUpperCase(),hashId:-1}}else return{key:n,hashId:-1};for(var l=0,c=e.length;c--;){var m=A.KEY_MODS[e[c]];if(m==null)return typeof console<"u"&&console.error("invalid modifier "+e[c]+" in "+t),!1;l|=m}return{key:n,hashId:l}},i.prototype.findKeyCommand=function(t,e){var n=a[t]+e;return this.commandKeyBinding[n]},i.prototype.handleKeyboard=function(t,e,n,s){if(!(s<0)){var l=a[e]+n,c=this.commandKeyBinding[l];return t.$keyChain&&(t.$keyChain+=" "+l,c=this.commandKeyBinding[t.$keyChain]||c),c&&(c=="chainKeys"||c[c.length-1]=="chainKeys")?(t.$keyChain=t.$keyChain||l,{command:"null"}):(t.$keyChain&&((!e||e==4)&&n.length==1?t.$keyChain=t.$keyChain.slice(0,-l.length-1):(e==-1||s>0)&&(t.$keyChain="")),{command:c})}},i.prototype.getStatusText=function(t,e){return e.$keyChain||""},i}();function r(i){return typeof i=="object"&&i.bindKey&&i.bindKey.position||(i.isDefault?-100:0)}var o=function(i){k(t,i);function t(e,n){var s=i.call(this,e,n)||this;return s.$singleCommand=!0,s}return t}(h);o.call=function(i,t,e){h.prototype.$init.call(i,t,e,!0)},h.call=function(i,t,e){h.prototype.$init.call(i,t,e,!1)},x.HashHandler=o,x.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(R,x,P){var k=this&&this.__extends||function(){var r=function(o,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(o,i);function t(){this.constructor=o}o.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}}(),A=R("../lib/oop"),C=R("../keyboard/hash_handler").MultiHashHandler,a=R("../lib/event_emitter").EventEmitter,h=function(r){k(o,r);function o(i,t){var e=r.call(this,t,i)||this;return e.byName=e.commands,e.setDefaultHandler("exec",function(n){return n.args?n.command.exec(n.editor,n.args,n.event,!1):n.command.exec(n.editor,{},n.event,!0)}),e}return o.prototype.exec=function(i,t,e){if(Array.isArray(i)){for(var n=i.length;n--;)if(this.exec(i[n],t,e))return!0;return!1}typeof i=="string"&&(i=this.commands[i]);var s={editor:t,command:i,args:e};return this.canExecute(i,t)?(s.returnValue=this._emit("exec",s),this._signal("afterExec",s),s.returnValue!==!1):(this._signal("commandUnavailable",s),!1)},o.prototype.canExecute=function(i,t){return typeof i=="string"&&(i=this.commands[i]),!(!i||t&&t.$readOnly&&!i.readOnly||this.$checkCommandState!=!1&&i.isAvailable&&!i.isAvailable(t))},o.prototype.toggleRecording=function(i){if(!this.$inReplay)return i&&i._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},o.prototype.replay=function(i){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(i);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,i):this.exec(t[0],i,t[1])},this)}finally{this.$inReplay=!1}}},o.prototype.trimMacro=function(i){return i.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})},o}(C);A.implement(h.prototype,a),x.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(R,x,P){var k=R("../lib/lang"),A=R("../config"),C=R("../range").Range;function a(r,o){return{win:r,mac:o}}x.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(r){A.loadModule("ace/ext/settings_menu",function(o){o.init(r),r.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(r){A.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(r,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(r){A.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(r,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(r){r.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(r){r.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(r,o){typeof o=="number"&&!isNaN(o)&&r.gotoLine(o),r.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(r){r.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(r){r.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(r){r.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(r){r.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(r){r.session.foldAll(),r.session.unfold(r.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(r){r.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(r){r.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(r){r.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(r){A.loadModule("ace/ext/searchbox",function(o){o.Search(r)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(r){r.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(r){r.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(r){r.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(r){r.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(r,o){r.navigateUp(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(r){r.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(r){r.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(r){r.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(r,o){r.navigateDown(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(r){r.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(r){r.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(r){r.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(r){r.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(r,o){r.navigateLeft(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(r){r.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(r){r.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(r){r.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(r){r.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(r,o){r.navigateRight(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(r){r.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(r){r.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(r){r.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(r){r.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(r){r.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(r){r.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(r){r.renderer.scrollBy(0,-2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(r){r.renderer.scrollBy(0,2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(r){r.commands.toggleRecording(r)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(r){r.commands.replay(r)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(r){r.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(r){r.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(r){r.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(r){},readOnly:!0},{name:"cut",description:"Cut",exec:function(r){var o=r.$copyWithEmptySelection&&r.selection.isEmpty(),i=o?r.selection.getLineRange():r.selection.getRange();r._emit("cut",i),i.isEmpty()||r.session.remove(i),r.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(r,o){r.$handlePaste(o)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(r){r.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(r){r.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(r){r.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(r){r.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(r){r.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(r){r.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(r){r.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(r){A.loadModule("ace/ext/searchbox",function(o){o.Search(r,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(r){r.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(r){r.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(r){r.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(r){r.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(r){r.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(r){r.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(r){r.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(r){r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(r){if(r.selection.isEmpty())r.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(r){r.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(r){r.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(r){var o=r.selection.getRange();o.start.column=0,r.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(r){var o=r.selection.getRange();o.end.column=Number.MAX_VALUE,r.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(r){r.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(r){r.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(r){r.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(r){r.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(r){r.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(r){r.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(r,o){r.insert(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(r,o){r.insert(k.stringRepeat(o.text||"",o.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(r){r.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(r){r.transposeLetters()},multiSelectAction:function(r){r.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(r){r.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(r){r.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(r){r.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(r){var o=r.selection.getRange();o.start.column=o.end.column=0,o.end.row++,r.selection.setRange(o,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(r){r.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(r){for(var o=r.selection.isBackwards(),i=o?r.selection.getSelectionLead():r.selection.getSelectionAnchor(),t=o?r.selection.getSelectionAnchor():r.selection.getSelectionLead(),e=r.session.doc.getLine(i.row).length,n=r.session.doc.getTextRange(r.selection.getRange()),s=n.replace(/\n\s*/," ").length,l=r.session.doc.getLine(i.row),c=i.row+1;c<=t.row+1;c++){var m=k.stringTrimLeft(k.stringTrimRight(r.session.doc.getLine(c)));m.length!==0&&(m=" "+m),l+=m}t.row+1<r.session.doc.getLength()-1&&(l+=r.session.doc.getNewLineCharacter()),r.clearSelection(),r.session.doc.replace(new C(i.row,0,t.row+2,0),l),s>0?(r.selection.moveCursorTo(i.row,i.column),r.selection.selectTo(i.row,i.column+s)):(e=r.session.doc.getLine(i.row).length>e?e+1:e,r.selection.moveCursorTo(i.row,e))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(r){var o=r.session.doc.getLength()-1,i=r.session.doc.getLine(o).length,t=r.selection.rangeList.ranges,e=[];t.length<1&&(t=[r.selection.getRange()]);for(var n=0;n<t.length;n++)n==t.length-1&&(t[n].end.row===o&&t[n].end.column===i||e.push(new C(t[n].end.row,t[n].end.column,o,i))),n===0?t[n].start.row===0&&t[n].start.column===0||e.push(new C(0,0,t[n].start.row,t[n].start.column)):e.push(new C(t[n-1].end.row,t[n-1].end.column,t[n].start.row,t[n].start.column));r.exitMultiSelectMode(),r.clearSelection();for(var n=0;n<e.length;n++)r.selection.addRange(e[n],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(r){r.selection.clearSelection(),r.navigateLineEnd(),r.insert(`
|
|
209
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(r){r.selection.clearSelection();var o=r.getCursorPosition();r.selection.moveTo(o.row-1,Number.MAX_VALUE),r.insert(`
|
|
210
|
-
`),o.row===0&&r.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(r){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),r.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:a("F1","F1"),exec:function(r){r.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(r){r.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)x.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,exec:function(r){r.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(R,x,P){var k=R("../lib/keys"),A=R("../mouse/default_gutter_handler").GutterTooltip,C=function(){function h(r){this.editor=r,this.gutterLayer=r.renderer.$gutterLayer,this.element=r.renderer.$gutter,this.lines=r.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new A(this.editor)}return h.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},h.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},h.prototype.$onGutterKeyDown=function(r){if(this.annotationTooltip.isOpen){r.preventDefault(),r.keyCode===k.escape&&this.annotationTooltip.hideTooltip();return}if(r.target===this.element){if(r.keyCode!=k.enter)return;r.preventDefault();var o=this.editor.getCursorPosition().row;this.editor.isRowVisible(o)||this.editor.scrollToLine(o,!0,!0),setTimeout(function(){var i=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldLaneWidget(i),e=this.$findNearestAnnotation(i);if(!(t===null&&e===null)){var n=this.$findClosestNumber(t,e,i);if(n===t)if(this.activeLane="fold",this.activeRowIndex=t,this.$isCustomWidgetVisible(t)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=e,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}.bind(this),10);return}this.$handleGutterKeyboardInteraction(r),setTimeout(function(){this.editor._signal("gutterkeydown",new a(r,this))}.bind(this),10)},h.prototype.$handleGutterKeyboardInteraction=function(r){if(r.keyCode===k.tab){r.preventDefault();return}if(r.keyCode===k.escape){r.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(r.keyCode===k.up){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(r.keyCode===k.down){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(r.keyCode===k.left){r.preventDefault(),this.$switchLane("annotation");return}if(r.keyCode===k.right){r.preventDefault(),this.$switchLane("fold");return}if(r.keyCode===k.enter||r.keyCode===k.space){switch(r.preventDefault(),this.activeLane){case"fold":var o=this.$rowIndexToRow(this.activeRowIndex),i=this.editor.session.$gutterCustomWidgets[o];if(i)i.callbacks&&i.callbacks.onClick&&i.callbacks.onClick(r,o);else if(this.gutterLayer.session.foldWidgets[o]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),r),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==o&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(o),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var t=this.lines.cells[this.activeRowIndex].element.childNodes[2],e=t.getBoundingClientRect(),n=this.annotationTooltip.getElement().style;n.left=e.right+"px",n.top=e.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},h.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},h.prototype.$isFoldWidgetVisible=function(r){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(r)),i=this.$getFoldWidget(r).style.display!=="none";return o&&i},h.prototype.$isCustomWidgetVisible=function(r){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(r)),i=!!this.$getCustomWidget(r);return o&&i},h.prototype.$isAnnotationVisible=function(r){var o=this.editor.isRowFullyVisible(this.$rowIndexToRow(r)),i=this.$getAnnotation(r).style.display!=="none";return o&&i},h.prototype.$getFoldWidget=function(r){var o=this.lines.get(r),i=o.element;return i.childNodes[1]},h.prototype.$getCustomWidget=function(r){var o=this.lines.get(r),i=o.element;return i.childNodes[3]},h.prototype.$getAnnotation=function(r){var o=this.lines.get(r),i=o.element;return i.childNodes[2]},h.prototype.$findNearestFoldLaneWidget=function(r){if(this.$isCustomWidgetVisible(r)||this.$isFoldWidgetVisible(r))return r;for(var o=0;r-o>0||r+o<this.lines.getLength()-1;){if(o++,r-o>=0&&this.$isCustomWidgetVisible(r-o))return r-o;if(r+o<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(r+o))return r+o;if(r-o>=0&&this.$isFoldWidgetVisible(r-o))return r-o;if(r+o<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(r+o))return r+o}return null},h.prototype.$findNearestAnnotation=function(r){if(this.$isAnnotationVisible(r))return r;for(var o=0;r-o>0||r+o<this.lines.getLength()-1;){if(o++,r-o>=0&&this.$isAnnotationVisible(r-o))return r-o;if(r+o<=this.lines.getLength()-1&&this.$isAnnotationVisible(r+o))return r+o}return null},h.prototype.$focusFoldWidget=function(r){if(r!=null){var o=this.$getFoldWidget(r);o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus()}},h.prototype.$focusCustomWidget=function(r){if(r!=null){var o=this.$getCustomWidget(r);o&&(o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus())}},h.prototype.$focusAnnotation=function(r){if(r!=null){var o=this.$getAnnotation(r);o.classList.add(this.editor.renderer.keyboardFocusClassName),o.focus()}},h.prototype.$blurFoldWidget=function(r){var o=this.$getFoldWidget(r);o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur()},h.prototype.$blurCustomWidget=function(r){var o=this.$getCustomWidget(r);o&&(o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur())},h.prototype.$blurAnnotation=function(r){var o=this.$getAnnotation(r);o.classList.remove(this.editor.renderer.keyboardFocusClassName),o.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var r=this.activeRowIndex;r>0;)if(r--,this.$isFoldWidgetVisible(r)||this.$isCustomWidgetVisible(r)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=r,this.$isFoldWidgetVisible(r)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var r=this.activeRowIndex;r<this.lines.getLength()-1;)if(r++,this.$isFoldWidgetVisible(r)||this.$isCustomWidgetVisible(r)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=r,this.$isFoldWidgetVisible(r)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},h.prototype.$moveAnnotationUp=function(){for(var r=this.activeRowIndex;r>0;)if(r--,this.$isAnnotationVisible(r)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var r=this.activeRowIndex;r<this.lines.getLength()-1;)if(r++,this.$isAnnotationVisible(r)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=r,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$findClosestNumber=function(r,o,i){return r===null?o:o===null||Math.abs(i-r)<=Math.abs(i-o)?r:o},h.prototype.$switchLane=function(r){switch(r){case"annotation":if(this.activeLane==="annotation")break;var o=this.$findNearestAnnotation(this.activeRowIndex);if(o==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var i=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(i===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$isCustomWidgetVisible(i)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},h.prototype.$rowIndexToRow=function(r){var o=this.lines.get(r);return o?o.row:null},h.prototype.$rowToRowIndex=function(r){for(var o=0;o<this.lines.getLength();o++){var i=this.lines.get(o);if(i.row==r)return o}return null},h}();x.GutterKeyboardHandler=C;var a=function(){function h(r,o){this.gutterKeyboardHandler=o,this.domEvent=r}return h.prototype.getKey=function(){return k.keyCodeToString(this.domEvent.keyCode)},h.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},h.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},h.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},h}();x.GutterKeyboardEvent=a}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(R,x,P){var k=this&&this.__values||function(d){var u=typeof Symbol=="function"&&Symbol.iterator,p=u&&d[u],S=0;if(p)return p.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&S>=d.length&&(d=void 0),{value:d&&d[S++],done:!d}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},A=R("./lib/oop"),C=R("./lib/dom"),a=R("./lib/lang"),h=R("./lib/useragent"),r=R("./keyboard/textinput").TextInput,o=R("./mouse/mouse_handler").MouseHandler,i=R("./mouse/fold_handler").FoldHandler,t=R("./keyboard/keybinding").KeyBinding,e=R("./edit_session").EditSession,n=R("./search").Search,s=R("./range").Range,l=R("./lib/event_emitter").EventEmitter,c=R("./commands/command_manager").CommandManager,m=R("./commands/default_commands").commands,v=R("./config"),g=R("./token_iterator").TokenIterator,f=R("./keyboard/gutter_handler").GutterKeyboardHandler,b=R("./config").nls,L=R("./clipboard"),M=R("./lib/keys"),$=R("./lib/event"),_=R("./tooltip").HoverTooltip,w=function(){function d(u,p,S){this.id="editor"+ ++d.$uid,this.session,this.$toDestroy=[];var T=u.getContainerElement();this.container=T,this.renderer=u,this.commands=new c(h.isMac?"mac":"win",m),typeof document=="object"&&(this.textInput=new r(u.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new o(this),new i(this)),this.keyBinding=new t(this),this.$search=new n().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(E,I){I._$emitInputEvent.schedule(31)}),this.setSession(p||S&&S.session||new e("")),v.resetOptions(this),S&&this.setOptions(S),v._signal("editor",this)}return d.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},d.prototype.startOperation=function(u){this.session.startOperation(u)},d.prototype.endOperation=function(u){this.session.endOperation(u)},d.prototype.onStartOperation=function(u){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,u||(this.previousCommand=null)},d.prototype.onEndOperation=function(u){if(this.curOp&&this.session){if(u&&u.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var p=this.curOp.command,S=p&&p.scrollIntoView;if(S){switch(S){case"center-animate":S="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var T=this.selection.getRange(),E=this.renderer.layerConfig;(T.start.row>=E.lastRow||T.end.row<=E.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}S=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},d.prototype.$historyTracker=function(u){if(this.$mergeUndoDeltas){var p=this.prevOp,S=this.$mergeableCommands,T=p.command&&u.command.name==p.command.name;if(u.command.name=="insertstring"){var E=u.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),T=T&&this.mergeNextCommand&&(!/\s/.test(E)||/\s/.test(p.args)),this.mergeNextCommand=!0}else T=T&&S.indexOf(u.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(T=!1),T?this.session.mergeUndoDeltas=!0:S.indexOf(u.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},d.prototype.setKeyboardHandler=function(u,p){if(u&&typeof u=="string"&&u!="ace"){this.$keybindingId=u;var S=this;v.loadModule(["keybinding",u],function(T){S.$keybindingId==u&&S.keyBinding.setKeyboardHandler(T&&T.handler),p&&p()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(u),p&&p()},d.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},d.prototype.setSession=function(u){if(this.session!=u){this.curOp&&this.endOperation(),this.curOp={};var p=this.session;if(p){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var S=this.session.getSelection();S.off("changeCursor",this.$onCursorChange),S.off("changeSelection",this.$onSelectionChange)}this.session=u,u?(this.$onDocumentChange=this.onDocumentChange.bind(this),u.on("change",this.$onDocumentChange),this.renderer.setSession(u),this.$onChangeMode=this.onChangeMode.bind(this),u.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),u.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),u.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),u.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),u.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),u.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=u.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(u)),this._signal("changeSession",{session:u,oldSession:p}),this.curOp=null,p&&p._signal("changeEditor",{oldEditor:this}),p&&(p.$editor=null),u&&u._signal("changeEditor",{editor:this}),u&&(u.$editor=this),u&&!u.destroyed&&u.bgTokenizer.scheduleStart()}},d.prototype.getSession=function(){return this.session},d.prototype.setValue=function(u,p){return this.session.doc.setValue(u),p?p==1?this.navigateFileEnd():p==-1&&this.navigateFileStart():this.selectAll(),u},d.prototype.getValue=function(){return this.session.getValue()},d.prototype.getSelection=function(){return this.selection},d.prototype.resize=function(u){this.renderer.onResize(u)},d.prototype.setTheme=function(u,p){this.renderer.setTheme(u,p)},d.prototype.getTheme=function(){return this.renderer.getTheme()},d.prototype.setStyle=function(u,p){this.renderer.setStyle(u,p)},d.prototype.unsetStyle=function(u){this.renderer.unsetStyle(u)},d.prototype.getFontSize=function(){return this.getOption("fontSize")||C.computedStyle(this.container).fontSize},d.prototype.setFontSize=function(u){this.setOption("fontSize",u)},d.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var u=this;this.$highlightPending=!0,setTimeout(function(){u.$highlightPending=!1;var p=u.session;if(!(!p||p.destroyed)){p.$bracketHighlight&&(p.$bracketHighlight.markerIds.forEach(function(F){p.removeMarker(F)}),p.$bracketHighlight=null);var S=u.getCursorPosition(),T=u.getKeyboardHandler(),E=T&&T.$getDirectionForHighlight&&T.$getDirectionForHighlight(u),I=p.getMatchingBracketRanges(S,E);if(!I){var D=new g(p,S.row,S.column),H=D.getCurrentToken();if(H&&/\b(?:tag-open|tag-name)/.test(H.type)){var O=p.getMatchingTags(S);O&&(I=[O.openTagName.isEmpty()?O.openTag:O.openTagName,O.closeTagName.isEmpty()?O.closeTag:O.closeTagName])}}if(!I&&p.$mode.getMatching&&(I=p.$mode.getMatching(u.session)),!I){u.getHighlightIndentGuides()&&u.renderer.$textLayer.$highlightIndentGuide();return}var N="ace_bracket";Array.isArray(I)?I.length==1&&(N="ace_error_bracket"):I=[I],I.length==2&&(s.comparePoints(I[0].end,I[1].start)==0?I=[s.fromPoints(I[0].start,I[1].end)]:s.comparePoints(I[0].start,I[1].end)==0&&(I=[s.fromPoints(I[1].start,I[0].end)])),p.$bracketHighlight={ranges:I,markerIds:I.map(function(F){return p.addMarker(F,N,"text")})},u.getHighlightIndentGuides()&&u.renderer.$textLayer.$highlightIndentGuide()}},50)}},d.prototype.focus=function(){this.textInput.focus()},d.prototype.isFocused=function(){return this.textInput.isFocused()},d.prototype.blur=function(){this.textInput.blur()},d.prototype.onFocus=function(u){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",u))},d.prototype.onBlur=function(u){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",u))},d.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},d.prototype.onDocumentChange=function(u){var p=this.session.$useWrapMode,S=u.start.row==u.end.row?u.end.row:1/0;this.renderer.updateLines(u.start.row,S,p),this._signal("change",u),this.$cursorChange()},d.prototype.onTokenizerUpdate=function(u){var p=u.data;this.renderer.updateLines(p.first,p.last)},d.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},d.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},d.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},d.prototype.$updateHighlightActiveLine=function(){var u=this.getSession(),p;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(p=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(p=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(p=!1)),u.$highlightLineMarker&&!p)u.removeMarker(u.$highlightLineMarker.id),u.$highlightLineMarker=null;else if(!u.$highlightLineMarker&&p){var S=new s(p.row,p.column,p.row,1/0);S.id=u.addMarker(S,"ace_active-line","screenLine"),u.$highlightLineMarker=S}else p&&(u.$highlightLineMarker.start.row=p.row,u.$highlightLineMarker.end.row=p.row,u.$highlightLineMarker.start.column=p.column,u._signal("changeBackMarker"))},d.prototype.onSelectionChange=function(u){var p=this.session;if(p.$selectionMarker&&p.removeMarker(p.$selectionMarker),p.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var S=this.selection.getRange(),T=this.getSelectionStyle();p.$selectionMarker=p.addMarker(S,"ace_selection",T)}var E=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(E),this._signal("changeSelection")},d.prototype.$getSelectionHighLightRegexp=function(){var u=this.session,p=this.getSelectionRange();if(!(p.isEmpty()||p.isMultiLine())){var S=p.start.column,T=p.end.column,E=u.getLine(p.start.row),I=E.substring(S,T);if(!(I.length>5e3||!/[\w\d]/.test(I))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:I}),H=E.substring(S-1,T+1);if(D.test(H))return D}}},d.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},d.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},d.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},d.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},d.prototype.onChangeMode=function(u){this.renderer.updateText(),this._emit("changeMode",u)},d.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},d.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},d.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},d.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},d.prototype.getCopyText=function(){var u=this.getSelectedText(),p=this.session.doc.getNewLineCharacter(),S=!1;if(!u&&this.$copyWithEmptySelection){S=!0;for(var T=this.selection.getAllRanges(),E=0;E<T.length;E++){var I=T[E];E&&T[E-1].start.row==I.start.row||(u+=this.session.getLine(I.start.row)+p)}}var D={text:u};return this._signal("copy",D),L.lineMode=S?D.text:!1,D.text},d.prototype.onCopy=function(){this.commands.exec("copy",this)},d.prototype.onCut=function(){this.commands.exec("cut",this)},d.prototype.onPaste=function(u,p){var S={text:u,event:p};this.commands.exec("paste",this,S)},d.prototype.$handlePaste=function(u){typeof u=="string"&&(u={text:u}),this._signal("paste",u);var p=u.text,S=p===L.lineMode,T=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)S?T.insert({row:this.selection.lead.row,column:0},p):this.insert(p);else if(S)this.selection.rangeList.ranges.forEach(function(N){T.insert({row:N.start.row,column:0},p)});else{var E=p.split(/\r\n|\r|\n/),I=this.selection.rangeList.ranges,D=E.length==2&&(!E[0]||!E[1]);if(E.length!=I.length||D)return this.commands.exec("insertstring",this,p);for(var H=I.length;H--;){var O=I[H];O.isEmpty()||T.remove(O),T.insert(O.start,E[H])}}},d.prototype.execCommand=function(u,p){return this.commands.exec(u,this,p)},d.prototype.insert=function(u,p){var S=this.session,T=S.getMode(),E=this.getCursorPosition();if(this.getBehavioursEnabled()&&!p){var I=T.transformAction(S.getState(E.row),"insertion",this,S,u);I&&(u!==I.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),u=I.text)}if(u==" "&&(u=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&u.indexOf(`
|
|
211
|
-
`)==-1){var D=s.fromPoints(E,E);D.end.column+=u.length,this.session.remove(D)}}else{var D=this.getSelectionRange();E=this.session.remove(D),this.clearSelection()}if(u==`
|
|
212
|
-
`||u==`\r
|
|
213
|
-
`){var F=S.getLine(E.row);if(E.column>F.search(/\S|$/)){var H=F.substr(E.column).search(/\S|$/);S.doc.removeInLine(E.row,E.column,E.column+H)}}this.clearSelection();var O=E.column,N=S.getState(E.row),F=S.getLine(E.row),W=T.checkOutdent(N,F,u);if(S.insert(E,u),I&&I.selection&&(I.selection.length==2?this.selection.setSelectionRange(new s(E.row,O+I.selection[0],E.row,O+I.selection[1])):this.selection.setSelectionRange(new s(E.row+I.selection[0],I.selection[1],E.row+I.selection[2],I.selection[3]))),this.$enableAutoIndent){if(S.getDocument().isNewLine(u)){var z=T.getNextLineIndent(N,F.slice(0,E.column),S.getTabString());S.insert({row:E.row+1,column:0},z)}W&&T.autoOutdent(N,S,E.row)}},d.prototype.autoIndent=function(){for(var u=this.session,p=u.getMode(),S=this.selection.isEmpty()?[new s(0,0,u.doc.getLength()-1,0)]:this.selection.getAllRanges(),T="",E="",I="",D=u.getTabString(),H=0;H<S.length;H++)for(var O=S[H].start.row,N=S[H].end.row,F=O;F<=N;F++){F>0&&(T=u.getState(F-1),E=u.getLine(F-1),I=p.getNextLineIndent(T,E,D));var W=u.getLine(F),z=p.$getIndent(W);if(I!==z){if(z.length>0){var U=new s(F,0,F,z.length);u.remove(U)}I.length>0&&u.insert({row:F,column:0},I)}p.autoOutdent(T,u,F)}},d.prototype.onTextInput=function(u,p){if(!p)return this.keyBinding.onTextInput(u);this.startOperation({command:{name:"insertstring"}});var S=this.applyComposition.bind(this,u,p);this.selection.rangeCount?this.forEachSelection(S):S(),this.endOperation()},d.prototype.applyComposition=function(u,p){if(p.extendLeft||p.extendRight){var S=this.selection.getRange();S.start.column-=p.extendLeft,S.end.column+=p.extendRight,S.start.column<0&&(S.start.row--,S.start.column+=this.session.getLine(S.start.row).length+1),this.selection.setRange(S),!u&&!S.isEmpty()&&this.remove()}if((u||!this.selection.isEmpty())&&this.insert(u,!0),p.restoreStart||p.restoreEnd){var S=this.selection.getRange();S.start.column-=p.restoreStart,S.end.column-=p.restoreEnd,this.selection.setRange(S)}},d.prototype.onCommandKey=function(u,p,S){return this.keyBinding.onCommandKey(u,p,S)},d.prototype.setOverwrite=function(u){this.session.setOverwrite(u)},d.prototype.getOverwrite=function(){return this.session.getOverwrite()},d.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},d.prototype.setScrollSpeed=function(u){this.setOption("scrollSpeed",u)},d.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},d.prototype.setDragDelay=function(u){this.setOption("dragDelay",u)},d.prototype.getDragDelay=function(){return this.getOption("dragDelay")},d.prototype.setSelectionStyle=function(u){this.setOption("selectionStyle",u)},d.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},d.prototype.setHighlightActiveLine=function(u){this.setOption("highlightActiveLine",u)},d.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},d.prototype.setHighlightGutterLine=function(u){this.setOption("highlightGutterLine",u)},d.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},d.prototype.setHighlightSelectedWord=function(u){this.setOption("highlightSelectedWord",u)},d.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},d.prototype.setAnimatedScroll=function(u){this.renderer.setAnimatedScroll(u)},d.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},d.prototype.setShowInvisibles=function(u){this.renderer.setShowInvisibles(u)},d.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},d.prototype.setDisplayIndentGuides=function(u){this.renderer.setDisplayIndentGuides(u)},d.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},d.prototype.setHighlightIndentGuides=function(u){this.renderer.setHighlightIndentGuides(u)},d.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},d.prototype.setShowPrintMargin=function(u){this.renderer.setShowPrintMargin(u)},d.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},d.prototype.setPrintMarginColumn=function(u){this.renderer.setPrintMarginColumn(u)},d.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},d.prototype.setReadOnly=function(u){this.setOption("readOnly",u)},d.prototype.getReadOnly=function(){return this.getOption("readOnly")},d.prototype.setBehavioursEnabled=function(u){this.setOption("behavioursEnabled",u)},d.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},d.prototype.setWrapBehavioursEnabled=function(u){this.setOption("wrapBehavioursEnabled",u)},d.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},d.prototype.setShowFoldWidgets=function(u){this.setOption("showFoldWidgets",u)},d.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},d.prototype.setFadeFoldWidgets=function(u){this.setOption("fadeFoldWidgets",u)},d.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},d.prototype.remove=function(u){this.selection.isEmpty()&&(u=="left"?this.selection.selectLeft():this.selection.selectRight());var p=this.getSelectionRange();if(this.getBehavioursEnabled()){var S=this.session,T=S.getState(p.start.row),E=S.getMode().transformAction(T,"deletion",this,S,p);if(p.end.column===0){var I=S.getTextRange(p);if(I[I.length-1]==`
|
|
214
|
-
`){var D=S.getLine(p.end.row);/^\s+$/.test(D)&&(p.end.column=D.length)}}E&&(p=E)}this.session.remove(p),this.clearSelection()},d.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},d.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},d.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},d.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var u=this.getSelectionRange();u.start.column==u.end.column&&u.start.row==u.end.row&&(u.end.column=0,u.end.row++),this.session.remove(u),this.clearSelection()},d.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var u=this.getCursorPosition();this.insert(`
|
|
215
|
-
`),this.moveCursorToPosition(u)},d.prototype.setGhostText=function(u,p){this.renderer.setGhostText(u,p)},d.prototype.removeGhostText=function(){this.renderer.removeGhostText()},d.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var u=this.getCursorPosition(),p=u.column;if(p!==0){var S=this.session.getLine(u.row),T,E;p<S.length?(T=S.charAt(p)+S.charAt(p-1),E=new s(u.row,p-1,u.row,p+1)):(T=S.charAt(p-1)+S.charAt(p-2),E=new s(u.row,p-2,u.row,p)),this.session.replace(E,T),this.session.selection.moveToPosition(E.end)}}},d.prototype.toLowerCase=function(){var u=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var p=this.getSelectionRange(),S=this.session.getTextRange(p);this.session.replace(p,S.toLowerCase()),this.selection.setSelectionRange(u)},d.prototype.toUpperCase=function(){var u=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var p=this.getSelectionRange(),S=this.session.getTextRange(p);this.session.replace(p,S.toUpperCase()),this.selection.setSelectionRange(u)},d.prototype.indent=function(){var u=this.session,p=this.getSelectionRange();if(p.start.row<p.end.row){var S=this.$getSelectedRows();u.indentRows(S.first,S.last," ");return}else if(p.start.column<p.end.column){var T=u.getTextRange(p);if(!/^\s+$/.test(T)){var S=this.$getSelectedRows();u.indentRows(S.first,S.last," ");return}}var E=u.getLine(p.start.row),I=p.start,D=u.getTabSize(),H=u.documentToScreenColumn(I.row,I.column);if(this.session.getUseSoftTabs())var O=D-H%D,N=a.stringRepeat(" ",O);else{for(var O=H%D;E[p.start.column-1]==" "&&O;)p.start.column--,O--;this.selection.setSelectionRange(p),N=" "}return this.insert(N)},d.prototype.blockIndent=function(){var u=this.$getSelectedRows();this.session.indentRows(u.first,u.last," ")},d.prototype.blockOutdent=function(){var u=this.session.getSelection();this.session.outdentRows(u.getRange())},d.prototype.sortLines=function(){for(var u=this.$getSelectedRows(),p=this.session,S=[],T=u.first;T<=u.last;T++)S.push(p.getLine(T));S.sort(function(D,H){return D.toLowerCase()<H.toLowerCase()?-1:D.toLowerCase()>H.toLowerCase()?1:0});for(var E=new s(0,0,0,0),T=u.first;T<=u.last;T++){var I=p.getLine(T);E.start.row=T,E.end.row=T,E.end.column=I.length,p.replace(E,S[T-u.first])}},d.prototype.toggleCommentLines=function(){var u=this.session.getState(this.getCursorPosition().row),p=this.$getSelectedRows();this.session.getMode().toggleCommentLines(u,this.session,p.first,p.last)},d.prototype.toggleBlockComment=function(){var u=this.getCursorPosition(),p=this.session.getState(u.row),S=this.getSelectionRange();this.session.getMode().toggleBlockComment(p,this.session,S,u)},d.prototype.getNumberAt=function(u,p){var S=/[\-]?[0-9]+(?:\.[0-9]+)?/g;S.lastIndex=0;for(var T=this.session.getLine(u);S.lastIndex<p;){var E=S.exec(T);if(E.index<=p&&E.index+E[0].length>=p){var I={value:E[0],start:E.index,end:E.index+E[0].length};return I}}return null},d.prototype.modifyNumber=function(u){var p=this.selection.getCursor().row,S=this.selection.getCursor().column,T=new s(p,S-1,p,S),E=this.session.getTextRange(T);if(!isNaN(parseFloat(E))&&isFinite(E)){var I=this.getNumberAt(p,S);if(I){var D=I.value.indexOf(".")>=0?I.start+I.value.indexOf(".")+1:I.end,H=I.start+I.value.length-D,O=parseFloat(I.value);O*=Math.pow(10,H),D!==I.end&&S<D?u*=Math.pow(10,I.end-S-1):u*=Math.pow(10,I.end-S),O+=u,O/=Math.pow(10,H);var N=O.toFixed(H),F=new s(p,I.start,p,I.end);this.session.replace(F,N),this.moveCursorTo(p,Math.max(I.start+1,S+N.length-I.value.length))}}else this.toggleWord()},d.prototype.toggleWord=function(){var u=this.selection.getCursor().row,p=this.selection.getCursor().column;this.selection.selectWord();var S=this.getSelectedText(),T=this.selection.getWordRange().start.column,E=S.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),I=p-T-1;I<0&&(I=0);var D=0,H=0,O=this;S.match(/[A-Za-z0-9_]+/)&&E.forEach(function(Z,te){H=D+Z.length,I>=D&&I<=H&&(S=Z,O.selection.clearSelection(),O.moveCursorTo(u,D+T),O.selection.selectTo(u,H+T)),D=H});for(var N=this.$toggleWordPairs,F,W=0;W<N.length;W++)for(var z=N[W],U=0;U<=1;U++){var V=+!U,j=S.match(new RegExp("^\\s?_?("+a.escapeRegExp(z[U])+")\\s?$","i"));if(j){var Y=S.match(new RegExp("([_]|^|\\s)("+a.escapeRegExp(j[1])+")($|\\s)","g"));Y&&(F=S.replace(new RegExp(a.escapeRegExp(z[U]),"i"),function(Z){var te=z[V];return Z.toUpperCase()==Z?te=te.toUpperCase():Z.charAt(0).toUpperCase()==Z.charAt(0)&&(te=te.substr(0,0)+z[V].charAt(0).toUpperCase()+te.substr(1)),te}),this.insert(F),F="")}}},d.prototype.findLinkAt=function(u,p){var S,T,E=this.session.getLine(u),I=E.split(/((?:https?|ftp):\/\/[\S]+)/),D=p;D<0&&(D=0);var H=0,O=0,N;try{for(var F=k(I),W=F.next();!W.done;W=F.next()){var z=W.value;if(O=H+z.length,D>=H&&D<=O&&z.match(/((?:https?|ftp):\/\/[\S]+)/)){N=z.replace(/[\s:.,'";}\]]+$/,"");break}H=O}}catch(U){S={error:U}}finally{try{W&&!W.done&&(T=F.return)&&T.call(F)}finally{if(S)throw S.error}}return N},d.prototype.openLink=function(){var u=this.selection.getCursor(),p=this.findLinkAt(u.row,u.column);return p&&window.open(p,"_blank"),p!=null},d.prototype.removeLines=function(){var u=this.$getSelectedRows();this.session.removeFullLines(u.first,u.last),this.clearSelection()},d.prototype.duplicateSelection=function(){var u=this.selection,p=this.session,S=u.getRange(),T=u.isBackwards();if(S.isEmpty()){var E=S.start.row;p.duplicateLines(E,E)}else{var I=T?S.start:S.end,D=p.insert(I,p.getTextRange(S));S.start=I,S.end=D,u.setSelectionRange(S,T)}},d.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},d.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},d.prototype.moveText=function(u,p,S){return this.session.moveText(u,p,S)},d.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},d.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},d.prototype.$moveLines=function(u,p){var S,T,E=this.selection;if(!E.inMultiSelectMode||this.inVirtualSelectionMode){var I=E.toOrientedRange();S=this.$getSelectedRows(I),T=this.session.$moveLines(S.first,S.last,p?0:u),p&&u==-1&&(T=0),I.moveBy(T,0),E.fromOrientedRange(I)}else{var D=E.rangeList.ranges;E.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var H=0,O=0,N=D.length,F=0;F<N;F++){var W=F;D[F].moveBy(H,0),S=this.$getSelectedRows(D[F]);for(var z=S.first,U=S.last;++F<N;){O&&D[F].moveBy(O,0);var V=this.$getSelectedRows(D[F]);if(p&&V.first!=U)break;if(!p&&V.first>U+1)break;U=V.last}for(F--,H=this.session.$moveLines(z,U,p?0:u),p&&u==-1&&(W=F+1);W<=F;)D[W].moveBy(H,0),W++;p||(H=0),O+=H}E.fromOrientedRange(E.ranges[0]),E.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},d.prototype.$getSelectedRows=function(u){return u=(u||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(u.start.row),last:this.session.getRowFoldEnd(u.end.row)}},d.prototype.onCompositionStart=function(u){this.renderer.showComposition(u)},d.prototype.onCompositionUpdate=function(u){this.renderer.setCompositionText(u)},d.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},d.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},d.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},d.prototype.isRowVisible=function(u){return u>=this.getFirstVisibleRow()&&u<=this.getLastVisibleRow()},d.prototype.isRowFullyVisible=function(u){return u>=this.renderer.getFirstFullyVisibleRow()&&u<=this.renderer.getLastFullyVisibleRow()},d.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},d.prototype.$moveByPage=function(u,p){var S=this.renderer,T=this.renderer.layerConfig,E=u*Math.floor(T.height/T.lineHeight);p===!0?this.selection.$moveSelection(function(){this.moveCursorBy(E,0)}):p===!1&&(this.selection.moveCursorBy(E,0),this.selection.clearSelection());var I=S.scrollTop;S.scrollBy(0,E*T.lineHeight),p!=null&&S.scrollCursorIntoView(null,.5),S.animateScrolling(I)},d.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},d.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},d.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},d.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},d.prototype.scrollPageDown=function(){this.$moveByPage(1)},d.prototype.scrollPageUp=function(){this.$moveByPage(-1)},d.prototype.scrollToRow=function(u){this.renderer.scrollToRow(u)},d.prototype.scrollToLine=function(u,p,S,T){this.renderer.scrollToLine(u,p,S,T)},d.prototype.centerSelection=function(){var u=this.getSelectionRange(),p={row:Math.floor(u.start.row+(u.end.row-u.start.row)/2),column:Math.floor(u.start.column+(u.end.column-u.start.column)/2)};this.renderer.alignCursor(p,.5)},d.prototype.getCursorPosition=function(){return this.selection.getCursor()},d.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},d.prototype.getSelectionRange=function(){return this.selection.getRange()},d.prototype.selectAll=function(){this.selection.selectAll()},d.prototype.clearSelection=function(){this.selection.clearSelection()},d.prototype.moveCursorTo=function(u,p){this.selection.moveCursorTo(u,p)},d.prototype.moveCursorToPosition=function(u){this.selection.moveCursorToPosition(u)},d.prototype.jumpToMatching=function(u,p){var S=this.getCursorPosition(),T=new g(this.session,S.row,S.column),E=T.getCurrentToken(),I=0;E&&E.type.indexOf("tag-name")!==-1&&(E=T.stepBackward());var D=E||T.stepForward();if(D){var H,O=!1,N={},F=S.column-D.start,W,z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;F<D.value.length&&!O;F++)if(z[D.value[F]])switch(W=z[D.value[F]]+"."+D.type.replace("rparen","lparen"),isNaN(N[W])&&(N[W]=0),D.value[F]){case"(":case"[":case"{":N[W]++;break;case")":case"]":case"}":N[W]--,N[W]===-1&&(H="bracket",O=!0);break}}else D.type.indexOf("tag-name")!==-1&&(isNaN(N[D.value])&&(N[D.value]=0),E.value==="<"&&I>1?N[D.value]++:E.value==="</"&&N[D.value]--,N[D.value]===-1&&(H="tag",O=!0));O||(E=D,I++,D=T.stepForward(),F=0)}while(D&&!O);if(H){var U,V;if(H==="bracket")U=this.session.getBracketRange(S),U||(U=new s(T.getCurrentTokenRow(),T.getCurrentTokenColumn()+F-1,T.getCurrentTokenRow(),T.getCurrentTokenColumn()+F-1),V=U.start,(p||V.row===S.row&&Math.abs(V.column-S.column)<2)&&(U=this.session.getBracketRange(V)));else if(H==="tag"){if(!D||D.type.indexOf("tag-name")===-1)return;if(U=new s(T.getCurrentTokenRow(),T.getCurrentTokenColumn()-2,T.getCurrentTokenRow(),T.getCurrentTokenColumn()-2),U.compare(S.row,S.column)===0){var j=this.session.getMatchingTags(S);j&&(j.openTag.contains(S.row,S.column)?(U=j.closeTag,V=U.start):(U=j.openTag,j.closeTag.start.row===S.row&&j.closeTag.start.column===S.column?V=U.end:V=U.start))}V=V||U.start}V=U&&U.cursor||V,V&&(u?U&&p?this.selection.setRange(U):U&&U.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(V.row,V.column):this.selection.moveTo(V.row,V.column))}}},d.prototype.gotoLine=function(u,p,S){this.selection.clearSelection(),this.session.unfold({row:u-1,column:p||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(u-1,p||0),this.isRowFullyVisible(u-1)||this.scrollToLine(u-1,!0,S)},d.prototype.navigateTo=function(u,p){this.selection.moveTo(u,p)},d.prototype.navigateUp=function(u){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var p=this.selection.anchor.getPosition();return this.moveCursorToPosition(p)}this.selection.clearSelection(),this.selection.moveCursorBy(-u||-1,0)},d.prototype.navigateDown=function(u){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var p=this.selection.anchor.getPosition();return this.moveCursorToPosition(p)}this.selection.clearSelection(),this.selection.moveCursorBy(u||1,0)},d.prototype.navigateLeft=function(u){if(this.selection.isEmpty())for(u=u||1;u--;)this.selection.moveCursorLeft();else{var p=this.getSelectionRange().start;this.moveCursorToPosition(p)}this.clearSelection()},d.prototype.navigateRight=function(u){if(this.selection.isEmpty())for(u=u||1;u--;)this.selection.moveCursorRight();else{var p=this.getSelectionRange().end;this.moveCursorToPosition(p)}this.clearSelection()},d.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},d.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},d.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},d.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},d.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},d.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},d.prototype.replace=function(u,p){p&&this.$search.set(p);var S=this.$search.find(this.session),T=0;return S&&(this.$tryReplace(S,u)&&(T=1),this.selection.setSelectionRange(S),this.renderer.scrollSelectionIntoView(S.start,S.end)),T},d.prototype.replaceAll=function(u,p){p&&this.$search.set(p);var S=this.$search.findAll(this.session),T=0;if(!S.length)return T;var E=this.getSelectionRange();this.selection.moveTo(0,0);for(var I=S.length-1;I>=0;--I)this.$tryReplace(S[I],u)&&T++;return this.selection.setSelectionRange(E),T},d.prototype.$tryReplace=function(u,p){var S=this.session.getTextRange(u);return p=this.$search.replace(S,p),p!==null?(u.end=this.session.replace(u,p),u):null},d.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},d.prototype.find=function(u,p,S){p||(p={}),typeof u=="string"||u instanceof RegExp?p.needle=u:typeof u=="object"&&A.mixin(p,u);var T=this.selection.getRange();p.needle==null&&(u=this.session.getTextRange(T)||this.$search.$options.needle,u||(T=this.session.getWordRange(T.start.row,T.start.column),u=this.session.getTextRange(T)),this.$search.set({needle:u})),this.$search.set(p),p.start||this.$search.set({start:T});var E=this.$search.find(this.session);if(p.preventScroll)return E;if(E)return this.revealRange(E,S),E;p.backwards?T.start=T.end:T.end=T.start,this.selection.setRange(T)},d.prototype.findNext=function(u,p){this.find({skipCurrent:!0,backwards:!1},u,p)},d.prototype.findPrevious=function(u,p){this.find(u,{skipCurrent:!0,backwards:!0},p)},d.prototype.revealRange=function(u,p){this.session.unfold(u),this.selection.setSelectionRange(u);var S=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(u.start,u.end,.5),p!==!1&&this.renderer.animateScrolling(S)},d.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},d.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},d.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(u){u.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},d.prototype.setAutoScrollEditorIntoView=function(u){if(u){var p,S=this,T=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var E=this.$scrollAnchor;E.style.cssText="position:absolute",this.container.insertBefore(E,this.container.firstChild);var I=this.on("changeSelection",function(){T=!0}),D=this.renderer.on("beforeRender",function(){T&&(p=S.renderer.container.getBoundingClientRect())}),H=this.renderer.on("afterRender",function(){if(T&&p&&(S.isFocused()||S.searchBox&&S.searchBox.isFocused())){var O=S.renderer,N=O.$cursorLayer.$pixelPos,F=O.layerConfig,W=N.top-F.offset;N.top>=0&&W+p.top<0?T=!0:N.top<F.height&&N.top+p.top+F.lineHeight>window.innerHeight?T=!1:T=null,T!=null&&(E.style.top=W+"px",E.style.left=N.left+"px",E.style.height=F.lineHeight+"px",E.scrollIntoView(T)),T=p=null}});this.setAutoScrollEditorIntoView=function(O){O||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",I),this.renderer.off("afterRender",H),this.renderer.off("beforeRender",D))}}},d.prototype.$resetCursorStyle=function(){var u=this.$cursorStyle||"ace",p=this.renderer.$cursorLayer;p&&(p.setSmoothBlinking(/smooth/.test(u)),p.isBlinking=!this.$readOnly&&u!="wide",C.setCssClass(p.element,"ace_slim-cursors",/slim/.test(u)))},d.prototype.prompt=function(u,p,S){var T=this;v.loadModule("ace/ext/prompt",function(E){E.prompt(T,u,p,S)})},d}();w.$uid=0,w.prototype.curOp=null,w.prototype.prevOp={},w.prototype.$mergeableCommands=["backspace","del","insertstring"],w.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],A.implement(w.prototype,l),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(d){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:d})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(d){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(d){var u=this;this.textInput.setReadOnly(d),this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(S){var T=!1;if(S&&S.type=="keydown"){if(T=S&&S.key&&S.key.length==1&&!S.ctrlKey&&!S.metaKey,!T)return}else S&&S.type!=="exec"&&(T=!0);if(T){u.hoverTooltip||(u.hoverTooltip=new _);var E=C.createElement("div");E.textContent=b("editor.tooltip.disable-editing","Editing is disabled"),u.hoverTooltip.isOpen||u.hoverTooltip.showForRange(u,u.getSelectionRange(),E)}else u.hoverTooltip&&u.hoverTooltip.isOpen&&u.hoverTooltip.hide()});var p=this.textInput.getElement();d?($.addListener(p,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):($.removeListener(p,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))},initialValue:!1},copyWithEmptySelection:{set:function(d){this.textInput.setCopyWithEmptySelection(d)},initialValue:!1},cursorStyle:{set:function(d){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(d){this.setAutoScrollEditorIntoView(d)}},keyboardHandler:{set:function(d){this.setKeyboardHandler(d)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(d){this.session.setValue(d)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(d){this.setSession(d)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(d){this.renderer.$gutterLayer.setShowLineNumbers(d),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),d&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(d){this.$showLineNumbers&&d?y.attach(this):y.detach(this)}},placeholder:{set:function(d){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var u=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(u&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),C.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!u&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),C.addCssClass(this.container,"ace_hasPlaceholder");var p=C.createElement("div");p.className="ace_placeholder",p.textContent=this.$placeholder||"",this.renderer.placeholderNode=p,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!u&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(d){var u={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(T){T.blur(),T.renderer.scroller.focus()},readOnly:!0},p=function(T){if(T.target==this.renderer.scroller&&T.keyCode===M.enter){T.preventDefault();var E=this.getCursorPosition().row;this.isRowVisible(E)||this.scrollToLine(E,!0,!0),this.focus()}},S;d?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",b("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",b("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",p.bind(this)),this.commands.addCommand(u),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",b("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",b("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),S||(S=new f(this)),S.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",p.bind(this)),this.commands.removeCommand(u),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),S&&S.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(d){this.$textInputAriaLabel=d},initialValue:""},enableMobileMenu:{set:function(d){this.$enableMobileMenu=d},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(d,u){return(Math.abs(d.selection.lead.row-u)||u+1+(u<9?"·":""))+""},getWidth:function(d,u,p){return Math.max(u.toString().length,(p.lastRow+1).toString().length,2)*p.characterWidth},update:function(d,u){u.renderer.$loop.schedule(u.renderer.CHANGE_GUTTER)},attach:function(d){d.renderer.$gutterLayer.$renderer=this,d.on("changeSelection",this.update),this.update(null,d)},detach:function(d){d.renderer.$gutterLayer.$renderer==this&&(d.renderer.$gutterLayer.$renderer=null),d.off("changeSelection",this.update),this.update(null,d)}};x.Editor=w}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(R,x,P){var k=R("../lib/dom"),A=function(){function C(a,h){this.element=a,this.canvasHeight=h||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return C.prototype.moveContainer=function(a){k.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},C.prototype.pageChanged=function(a,h){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},C.prototype.computeLineTop=function(a,h,r){var o=h.firstRowScreen*h.lineHeight,i=Math.floor(o/this.canvasHeight),t=r.documentToScreenRow(a,0)*h.lineHeight;return t-i*this.canvasHeight},C.prototype.computeLineHeight=function(a,h,r){return h.lineHeight*r.getRowLineCount(a)},C.prototype.getLength=function(){return this.cells.length},C.prototype.get=function(a){return this.cells[a]},C.prototype.shift=function(){this.$cacheCell(this.cells.shift())},C.prototype.pop=function(){this.$cacheCell(this.cells.pop())},C.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var h=k.createFragment(this.element),r=0;r<a.length;r++)h.appendChild(a[r].element);this.element.appendChild(h)}else this.cells.push(a),this.element.appendChild(a.element)},C.prototype.unshift=function(a){if(Array.isArray(a)){this.cells.unshift.apply(this.cells,a);for(var h=k.createFragment(this.element),r=0;r<a.length;r++)h.appendChild(a[r].element);this.element.firstChild?this.element.insertBefore(h,this.element.firstChild):this.element.appendChild(h)}else this.cells.unshift(a),this.element.insertAdjacentElement("afterbegin",a.element)},C.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},C.prototype.$cacheCell=function(a){a&&(a.element.remove(),this.cellCache.push(a))},C.prototype.createCell=function(a,h,r,o){var i=this.cellCache.pop();if(!i){var t=k.createElement("div");o&&o(t),this.element.appendChild(t),i={element:t,text:"",row:a}}return i.row=a,i},C}();x.Lines=A}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(R,x,P){var k=R("../lib/dom"),A=R("../lib/oop"),C=R("../lib/lang"),a=R("../lib/event_emitter").EventEmitter,h=R("./lines").Lines,r=R("../config").nls,o=function(){function t(e){this.element=k.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new h(this.element),this.$lines.$offsetCoefficient=1}return t.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},t.prototype.addGutterDecoration=function(e,n){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,n)},t.prototype.removeGutterDecoration=function(e,n){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,n)},t.prototype.setAnnotations=function(e){this.$annotations=[];for(var n=0;n<e.length;n++){var s=e[n],l=s.row,c=this.$annotations[l];c||(c=this.$annotations[l]={text:[],type:[],displayText:[]});var m=s.text,v=s.text,g=s.type;m=m?C.escapeHTML(m):s.html||"",v=v||s.html||"",c.text.indexOf(m)===-1&&(c.text.push(m),c.type.push(g),c.displayText.push(v));var f=s.className;f?c.className=f:g==="error"?c.className=" ace_error":g==="security"&&!/\bace_error\b/.test(c.className)?c.className=" ace_security":g==="warning"&&!/\bace_(error|security)\b/.test(c.className)?c.className=" ace_warning":g==="info"&&!c.className?c.className=" ace_info":g==="hint"&&!c.className&&(c.className=" ace_hint")}},t.prototype.$updateAnnotations=function(e){if(this.$annotations.length){var n=e.start.row,s=e.end.row-n;if(s!==0)if(e.action=="remove")this.$annotations.splice(n,s+1,null);else{var l=new Array(s+1);l.unshift(n,1),this.$annotations.splice.apply(this.$annotations,l)}}},t.prototype.update=function(e){this.config=e;var n=this.session,s=e.firstRow,l=Math.min(e.lastRow+e.gutterOffset,n.getLength()-1);this.oldLastRow=l,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var c=n.getNextFoldLine(s),m=c?c.start.row:1/0,v=null,g=-1,f=s;;){if(f>m&&(f=c.end.row+1,c=n.getNextFoldLine(f,c),m=c?c.start.row:1/0),f>l){for(;this.$lines.getLength()>g+1;)this.$lines.pop();break}v=this.$lines.get(++g),v?v.row=f:(v=this.$lines.createCell(f,e,this.session,i),this.$lines.push(v)),this.$renderCell(v,e,c,f),f++}this._signal("afterRender"),this.$updateGutterWidth(e)},t.prototype.$updateGutterWidth=function(e){var n=this.session,s=n.gutterRenderer||this.$renderer,l=n.$firstLineNumber,c=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||n.$useWrapMode)&&(c=n.getLength()+l-1);var m=s?s.getWidth(n,c,e):c.toString().length*e.characterWidth,v=this.$padding||this.$computePadding();m+=v.left+v.right,m!==this.gutterWidth&&!isNaN(m)&&(this.gutterWidth=m,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",m))},t.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},t.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!(this.$cursorCell&&this.$cursorCell.row==e)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var n=this.$lines.cells;this.$cursorCell=null;for(var s=0;s<n.length;s++){var l=n[s];if(l.row>=this.$cursorRow){if(l.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(s>0&&c&&c.start.row==n[s-1].row)l=n[s-1];else break}l.element.className="ace_gutter-active-line "+l.element.className,this.$cursorCell=l;break}}}}},t.prototype.scrollLines=function(e){var n=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(n,e))return this.update(e);this.$lines.moveContainer(e);var s=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),l=this.oldLastRow;if(this.oldLastRow=s,!n||l<e.firstRow)return this.update(e);if(s<n.firstRow)return this.update(e);if(n.firstRow<e.firstRow)for(var c=this.session.getFoldedRowCount(n.firstRow,e.firstRow-1);c>0;c--)this.$lines.shift();if(l>s)for(var c=this.session.getFoldedRowCount(s+1,l);c>0;c--)this.$lines.pop();e.firstRow<n.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,n.firstRow-1)),s>l&&this.$lines.push(this.$renderLines(e,l+1,s)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},t.prototype.$renderLines=function(e,n,s){for(var l=[],c=n,m=this.session.getNextFoldLine(c),v=m?m.start.row:1/0;c>v&&(c=m.end.row+1,m=this.session.getNextFoldLine(c,m),v=m?m.start.row:1/0),!(c>s);){var g=this.$lines.createCell(c,e,this.session,i);this.$renderCell(g,e,m,c),l.push(g),c++}return l},t.prototype.$renderCell=function(e,n,s,l){var c=e.element,m=this.session,v=c.childNodes[0],g=c.childNodes[1],f=c.childNodes[2],b=c.childNodes[3],L=f.firstChild,M=m.$firstLineNumber,$=m.$breakpoints,_=m.$decorations,w=m.gutterRenderer||this.$renderer,y=this.$showFoldWidgets&&m.foldWidgets,d=s?s.start.row:Number.MAX_VALUE,u=n.lineHeight+"px",p=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",S=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",T=(w?w.getText(m,l):l+M).toString();if(this.$highlightGutterLine&&(l==this.$cursorRow||s&&l<this.$cursorRow&&l>=d&&this.$cursorRow<=s.end.row)&&(p+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),$[l]&&(p+=$[l]),_[l]&&(p+=_[l]),this.$annotations[l]&&l!==d&&(p+=this.$annotations[l].className),y){var E=y[l];E==null&&(E=y[l]=m.getFoldWidget(l))}if(E){var I="ace_fold-widget ace_"+E,D=E=="start"&&l==d&&l<s.end.row;if(D){I+=" ace_closed";for(var H="",O=!1,N=l+1;N<=s.end.row;N++)if(this.$annotations[N]){if(this.$annotations[N].className===" ace_error"){O=!0,H=" ace_error_fold";break}this.$annotations[N].className===" ace_security"?(O=!0,H=" ace_security_fold"):this.$annotations[N].className===" ace_warning"&&H!==" ace_security_fold"&&(O=!0,H=" ace_warning_fold")}p+=H}else I+=" ace_open";g.className!=I&&(g.className=I),k.setStyle(g.style,"height",u),k.setStyle(g.style,"display","inline-block"),g.setAttribute("role","button"),g.setAttribute("tabindex","-1");var F=m.getFoldWidgetRange(l);F?g.setAttribute("aria-label",r("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[F.start.row+1,F.end.row+1])):s?g.setAttribute("aria-label",r("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[s.start.row+1,s.end.row+1])):g.setAttribute("aria-label",r("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[l+1])),D?(g.setAttribute("aria-expanded","false"),g.setAttribute("title",r("gutter.code-folding.closed.title","Unfold code"))):(g.setAttribute("aria-expanded","true"),g.setAttribute("title",r("gutter.code-folding.open.title","Fold code")))}else g&&(k.setStyle(g.style,"display","none"),g.setAttribute("tabindex","0"),g.removeAttribute("role"),g.removeAttribute("aria-label"));var W=this.session.$gutterCustomWidgets[l];if(W?this.$addCustomWidget(l,W,e):b&&this.$removeCustomWidget(l,e),O&&this.$showFoldedAnnotations){f.className="ace_gutter_annotation",L.className=S,L.className+=H,k.setStyle(L.style,"height",u),k.setStyle(f.style,"display","block"),k.setStyle(f.style,"height",u);var z;switch(H){case" ace_error_fold":z=r("gutter.annotation.aria-label.error","Error, read annotations row $0",[T]);break;case" ace_security_fold":z=r("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[T]);break;case" ace_warning_fold":z=r("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[T]);break}f.setAttribute("aria-label",z),f.setAttribute("tabindex","-1"),f.setAttribute("role","button")}else if(this.$annotations[l]){f.className="ace_gutter_annotation",L.className=S,this.$useSvgGutterIcons?L.className+=this.$annotations[l].className:c.classList.add(this.$annotations[l].className.replace(" ","")),k.setStyle(L.style,"height",u),k.setStyle(f.style,"display","block"),k.setStyle(f.style,"height",u);var z;switch(this.$annotations[l].className){case" ace_error":z=r("gutter.annotation.aria-label.error","Error, read annotations row $0",[T]);break;case" ace_security":z=r("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[T]);break;case" ace_warning":z=r("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[T]);break;case" ace_info":z=r("gutter.annotation.aria-label.info","Info, read annotations row $0",[T]);break;case" ace_hint":z=r("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[T]);break}f.setAttribute("aria-label",z),f.setAttribute("tabindex","-1"),f.setAttribute("role","button")}else k.setStyle(f.style,"display","none"),f.removeAttribute("aria-label"),f.removeAttribute("role"),f.setAttribute("tabindex","0");return T!==v.data&&(v.data=T),c.className!=p&&(c.className=p),k.setStyle(e.element.style,"height",this.$lines.computeLineHeight(l,n,m)+"px"),k.setStyle(e.element.style,"top",this.$lines.computeLineTop(l,n,m)+"px"),e.text=T,f.style.display==="none"&&g.style.display==="none"&&!W?e.element.setAttribute("aria-hidden",!0):e.element.setAttribute("aria-hidden",!1),e},t.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},t.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},t.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},t.prototype.setShowFoldWidgets=function(e){e?k.addCssClass(this.element,"ace_folding-enabled"):k.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},t.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},t.prototype.$hideFoldWidget=function(e,n){var s=n||this.$getGutterCell(e);if(s&&s.element){var l=s.element.childNodes[1];l&&k.setStyle(l.style,"display","none")}},t.prototype.$showFoldWidget=function(e,n){var s=n||this.$getGutterCell(e);if(s&&s.element){var l=s.element.childNodes[1];l&&this.session.foldWidgets&&this.session.foldWidgets[s.row]&&k.setStyle(l.style,"display","inline-block")}},t.prototype.$getGutterCell=function(e){var n=this.$lines.cells,s=this.session.documentToScreenRow(e,0);return n[e-this.config.firstRowScreen-(e-s)]},t.prototype.$addCustomWidget=function(e,n,s){var l=n.className,c=n.label,m=n.title,v=n.callbacks;this.session.$gutterCustomWidgets[e]={className:l,label:c,title:m,callbacks:v},this.$hideFoldWidget(e,s);var g=s||this.$getGutterCell(e);if(g&&g.element){var f=g.element.querySelector(".ace_custom-widget");f&&f.remove(),f=k.createElement("span"),f.className="ace_custom-widget ".concat(l),f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),f.setAttribute("aria-label",c),f.setAttribute("title",m),k.setStyle(f.style,"display","inline-block"),k.setStyle(f.style,"height","inherit"),v&&v.onClick&&f.addEventListener("click",function(b){v.onClick(b,e),b.stopPropagation()}),g.element.appendChild(f)}},t.prototype.$removeCustomWidget=function(e,n){delete this.session.$gutterCustomWidgets[e],this.$showFoldWidget(e,n);var s=n||this.$getGutterCell(e);if(s&&s.element){var l=s.element.querySelector(".ace_custom-widget");l&&s.element.removeChild(l)}},t.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=k.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},t.prototype.getRegion=function(e){var n=this.$padding||this.$computePadding(),s=this.element.getBoundingClientRect();if(e.x<n.left+s.left)return"markers";if(this.$showFoldWidgets&&e.x>s.right-n.right)return"foldWidgets"},t}();o.prototype.$fixedWidth=!1,o.prototype.$highlightGutterLine=!0,o.prototype.$renderer="",o.prototype.$showLineNumbers=!0,o.prototype.$showFoldWidgets=!0,A.implement(o.prototype,a);function i(t){var e=document.createTextNode("");t.appendChild(e);var n=k.createElement("span");t.appendChild(n);var s=k.createElement("span");t.appendChild(s);var l=k.createElement("span");return s.appendChild(l),t}x.Gutter=o}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(R,x,P){var k=R("../range").Range,A=R("../lib/dom"),C=function(){function h(r){this.element=A.createElement("div"),this.element.className="ace_layer ace_marker-layer",r.appendChild(this.element)}return h.prototype.setPadding=function(r){this.$padding=r},h.prototype.setSession=function(r){this.session=r},h.prototype.setMarkers=function(r){this.markers=r},h.prototype.elt=function(r,o){var i=this.i!=-1&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=o,i.className=r},h.prototype.update=function(r){if(r){this.config=r,this.i=0;var o;for(var i in this.markers){var t=this.markers[i];if(!t.range){t.update(o,this,this.session,r);continue}var e=t.range.clipRows(r.firstRow,r.lastRow);if(!e.isEmpty())if(e=e.toScreenRange(this.session),t.renderer){var n=this.$getTop(e.start.row,r),s=this.$padding+e.start.column*r.characterWidth;t.renderer(o,e,s,n,r)}else t.type=="fullLine"?this.drawFullLineMarker(o,e,t.clazz,r):t.type=="screenLine"?this.drawScreenLineMarker(o,e,t.clazz,r):e.isMultiLine()?t.type=="text"?this.drawTextMarker(o,e,t.clazz,r):this.drawMultiLineMarker(o,e,t.clazz,r):this.drawSingleLineMarker(o,e,t.clazz+" ace_start ace_br15",r)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},h.prototype.$getTop=function(r,o){return(r-o.firstRowScreen)*o.lineHeight},h.prototype.drawTextMarker=function(r,o,i,t,e){for(var n=this.session,s=o.start.row,l=o.end.row,c=s,m=0,v=0,g=n.getScreenLastRowColumn(c),f=new k(c,o.start.column,c,v);c<=l;c++)f.start.row=f.end.row=c,f.start.column=c==s?o.start.column:n.getRowWrapIndent(c),f.end.column=g,m=v,v=g,g=c+1<l?n.getScreenLastRowColumn(c+1):c==l?0:o.end.column,this.drawSingleLineMarker(r,f,i+(c==s?" ace_start":"")+" ace_br"+a(c==s||c==s+1&&o.start.column,m<v,v>g,c==l),t,c==l?0:1,e)},h.prototype.drawMultiLineMarker=function(r,o,i,t,e){var n=this.$padding,s=t.lineHeight,l=this.$getTop(o.start.row,t),c=n+o.start.column*t.characterWidth;if(e=e||"",this.session.$bidiHandler.isBidiRow(o.start.row)){var m=o.clone();m.end.row=m.start.row,m.end.column=this.session.getLine(m.start.row).length,this.drawBidiSingleLineMarker(r,m,i+" ace_br1 ace_start",t,null,e)}else this.elt(i+" ace_br1 ace_start","height:"+s+"px;right:"+n+"px;top:"+l+"px;left:"+c+"px;"+(e||""));if(this.session.$bidiHandler.isBidiRow(o.end.row)){var m=o.clone();m.start.row=m.end.row,m.start.column=0,this.drawBidiSingleLineMarker(r,m,i+" ace_br12",t,null,e)}else{l=this.$getTop(o.end.row,t);var v=o.end.column*t.characterWidth;this.elt(i+" ace_br12","height:"+s+"px;width:"+v+"px;top:"+l+"px;left:"+n+"px;"+(e||""))}if(s=(o.end.row-o.start.row-1)*t.lineHeight,!(s<=0)){l=this.$getTop(o.start.row+1,t);var g=(o.start.column?1:0)|(o.end.column?0:8);this.elt(i+(g?" ace_br"+g:""),"height:"+s+"px;right:"+n+"px;top:"+l+"px;left:"+n+"px;"+(e||""))}},h.prototype.drawSingleLineMarker=function(r,o,i,t,e,n){if(this.session.$bidiHandler.isBidiRow(o.start.row))return this.drawBidiSingleLineMarker(r,o,i,t,e,n);var s=t.lineHeight,l=(o.end.column+(e||0)-o.start.column)*t.characterWidth,c=this.$getTop(o.start.row,t),m=this.$padding+o.start.column*t.characterWidth;this.elt(i,"height:"+s+"px;width:"+l+"px;top:"+c+"px;left:"+m+"px;"+(n||""))},h.prototype.drawBidiSingleLineMarker=function(r,o,i,t,e,n){var s=t.lineHeight,l=this.$getTop(o.start.row,t),c=this.$padding,m=this.session.$bidiHandler.getSelections(o.start.column,o.end.column);m.forEach(function(v){this.elt(i,"height:"+s+"px;width:"+(v.width+(e||0))+"px;top:"+l+"px;left:"+(c+v.left)+"px;"+(n||""))},this)},h.prototype.drawFullLineMarker=function(r,o,i,t,e){var n=this.$getTop(o.start.row,t),s=t.lineHeight;o.start.row!=o.end.row&&(s+=this.$getTop(o.end.row,t)-n),this.elt(i,"height:"+s+"px;top:"+n+"px;left:0;right:0;"+(e||""))},h.prototype.drawScreenLineMarker=function(r,o,i,t,e){var n=this.$getTop(o.start.row,t),s=t.lineHeight;this.elt(i,"height:"+s+"px;top:"+n+"px;left:0;right:0;"+(e||""))},h}();C.prototype.$padding=0;function a(h,r,o,i){return(h?1:0)|(r?2:0)|(o?4:0)|(i?8:0)}x.Marker=C}),ace.define("ace/layer/text_util",["require","exports","module"],function(R,x,P){var k=new Set(["text","rparen","lparen"]);x.isTextToken=function(A){return k.has(A)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(R,x,P){var k=R("../lib/oop"),A=R("../lib/dom"),C=R("../lib/lang"),a=R("./lines").Lines,h=R("../lib/event_emitter").EventEmitter,r=R("../config").nls,o=R("./text_util").isTextToken,i=function(){function t(e){this.dom=A,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return t.prototype.$updateEolChar=function(){var e=this.session.doc,n=e.getNewLineCharacter()==`
|
|
216
|
-
`&&e.getNewLineMode()!="windows",s=n?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=s)return this.EOL_CHAR=s,!0},t.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},t.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},t.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},t.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(n){this._signal("changeCharacterSize",n)}.bind(this)),this.$pollSizeChanges()},t.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},t.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},t.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},t.prototype.setShowInvisibles=function(e){return this.showInvisibles==e?!1:(this.showInvisibles=e,typeof e=="string"?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},t.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},t.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides===e?!1:(this.$highlightIndentGuides=e,e)},t.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var n=this.$tabStrings=[0],s=1;s<e+1;s++)if(this.showTabs){var l=this.dom.createElement("span");l.className="ace_invisible ace_invisible_tab",l.textContent=C.stringRepeat(this.TAB_CHAR,s),n.push(l)}else n.push(this.dom.createTextNode(C.stringRepeat(" ",s),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var c="ace_indent-guide",m=this.showSpaces?" ace_invisible ace_invisible_space":"",v=this.showSpaces?C.stringRepeat(this.SPACE_CHAR,this.tabSize):C.stringRepeat(" ",this.tabSize),g=this.showTabs?" ace_invisible ace_invisible_tab":"",f=this.showTabs?C.stringRepeat(this.TAB_CHAR,this.tabSize):v,l=this.dom.createElement("span");l.className=c+m,l.textContent=v,this.$tabStrings[" "]=l;var l=this.dom.createElement("span");l.className=c+g,l.textContent=f,this.$tabStrings[" "]=l}},t.prototype.updateLines=function(e,n,s){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var l=Math.max(n,e.firstRow),c=Math.min(s,e.lastRow),m=this.element.childNodes,v=0,f=e.firstRow;f<l;f++){var b=this.session.getFoldLine(f);if(b)if(b.containsRow(l)){l=b.start.row;break}else f=b.end.row;v++}for(var g=!1,f=l,b=this.session.getNextFoldLine(f),L=b?b.start.row:1/0;f>L&&(f=b.end.row+1,b=this.session.getNextFoldLine(f,b),L=b?b.start.row:1/0),!(f>c);){var M=m[v++];if(M){this.dom.removeChildren(M),this.$renderLine(M,f,f==L?b:!1),g&&(M.style.top=this.$lines.computeLineTop(f,e,this.session)+"px");var $=e.lineHeight*this.session.getRowLength(f)+"px";M.style.height!=$&&(g=!0,M.style.height=$)}f++}if(g)for(;v<this.$lines.cells.length;){var _=this.$lines.cells[v++];_.element.style.top=this.$lines.computeLineTop(_.row,e,this.session)+"px"}},t.prototype.scrollLines=function(e){var n=this.config;if(this.config=e,this.$lines.pageChanged(n,e))return this.update(e);this.$lines.moveContainer(e);var s=e.lastRow,l=n?n.lastRow:-1;if(!n||l<e.firstRow)return this.update(e);if(s<n.firstRow)return this.update(e);if(!n||n.lastRow<e.firstRow)return this.update(e);if(e.lastRow<n.firstRow)return this.update(e);if(n.firstRow<e.firstRow)for(var c=this.session.getFoldedRowCount(n.firstRow,e.firstRow-1);c>0;c--)this.$lines.shift();if(n.lastRow>e.lastRow)for(var c=this.session.getFoldedRowCount(e.lastRow+1,n.lastRow);c>0;c--)this.$lines.pop();e.firstRow<n.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,n.firstRow-1)),e.lastRow>n.lastRow&&this.$lines.push(this.$renderLinesFragment(e,n.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},t.prototype.$renderLinesFragment=function(e,n,s){for(var l=[],c=n,m=this.session.getNextFoldLine(c),v=m?m.start.row:1/0;c>v&&(c=m.end.row+1,m=this.session.getNextFoldLine(c,m),v=m?m.start.row:1/0),!(c>s);){var g=this.$lines.createCell(c,e,this.session),f=g.element;this.dom.removeChildren(f),A.setStyle(f.style,"height",this.$lines.computeLineHeight(c,e,this.session)+"px"),A.setStyle(f.style,"top",this.$lines.computeLineTop(c,e,this.session)+"px"),this.$renderLine(f,c,c==v?m:!1),this.$useLineGroups()?f.className="ace_line_group":f.className="ace_line",l.push(g),c++}return l},t.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var n=e.firstRow,s=e.lastRow,l=this.$lines;l.getLength();)l.pop();l.push(this.$renderLinesFragment(e,n,s))},t.prototype.$renderToken=function(e,n,s,l){for(var c=this,m=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,v=this.dom.createFragment(this.element),g,f=0;g=m.exec(l);){var b=g[1],L=g[2],M=g[3],$=g[4],_=g[5];if(!(!c.showSpaces&&L)){var w=f!=g.index?l.slice(f,g.index):"";if(f=g.index+g[0].length,w&&v.appendChild(this.dom.createTextNode(w,this.element)),b){var y=c.session.getScreenTabSize(n+g.index);v.appendChild(c.$tabStrings[y].cloneNode(!0)),n+=y-1}else if(L)if(c.showSpaces){var d=this.dom.createElement("span");d.className="ace_invisible ace_invisible_space",d.textContent=C.stringRepeat(c.SPACE_CHAR,L.length),v.appendChild(d)}else v.appendChild(this.dom.createTextNode(L,this.element));else if(M){var d=this.dom.createElement("span");d.className="ace_invisible ace_invisible_space ace_invalid",d.textContent=C.stringRepeat(c.SPACE_CHAR,M.length),v.appendChild(d)}else if($){n+=1;var d=this.dom.createElement("span");d.style.width=c.config.characterWidth*2+"px",d.className=c.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",d.textContent=c.showSpaces?c.SPACE_CHAR:$,v.appendChild(d)}else if(_){n+=1;var d=this.dom.createElement("span");d.style.width=c.config.characterWidth*2+"px",d.className="ace_cjk",d.textContent=_,v.appendChild(d)}}}if(v.appendChild(this.dom.createTextNode(f?l.slice(f):l,this.element)),o(s.type))e.appendChild(v);else{var u="ace_"+s.type.replace(/\./g," ace_"),d=this.dom.createElement("span");s.type=="fold"&&(d.style.width=s.value.length*this.config.characterWidth+"px",d.setAttribute("title",r("inline-fold.closed.title","Unfold code"))),d.className=u,d.appendChild(v),e.appendChild(d)}return n+l.length},t.prototype.renderIndentGuide=function(e,n,s){var l=n.search(this.$indentGuideRe);if(l<=0||l>=s)return n;if(n[0]==" "){l-=l%this.tabSize;for(var c=l/this.tabSize,m=0;m<c;m++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(l)}else if(n[0]==" "){for(var m=0;m<l;m++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),n.substr(l)}return this.$highlightIndentGuide(),n},t.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var n=this.session.selection.getCursor(),s=/^\s*/.exec(this.session.doc.getLine(n.row))[0].length,l=Math.floor(s/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:l,start:n.row};var c=this.session.$bracketHighlight;if(c){for(var m=this.session.$bracketHighlight.ranges,v=0;v<m.length;v++)if(n.row!==m[v].start.row){this.$highlightIndentGuideMarker.end=m[v].start.row+1,n.row>m[v].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&e[n.row]!==""&&n.column===e[n.row].length){this.$highlightIndentGuideMarker.dir=1;for(var v=n.row+1;v<e.length;v++){var g=e[v],f=/^\s*/.exec(g)[0].length;if(g!==""&&(this.$highlightIndentGuideMarker.end=v,f<=s))break}}this.$renderHighlightIndentGuide()}}},t.prototype.$clearActiveIndentGuide=function(){for(var e=this.element.querySelectorAll(".ace_indent-guide-active"),n=0;n<e.length;n++)e[n].classList.remove("ace_indent-guide-active")},t.prototype.$setIndentGuideActive=function(e,n){var s=this.session.doc.getLine(e.row);if(s!==""){var l=e.element;if(e.element.classList&&e.element.classList.contains("ace_line_group"))if(e.element.childNodes.length>0)l=e.element.childNodes[0];else return;var c=l.childNodes;if(c){var m=c[n-1];m&&m.classList&&m.classList.contains("ace_indent-guide")&&m.classList.add("ace_indent-guide-active")}}},t.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var n=this.$highlightIndentGuideMarker.indentLevel;if(n!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var s=0;s<e.length;s++){var l=e[s];if(this.$highlightIndentGuideMarker.end&&l.row>=this.$highlightIndentGuideMarker.start+1){if(l.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(l,n)}}else for(var s=e.length-1;s>=0;s--){var l=e[s];if(this.$highlightIndentGuideMarker.end&&l.row<this.$highlightIndentGuideMarker.start){if(l.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(l,n)}}}},t.prototype.$createLineElement=function(e){var n=this.dom.createElement("div");return n.className="ace_line",n.style.height=this.config.lineHeight+"px",n},t.prototype.$renderWrappedLine=function(e,n,s){var l=0,c=0,m=s[0],v=0,g=this.$createLineElement();e.appendChild(g);for(var f=0;f<n.length;f++){var b=n[f],L=b.value;if(f==0&&this.displayIndentGuides){if(l=L.length,L=this.renderIndentGuide(g,L,m),!L)continue;l-=L.length}if(l+L.length<m)v=this.$renderToken(g,v,b,L),l+=L.length;else{for(;l+L.length>=m;)v=this.$renderToken(g,v,b,L.substring(0,m-l)),L=L.substring(m-l),l=m,g=this.$createLineElement(),e.appendChild(g),g.appendChild(this.dom.createTextNode(C.stringRepeat(" ",s.indent),this.element)),c++,v=0,m=s[c]||Number.MAX_VALUE;L.length!=0&&(l+=L.length,v=this.$renderToken(g,v,b,L))}}s[s.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(g,v,null,"",!0)},t.prototype.$renderSimpleLine=function(e,n){for(var s=0,l=0;l<n.length;l++){var c=n[l],m=c.value;if(!(l==0&&this.displayIndentGuides&&(m=this.renderIndentGuide(e,m),!m))){if(s+m.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,s,c,m);s=this.$renderToken(e,s,c,m)}}},t.prototype.$renderOverflowMessage=function(e,n,s,l,c){s&&this.$renderToken(e,n,s,l.slice(0,this.MAX_LINE_LENGTH-n));var m=this.dom.createElement("span");m.className="ace_inline_button ace_keyword ace_toggle_wrap",m.textContent=c?"<hide>":"<click to see more...>",e.appendChild(m)},t.prototype.$renderLine=function(e,n,s){if(!s&&s!=!1&&(s=this.session.getFoldLine(n)),s)var l=this.$getFoldLineTokens(n,s);else var l=this.session.getTokens(n);var c=e;if(l.length){var m=this.session.getRowSplitData(n);if(m&&m.length){this.$renderWrappedLine(e,l,m);var c=e.lastChild}else{var c=e;this.$useLineGroups()&&(c=this.$createLineElement(),e.appendChild(c)),this.$renderSimpleLine(c,l)}}else this.$useLineGroups()&&(c=this.$createLineElement(),e.appendChild(c));if(this.showEOL&&c){s&&(n=s.end.row);var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_eol",v.textContent=n==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,c.appendChild(v)}},t.prototype.$getFoldLineTokens=function(e,n){var s=this.session,l=[];function c(v,g,f){for(var b=0,L=0;L+v[b].value.length<g;)if(L+=v[b].value.length,b++,b==v.length)return;if(L!=g){var M=v[b].value.substring(g-L);M.length>f-g&&(M=M.substring(0,f-g)),l.push({type:v[b].type,value:M}),L=g+M.length,b+=1}for(;L<f&&b<v.length;){var M=v[b].value;M.length+L>f?l.push({type:v[b].type,value:M.substring(0,f-L)}):l.push(v[b]),L+=M.length,b+=1}}var m=s.getTokens(e);return n.walk(function(v,g,f,b,L){v!=null?l.push({type:"fold",value:v}):(L&&(m=s.getTokens(g)),m.length&&c(m,b,f))},n.end.row,this.session.getLine(n.end.row).length),l},t.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},t}();i.prototype.EOF_CHAR="¶",i.prototype.EOL_CHAR_LF="¬",i.prototype.EOL_CHAR_CRLF="¤",i.prototype.EOL_CHAR=i.prototype.EOL_CHAR_LF,i.prototype.TAB_CHAR="—",i.prototype.SPACE_CHAR="·",i.prototype.$padding=0,i.prototype.MAX_LINE_LENGTH=1e4,i.prototype.showInvisibles=!1,i.prototype.showSpaces=!1,i.prototype.showTabs=!1,i.prototype.showEOL=!1,i.prototype.displayIndentGuides=!0,i.prototype.$highlightIndentGuides=!0,i.prototype.$tabStrings=[],i.prototype.destroy={},i.prototype.onChangeTabSize=i.prototype.$computeTabString,k.implement(i.prototype,h),x.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(R,x,P){var k=R("../lib/dom"),A=function(){function C(a){this.element=k.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),k.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return C.prototype.$updateOpacity=function(a){for(var h=this.cursors,r=h.length;r--;)k.setStyle(h[r].style,"opacity",a?"":"0")},C.prototype.$startCssAnimation=function(){for(var a=this.cursors,h=a.length;h--;)a[h].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&k.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},C.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,k.removeCssClass(this.element,"ace_animate-blinking")},C.prototype.setPadding=function(a){this.$padding=a},C.prototype.setSession=function(a){this.session=a},C.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},C.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},C.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,k.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},C.prototype.addCursor=function(){var a=k.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},C.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},C.prototype.hideCursor=function(){this.isVisible=!1,k.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},C.prototype.showCursor=function(){this.isVisible=!0,k.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},C.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,k.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&k.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),k.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var h=function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){a(!0),h()},this.blinkInterval),h()}},C.prototype.getPixelPosition=function(a,h){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var r=this.session.documentToScreenPosition(a),o=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,a.row)?this.session.$bidiHandler.getPosLeft(r.column):r.column*this.config.characterWidth),i=(r.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:o,top:i}},C.prototype.isCursorInView=function(a,h){return a.top>=0&&a.top<h.maxHeight},C.prototype.update=function(a){this.config=a;var h=this.session.$selectionMarkers,r=0,o=0;(h===void 0||h.length===0)&&(h=[{cursor:null}]);for(var r=0,i=h.length;r<i;r++){var t=this.getPixelPosition(h[r].cursor,!0);if(!((t.top>a.height+a.offset||t.top<0)&&r>1)){var e=this.cursors[o++]||this.addCursor(),n=e.style;this.drawCursor?this.drawCursor(e,t,a,h[r],this.session):this.isCursorInView(t,a)?(k.setStyle(n,"display","block"),k.translate(e,t.left,t.top),k.setStyle(n,"width",Math.round(a.characterWidth)+"px"),k.setStyle(n,"height",a.lineHeight+"px")):k.setStyle(n,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=t,this.restartTimer()},C.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?k.addCssClass(this.element,"ace_overwrite-cursors"):k.removeCssClass(this.element,"ace_overwrite-cursors"))},C.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},C}();A.prototype.$padding=0,A.prototype.drawCursor=null,x.Cursor=A}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(R,x,P){var k=this&&this.__extends||function(){var e=function(n,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&(l[m]=c[m])},e(n,s)};return function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(n,s);function l(){this.constructor=n}n.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),A=R("./lib/oop"),C=R("./lib/dom"),a=R("./lib/event"),h=R("./lib/event_emitter").EventEmitter,r=32768,o=function(){function e(n,s){this.element=C.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+s,this.inner=C.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),n.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return e.prototype.setVisible=function(n){this.element.style.display=n?"":"none",this.isVisible=n,this.coeff=1},e}();A.implement(o.prototype,h);var i=function(e){k(n,e);function n(s,l){var c=e.call(this,s,"-v")||this;return c.scrollTop=0,c.scrollHeight=0,l.$scrollbarWidth=c.width=C.scrollbarWidth(s.ownerDocument),c.inner.style.width=c.element.style.width=(c.width||15)+5+"px",c.$minWidth=0,c}return n.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var s=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-s)/(this.coeff-s)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},n.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},n.prototype.setHeight=function(s){this.element.style.height=s+"px"},n.prototype.setScrollHeight=function(s){this.scrollHeight=s,s>r?(this.coeff=r/s,s=r):this.coeff!=1&&(this.coeff=1),this.inner.style.height=s+"px"},n.prototype.setScrollTop=function(s){this.scrollTop!=s&&(this.skipEvent=!0,this.scrollTop=s,this.element.scrollTop=s*this.coeff)},n}(o);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var t=function(e){k(n,e);function n(s,l){var c=e.call(this,s,"-h")||this;return c.scrollLeft=0,c.height=l.$scrollbarWidth,c.inner.style.height=c.element.style.height=(c.height||15)+5+"px",c}return n.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},n.prototype.getHeight=function(){return this.isVisible?this.height:0},n.prototype.setWidth=function(s){this.element.style.width=s+"px"},n.prototype.setInnerWidth=function(s){this.inner.style.width=s+"px"},n.prototype.setScrollWidth=function(s){this.inner.style.width=s+"px"},n.prototype.setScrollLeft=function(s){this.scrollLeft!=s&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=s)},n}(o);x.ScrollBar=i,x.ScrollBarV=i,x.ScrollBarH=t,x.VScrollBar=i,x.HScrollBar=t}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(R,x,P){var k=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function s(){this.constructor=e}e.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}}(),A=R("./lib/oop"),C=R("./lib/dom"),a=R("./lib/event"),h=R("./lib/event_emitter").EventEmitter;C.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
217
|
-
position: absolute;
|
|
218
|
-
background: rgba(128, 128, 128, 0.6);
|
|
219
|
-
-moz-box-sizing: border-box;
|
|
220
|
-
box-sizing: border-box;
|
|
221
|
-
border: 1px solid #bbb;
|
|
222
|
-
border-radius: 2px;
|
|
223
|
-
z-index: 8;
|
|
224
|
-
}
|
|
225
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
226
|
-
position: absolute;
|
|
227
|
-
z-index: 6;
|
|
228
|
-
background: none;
|
|
229
|
-
overflow: hidden!important;
|
|
230
|
-
}
|
|
231
|
-
.ace_editor>.ace_sb-v {
|
|
232
|
-
z-index: 6;
|
|
233
|
-
right: 0;
|
|
234
|
-
top: 0;
|
|
235
|
-
width: 12px;
|
|
236
|
-
}
|
|
237
|
-
.ace_editor>.ace_sb-v div {
|
|
238
|
-
z-index: 8;
|
|
239
|
-
right: 0;
|
|
240
|
-
width: 100%;
|
|
241
|
-
}
|
|
242
|
-
.ace_editor>.ace_sb-h {
|
|
243
|
-
bottom: 0;
|
|
244
|
-
left: 0;
|
|
245
|
-
height: 12px;
|
|
246
|
-
}
|
|
247
|
-
.ace_editor>.ace_sb-h div {
|
|
248
|
-
bottom: 0;
|
|
249
|
-
height: 100%;
|
|
250
|
-
}
|
|
251
|
-
.ace_editor>.ace_sb_grabbed {
|
|
252
|
-
z-index: 8;
|
|
253
|
-
background: #000;
|
|
254
|
-
}`,"ace_scrollbar.css",!1);var r=function(){function t(e,n){this.element=C.createElement("div"),this.element.className="ace_sb"+n,this.inner=C.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return t.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},t}();A.implement(r.prototype,h);var o=function(t){k(e,t);function e(n,s){var l=t.call(this,n,"-v")||this;return l.scrollTop=0,l.scrollHeight=0,l.parent=n,l.width=l.VScrollWidth,l.renderer=s,l.inner.style.width=l.element.style.width=(l.width||15)+"px",l.$minWidth=0,l}return e.prototype.onMouseDown=function(n,s){if(n==="mousedown"&&!(a.getButton(s)!==0||s.detail===2)){if(s.target===this.inner){var l=this,c=s.clientY,m=function($){c=$.clientY},v=function(){clearInterval(L)},g=s.clientY,f=this.thumbTop,b=function(){if(c!==void 0){var $=l.scrollTopFromThumbTop(f+c-g);$!==l.scrollTop&&l._emit("scroll",{data:$})}};a.capture(this.inner,m,v);var L=setInterval(b,20);return a.preventDefault(s)}var M=s.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(M)}),a.preventDefault(s)}},e.prototype.getHeight=function(){return this.height},e.prototype.scrollTopFromThumbTop=function(n){var s=n*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return s=s>>0,s<0?s=0:s>this.pageHeight-this.viewHeight&&(s=this.pageHeight-this.viewHeight),s},e.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},e.prototype.setHeight=function(n){this.height=Math.max(0,n),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},e.prototype.setScrollHeight=function(n,s){this.pageHeight===n&&!s||(this.pageHeight=n,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},e.prototype.setScrollTop=function(n){this.scrollTop=n,n<0&&(n=0),this.thumbTop=n*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},e}(r);o.prototype.setInnerHeight=o.prototype.setScrollHeight;var i=function(t){k(e,t);function e(n,s){var l=t.call(this,n,"-h")||this;return l.scrollLeft=0,l.scrollWidth=0,l.height=l.HScrollHeight,l.inner.style.height=l.element.style.height=(l.height||12)+"px",l.renderer=s,l}return e.prototype.onMouseDown=function(n,s){if(n==="mousedown"&&!(a.getButton(s)!==0||s.detail===2)){if(s.target===this.inner){var l=this,c=s.clientX,m=function($){c=$.clientX},v=function(){clearInterval(L)},g=s.clientX,f=this.thumbLeft,b=function(){if(c!==void 0){var $=l.scrollLeftFromThumbLeft(f+c-g);$!==l.scrollLeft&&l._emit("scroll",{data:$})}};a.capture(this.inner,m,v);var L=setInterval(b,20);return a.preventDefault(s)}var M=s.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(M)}),a.preventDefault(s)}},e.prototype.getHeight=function(){return this.isVisible?this.height:0},e.prototype.scrollLeftFromThumbLeft=function(n){var s=n*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return s=s>>0,s<0?s=0:s>this.pageWidth-this.viewWidth&&(s=this.pageWidth-this.viewWidth),s},e.prototype.setWidth=function(n){this.width=Math.max(0,n),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},e.prototype.setScrollWidth=function(n,s){this.pageWidth===n&&!s||(this.pageWidth=n,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},e.prototype.setScrollLeft=function(n){this.scrollLeft=n,n<0&&(n=0),this.thumbLeft=n*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},e}(r);i.prototype.setInnerWidth=i.prototype.setScrollWidth,x.ScrollBar=o,x.ScrollBarV=o,x.ScrollBarH=i,x.VScrollBar=o,x.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(R,x,P){var k=R("./lib/event"),A=function(){function C(a,h){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var r=this;this._flush=function(o){r.pending=!1;var i=r.changes;if(i&&(k.blockIdle(100),r.changes=0,r.onRender(i)),r.changes){if(r.$recursionLimit--<0)return;r.schedule()}else r.$recursionLimit=2}}return C.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(k.nextFrame(this._flush),this.pending=!0)},C.prototype.clear=function(a){var h=this.changes;return this.changes=0,h},C}();x.RenderLoop=A}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(R,x,P){var k=R("../lib/oop"),A=R("../lib/dom"),C=R("../lib/lang"),a=R("../lib/event"),h=R("../lib/useragent"),r=R("../lib/event_emitter").EventEmitter,o=512,i=typeof ResizeObserver=="function",t=200,e=function(){function n(s){this.el=A.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=A.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=A.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),s.appendChild(this.el),this.$measureNode.textContent=C.stringRepeat("X",o),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()}return n.prototype.$setMeasureNodeStyles=function(s,l){s.width=s.height="auto",s.left=s.top="0px",s.visibility="hidden",s.position="absolute",s.whiteSpace="pre",h.isIE<8?s["font-family"]="inherit":s.font="inherit",s.overflow=l?"hidden":"visible"},n.prototype.checkForSizeChanges=function(s){if(s===void 0&&(s=this.$measureSizes()),s&&(this.$characterSize.width!==s.width||this.$characterSize.height!==s.height)){this.$measureNode.style.fontWeight="bold";var l=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=s,this.charSizes=Object.create(null),this.allowBoldFonts=l&&l.width===s.width&&l.height===s.height,this._emit("changeCharacterSize",{data:s})}},n.prototype.$addObserver=function(){var s=this;this.$observer=new window.ResizeObserver(function(l){s.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},n.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var s=this;return this.$pollSizeChangesTimer=a.onIdle(function l(){s.checkForSizeChanges(),a.onIdle(l,500)},500)},n.prototype.setPolling=function(s){s?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},n.prototype.$measureSizes=function(s){var l={height:(s||this.$measureNode).clientHeight,width:(s||this.$measureNode).clientWidth/o};return l.width===0||l.height===0?null:l},n.prototype.$measureCharWidth=function(s){this.$main.textContent=C.stringRepeat(s,o);var l=this.$main.getBoundingClientRect();return l.width/o},n.prototype.getCharacterWidth=function(s){var l=this.charSizes[s];return l===void 0&&(l=this.charSizes[s]=this.$measureCharWidth(s)/this.$characterSize.width),l},n.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},n.prototype.$getZoom=function(s){return!s||!s.parentElement?1:(Number(window.getComputedStyle(s).zoom)||1)*this.$getZoom(s.parentElement)},n.prototype.$initTransformMeasureNodes=function(){var s=function(l,c){return["div",{style:"position: absolute;top:"+l+"px;left:"+c+"px;"}]};this.els=A.buildDom([s(0,0),s(t,0),s(0,t),s(t,t)],this.el)},n.prototype.transformCoordinates=function(s,l){if(s){var c=this.$getZoom(this.el);s=f(1/c,s)}function m(I,D,H){var O=I[1]*D[0]-I[0]*D[1];return[(-D[1]*H[0]+D[0]*H[1])/O,(+I[1]*H[0]-I[0]*H[1])/O]}function v(I,D){return[I[0]-D[0],I[1]-D[1]]}function g(I,D){return[I[0]+D[0],I[1]+D[1]]}function f(I,D){return[I*D[0],I*D[1]]}this.els||this.$initTransformMeasureNodes();function b(I){var D=I.getBoundingClientRect();return[D.left,D.top]}var L=b(this.els[0]),M=b(this.els[1]),$=b(this.els[2]),_=b(this.els[3]),w=m(v(_,M),v(_,$),v(g(M,$),g(_,L))),y=f(1+w[0],v(M,L)),d=f(1+w[1],v($,L));if(l){var u=l,p=w[0]*u[0]/t+w[1]*u[1]/t+1,S=g(f(u[0],y),f(u[1],d));return g(f(1/p/t,S),L)}var T=v(s,L),E=m(v(y,f(w[0],T)),v(d,f(w[1],T)),T);return f(t,E)},n}();e.prototype.$characterSize={width:0,height:0},k.implement(e.prototype,r),x.FontMetrics=e}),ace.define("ace/css/editor-css",["require","exports","module"],function(R,x,P){P.exports=`
|
|
255
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
|
256
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
|
257
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
258
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
259
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
260
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
261
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
262
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
263
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
264
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
265
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
266
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
267
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
268
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
269
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
.ace_editor {
|
|
273
|
-
position: relative;
|
|
274
|
-
overflow: hidden;
|
|
275
|
-
padding: 0;
|
|
276
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
277
|
-
direction: ltr;
|
|
278
|
-
text-align: left;
|
|
279
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
280
|
-
forced-color-adjust: none;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.ace_scroller {
|
|
284
|
-
position: absolute;
|
|
285
|
-
overflow: hidden;
|
|
286
|
-
top: 0;
|
|
287
|
-
bottom: 0;
|
|
288
|
-
background-color: inherit;
|
|
289
|
-
-ms-user-select: none;
|
|
290
|
-
-moz-user-select: none;
|
|
291
|
-
-webkit-user-select: none;
|
|
292
|
-
user-select: none;
|
|
293
|
-
cursor: text;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.ace_content {
|
|
297
|
-
position: absolute;
|
|
298
|
-
box-sizing: border-box;
|
|
299
|
-
min-width: 100%;
|
|
300
|
-
contain: style size layout;
|
|
301
|
-
font-variant-ligatures: no-common-ligatures;
|
|
302
|
-
}
|
|
303
|
-
.ace_invisible {
|
|
304
|
-
font-variant-ligatures: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.ace_keyboard-focus:focus {
|
|
308
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
309
|
-
outline: none;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.ace_dragging .ace_scroller:before{
|
|
313
|
-
position: absolute;
|
|
314
|
-
top: 0;
|
|
315
|
-
left: 0;
|
|
316
|
-
right: 0;
|
|
317
|
-
bottom: 0;
|
|
318
|
-
content: '';
|
|
319
|
-
background: rgba(250, 250, 250, 0.01);
|
|
320
|
-
z-index: 1000;
|
|
321
|
-
}
|
|
322
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
|
323
|
-
background: rgba(0, 0, 0, 0.01);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.ace_gutter {
|
|
327
|
-
position: absolute;
|
|
328
|
-
overflow : hidden;
|
|
329
|
-
width: auto;
|
|
330
|
-
top: 0;
|
|
331
|
-
bottom: 0;
|
|
332
|
-
left: 0;
|
|
333
|
-
cursor: default;
|
|
334
|
-
z-index: 4;
|
|
335
|
-
-ms-user-select: none;
|
|
336
|
-
-moz-user-select: none;
|
|
337
|
-
-webkit-user-select: none;
|
|
338
|
-
user-select: none;
|
|
339
|
-
contain: style size layout;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.ace_gutter-active-line {
|
|
343
|
-
position: absolute;
|
|
344
|
-
left: 0;
|
|
345
|
-
right: 0;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.ace_scroller.ace_scroll-left:after {
|
|
349
|
-
content: "";
|
|
350
|
-
position: absolute;
|
|
351
|
-
top: 0;
|
|
352
|
-
right: 0;
|
|
353
|
-
bottom: 0;
|
|
354
|
-
left: 0;
|
|
355
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
356
|
-
pointer-events: none;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
360
|
-
position: absolute;
|
|
361
|
-
top: 0;
|
|
362
|
-
left: 0;
|
|
363
|
-
right: 0;
|
|
364
|
-
padding-left: 19px;
|
|
365
|
-
padding-right: 6px;
|
|
366
|
-
background-repeat: no-repeat;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
370
|
-
margin-left: -14px;
|
|
371
|
-
float: left;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
|
375
|
-
margin-left: -19px;
|
|
376
|
-
float: left;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
|
380
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
381
|
-
background-repeat: no-repeat;
|
|
382
|
-
background-position: 2px center;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
386
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
387
|
-
background-repeat: no-repeat;
|
|
388
|
-
background-position: 2px center;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
392
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
393
|
-
background-repeat: no-repeat;
|
|
394
|
-
background-position: 2px center;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
|
398
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.ace_icon_svg.ace_error {
|
|
402
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
403
|
-
background-color: crimson;
|
|
404
|
-
}
|
|
405
|
-
.ace_icon_svg.ace_security {
|
|
406
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
407
|
-
background-color: crimson;
|
|
408
|
-
}
|
|
409
|
-
.ace_icon_svg.ace_warning {
|
|
410
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
411
|
-
background-color: darkorange;
|
|
412
|
-
}
|
|
413
|
-
.ace_icon_svg.ace_info {
|
|
414
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
415
|
-
background-color: royalblue;
|
|
416
|
-
}
|
|
417
|
-
.ace_icon_svg.ace_hint {
|
|
418
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
419
|
-
background-color: silver;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.ace_icon_svg.ace_error_fold {
|
|
423
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
424
|
-
background-color: crimson;
|
|
425
|
-
}
|
|
426
|
-
.ace_icon_svg.ace_security_fold {
|
|
427
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
428
|
-
background-color: crimson;
|
|
429
|
-
}
|
|
430
|
-
.ace_icon_svg.ace_warning_fold {
|
|
431
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
432
|
-
background-color: darkorange;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.ace_scrollbar {
|
|
436
|
-
contain: strict;
|
|
437
|
-
position: absolute;
|
|
438
|
-
right: 0;
|
|
439
|
-
bottom: 0;
|
|
440
|
-
z-index: 6;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.ace_scrollbar-inner {
|
|
444
|
-
position: absolute;
|
|
445
|
-
cursor: text;
|
|
446
|
-
left: 0;
|
|
447
|
-
top: 0;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.ace_scrollbar-v{
|
|
451
|
-
overflow-x: hidden;
|
|
452
|
-
overflow-y: scroll;
|
|
453
|
-
top: 0;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.ace_scrollbar-h {
|
|
457
|
-
overflow-x: scroll;
|
|
458
|
-
overflow-y: hidden;
|
|
459
|
-
left: 0;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.ace_print-margin {
|
|
463
|
-
position: absolute;
|
|
464
|
-
height: 100%;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.ace_text-input {
|
|
468
|
-
position: absolute;
|
|
469
|
-
z-index: 0;
|
|
470
|
-
width: 0.5em;
|
|
471
|
-
height: 1em;
|
|
472
|
-
opacity: 0;
|
|
473
|
-
background: transparent;
|
|
474
|
-
-moz-appearance: none;
|
|
475
|
-
appearance: none;
|
|
476
|
-
border: none;
|
|
477
|
-
resize: none;
|
|
478
|
-
outline: none;
|
|
479
|
-
overflow: hidden;
|
|
480
|
-
font: inherit;
|
|
481
|
-
padding: 0 1px;
|
|
482
|
-
margin: 0 -1px;
|
|
483
|
-
contain: strict;
|
|
484
|
-
-ms-user-select: text;
|
|
485
|
-
-moz-user-select: text;
|
|
486
|
-
-webkit-user-select: text;
|
|
487
|
-
user-select: text;
|
|
488
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
|
489
|
-
white-space: pre!important;
|
|
490
|
-
}
|
|
491
|
-
.ace_text-input.ace_composition {
|
|
492
|
-
background: transparent;
|
|
493
|
-
color: inherit;
|
|
494
|
-
z-index: 1000;
|
|
495
|
-
opacity: 1;
|
|
496
|
-
}
|
|
497
|
-
.ace_composition_placeholder { color: transparent }
|
|
498
|
-
.ace_composition_marker {
|
|
499
|
-
border-bottom: 1px solid;
|
|
500
|
-
position: absolute;
|
|
501
|
-
border-radius: 0;
|
|
502
|
-
margin-top: 1px;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
[ace_nocontext=true] {
|
|
506
|
-
transform: none!important;
|
|
507
|
-
filter: none!important;
|
|
508
|
-
clip-path: none!important;
|
|
509
|
-
mask : none!important;
|
|
510
|
-
contain: none!important;
|
|
511
|
-
perspective: none!important;
|
|
512
|
-
mix-blend-mode: initial!important;
|
|
513
|
-
z-index: auto;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.ace_layer {
|
|
517
|
-
z-index: 1;
|
|
518
|
-
position: absolute;
|
|
519
|
-
overflow: hidden;
|
|
520
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
521
|
-
word-wrap: normal;
|
|
522
|
-
white-space: pre;
|
|
523
|
-
height: 100%;
|
|
524
|
-
width: 100%;
|
|
525
|
-
box-sizing: border-box;
|
|
526
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
527
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
|
528
|
-
pointer-events: none;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.ace_gutter-layer {
|
|
532
|
-
position: relative;
|
|
533
|
-
width: auto;
|
|
534
|
-
text-align: right;
|
|
535
|
-
pointer-events: auto;
|
|
536
|
-
height: 1000000px;
|
|
537
|
-
contain: style size layout;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.ace_text-layer {
|
|
541
|
-
font: inherit !important;
|
|
542
|
-
position: absolute;
|
|
543
|
-
height: 1000000px;
|
|
544
|
-
width: 1000000px;
|
|
545
|
-
contain: style size layout;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
549
|
-
contain: style size layout;
|
|
550
|
-
position: absolute;
|
|
551
|
-
top: 0;
|
|
552
|
-
left: 0;
|
|
553
|
-
right: 0;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.ace_hidpi .ace_text-layer,
|
|
557
|
-
.ace_hidpi .ace_gutter-layer,
|
|
558
|
-
.ace_hidpi .ace_content,
|
|
559
|
-
.ace_hidpi .ace_gutter {
|
|
560
|
-
contain: strict;
|
|
561
|
-
}
|
|
562
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
|
563
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
564
|
-
contain: strict;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.ace_cjk {
|
|
568
|
-
display: inline-block;
|
|
569
|
-
text-align: center;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.ace_cursor-layer {
|
|
573
|
-
z-index: 4;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.ace_cursor {
|
|
577
|
-
z-index: 4;
|
|
578
|
-
position: absolute;
|
|
579
|
-
box-sizing: border-box;
|
|
580
|
-
border-left: 2px solid;
|
|
581
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
582
|
-
transform: translatez(0);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.ace_multiselect .ace_cursor {
|
|
586
|
-
border-left-width: 1px;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.ace_slim-cursors .ace_cursor {
|
|
590
|
-
border-left-width: 1px;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.ace_overwrite-cursors .ace_cursor {
|
|
594
|
-
border-left-width: 0;
|
|
595
|
-
border-bottom: 1px solid;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.ace_hidden-cursors .ace_cursor {
|
|
599
|
-
opacity: 0.2;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
603
|
-
opacity: 0;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.ace_smooth-blinking .ace_cursor {
|
|
607
|
-
transition: opacity 0.18s;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.ace_animate-blinking .ace_cursor {
|
|
611
|
-
animation-duration: 1000ms;
|
|
612
|
-
animation-timing-function: step-end;
|
|
613
|
-
animation-name: blink-ace-animate;
|
|
614
|
-
animation-iteration-count: infinite;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
618
|
-
animation-duration: 1000ms;
|
|
619
|
-
animation-timing-function: ease-in-out;
|
|
620
|
-
animation-name: blink-ace-animate-smooth;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
@keyframes blink-ace-animate {
|
|
624
|
-
from, to { opacity: 1; }
|
|
625
|
-
60% { opacity: 0; }
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
@keyframes blink-ace-animate-smooth {
|
|
629
|
-
from, to { opacity: 1; }
|
|
630
|
-
45% { opacity: 1; }
|
|
631
|
-
60% { opacity: 0; }
|
|
632
|
-
85% { opacity: 0; }
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
636
|
-
position: absolute;
|
|
637
|
-
z-index: 3;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
.ace_marker-layer .ace_selection {
|
|
641
|
-
position: absolute;
|
|
642
|
-
z-index: 5;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.ace_marker-layer .ace_bracket {
|
|
646
|
-
position: absolute;
|
|
647
|
-
z-index: 6;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.ace_marker-layer .ace_error_bracket {
|
|
651
|
-
position: absolute;
|
|
652
|
-
border-bottom: 1px solid #DE5555;
|
|
653
|
-
border-radius: 0;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
.ace_marker-layer .ace_active-line {
|
|
657
|
-
position: absolute;
|
|
658
|
-
z-index: 2;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.ace_marker-layer .ace_selected-word {
|
|
662
|
-
position: absolute;
|
|
663
|
-
z-index: 4;
|
|
664
|
-
box-sizing: border-box;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
.ace_line .ace_fold {
|
|
668
|
-
box-sizing: border-box;
|
|
669
|
-
|
|
670
|
-
display: inline-block;
|
|
671
|
-
height: 11px;
|
|
672
|
-
margin-top: -2px;
|
|
673
|
-
vertical-align: middle;
|
|
674
|
-
|
|
675
|
-
background-image:
|
|
676
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
677
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
678
|
-
background-repeat: no-repeat, repeat-x;
|
|
679
|
-
background-position: center center, top left;
|
|
680
|
-
color: transparent;
|
|
681
|
-
|
|
682
|
-
border: 1px solid black;
|
|
683
|
-
border-radius: 2px;
|
|
684
|
-
|
|
685
|
-
cursor: pointer;
|
|
686
|
-
pointer-events: auto;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.ace_dark .ace_fold {
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.ace_fold:hover{
|
|
693
|
-
background-image:
|
|
694
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
695
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.ace_tooltip {
|
|
699
|
-
background-color: #f5f5f5;
|
|
700
|
-
border: 1px solid gray;
|
|
701
|
-
border-radius: 1px;
|
|
702
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
703
|
-
color: black;
|
|
704
|
-
padding: 3px 4px;
|
|
705
|
-
position: fixed;
|
|
706
|
-
z-index: 999999;
|
|
707
|
-
box-sizing: border-box;
|
|
708
|
-
cursor: default;
|
|
709
|
-
white-space: pre-wrap;
|
|
710
|
-
word-wrap: break-word;
|
|
711
|
-
line-height: normal;
|
|
712
|
-
font-style: normal;
|
|
713
|
-
font-weight: normal;
|
|
714
|
-
letter-spacing: normal;
|
|
715
|
-
pointer-events: none;
|
|
716
|
-
overflow: auto;
|
|
717
|
-
max-width: min(33em, 66vw);
|
|
718
|
-
overscroll-behavior: contain;
|
|
719
|
-
}
|
|
720
|
-
.ace_tooltip pre {
|
|
721
|
-
white-space: pre-wrap;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.ace_tooltip.ace_dark {
|
|
725
|
-
background-color: #636363;
|
|
726
|
-
color: #fff;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.ace_tooltip:focus {
|
|
730
|
-
outline: 1px solid #5E9ED6;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.ace_icon {
|
|
734
|
-
display: inline-block;
|
|
735
|
-
width: 18px;
|
|
736
|
-
vertical-align: top;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
.ace_icon_svg {
|
|
740
|
-
display: inline-block;
|
|
741
|
-
width: 12px;
|
|
742
|
-
vertical-align: top;
|
|
743
|
-
-webkit-mask-repeat: no-repeat;
|
|
744
|
-
-webkit-mask-size: 12px;
|
|
745
|
-
-webkit-mask-position: center;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
749
|
-
padding-right: 13px;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
.ace_fold-widget, .ace_custom-widget {
|
|
753
|
-
box-sizing: border-box;
|
|
754
|
-
|
|
755
|
-
margin: 0 -12px 0 1px;
|
|
756
|
-
display: none;
|
|
757
|
-
width: 11px;
|
|
758
|
-
vertical-align: top;
|
|
759
|
-
|
|
760
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
761
|
-
background-repeat: no-repeat;
|
|
762
|
-
background-position: center;
|
|
763
|
-
|
|
764
|
-
border-radius: 3px;
|
|
765
|
-
|
|
766
|
-
border: 1px solid transparent;
|
|
767
|
-
cursor: pointer;
|
|
768
|
-
pointer-events: auto;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.ace_custom-widget {
|
|
772
|
-
background: none;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.ace_folding-enabled .ace_fold-widget {
|
|
776
|
-
display: inline-block;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.ace_fold-widget.ace_end {
|
|
780
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.ace_fold-widget.ace_closed {
|
|
784
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.ace_fold-widget:hover {
|
|
788
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
789
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
790
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.ace_fold-widget:active {
|
|
794
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
795
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
796
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Dark version for fold widgets
|
|
800
|
-
*/
|
|
801
|
-
.ace_dark .ace_fold-widget {
|
|
802
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
803
|
-
}
|
|
804
|
-
.ace_dark .ace_fold-widget.ace_end {
|
|
805
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
806
|
-
}
|
|
807
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
|
808
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
809
|
-
}
|
|
810
|
-
.ace_dark .ace_fold-widget:hover {
|
|
811
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
812
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
813
|
-
}
|
|
814
|
-
.ace_dark .ace_fold-widget:active {
|
|
815
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.ace_inline_button {
|
|
819
|
-
border: 1px solid lightgray;
|
|
820
|
-
display: inline-block;
|
|
821
|
-
margin: -1px 8px;
|
|
822
|
-
padding: 0 5px;
|
|
823
|
-
pointer-events: auto;
|
|
824
|
-
cursor: pointer;
|
|
825
|
-
}
|
|
826
|
-
.ace_inline_button:hover {
|
|
827
|
-
border-color: gray;
|
|
828
|
-
background: rgba(200,200,200,0.2);
|
|
829
|
-
display: inline-block;
|
|
830
|
-
pointer-events: auto;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.ace_fold-widget.ace_invalid {
|
|
834
|
-
background-color: #FFB4B4;
|
|
835
|
-
border-color: #DE5555;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
|
839
|
-
transition: opacity 0.4s ease 0.05s;
|
|
840
|
-
opacity: 0;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
844
|
-
transition: opacity 0.05s ease 0.05s;
|
|
845
|
-
opacity:1;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
.ace_underline {
|
|
849
|
-
text-decoration: underline;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
.ace_bold {
|
|
853
|
-
font-weight: bold;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
.ace_nobold .ace_bold {
|
|
857
|
-
font-weight: normal;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
.ace_italic {
|
|
861
|
-
font-style: italic;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
.ace_error-marker {
|
|
866
|
-
background-color: rgba(255, 0, 0,0.2);
|
|
867
|
-
position: absolute;
|
|
868
|
-
z-index: 9;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.ace_highlight-marker {
|
|
872
|
-
background-color: rgba(255, 255, 0,0.2);
|
|
873
|
-
position: absolute;
|
|
874
|
-
z-index: 8;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
.ace_mobile-menu {
|
|
878
|
-
position: absolute;
|
|
879
|
-
line-height: 1.5;
|
|
880
|
-
border-radius: 4px;
|
|
881
|
-
-ms-user-select: none;
|
|
882
|
-
-moz-user-select: none;
|
|
883
|
-
-webkit-user-select: none;
|
|
884
|
-
user-select: none;
|
|
885
|
-
background: white;
|
|
886
|
-
box-shadow: 1px 3px 2px grey;
|
|
887
|
-
border: 1px solid #dcdcdc;
|
|
888
|
-
color: black;
|
|
889
|
-
}
|
|
890
|
-
.ace_dark > .ace_mobile-menu {
|
|
891
|
-
background: #333;
|
|
892
|
-
color: #ccc;
|
|
893
|
-
box-shadow: 1px 3px 2px grey;
|
|
894
|
-
border: 1px solid #444;
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
.ace_mobile-button {
|
|
898
|
-
padding: 2px;
|
|
899
|
-
cursor: pointer;
|
|
900
|
-
overflow: hidden;
|
|
901
|
-
}
|
|
902
|
-
.ace_mobile-button:hover {
|
|
903
|
-
background-color: #eee;
|
|
904
|
-
opacity:1;
|
|
905
|
-
}
|
|
906
|
-
.ace_mobile-button:active {
|
|
907
|
-
background-color: #ddd;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
.ace_placeholder {
|
|
911
|
-
position: relative;
|
|
912
|
-
font-family: arial;
|
|
913
|
-
transform: scale(0.9);
|
|
914
|
-
transform-origin: left;
|
|
915
|
-
white-space: pre;
|
|
916
|
-
opacity: 0.7;
|
|
917
|
-
margin: 0 10px;
|
|
918
|
-
z-index: 1;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
.ace_ghost_text {
|
|
922
|
-
opacity: 0.5;
|
|
923
|
-
font-style: italic;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
.ace_ghost_text_container > div {
|
|
927
|
-
white-space: pre;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
.ghost_text_line_wrapped::after {
|
|
931
|
-
content: "↩";
|
|
932
|
-
position: absolute;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
.ace_lineWidgetContainer.ace_ghost_text {
|
|
936
|
-
margin: 0px 4px
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
.ace_screenreader-only {
|
|
940
|
-
position:absolute;
|
|
941
|
-
left:-10000px;
|
|
942
|
-
top:auto;
|
|
943
|
-
width:1px;
|
|
944
|
-
height:1px;
|
|
945
|
-
overflow:hidden;
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
.ace_hidden_token {
|
|
949
|
-
display: none;
|
|
950
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(R,x,P){var k=R("../lib/dom"),A=R("../lib/oop"),C=R("../lib/event_emitter").EventEmitter,a=function(){function h(r,o){this.parentEl=r,this.canvas=k.createElement("canvas"),this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setDimensions(),r.element.appendChild(this.canvas)}return h.prototype.$updateDecorators=function(r){var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(r);var i=this.canvas.getContext("2d");function t(M,$){return M.priority<$.priority?-1:M.priority>$.priority?1:0}var e=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),e){var n={info:1,warning:2,error:3};e.forEach(function(M){M.priority=n[M.type]||null}),e=e.sort(t);for(var s=0;s<e.length;s++){var l=e[s].row,c=this.compensateFoldRows(l),m=Math.round((l-c)*this.lineHeight*this.heightRatio),v=Math.round((l-c)*this.lineHeight*this.heightRatio),g=Math.round(((l-c)*this.lineHeight+this.lineHeight)*this.heightRatio),f=g-v;if(f<this.minDecorationHeight){var b=(v+g)/2|0;b<this.halfMinDecorationHeight?b=this.halfMinDecorationHeight:b+this.halfMinDecorationHeight>this.canvasHeight&&(b=this.canvasHeight-this.halfMinDecorationHeight),v=Math.round(b-this.halfMinDecorationHeight),g=Math.round(b+this.halfMinDecorationHeight)}i.fillStyle=o[e[s].type]||null,i.fillRect(0,m,this.canvasWidth,g-v)}}var L=this.renderer.session.selection.getCursor();if(L){var c=this.compensateFoldRows(L.row),m=Math.round((L.row-c)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,m,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(r){var o=this.renderer.session.$foldData,i=0;if(o&&o.length>0)for(var t=0;t<o.length;t++)r>o[t].start.row&&r<o[t].end.row?i+=r-o[t].start.row:r>=o[t].end.row&&(i+=o[t].end.row-o[t].start.row);return i},h.prototype.compensateLineWidgets=function(r){var o=this.renderer.session.widgetManager;if(o){var i=0;return o.lineWidgets.forEach(function(t,e){r>e&&(i+=t.rowCount||0)}),i-1}return 0},h.prototype.setDimensions=function(r){r?(this.maxHeight=r.maxHeight,this.lineHeight=r.lineHeight,this.canvasHeight=r.height,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight):(this.canvasHeight=this.parentEl.parent.scrollHeight||this.canvasHeight,this.canvasWidth=this.parentEl.width||this.canvasWidth,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight)},h}();A.implement(a.prototype,C),x.Decorator=a}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(R,x,P){var k=R("./lib/oop"),A=R("./lib/dom"),C=R("./lib/lang"),a=R("./config"),h=R("./layer/gutter").Gutter,r=R("./layer/marker").Marker,o=R("./layer/text").Text,i=R("./layer/cursor").Cursor,t=R("./scrollbar").HScrollBar,e=R("./scrollbar").VScrollBar,n=R("./scrollbar_custom").HScrollBar,s=R("./scrollbar_custom").VScrollBar,l=R("./renderloop").RenderLoop,c=R("./layer/font_metrics").FontMetrics,m=R("./lib/event_emitter").EventEmitter,v=R("./css/editor-css"),g=R("./layer/decorators").Decorator,f=R("./lib/useragent"),b=R("./layer/text_util").isTextToken;A.importCssString(v,"ace_editor.css",!1);var L=function(){function M($,_){var w=this;this.container=$||A.createElement("div"),A.addCssClass(this.container,"ace_editor"),A.HI_DPI&&A.addCssClass(this.container,"ace_hidpi"),this.setTheme(_),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=A.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=A.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=A.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new r(this.content);var y=this.$textLayer=new o(this.content);this.canvas=y.element,this.$markerFront=new r(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new e(this.container,this),this.scrollBarH=new t(this.container,this),this.scrollBarV.on("scroll",function(d){w.$scrollAnimation||w.session.setScrollTop(d.data-w.scrollMargin.top)}),this.scrollBarH.on("scroll",function(d){w.$scrollAnimation||w.session.setScrollLeft(d.data-w.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new c(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(d){w.updateCharacterSize(),w.onResize(!0,w.gutterWidth,w.$size.width,w.$size.height),w._signal("changeCharacterSize",d)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!f.isIOS,this.$loop=new l(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return M.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),A.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},M.prototype.setSession=function($){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=$,$&&this.scrollMargin.top&&$.getScrollTop()<=0&&$.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession($),this.$markerBack.setSession($),this.$markerFront.setSession($),this.$gutterLayer.setSession($),this.$textLayer.setSession($),$&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},M.prototype.updateLines=function($,_,w){if(_===void 0&&(_=1/0),this.$changedLines?(this.$changedLines.firstRow>$&&(this.$changedLines.firstRow=$),this.$changedLines.lastRow<_&&(this.$changedLines.lastRow=_)):this.$changedLines={firstRow:$,lastRow:_},this.$changedLines.lastRow<this.layerConfig.firstRow)if(w)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},M.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},M.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},M.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},M.prototype.updateFull=function($){$?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},M.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},M.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},M.prototype.onResize=function($,_,w,y){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=$?1:0;var d=this.container;y||(y=d.clientHeight||d.scrollHeight),!y&&this.$maxLines&&this.lineHeight>1&&(!d.style.height||d.style.height=="0px")&&(d.style.height="1px",y=d.clientHeight||d.scrollHeight),w||(w=d.clientWidth||d.scrollWidth);var u=this.$updateCachedSize($,_,w,y);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!w&&!y)return this.resizing=0;$&&(this.$gutterLayer.$padding=null),$?this.$renderChanges(u|this.$changes,!0):this.$loop.schedule(u|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},M.prototype.$updateCachedSize=function($,_,w,y){y-=this.$extraHeight||0;var d=0,u=this.$size,p={width:u.width,height:u.height,scrollerHeight:u.scrollerHeight,scrollerWidth:u.scrollerWidth};if(y&&($||u.height!=y)&&(u.height=y,d|=this.CHANGE_SIZE,u.scrollerHeight=u.height,this.$horizScroll&&(u.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(u.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",d=d|this.CHANGE_SCROLL),w&&($||u.width!=w)){d|=this.CHANGE_SIZE,u.width=w,_==null&&(_=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=_,A.setStyle(this.scrollBarH.element.style,"left",_+"px"),A.setStyle(this.scroller.style,"left",_+this.margin.left+"px"),u.scrollerWidth=Math.max(0,w-_-this.scrollBarV.getWidth()-this.margin.h),A.setStyle(this.$gutter.style,"left",this.margin.left+"px");var S=this.scrollBarV.getWidth()+"px";A.setStyle(this.scrollBarH.element.style,"right",S),A.setStyle(this.scroller.style,"right",S),A.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(u.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||$)&&(d|=this.CHANGE_FULL)}return u.$dirty=!w||!y,d&&this._signal("resize",p),d},M.prototype.onGutterResize=function($){var _=this.$showGutter?$:0;_!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,_,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},M.prototype.adjustWrapLimit=function(){var $=this.$size.scrollerWidth-this.$padding*2,_=Math.floor($/this.characterWidth);return this.session.adjustWrapLimit(_,this.$showPrintMargin&&this.$printMarginColumn)},M.prototype.setAnimatedScroll=function($){this.setOption("animatedScroll",$)},M.prototype.getAnimatedScroll=function(){return this.$animatedScroll},M.prototype.setShowInvisibles=function($){this.setOption("showInvisibles",$),this.session.$bidiHandler.setShowInvisibles($)},M.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},M.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},M.prototype.setDisplayIndentGuides=function($){this.setOption("displayIndentGuides",$)},M.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},M.prototype.setHighlightIndentGuides=function($){this.setOption("highlightIndentGuides",$)},M.prototype.setShowPrintMargin=function($){this.setOption("showPrintMargin",$)},M.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},M.prototype.setPrintMarginColumn=function($){this.setOption("printMarginColumn",$)},M.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},M.prototype.getShowGutter=function(){return this.getOption("showGutter")},M.prototype.setShowGutter=function($){return this.setOption("showGutter",$)},M.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},M.prototype.setFadeFoldWidgets=function($){this.setOption("fadeFoldWidgets",$)},M.prototype.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},M.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},M.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var $=A.createElement("div");$.className="ace_layer ace_print-margin-layer",this.$printMarginEl=A.createElement("div"),this.$printMarginEl.className="ace_print-margin",$.appendChild(this.$printMarginEl),this.content.insertBefore($,this.content.firstChild)}var _=this.$printMarginEl.style;_.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",_.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},M.prototype.getContainerElement=function(){return this.container},M.prototype.getMouseEventTarget=function(){return this.scroller},M.prototype.getTextAreaContainer=function(){return this.container},M.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var $=this.textarea.style,_=this.$composition;if(!this.$keepTextAreaAtCursor&&!_){A.translate(this.textarea,-100,0);return}var w=this.$cursorLayer.$pixelPos;if(w){_&&_.markerRange&&(w=this.$cursorLayer.getPixelPosition(_.markerRange.start,!0));var y=this.layerConfig,d=w.top,u=w.left;d-=y.offset;var p=_&&_.useTextareaForIME||f.isMobile?this.lineHeight:1;if(d<0||d>y.height-p){A.translate(this.textarea,0,0);return}var S=1,T=this.$size.height-p;if(!_)d+=this.lineHeight;else if(_.useTextareaForIME){var E=this.textarea.value;S=this.characterWidth*this.session.$getStringScreenWidth(E)[0]}else d+=this.lineHeight+2;u-=this.scrollLeft,u>this.$size.scrollerWidth-S&&(u=this.$size.scrollerWidth-S),u+=this.gutterWidth+this.margin.left,A.setStyle($,"height",p+"px"),A.setStyle($,"width",S+"px"),A.translate(this.textarea,Math.min(u,this.$size.scrollerWidth-S),Math.min(d,T))}}},M.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},M.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},M.prototype.getLastFullyVisibleRow=function(){var $=this.layerConfig,_=$.lastRow,w=this.session.documentToScreenRow(_,0)*$.lineHeight;return w-this.session.getScrollTop()>$.height-$.lineHeight?_-1:_},M.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},M.prototype.setPadding=function($){this.$padding=$,this.$textLayer.setPadding($),this.$cursorLayer.setPadding($),this.$markerFront.setPadding($),this.$markerBack.setPadding($),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},M.prototype.setScrollMargin=function($,_,w,y){var d=this.scrollMargin;d.top=$|0,d.bottom=_|0,d.right=y|0,d.left=w|0,d.v=d.top+d.bottom,d.h=d.left+d.right,d.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-d.top),this.updateFull()},M.prototype.setMargin=function($,_,w,y){var d=this.margin;d.top=$|0,d.bottom=_|0,d.right=y|0,d.left=w|0,d.v=d.top+d.bottom,d.h=d.left+d.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},M.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},M.prototype.setHScrollBarAlwaysVisible=function($){this.setOption("hScrollBarAlwaysVisible",$)},M.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},M.prototype.setVScrollBarAlwaysVisible=function($){this.setOption("vScrollBarAlwaysVisible",$)},M.prototype.$updateScrollBarV=function(){var $=this.layerConfig.maxHeight,_=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&($-=(_-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>$-_&&($=this.scrollTop+_,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight($+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},M.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},M.prototype.freeze=function(){this.$frozen=!0},M.prototype.unfreeze=function(){this.$frozen=!1},M.prototype.$renderChanges=function($,_){if(this.$changes&&($|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!$&&!_){this.$changes|=$;return}if(this.$size.$dirty)return this.$changes|=$,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",$),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var w=this.layerConfig;if($&this.CHANGE_FULL||$&this.CHANGE_SIZE||$&this.CHANGE_TEXT||$&this.CHANGE_LINES||$&this.CHANGE_SCROLL||$&this.CHANGE_H_SCROLL){if($|=this.$computeLayerConfig()|this.$loop.clear(),w.firstRow!=this.layerConfig.firstRow&&w.firstRowScreen==this.layerConfig.firstRowScreen){var y=this.scrollTop+(w.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;y>0&&(this.scrollTop=y,$=$|this.CHANGE_SCROLL,$|=this.$computeLayerConfig()|this.$loop.clear())}w=this.layerConfig,this.$updateScrollBarV(),$&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),A.translate(this.content,-this.scrollLeft,-w.offset);var d=w.width+2*this.$padding+"px",u=w.minHeight+"px";A.setStyle(this.content.style,"width",d),A.setStyle(this.content.style,"height",u)}if($&this.CHANGE_H_SCROLL&&(A.translate(this.content,-this.scrollLeft,-w.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),$&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),this.$moveTextAreaToCursor(),this._signal("afterRender",$);return}if($&this.CHANGE_SCROLL){this.$changedLines=null,$&this.CHANGE_TEXT||$&this.CHANGE_LINES?this.$textLayer.update(w):this.$textLayer.scrollLines(w),this.$showGutter&&($&this.CHANGE_GUTTER||$&this.CHANGE_LINES?this.$gutterLayer.update(w):this.$gutterLayer.scrollLines(w)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w),this.$markerBack.update(w),this.$markerFront.update(w),this.$cursorLayer.update(w),this.$moveTextAreaToCursor(),this._signal("afterRender",$);return}$&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(w),this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):$&this.CHANGE_LINES?((this.$updateLines()||$&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):$&this.CHANGE_TEXT||$&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)):$&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(w),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(w)),$&this.CHANGE_CURSOR&&(this.$cursorLayer.update(w),this.$moveTextAreaToCursor()),$&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(w),$&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(w),this._signal("afterRender",$)},M.prototype.$autosize=function(){var $=this.session.getScreenLength()*this.lineHeight,_=this.$maxLines*this.lineHeight,w=Math.min(_,Math.max((this.$minLines||1)*this.lineHeight,$))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(w+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&w>this.$maxPixelHeight&&(w=this.$maxPixelHeight);var y=w<=2*this.lineHeight,d=!y&&$>_;if(w!=this.desiredHeight||this.$size.height!=this.desiredHeight||d!=this.$vScroll){d!=this.$vScroll&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var u=this.container.clientWidth;this.container.style.height=w+"px",this.$updateCachedSize(!0,this.$gutterWidth,u,w),this.desiredHeight=w,this._signal("autosize")}},M.prototype.$computeLayerConfig=function(){var $=this.session,_=this.$size,w=_.height<=2*this.lineHeight,y=this.session.getScreenLength(),d=y*this.lineHeight,u=this.$getLongestLine(),p=!w&&(this.$hScrollBarAlwaysVisible||_.scrollerWidth-u-2*this.$padding<0),S=this.$horizScroll!==p;S&&(this.$horizScroll=p,this.scrollBarH.setVisible(p));var T=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),w=_.height<=2*this.lineHeight);var E=_.scrollerHeight+this.lineHeight,I=!this.$maxLines&&this.$scrollPastEnd?(_.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;d+=I;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,d-_.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,u+2*this.$padding-_.scrollerWidth+D.right)));var H=!w&&(this.$vScrollBarAlwaysVisible||_.scrollerHeight-d+I<0||this.scrollTop>D.top),O=T!==H;O&&(this.$vScroll=H,this.scrollBarV.setVisible(H));var N=this.scrollTop%this.lineHeight,F=Math.ceil(E/this.lineHeight)-1,W=Math.max(0,Math.round((this.scrollTop-N)/this.lineHeight)),z=W+F,U,V,j=this.lineHeight;W=$.screenToDocumentRow(W,0);var Y=$.getFoldLine(W);Y&&(W=Y.start.row),U=$.documentToScreenRow(W,0),V=$.getRowLength(W)*j,z=Math.min($.screenToDocumentRow(z,0),$.getLength()-1),E=_.scrollerHeight+$.getRowLength(z)*j+V,N=this.scrollTop-U*j,N<0&&U>0&&(U=Math.max(0,U+Math.floor(N/j)),N=this.scrollTop-U*j);var Z=0;return(this.layerConfig.width!=u||S)&&(Z=this.CHANGE_H_SCROLL),(S||O)&&(Z|=this.$updateCachedSize(!0,this.gutterWidth,_.width,_.height),this._signal("scrollbarVisibilityChanged"),O&&(u=this.$getLongestLine())),this.layerConfig={width:u,padding:this.$padding,firstRow:W,firstRowScreen:U,lastRow:z,lineHeight:j,characterWidth:this.characterWidth,minHeight:E,maxHeight:d,offset:N,gutterOffset:j?Math.max(0,Math.ceil((N+_.height-_.scrollerHeight)/j)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(u-this.$padding),Z},M.prototype.$updateLines=function(){if(this.$changedLines){var $=this.$changedLines.firstRow,_=this.$changedLines.lastRow;this.$changedLines=null;var w=this.layerConfig;if(!($>w.lastRow+1)&&!(_<w.firstRow)){if(_===1/0){this.$showGutter&&this.$gutterLayer.update(w),this.$textLayer.update(w);return}return this.$textLayer.updateLines(w,$,_),!0}}},M.prototype.$getLongestLine=function(){var $=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&($+=1),this.$textLayer&&$>this.$textLayer.MAX_LINE_LENGTH&&($=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round($*this.characterWidth))},M.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},M.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},M.prototype.addGutterDecoration=function($,_){this.$gutterLayer.addGutterDecoration($,_)},M.prototype.removeGutterDecoration=function($,_){this.$gutterLayer.removeGutterDecoration($,_)},M.prototype.updateBreakpoints=function($){this._rows=$,this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.setAnnotations=function($){this.$gutterLayer.setAnnotations($),this.$loop.schedule(this.CHANGE_GUTTER)},M.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},M.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},M.prototype.showCursor=function(){this.$cursorLayer.showCursor()},M.prototype.scrollSelectionIntoView=function($,_,w){this.scrollCursorIntoView($,w),this.scrollCursorIntoView(_,w)},M.prototype.scrollCursorIntoView=function($,_,w){if(this.$size.scrollerHeight!==0){var y=this.$cursorLayer.getPixelPosition($),d=y.left,u=y.top,p=w&&w.top||0,S=w&&w.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var T=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;T+p>u?(_&&T+p>u+this.lineHeight&&(u-=_*this.$size.scrollerHeight),u===0&&(u=-this.scrollMargin.top),this.session.setScrollTop(u)):T+this.$size.scrollerHeight-S<u+this.lineHeight&&(_&&T+this.$size.scrollerHeight-S<u-this.lineHeight&&(u+=_*this.$size.scrollerHeight),this.session.setScrollTop(u+this.lineHeight+S-this.$size.scrollerHeight));var E=this.scrollLeft,I=2*this.layerConfig.characterWidth;d-I<E?(d-=I,d<this.$padding+I&&(d=-this.scrollMargin.left),this.session.setScrollLeft(d)):(d+=I,E+this.$size.scrollerWidth<d+this.characterWidth?this.session.setScrollLeft(Math.round(d+this.characterWidth-this.$size.scrollerWidth)):E<=this.$padding&&d-E<this.characterWidth&&this.session.setScrollLeft(0))}},M.prototype.getScrollTop=function(){return this.session.getScrollTop()},M.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},M.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},M.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},M.prototype.scrollToRow=function($){this.session.setScrollTop($*this.lineHeight)},M.prototype.alignCursor=function($,_){typeof $=="number"&&($={row:$,column:0});var w=this.$cursorLayer.getPixelPosition($),y=this.$size.scrollerHeight-this.lineHeight,d=w.top-y*(_||0);return this.session.setScrollTop(d),d},M.prototype.$calcSteps=function($,_){var w=0,y=this.STEPS,d=[],u=function(p,S,T){return T*(Math.pow(p-1,3)+1)+S};for(w=0;w<y;++w)d.push(u(w/this.STEPS,$,_-$));return d},M.prototype.scrollToLine=function($,_,w,y){var d=this.$cursorLayer.getPixelPosition({row:$,column:0}),u=d.top;_&&(u-=this.$size.scrollerHeight/2);var p=this.scrollTop;this.session.setScrollTop(u),w!==!1&&this.animateScrolling(p,y)},M.prototype.animateScrolling=function($,_){var w=this.scrollTop;if(!this.$animatedScroll)return;var y=this;if($==w)return;if(this.$scrollAnimation){var d=this.$scrollAnimation.steps;if(d.length&&($=d[0],$==w))return}var u=y.$calcSteps($,w);this.$scrollAnimation={from:$,to:w,steps:u},clearInterval(this.$timer),y.session.setScrollTop(u.shift()),y.session.$scrollTop=w;function p(){y.$timer=clearInterval(y.$timer),y.$scrollAnimation=null,y.$stopAnimation=!1,_&&_()}this.$timer=setInterval(function(){if(y.$stopAnimation){p();return}if(!y.session)return clearInterval(y.$timer);u.length?(y.session.setScrollTop(u.shift()),y.session.$scrollTop=w):w!=null?(y.session.$scrollTop=-1,y.session.setScrollTop(w),w=null):p()},10)},M.prototype.scrollToY=function($){this.scrollTop!==$&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=$)},M.prototype.scrollToX=function($){this.scrollLeft!==$&&(this.scrollLeft=$),this.$loop.schedule(this.CHANGE_H_SCROLL)},M.prototype.scrollTo=function($,_){this.session.setScrollTop(_),this.session.setScrollLeft($)},M.prototype.scrollBy=function($,_){_&&this.session.setScrollTop(this.session.getScrollTop()+_),$&&this.session.setScrollLeft(this.session.getScrollLeft()+$)},M.prototype.isScrollableBy=function($,_){if(_<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||_>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||$<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||$>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},M.prototype.pixelToScreenCoordinates=function($,_){var w;if(this.$hasCssTransforms){w={top:0,left:0};var y=this.$fontMetrics.transformCoordinates([$,_]);$=y[1]-this.gutterWidth-this.margin.left,_=y[0]}else w=this.scroller.getBoundingClientRect();var d=$+this.scrollLeft-w.left-this.$padding,u=d/this.characterWidth,p=Math.floor((_+this.scrollTop-w.top)/this.lineHeight),S=this.$blockCursor?Math.floor(u):Math.round(u);return{row:p,column:S,side:u-S>0?1:-1,offsetX:d}},M.prototype.screenToTextCoordinates=function($,_){var w;if(this.$hasCssTransforms){w={top:0,left:0};var y=this.$fontMetrics.transformCoordinates([$,_]);$=y[1]-this.gutterWidth-this.margin.left,_=y[0]}else w=this.scroller.getBoundingClientRect();var d=$+this.scrollLeft-w.left-this.$padding,u=d/this.characterWidth,p=this.$blockCursor?Math.floor(u):Math.round(u),S=Math.floor((_+this.scrollTop-w.top)/this.lineHeight);return this.session.screenToDocumentPosition(S,Math.max(p,0),d)},M.prototype.textToScreenCoordinates=function($,_){var w=this.scroller.getBoundingClientRect(),y=this.session.documentToScreenPosition($,_),d=this.$padding+(this.session.$bidiHandler.isBidiRow(y.row,$)?this.session.$bidiHandler.getPosLeft(y.column):Math.round(y.column*this.characterWidth)),u=y.row*this.lineHeight;return{pageX:w.left+d-this.scrollLeft,pageY:w.top+u-this.scrollTop}},M.prototype.visualizeFocus=function(){A.addCssClass(this.container,"ace_focus")},M.prototype.visualizeBlur=function(){A.removeCssClass(this.container,"ace_focus")},M.prototype.showComposition=function($){this.$composition=$,$.cssText||($.cssText=this.textarea.style.cssText),$.useTextareaForIME==null&&($.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(A.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):$.markerId=this.session.addMarker($.markerRange,"ace_composition_marker","text")},M.prototype.setCompositionText=function($){var _=this.session.selection.cursor;this.addToken($,"composition_placeholder",_.row,_.column),this.$moveTextAreaToCursor()},M.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),A.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var $=this.session.selection.cursor;this.removeExtraToken($.row,$.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},M.prototype.setGhostText=function($,_){var w=this.session.selection.cursor,y=_||{row:w.row,column:w.column};this.removeGhostText();var d=this.$calculateWrappedTextChunks($,y);this.addToken(d[0].text,"ghost_text",y.row,y.column),this.$ghostText={text:$,position:{row:y.row,column:y.column}};var u=A.createElement("div");if(d.length>1){var p=this.hideTokensAfterPosition(y.row,y.column),S;d.slice(1).forEach(function(O){var N=A.createElement("div"),F=A.createElement("span");F.className="ace_ghost_text",O.wrapped&&(N.className="ghost_text_line_wrapped"),O.text.length===0&&(O.text=" "),F.appendChild(A.createTextNode(O.text)),N.appendChild(F),u.appendChild(N),S=N}),p.forEach(function(O){var N=A.createElement("span");b(O.type)||(N.className="ace_"+O.type.replace(/\./g," ace_")),N.appendChild(A.createTextNode(O.value)),S.appendChild(N)}),this.$ghostTextWidget={el:u,row:y.row,column:y.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var T=this.$cursorLayer.getPixelPosition(y,!0),E=this.container,I=E.getBoundingClientRect().height,D=d.length*this.lineHeight,H=D<I-T.top;if(H)return;D<I?this.scrollBy(0,(d.length-1)*this.lineHeight):this.scrollToRow(y.row)}},M.prototype.$calculateWrappedTextChunks=function($,_){var w=this.$size.scrollerWidth-this.$padding*2,y=Math.floor(w/this.characterWidth)-2;y=y<=0?60:y;for(var d=$.split(/\r?\n/),u=[],p=0;p<d.length;p++){var S=this.session.$getDisplayTokens(d[p],_.column),T=this.session.$computeWrapSplits(S,y,this.session.$tabSize);if(T.length>0){var E=0;T.push(d[p].length);for(var I=0;I<T.length;I++){var D=d[p].slice(E,T[I]);u.push({text:D,wrapped:!0}),E=T[I]}}else u.push({text:d[p],wrapped:!1})}return u},M.prototype.removeGhostText=function(){if(this.$ghostText){var $=this.$ghostText.position;this.removeExtraToken($.row,$.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},M.prototype.addToken=function($,_,w,y){var d=this.session;d.bgTokenizer.lines[w]=null;var u={type:_,value:$},p=d.getTokens(w);if(y==null||!p.length)p.push(u);else for(var S=0,T=0;T<p.length;T++){var E=p[T];if(S+=E.value.length,y<=S){var I=E.value.length-(S-y),D=E.value.slice(0,I),H=E.value.slice(I);p.splice(T,1,{type:E.type,value:D},u,{type:E.type,value:H});break}}this.updateLines(w,w)},M.prototype.hideTokensAfterPosition=function($,_){for(var w=this.session.getTokens($),y=0,d=!1,u=[],p=0;p<w.length;p++){var S=w[p];if(y+=S.value.length,S.type!=="ghost_text"){if(d){u.push({type:S.type,value:S.value}),S.type="hidden_token";continue}y===_&&(d=!0)}}return this.updateLines($,$),u},M.prototype.removeExtraToken=function($,_){this.session.bgTokenizer.lines[$]=null,this.updateLines($,$)},M.prototype.setTheme=function($,_){var w=this;if(this.$themeId=$,w._dispatchEvent("themeChange",{theme:$}),!$||typeof $=="string"){var y=$||this.$options.theme.initialValue;a.loadModule(["theme",y],d)}else d($);function d(u){if(w.$themeId!=$)return _&&_();if(!u||!u.cssClass)throw new Error("couldn't load module "+$+" or it didn't call define");u.$id&&(w.$themeId=u.$id),A.importCssString(u.cssText,u.cssClass,w.container),w.theme&&A.removeCssClass(w.container,w.theme.cssClass);var p="padding"in u?u.padding:"padding"in(w.theme||{})?4:w.$padding;w.$padding&&p!=w.$padding&&w.setPadding(p),w.$theme=u.cssClass,w.theme=u,A.addCssClass(w.container,u.cssClass),A.setCssClass(w.container,"ace_dark",u.isDark),w.$size&&(w.$size.width=0,w.$updateSizeAsync()),w._dispatchEvent("themeLoaded",{theme:u}),_&&_(),f.isSafari&&w.scroller&&(w.scroller.style.background="red",w.scroller.style.background="")}},M.prototype.getTheme=function(){return this.$themeId},M.prototype.setStyle=function($,_){A.setCssClass(this.container,$,_!==!1)},M.prototype.unsetStyle=function($){A.removeCssClass(this.container,$)},M.prototype.setCursorStyle=function($){A.setStyle(this.scroller.style,"cursor",$)},M.prototype.setMouseCursor=function($){A.setStyle(this.scroller.style,"cursor",$)},M.prototype.attachToShadowRoot=function(){A.importCssString(v,"ace_editor.css",this.container)},M.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},M.prototype.$updateCustomScrollbar=function($){var _=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,$===!0?(this.scrollBarV=new s(this.container,this),this.scrollBarH=new n(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(w){_.$scrollAnimation||_.session.setScrollTop(w.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){_.$scrollAnimation||_.session.setScrollLeft(w.data-_.scrollMargin.left)}),this.$scrollDecorator=new g(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new e(this.container,this),this.scrollBarH=new t(this.container,this),this.scrollBarV.addEventListener("scroll",function(w){_.$scrollAnimation||_.session.setScrollTop(w.data-_.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(w){_.$scrollAnimation||_.session.setScrollLeft(w.data-_.scrollMargin.left)}))},M.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var $=this;this.$resizeTimer=C.delayedCall(function(){$.destroyed||$.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(_){var w=_[0].contentRect.width,y=_[0].contentRect.height;Math.abs($.$size.width-w)>1||Math.abs($.$size.height-y)>1?$.$resizeTimer.delay():$.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},M}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,k.implement(L.prototype,m),a.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(M){!M&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):M&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(M){this.$textLayer.setShowInvisibles(M)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(M){typeof M=="number"&&(this.$printMarginColumn=M),this.$showPrintMargin=!!M,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(M){this.$gutter.style.display=M?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(M){this.$gutterLayer.$useSvgGutterIcons=M},initialValue:!1},showFoldedAnnotations:{set:function(M){this.$gutterLayer.$showFoldedAnnotations=M},initialValue:!1},fadeFoldWidgets:{set:function(M){A.setCssClass(this.$gutter,"ace_fade-fold-widgets",M)},initialValue:!1},showFoldWidgets:{set:function(M){this.$gutterLayer.setShowFoldWidgets(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(M){this.$textLayer.setDisplayIndentGuides(M)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(M){this.$textLayer.setHighlightIndentGuides(M)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(M){this.$gutterLayer.setHighlightGutterLine(M),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(M){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(M){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(M){typeof M=="number"&&(M=M+"px"),this.container.style.fontSize=M,this.updateFontSize()},initialValue:12},fontFamily:{set:function(M){this.container.style.fontFamily=M,this.updateFontSize()}},maxLines:{set:function(M){this.updateFull()}},minLines:{set:function(M){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(M){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(M){M=+M||0,this.$scrollPastEnd!=M&&(this.$scrollPastEnd=M,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(M){this.$gutterLayer.$fixedWidth=!!M,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(M){this.$updateCustomScrollbar(M)},initialValue:!1},theme:{set:function(M){this.setTheme(M)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!f.isMobile&&!f.isIE}}),x.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(R,x,P){var k=R("../lib/oop"),A=R("../lib/net"),C=R("../lib/event_emitter").EventEmitter,a=R("../config");function h(t){var e="importScripts('"+A.qualifyURL(t)+"');";try{return new Blob([e],{type:"application/javascript"})}catch{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,s=new n;return s.append(e),s.getBlob("application/javascript")}}function r(t){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var e=h(t),n=window.URL||window.webkitURL,s=n.createObjectURL(e);return new Worker(s)}return new Worker(t)}var o=function(t){t.postMessage||(t=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=t,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){k.implement(this,C),this.$createWorkerFromOldConfig=function(t,e,n,s,l){if(R.nameToUrl&&!R.toUrl&&(R.toUrl=R.nameToUrl),a.get("packaged")||!R.toUrl)s=s||a.moduleUrl(e,"worker");else{var c=this.$normalizePath;s=s||c(R.toUrl("ace/worker/worker.js",null,"_"));var m={};t.forEach(function(v){m[v]=c(R.toUrl(v,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=r(s),l&&this.send("importScripts",l),this.$worker.postMessage({init:!0,tlns:m,module:e,classname:n}),this.$worker},this.onMessage=function(t){var e=t.data;switch(e.type){case"event":this._signal(e.name,{data:e.data});break;case"call":var n=this.callbacks[e.id];n&&(n(e.data),delete this.callbacks[e.id]);break;case"error":this.reportError(e.data);break;case"log":window.console&&console.log&&console.log.apply(console,e.data);break}},this.reportError=function(t){window.console&&console.error&&console.error(t)},this.$normalizePath=function(t){return A.qualifyURL(t)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(t){t.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(t,e){this.$worker.postMessage({command:t,args:e})},this.call=function(t,e,n){if(n){var s=this.callbackId++;this.callbacks[s]=n,e.push(s)}this.send(t,e)},this.emit=function(t,e){try{e.data&&e.data.err&&(e.data.err={message:e.data.err.message,stack:e.data.err.stack,code:e.data.err.code}),this.$worker&&this.$worker.postMessage({event:t,data:{data:e.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(t){this.$doc&&this.terminate(),this.$doc=t,this.call("setValue",[t.getValue()]),t.on("change",this.changeListener,!0)},this.changeListener=function(t){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),t.action=="insert"?this.deltaQueue.push(t.start,t.lines):this.deltaQueue.push(t.start,t.end)},this.$sendDeltaQueue=function(){var t=this.deltaQueue;t&&(this.deltaQueue=null,t.length>50&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(o.prototype);var i=function(t,e,n){var s=null,l=!1,c=Object.create(C),m=[],v=new o({messageBuffer:m,terminate:function(){},postMessage:function(f){m.push(f),s&&(l?setTimeout(g):g())}});v.setEmitSync=function(f){l=f};var g=function(){var f=m.shift();f.command?s[f.command].apply(s,f.args):f.event&&c._signal(f.event,f.data)};return c.postMessage=function(f){v.onMessage({data:f})},c.callback=function(f,b){this.postMessage({type:"call",id:b,data:f})},c.emit=function(f,b){this.postMessage({type:"event",name:f,data:b})},a.loadModule(["worker",e],function(f){for(s=new f[n](c);m.length;)g()}),v};x.UIWorkerClient=i,x.WorkerClient=o,x.createWorker=r}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(R,x,P){var k=R("./range").Range,A=R("./lib/event_emitter").EventEmitter,C=R("./lib/oop"),a=function(){function h(r,o,i,t,e,n){var s=this;this.length=o,this.session=r,this.doc=r.getDocument(),this.mainClass=e,this.othersClass=n,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=t,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=i;var l=r.getUndoManager().$undoStack||r.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=l.length,this.setup(),r.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var r=this,o=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=o.createAnchor(this.$pos.row,this.$pos.column);var t=this.pos;t.$insertRight=!0,t.detach(),t.markerId=i.addMarker(new k(t.row,t.column,t.row,t.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var n=o.createAnchor(e.row,e.column);n.$insertRight=!0,n.detach(),r.others.push(n)}),i.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var r=this.session,o=this;this.othersActive=!0,this.others.forEach(function(i){i.markerId=r.addMarker(new k(i.row,i.column,i.row,i.column+o.length),o.othersClass,null,!1)})}},h.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var r=0;r<this.others.length;r++)this.session.removeMarker(this.others[r].markerId)}},h.prototype.onUpdate=function(r){if(this.$updating)return this.updateAnchors(r);var o=r;if(o.start.row===o.end.row&&o.start.row===this.pos.row){this.$updating=!0;var i=r.action==="insert"?o.end.column-o.start.column:o.start.column-o.end.column,t=o.start.column>=this.pos.column&&o.start.column<=this.pos.column+this.length+1,e=o.start.column-this.pos.column;if(this.updateAnchors(r),t&&(this.length+=i),t&&!this.session.$fromUndo){if(r.action==="insert")for(var n=this.others.length-1;n>=0;n--){var s=this.others[n],l={row:s.row,column:s.column+e};this.doc.insertMergedLines(l,r.lines)}else if(r.action==="remove")for(var n=this.others.length-1;n>=0;n--){var s=this.others[n],l={row:s.row,column:s.column+e};this.doc.remove(new k(l.row,l.column,l.row,l.column-i))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(r){this.pos.onChange(r);for(var o=this.others.length;o--;)this.others[o].onChange(r);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var r=this,o=this.session,i=function(e,n){o.removeMarker(e.markerId),e.markerId=o.addMarker(new k(e.row,e.column,e.row,e.column+r.length),n,null,!1)};i(this.pos,this.mainClass);for(var t=this.others.length;t--;)i(this.others[t],this.othersClass)}},h.prototype.onCursorChange=function(r){if(!(this.$updating||!this.session)){var o=this.session.selection.getCursor();o.row===this.pos.row&&o.column>=this.pos.column&&o.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",r)):(this.hideOtherMarkers(),this._emit("cursorLeave",r))}},h.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var r=this.session.getUndoManager(),o=(r.$undoStack||r.$undostack).length-this.$undoStackDepth,i=0;i<o;i++)r.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},h}();C.implement(a.prototype,A),x.PlaceHolder=a}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(R,x,P){var k=R("../lib/event"),A=R("../lib/useragent");function C(h,r){return h.row==r.row&&h.column==r.column}function a(h){var r=h.domEvent,o=r.altKey,i=r.shiftKey,t=r.ctrlKey,e=h.getAccelKey(),n=h.getButton();if(t&&A.isMac&&(n=r.button),h.editor.inMultiSelectMode&&n==2){h.editor.textInput.onContextMenu(h.domEvent);return}if(!t&&!o&&!e){n===0&&h.editor.inMultiSelectMode&&h.editor.exitMultiSelectMode();return}if(n===0){var s=h.editor,l=s.selection,c=s.inMultiSelectMode,m=h.getDocumentPosition(),v=l.getCursor(),g=h.inSelection()||l.isEmpty()&&C(m,v),f=h.x,b=h.y,L=function(D){f=D.clientX,b=D.clientY},M=s.session,$=s.renderer.pixelToScreenCoordinates(f,b),_=$,w;if(s.$mouseHandler.$enableJumpToDef)t&&o||e&&o?w=i?"block":"add":o&&s.$blockSelectEnabled&&(w="block");else if(e&&!o){if(w="add",!c&&i)return}else o&&s.$blockSelectEnabled&&(w="block");if(w&&A.isMac&&r.ctrlKey&&s.$mouseHandler.cancelContextMenu(),w=="add"){if(!c&&g)return;if(!c){var y=l.toOrientedRange();s.addSelectionMarker(y)}var d=l.rangeList.rangeAtPoint(m);s.inVirtualSelectionMode=!0,i&&(d=null,y=l.ranges[0]||y,s.removeSelectionMarker(y)),s.once("mouseup",function(){var D=l.toOrientedRange();d&&D.isEmpty()&&C(d.cursor,D.cursor)?l.substractPoint(D.cursor):(i?l.substractPoint(y.cursor):y&&(s.removeSelectionMarker(y),l.addRange(y)),l.addRange(D)),s.inVirtualSelectionMode=!1})}else if(w=="block"){h.stop(),s.inVirtualSelectionMode=!0;var u,p=[],S=function(){var D=s.renderer.pixelToScreenCoordinates(f,b),H=M.screenToDocumentPosition(D.row,D.column,D.offsetX);C(_,D)&&C(H,l.lead)||(_=D,s.selection.moveToPosition(H),s.renderer.scrollCursorIntoView(),s.removeSelectionMarkers(p),p=l.rectangularRangeBlock(_,$),s.$mouseHandler.$clickSelection&&p.length==1&&p[0].isEmpty()&&(p[0]=s.$mouseHandler.$clickSelection.clone()),p.forEach(s.addSelectionMarker,s),s.updateSelectionMarkers())};c&&!e?l.toSingleRange():!c&&e&&(u=l.toOrientedRange(),s.addSelectionMarker(u)),i?$=M.documentToScreenPosition(l.lead):l.moveToPosition(m),_={row:-1,column:-1};var T=function(D){S(),clearInterval(I),s.removeSelectionMarkers(p),p.length||(p=[l.toOrientedRange()]),u&&(s.removeSelectionMarker(u),l.toSingleRange(u));for(var H=0;H<p.length;H++)l.addRange(p[H]);s.inVirtualSelectionMode=!1,s.$mouseHandler.$clickSelection=null},E=S;k.capture(s.container,L,T);var I=setInterval(function(){E()},20);return h.preventDefault()}}}x.onMouseDown=a}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(R,x,P){x.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(A){A.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(A){A.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(A){A.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(A){A.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(A){A.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(A){A.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(A){A.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(A){A.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(A){A.multiSelect.rangeCount>1?A.multiSelect.joinSelections():A.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(A){A.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(A){A.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(A){A.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],x.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(A){A.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(A){return A&&A.inMultiSelectMode}}];var k=R("../keyboard/hash_handler").HashHandler;x.keyboardHandler=new k(x.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(R,x,P){var k=R("./range_list").RangeList,A=R("./range").Range,C=R("./selection").Selection,a=R("./mouse/multi_select_handler").onMouseDown,h=R("./lib/event"),r=R("./lib/lang"),o=R("./commands/multi_select_commands");x.commands=o.defaultCommands.concat(o.multiSelectCommands);var i=R("./search").Search,t=new i;function e(v,g,f){return t.$options.wrap=!0,t.$options.needle=g,t.$options.backwards=f==-1,t.find(v)}var n=R("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(n.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(v,g){if(v){if(!this.inMultiSelectMode&&this.rangeCount===0){var f=this.toOrientedRange();if(this.rangeList.add(f),this.rangeList.add(v),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),g||this.fromOrientedRange(v);this.rangeList.removeAll(),this.rangeList.add(f),this.$onAddRange(f)}v.cursor||(v.cursor=v.end);var b=this.rangeList.add(v);return this.$onAddRange(v),b.length&&this.$onRemoveRange(b),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),g||this.fromOrientedRange(v)}},this.toSingleRange=function(v){v=v||this.ranges[0];var g=this.rangeList.removeAll();g.length&&this.$onRemoveRange(g),v&&this.fromOrientedRange(v)},this.substractPoint=function(v){var g=this.rangeList.substractPoint(v);if(g)return this.$onRemoveRange(g),g[0]},this.mergeOverlappingRanges=function(){var v=this.rangeList.merge();v.length&&this.$onRemoveRange(v)},this.$onAddRange=function(v){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(v),this._signal("addRange",{range:v})},this.$onRemoveRange=function(v){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var g=this.rangeList.ranges.pop();v.push(g),this.rangeCount=0}for(var f=v.length;f--;){var b=this.ranges.indexOf(v[f]);this.ranges.splice(b,1)}this._signal("removeRange",{ranges:v}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),g=g||this.ranges[0],g&&!g.isEqual(this.getRange())&&this.fromOrientedRange(g)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new k,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var v=this.ranges.length?this.ranges:[this.getRange()],g=[],f=0;f<v.length;f++){var b=v[f],L=b.start.row,M=b.end.row;if(L===M)g.push(b.clone());else{for(g.push(new A(L,b.start.column,L,this.session.getLine(L).length));++L<M;)g.push(this.getLineRange(L,!0));g.push(new A(M,0,M,b.end.column))}f==0&&!this.isBackwards()&&(g=g.reverse())}this.toSingleRange();for(var f=g.length;f--;)this.addRange(g[f])},this.joinSelections=function(){var v=this.rangeList.ranges,g=v[v.length-1],f=A.fromPoints(v[0].start,g.end);this.toSingleRange(),this.setSelectionRange(f,g.cursor==g.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var v=this.rangeList.ranges,g=v[v.length-1],f=A.fromPoints(v[0].start,g.end);this.toSingleRange(),this.setSelectionRange(f,g.cursor==g.start)}else{var b=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),M=this.rectangularRangeBlock(b,L);M.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(v,g,f){var b=[],L=v.column<g.column;if(L)var M=v.column,$=g.column,_=v.offsetX,w=g.offsetX;else var M=g.column,$=v.column,_=g.offsetX,w=v.offsetX;var y=v.row<g.row;if(y)var d=v.row,u=g.row;else var d=g.row,u=v.row;M<0&&(M=0),d<0&&(d=0),d==u&&(f=!0);for(var p,S=d;S<=u;S++){var T=A.fromPoints(this.session.screenToDocumentPosition(S,M,_),this.session.screenToDocumentPosition(S,$,w));if(T.isEmpty()){if(p&&l(T.end,p))break;p=T.end}T.cursor=L?T.start:T.end,b.push(T)}if(y&&b.reverse(),!f){for(var E=b.length-1;b[E].isEmpty()&&E>0;)E--;if(E>0)for(var I=0;b[I].isEmpty();)I++;for(var D=E;D>=I;D--)b[D].isEmpty()&&b.splice(D,1)}return b}}.call(C.prototype);var s=R("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(v){v.cursor||(v.cursor=v.end);var g=this.getSelectionStyle();return v.marker=this.session.addMarker(v,"ace_selection",g),this.session.$selectionMarkers.push(v),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,v},this.removeSelectionMarker=function(v){if(v.marker){this.session.removeMarker(v.marker);var g=this.session.$selectionMarkers.indexOf(v);g!=-1&&this.session.$selectionMarkers.splice(g,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(v){for(var g=this.session.$selectionMarkers,f=v.length;f--;){var b=v[f];if(b.marker){this.session.removeMarker(b.marker);var L=g.indexOf(b);L!=-1&&g.splice(L,1)}}this.session.selectionMarkerCount=g.length},this.$onAddRange=function(v){this.addSelectionMarker(v.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(v){this.removeSelectionMarkers(v.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(v){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(v){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(v){var g=v.command,f=v.editor;if(f.multiSelect){if(g.multiSelectAction)g.multiSelectAction=="forEach"?b=f.forEachSelection(g,v.args):g.multiSelectAction=="forEachLine"?b=f.forEachSelection(g,v.args,!0):g.multiSelectAction=="single"?(f.exitMultiSelectMode(),b=g.exec(f,v.args||{})):b=g.multiSelectAction(f,v.args||{});else{var b=g.exec(f,v.args||{});f.multiSelect.addRange(f.multiSelect.toOrientedRange()),f.multiSelect.mergeOverlappingRanges()}return b}},this.forEachSelection=function(v,g,f){if(!this.inVirtualSelectionMode){var b=f&&f.keepOrder,L=f==!0||f&&f.$byLines,M=this.session,$=this.selection,_=$.rangeList,w=(b?$:_).ranges,y;if(!w.length)return v.exec?v.exec(this,g||{}):v(this,g||{});var d=$._eventRegistry;$._eventRegistry={};var u=new C(M);this.inVirtualSelectionMode=!0;for(var p=w.length;p--;){if(L)for(;p>0&&w[p].start.row==w[p-1].end.row;)p--;u.fromOrientedRange(w[p]),u.index=p,this.selection=M.selection=u;var S=v.exec?v.exec(this,g||{}):v(this,g||{});!y&&S!==void 0&&(y=S),u.toOrientedRange(w[p])}u.detach(),this.selection=M.selection=$,this.inVirtualSelectionMode=!1,$._eventRegistry=d,$.mergeOverlappingRanges(),$.ranges[0]&&$.fromOrientedRange($.ranges[0]);var T=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),T&&T.from==T.to&&this.renderer.animateScrolling(T.from),y}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var v="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var g=this.multiSelect.rangeList.ranges,f=[],b=0;b<g.length;b++)f.push(this.session.getTextRange(g[b]));var L=this.session.getDocument().getNewLineCharacter();v=f.join(L),v.length==(f.length-1)*L.length&&(v="")}else this.selection.isEmpty()||(v=this.session.getTextRange(this.getSelectionRange()));return v},this.$checkMultiselectChange=function(v,g){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var f=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&g==this.multiSelect.anchor)return;var b=g==this.multiSelect.anchor?f.cursor==f.start?f.end:f.start:f.cursor;b.row!=g.row||this.session.$clipPositionToDocument(b.row,b.column).column!=g.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(v,g,f){if(g=g||{},g.needle=v||g.needle,g.needle==null){var b=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();g.needle=this.session.getTextRange(b)}this.$search.set(g);var L=this.$search.findAll(this.session);if(!L.length)return 0;var M=this.multiSelect;f||M.toSingleRange(L[0]);for(var $=L.length;$--;)M.addRange(L[$],!0);return b&&M.rangeList.rangeAtPoint(b.start)&&M.addRange(b,!0),L.length},this.selectMoreLines=function(v,g){var f=this.selection.toOrientedRange(),b=f.cursor==f.end,L=this.session.documentToScreenPosition(f.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var M=this.session.screenToDocumentPosition(L.row+v,L.column);if(f.isEmpty())var _=M;else var $=this.session.documentToScreenPosition(b?f.end:f.start),_=this.session.screenToDocumentPosition($.row+v,$.column);if(b){var w=A.fromPoints(M,_);w.cursor=w.start}else{var w=A.fromPoints(_,M);w.cursor=w.end}if(w.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(f);else if(g)var y=f.cursor;this.selection.addRange(w),y&&this.selection.substractPoint(y)},this.transposeSelections=function(v){for(var g=this.session,f=g.multiSelect,b=f.ranges,L=b.length;L--;){var M=b[L];if(M.isEmpty()){var $=g.getWordRange(M.start.row,M.start.column);M.start.row=$.start.row,M.start.column=$.start.column,M.end.row=$.end.row,M.end.column=$.end.column}}f.mergeOverlappingRanges();for(var _=[],L=b.length;L--;){var M=b[L];_.unshift(g.getTextRange(M))}v<0?_.unshift(_.pop()):_.push(_.shift());for(var L=b.length;L--;){var M=b[L],w=M.clone();g.replace(M,_[L]),M.start.row=w.start.row,M.start.column=w.start.column}f.fromOrientedRange(f.ranges[0])},this.selectMore=function(v,g,f){var b=this.session,L=b.multiSelect,M=L.toOrientedRange();if(!(M.isEmpty()&&(M=b.getWordRange(M.start.row,M.start.column),M.cursor=v==-1?M.start:M.end,this.multiSelect.addRange(M),f))){var $=b.getTextRange(M),_=e(b,$,v);_&&(_.cursor=v==-1?_.start:_.end,this.session.unfold(_),this.multiSelect.addRange(_),this.renderer.scrollCursorIntoView(null,.5)),g&&this.multiSelect.substractPoint(M.cursor)}},this.alignCursors=function(){var v=this.session,g=v.multiSelect,f=g.ranges,b=-1,L=f.filter(function(E){if(E.cursor.row==b)return!0;b=E.cursor.row});if(!f.length||L.length==f.length-1){var M=this.selection.getRange(),$=M.start.row,_=M.end.row,w=$==_;if(w){var y=this.session.getLength(),d;do d=this.session.getLine(_);while(/[=:]/.test(d)&&++_<y);do d=this.session.getLine($);while(/[=:]/.test(d)&&--$>0);$<0&&($=0),_>=y&&(_=y-1)}var u=this.session.removeFullLines($,_);u=this.$reAlignText(u,w),this.session.insert({row:$,column:0},u.join(`
|
|
951
|
-
`)+`
|
|
952
|
-
`),w||(M.start.column=0,M.end.column=u[u.length-1].length),this.selection.setRange(M)}else{L.forEach(function(E){g.substractPoint(E.cursor)});var p=0,S=1/0,T=f.map(function(E){var I=E.cursor,D=v.getLine(I.row),H=D.substr(I.column).search(/\S/g);return H==-1&&(H=0),I.column>p&&(p=I.column),H<S&&(S=H),H});f.forEach(function(E,I){var D=E.cursor,H=p-D.column,O=T[I]-S;H>O?v.insert(D,r.stringRepeat(" ",H-O)):v.remove(new A(D.row,D.column,D.row,D.column-H+O)),E.start.column=E.end.column=p,E.start.row=E.end.row=D.row,E.cursor=E.end}),g.fromOrientedRange(f[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(v,g){var f=!0,b=!0,L,M,$;return v.map(function(u){var p=u.match(/(\s*)(.*?)(\s*)([=:].*)/);return p?L==null?(L=p[1].length,M=p[2].length,$=p[3].length,p):(L+M+$!=p[1].length+p[2].length+p[3].length&&(b=!1),L!=p[1].length&&(f=!1),L>p[1].length&&(L=p[1].length),M<p[2].length&&(M=p[2].length),$>p[3].length&&($=p[3].length),p):[u]}).map(g?w:f?b?y:w:d);function _(u){return r.stringRepeat(" ",u)}function w(u){return u[2]?_(L)+u[2]+_(M-u[2].length+$)+u[4].replace(/^([=:])\s+/,"$1 "):u[0]}function y(u){return u[2]?_(L+M-u[2].length)+u[2]+_($)+u[4].replace(/^([=:])\s+/,"$1 "):u[0]}function d(u){return u[2]?_(L)+u[2]+_($)+u[4].replace(/^([=:])\s+/,"$1 "):u[0]}}}).call(s.prototype);function l(v,g){return v.row==g.row&&v.column==g.column}x.onSessionChange=function(v){var g=v.session;g&&!g.multiSelect&&(g.$selectionMarkers=[],g.selection.$initRangeList(),g.multiSelect=g.selection),this.multiSelect=g&&g.multiSelect;var f=v.oldSession;f&&(f.multiSelect.off("addRange",this.$onAddRange),f.multiSelect.off("removeRange",this.$onRemoveRange),f.multiSelect.off("multiSelect",this.$onMultiSelect),f.multiSelect.off("singleSelect",this.$onSingleSelect),f.multiSelect.lead.off("change",this.$checkMultiselectChange),f.multiSelect.anchor.off("change",this.$checkMultiselectChange)),g&&(g.multiSelect.on("addRange",this.$onAddRange),g.multiSelect.on("removeRange",this.$onRemoveRange),g.multiSelect.on("multiSelect",this.$onMultiSelect),g.multiSelect.on("singleSelect",this.$onSingleSelect),g.multiSelect.lead.on("change",this.$checkMultiselectChange),g.multiSelect.anchor.on("change",this.$checkMultiselectChange)),g&&this.inMultiSelectMode!=g.selection.inMultiSelectMode&&(g.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function c(v){v.$multiselectOnSessionChange||(v.$onAddRange=v.$onAddRange.bind(v),v.$onRemoveRange=v.$onRemoveRange.bind(v),v.$onMultiSelect=v.$onMultiSelect.bind(v),v.$onSingleSelect=v.$onSingleSelect.bind(v),v.$multiselectOnSessionChange=x.onSessionChange.bind(v),v.$checkMultiselectChange=v.$checkMultiselectChange.bind(v),v.$multiselectOnSessionChange(v),v.on("changeSession",v.$multiselectOnSessionChange),v.on("mousedown",a),v.commands.addCommands(o.defaultCommands),m(v))}function m(v){if(!v.textInput)return;var g=v.textInput.getElement(),f=!1;h.addListener(g,"keydown",function(L){var M=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);v.$blockSelectEnabled&&M?f||(v.renderer.setMouseCursor("crosshair"),f=!0):f&&b()},v),h.addListener(g,"keyup",b,v),h.addListener(g,"blur",b,v);function b(L){f&&(v.renderer.setMouseCursor(""),f=!1)}}x.MultiSelect=c,R("./config").defineOptions(s.prototype,"editor",{enableMultiselect:{set:function(v){c(this),v?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(v){this.$blockSelectEnabled=v},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(R,x,P){var k=R("../../range").Range,A=x.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(C,a,h){var r=C.getLine(h);return this.foldingStartMarker.test(r)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(C,a,h){return null},this.indentationBlock=function(C,a,h){var r=/\S/,o=C.getLine(a),i=o.search(r);if(i!=-1){for(var t=h||o.length,e=C.getLength(),n=a,s=a;++a<e;){var l=C.getLine(a).search(r);if(l!=-1){if(l<=i){var c=C.getTokenAt(a,0);if(!c||c.type!=="string")break}s=a}}if(s>n){var m=C.getLine(s).length;return new k(n,t,s,m)}}},this.openingBracketBlock=function(C,a,h,r,o){var i={row:h,column:r+1},t=C.$findClosingBracket(a,i,o);if(t){var e=C.foldWidgets[t.row];return e==null&&(e=C.getFoldWidget(t.row)),e=="start"&&t.row>i.row&&(t.row--,t.column=C.getLine(t.row).length),k.fromPoints(i,t)}},this.closingBracketBlock=function(C,a,h,r,o){var i={row:h,column:r},t=C.$findOpeningBracket(a,i);if(t)return t.column++,i.column--,k.fromPoints(t,i)}}).call(A.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(R,x,P){var k=R("../lib/dom"),A=R("../range").Range,C=R("../config").nls;function a(r,o,i){for(var t=0,e=r.length-1;t<=e;){var n=t+e>>1,s=i(o,r[n]);if(s>0)t=n+1;else if(s<0)e=n-1;else return n}return-(t+1)}function h(r,o,i){var t=r.getAnnotations().sort(A.comparePoints);if(t.length){var e=a(t,{row:o,column:-1},A.comparePoints);e<0&&(e=-e-1),e>=t.length?e=i>0?0:t.length-1:e===0&&i<0&&(e=t.length-1);var n=t[e];if(!(!n||!i)){if(n.row===o){do n=t[e+=i];while(n&&n.row===o);if(!n)return t.slice()}var s=[];o=n.row;do s[i<0?"unshift":"push"](n),n=t[e+=i];while(n&&n.row==o);return s.length&&s}}}x.showErrorMarker=function(r,o){var i=r.session,t=r.getCursorPosition(),e=t.row,n=i.widgetManager.getWidgetsAtRow(e).filter(function(L){return L.type=="errorMarker"})[0];n?n.destroy():e-=o;var s=h(i,e,o),l;if(s){var c=s[0];t.column=(c.pos&&typeof c.column!="number"?c.pos.sc:c.column)||0,t.row=c.row,l=r.renderer.$gutterLayer.$annotations[t.row]}else{if(n)return;l={displayText:[C("error-marker.good-state","Looks good!")],className:"ace_ok"}}r.session.unfold(t.row),r.selection.moveToPosition(t);var m={row:t.row,fixedWidth:!0,coverGutter:!0,el:k.createElement("div"),type:"errorMarker"},v=m.el.appendChild(k.createElement("div")),g=m.el.appendChild(k.createElement("div"));g.className="error_widget_arrow "+l.className;var f=r.renderer.$cursorLayer.getPixelPosition(t).left;g.style.left=f+r.renderer.gutterWidth-5+"px",m.el.className="error_widget_wrapper",v.className="error_widget "+l.className,l.displayText.forEach(function(L,M){v.appendChild(k.createTextNode(L)),M<l.displayText.length-1&&v.appendChild(k.createElement("br"))}),v.appendChild(k.createElement("div"));var b=function(L,M,$){if(M===0&&($==="esc"||$==="return"))return m.destroy(),{command:"null"}};m.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(b),i.widgetManager.removeLineWidget(m),r.off("changeSelection",m.destroy),r.off("changeSession",m.destroy),r.off("mouseup",m.destroy),r.off("change",m.destroy))},r.keyBinding.addKeyboardHandler(b),r.on("changeSelection",m.destroy),r.on("changeSession",m.destroy),r.on("mouseup",m.destroy),r.on("change",m.destroy),r.session.widgetManager.addLineWidget(m),m.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:m.el.offsetHeight})},k.importCssString(`
|
|
953
|
-
.error_widget_wrapper {
|
|
954
|
-
background: inherit;
|
|
955
|
-
color: inherit;
|
|
956
|
-
border:none
|
|
957
|
-
}
|
|
958
|
-
.error_widget {
|
|
959
|
-
border-top: solid 2px;
|
|
960
|
-
border-bottom: solid 2px;
|
|
961
|
-
margin: 5px 0;
|
|
962
|
-
padding: 10px 40px;
|
|
963
|
-
white-space: pre-wrap;
|
|
964
|
-
}
|
|
965
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
966
|
-
border-color: #ff5a5a
|
|
967
|
-
}
|
|
968
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
969
|
-
border-color: #F1D817
|
|
970
|
-
}
|
|
971
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
972
|
-
border-color: #5a5a5a
|
|
973
|
-
}
|
|
974
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
975
|
-
border-color: #5aaa5a
|
|
976
|
-
}
|
|
977
|
-
.error_widget_arrow {
|
|
978
|
-
position: absolute;
|
|
979
|
-
border: solid 5px;
|
|
980
|
-
border-top-color: transparent!important;
|
|
981
|
-
border-right-color: transparent!important;
|
|
982
|
-
border-left-color: transparent!important;
|
|
983
|
-
top: -5px;
|
|
984
|
-
}
|
|
985
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(R,x,P){R("./loader_build")(x);var k=R("./lib/dom"),A=R("./range").Range,C=R("./editor").Editor,a=R("./edit_session").EditSession,h=R("./undomanager").UndoManager,r=R("./virtual_renderer").VirtualRenderer;R("./worker/worker_client"),R("./keyboard/hash_handler"),R("./placeholder"),R("./multi_select"),R("./mode/folding/fold_mode"),R("./theme/textmate"),R("./ext/error_marker"),x.config=R("./config"),x.edit=function(i,t){if(typeof i=="string"){var e=i;if(i=document.getElementById(e),!i)throw new Error("ace.edit can't find div #"+e)}if(i&&i.env&&i.env.editor instanceof C)return i.env.editor;var n="";if(i&&/input|textarea/i.test(i.tagName)){var s=i;n=s.value,i=k.createElement("pre"),s.parentNode.replaceChild(i,s)}else i&&(n=i.textContent,i.innerHTML="");var l=x.createEditSession(n),c=new C(new r(i),l,t),m={document:l,editor:c,onResize:c.resize.bind(c,null)};return s&&(m.textarea=s),c.on("destroy",function(){m.editor.container.env=null}),c.container.env=c.env=m,c},x.createEditSession=function(i,t){var e=new a(i,t);return e.setUndoManager(new h),e},x.Range=A,x.Editor=C,x.EditSession=a,x.UndoManager=h,x.VirtualRenderer=r;var o=x.config.version;x.version=o}),function(){ace.require(["ace/ace"],function(R){R&&(R.config.init(!0),R.define=ace.define);var x=function(){return this}();!x&&typeof window<"u"&&(x=window),!x&&typeof self<"u"&&(x=self),x.ace||(x.ace=R);for(var P in R)R.hasOwnProperty(P)&&(x.ace[P]=R[P]);x.ace.default=x.ace,pe&&(pe.exports=x.ace)})}()})(ye);var Ce=ye.exports;export{Ce as a};
|