905 lines
447 KiB
JavaScript
905 lines
447 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[74981],{52027:function(ve){var U=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},X=-1,E=1,L=0;U.Diff=function(k,v){return[k,v]},U.prototype.diff_main=function(k,v,p,h){typeof h=="undefined"&&(this.Diff_Timeout<=0?h=Number.MAX_VALUE:h=new Date().getTime()+this.Diff_Timeout*1e3);var o=h;if(k==null||v==null)throw new Error("Null input. (diff_main)");if(k==v)return k?[new U.Diff(L,k)]:[];typeof p=="undefined"&&(p=!0);var a=p,t=this.diff_commonPrefix(k,v),e=k.substring(0,t);k=k.substring(t),v=v.substring(t),t=this.diff_commonSuffix(k,v);var i=k.substring(k.length-t);k=k.substring(0,k.length-t),v=v.substring(0,v.length-t);var n=this.diff_compute_(k,v,a,o);return e&&n.unshift(new U.Diff(L,e)),i&&n.push(new U.Diff(L,i)),this.diff_cleanupMerge(n),n},U.prototype.diff_compute_=function(k,v,p,h){var o;if(!k)return[new U.Diff(E,v)];if(!v)return[new U.Diff(X,k)];var a=k.length>v.length?k:v,t=k.length>v.length?v:k,e=a.indexOf(t);if(e!=-1)return o=[new U.Diff(E,a.substring(0,e)),new U.Diff(L,t),new U.Diff(E,a.substring(e+t.length))],k.length>v.length&&(o[0][0]=o[2][0]=X),o;if(t.length==1)return[new U.Diff(X,k),new U.Diff(E,v)];var i=this.diff_halfMatch_(k,v);if(i){var n=i[0],r=i[1],l=i[2],c=i[3],d=i[4],y=this.diff_main(n,l,p,h),$=this.diff_main(r,c,p,h);return y.concat([new U.Diff(L,d)],$)}return p&&k.length>100&&v.length>100?this.diff_lineMode_(k,v,h):this.diff_bisect_(k,v,h)},U.prototype.diff_lineMode_=function(k,v,p){var h=this.diff_linesToChars_(k,v);k=h.chars1,v=h.chars2;var o=h.lineArray,a=this.diff_main(k,v,!1,p);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new U.Diff(L,""));for(var t=0,e=0,i=0,n="",r="";t<a.length;){switch(a[t][0]){case E:i++,r+=a[t][1];break;case X:e++,n+=a[t][1];break;case L:if(e>=1&&i>=1){a.splice(t-e-i,e+i),t=t-e-i;for(var l=this.diff_main(n,r,!1,p),c=l.length-1;c>=0;c--)a.splice(t,0,l[c]);t=t+l.length}i=0,e=0,n="",r="";break}t++}return a.pop(),a},U.prototype.diff_bisect_=function(k,v,p){for(var h=k.length,o=v.length,a=Math.ceil((h+o)/2),t=a,e=2*a,i=new Array(e),n=new Array(e),r=0;r<e;r++)i[r]=-1,n[r]=-1;i[t+1]=0,n[t+1]=0;for(var l=h-o,c=l%2!=0,d=0,y=0,$=0,b=0,w=0;w<a&&!(new Date().getTime()>p);w++){for(var S=-w+d;S<=w-y;S+=2){var g=t+S,f;S==-w||S!=w&&i[g-1]<i[g+1]?f=i[g+1]:f=i[g-1]+1;for(var A=f-S;f<h&&A<o&&k.charAt(f)==v.charAt(A);)f++,A++;if(i[g]=f,f>h)y+=2;else if(A>o)d+=2;else if(c){var s=t+l-S;if(s>=0&&s<e&&n[s]!=-1){var u=h-n[s];if(f>=u)return this.diff_bisectSplit_(k,v,f,A,p)}}}for(var m=-w+$;m<=w-b;m+=2){var s=t+m,u;m==-w||m!=w&&n[s-1]<n[s+1]?u=n[s+1]:u=n[s-1]+1;for(var C=u-m;u<h&&C<o&&k.charAt(h-u-1)==v.charAt(o-C-1);)u++,C++;if(n[s]=u,u>h)b+=2;else if(C>o)$+=2;else if(!c){var g=t+l-m;if(g>=0&&g<e&&i[g]!=-1){var f=i[g],A=t+f-g;if(u=h-u,f>=u)return this.diff_bisectSplit_(k,v,f,A,p)}}}}return[new U.Diff(X,k),new U.Diff(E,v)]},U.prototype.diff_bisectSplit_=function(k,v,p,h,o){var a=k.substring(0,p),t=v.substring(0,h),e=k.substring(p),i=v.substring(h),n=this.diff_main(a,t,!1,o),r=this.diff_main(e,i,!1,o);return n.concat(r)},U.prototype.diff_linesToChars_=function(k,v){var p=[],h={};p[0]="";function o(i){for(var n="",r=0,l=-1,c=p.length;l<i.length-1;){l=i.indexOf(`
|
||
|
`,r),l==-1&&(l=i.length-1);var d=i.substring(r,l+1);(h.hasOwnProperty?h.hasOwnProperty(d):h[d]!==void 0)?n+=String.fromCharCode(h[d]):(c==a&&(d=i.substring(r),l=i.length),n+=String.fromCharCode(c),h[d]=c,p[c++]=d),r=l+1}return n}var a=4e4,t=o(k);a=65535;var e=o(v);return{chars1:t,chars2:e,lineArray:p}},U.prototype.diff_charsToLines_=function(k,v){for(var p=0;p<k.length;p++){for(var h=k[p][1],o=[],a=0;a<h.length;a++)o[a]=v[h.charCodeAt(a)];k[p][1]=o.join("")}},U.prototype.diff_commonPrefix=function(k,v){if(!k||!v||k.charAt(0)!=v.charAt(0))return 0;for(var p=0,h=Math.min(k.length,v.length),o=h,a=0;p<o;)k.substring(a,o)==v.substring(a,o)?(p=o,a=p):h=o,o=Math.floor((h-p)/2+p);return o},U.prototype.diff_commonSuffix=function(k,v){if(!k||!v||k.charAt(k.length-1)!=v.charAt(v.length-1))return 0;for(var p=0,h=Math.min(k.length,v.length),o=h,a=0;p<o;)k.substring(k.length-o,k.length-a)==v.substring(v.length-o,v.length-a)?(p=o,a=p):h=o,o=Math.floor((h-p)/2+p);return o},U.prototype.diff_commonOverlap_=function(k,v){var p=k.length,h=v.length;if(p==0||h==0)return 0;p>h?k=k.substring(p-h):p<h&&(v=v.substring(0,p));var o=Math.min(p,h);if(k==v)return o;for(var a=0,t=1;;){var e=k.substring(o-t),i=v.indexOf(e);if(i==-1)return a;t+=i,(i==0||k.substring(o-t)==v.substring(0,t))&&(a=t,t++)}},U.prototype.diff_halfMatch_=function(k,v){if(this.Diff_Timeout<=0)return null;var p=k.length>v.length?k:v,h=k.length>v.length?v:k;if(p.length<4||h.length*2<p.length)return null;var o=this;function a(y,$,b){for(var w=y.substring(b,b+Math.floor(y.length/4)),S=-1,g="",f,A,s,u;(S=$.indexOf(w,S+1))!=-1;){var m=o.diff_commonPrefix(y.substring(b),$.substring(S)),C=o.diff_commonSuffix(y.substring(0,b),$.substring(0,S));g.length<C+m&&(g=$.substring(S-C,S)+$.substring(S,S+m),f=y.substring(0,b-C),A=y.substring(b+m),s=$.substring(0,S-C),u=$.substring(S+m))}return g.length*2>=y.length?[f,A,s,u,g]:null}var t=a(p,h,Math.ceil(p.length/4)),e=a(p,h,Math.ceil(p.length/2)),i;if(!t&&!e)return null;e?t?i=t[4].length>e[4].length?t:e:i=e:i=t;var n,r,l,c;k.length>v.length?(n=i[0],r=i[1],l=i[2],c=i[3]):(l=i[0],c=i[1],n=i[2],r=i[3]);var d=i[4];return[n,r,l,c,d]},U.prototype.diff_cleanupSemantic=function(k){for(var v=!1,p=[],h=0,o=null,a=0,t=0,e=0,i=0,n=0;a<k.length;)k[a][0]==L?(p[h++]=a,t=i,e=n,i=0,n=0,o=k[a][1]):(k[a][0]==E?i+=k[a][1].length:n+=k[a][1].length,o&&o.length<=Math.max(t,e)&&o.length<=Math.max(i,n)&&(k.splice(p[h-1],0,new U.Diff(X,o)),k[p[h-1]+1][0]=E,h--,h--,a=h>0?p[h-1]:-1,t=0,e=0,i=0,n=0,o=null,v=!0)),a++;for(v&&this.diff_cleanupMerge(k),this.diff_cleanupSemanticLossless(k),a=1;a<k.length;){if(k[a-1][0]==X&&k[a][0]==E){var r=k[a-1][1],l=k[a][1],c=this.diff_commonOverlap_(r,l),d=this.diff_commonOverlap_(l,r);c>=d?(c>=r.length/2||c>=l.length/2)&&(k.splice(a,0,new U.Diff(L,l.substring(0,c))),k[a-1][1]=r.substring(0,r.length-c),k[a+1][1]=l.substring(c),a++):(d>=r.length/2||d>=l.length/2)&&(k.splice(a,0,new U.Diff(L,r.substring(0,d))),k[a-1][0]=E,k[a-1][1]=l.substring(0,l.length-d),k[a+1][0]=X,k[a+1][1]=r.substring(d),a++),a++}a++}},U.prototype.diff_cleanupSemanticLossless=function(k){function v(d,y){if(!d||!y)return 6;var $=d.charAt(d.length-1),b=y.charAt(0),w=$.match(U.nonAlphaNumericRegex_),S=b.match(U.nonAlphaNumericRegex_),g=w&&$.match(U.whitespaceRegex_),f=S&&b.match(U.whitespaceRegex_),A=g&&$.match(U.linebreakRegex_),s=f&&b.match(U.linebreakRegex_),u=A&&d.match(U.blanklineEndRegex_),m=s&&y.match(U.blanklineStartRegex_);return u||m?5:A||s?4:w&&!g&&f?3:g||f?2:w||S?1:0}for(var p=1;p<k.length-1;){if(k[p-1][0]==L&&k[p+1][0]==L){var h=k[p-1][1],o=k[p][1],a=k[p+1][1],t=this.diff_commonSuffix(h,o);if(t){var e=o.substring(o.length-t);h=h.substring(0,h.length-t),o=e+o.substring(0,o.length-t),a=e+a}for(var i=h,n=o,r=a,l=v(h,o)+v(o,a);o.charAt(0)===a.charAt(0);){h+=o.charAt(0),o=o.substring(1)+a.charAt(0),a=a.substring(1);var c=v(h,o)+v(o,a);c>=l&&(l=c,i=h,n=o,r=a)}k[p-1][1]!=i&&(i?k[p-1][1]=i:(k.splice(p-1,1),p--),k[p][1]=n,r?k[p+1][1]=r:(k.splice(p+1,1),p--))}p++}},U.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,U.whitespaceRegex_=/\s/,U.linebreakRegex_=/[\r\n]/,U.blanklineEndRegex_=
|
||
|
`),h=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;h<p.length;){var a=p[h].match(o);if(!a)throw new Error("Invalid patch string: "+p[h]);var t=new U.patch_obj;for(v.push(t),t.start1=parseInt(a[1],10),a[2]===""?(t.start1--,t.length1=1):a[2]=="0"?t.length1=0:(t.start1--,t.length1=parseInt(a[2],10)),t.start2=parseInt(a[3],10),a[4]===""?(t.start2--,t.length2=1):a[4]=="0"?t.length2=0:(t.start2--,t.length2=parseInt(a[4],10)),h++;h<p.length;){var e=p[h].charAt(0);try{var i=decodeURI(p[h].substring(1))}catch(n){throw new Error("Illegal escape in patch_fromText: "+i)}if(e=="-")t.diffs.push(new U.Diff(X,i));else if(e=="+")t.diffs.push(new U.Diff(E,i));else if(e==" ")t.diffs.push(new U.Diff(L,i));else{if(e=="@")break;if(e!=="")throw new Error('Invalid patch mode "'+e+'" in: '+i)}h++}}return v},U.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},U.patch_obj.prototype.toString=function(){var k,v;this.length1===0?k=this.start1+",0":this.length1==1?k=this.start1+1:k=this.start1+1+","+this.length1,this.length2===0?v=this.start2+",0":this.length2==1?v=this.start2+1:v=this.start2+1+","+this.length2;for(var p=["@@ -"+k+" +"+v+` @@
|
||
|
`],h,o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case E:h="+";break;case X:h="-";break;case L:h=" ";break}p[o+1]=h+encodeURI(this.diffs[o][1])+`
|
||
|
`}return p.join("").replace(/%20/g," ")},ve.exports=U,ve.exports.diff_match_patch=U,ve.exports.DIFF_DELETE=X,ve.exports.DIFF_INSERT=E,ve.exports.DIFF_EQUAL=L},29208:function(ve,U,X){var E="Expected a function",L="__lodash_hash_undefined__",k=1/0,v="[object Function]",p="[object GeneratorFunction]",h="[object Symbol]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,t=/^\./,e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/[\\^$.*+?()[\]{}|]/g,n=/\\(\\)?/g,r=/^\[object .+?Constructor\]$/,l=typeof X.g=="object"&&X.g&&X.g.Object===Object&&X.g,c=typeof self=="object"&&self&&self.Object===Object&&self,d=l||c||Function("return this")();function y(H,K){return H==null?void 0:H[K]}function $(H){var K=!1;if(H!=null&&typeof H.toString!="function")try{K=!!(H+"")}catch(ne){}return K}var b=Array.prototype,w=Function.prototype,S=Object.prototype,g=d["__core-js_shared__"],f=function(){var H=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),A=w.toString,s=S.hasOwnProperty,u=S.toString,m=RegExp("^"+A.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=d.Symbol,_=b.splice,M=te(d,"Map"),R=te(Object,"create"),F=C?C.prototype:void 0,I=F?F.toString:void 0;function x(H){var K=-1,ne=H?H.length:0;for(this.clear();++K<ne;){var we=H[K];this.set(we[0],we[1])}}function B(){this.__data__=R?R(null):{}}function O(H){return this.has(H)&&delete this.__data__[H]}function P(H){var K=this.__data__;if(R){var ne=K[H];return ne===L?void 0:ne}return s.call(K,H)?K[H]:void 0}function W(H){var K=this.__data__;return R?K[H]!==void 0:s.call(K,H)}function V(H,K){var ne=this.__data__;return ne[H]=R&&K===void 0?L:K,this}x.prototype.clear=B,x.prototype.delete=O,x.prototype.get=P,x.prototype.has=W,x.prototype.set=V;function N(H){var K=-1,ne=H?H.length:0;for(this.clear();++K<ne;){var we=H[K];this.set(we[0],we[1])}}function re(){this.__data__=[]}function Z(H){var K=this.__data__,ne=fe(K,H);if(ne<0)return!1;var we=K.length-1;return ne==we?K.pop():_.call(K,ne,1),!0}function q(H){var K=this.__data__,ne=fe(K,H);return ne<0?void 0:K[ne][1]}function ie(H){return fe(this.__data__,H)>-1}function J(H,K){var ne=this.__data__,we=fe(ne,H);return we<0?ne.push([H,K]):ne[we][1]=K,this}N.prototype.clear=re,N.prototype.delete=Z,N.prototype.get=q,N.prototype.has=ie,N.prototype.set=J;function ee(H){var K=-1,ne=H?H.length:0;for(this.clear();++K<ne;){var we=H[K];this.set(we[0],we[1])}}function j(){this.__data__={hash:new x,map:new(M||N),string:new x}}function oe(H){return Y(this,H).delete(H)}function ce(H){return Y(this,H).get(H)}function ue(H){return Y(this,H).has(H)}function se(H,K){return Y(this,H).set(H,K),this}ee.prototype.clear=j,ee.prototype.delete=oe,ee.prototype.get=ce,ee.prototype.has=ue,ee.prototype.set=se;function fe(H,K){for(var ne=H.length;ne--;)if(ke(H[ne][0],K))return ne;return-1}function Le(H,K){K=he(K,H)?[K]:z(K);for(var ne=0,we=K.length;H!=null&&ne<we;)H=H[pe(K[ne++])];return ne&&ne==we?H:void 0}function Re(H){if(!Je(H)||be(H))return!1;var K=Ke(H)||$(H)?m:r;return K.test(ge(H))}function Ee(H){if(typeof H=="string")return H;if(Ye(H))return I?I.call(H):"";var K=H+"";return K=="0"&&1/H==-k?"-0":K}function z(H){return Ie(H)?H:me(H)}function Y(H,K){var ne=H.__data__;return de(K)?ne[typeof K=="string"?"string":"hash"]:ne.map}function te(H,K){var ne=y(H,K);return Re(ne)?ne:void 0}function he(H,K){if(Ie(H))return!1;var ne=typeof H;return ne=="number"||ne=="symbol"||ne=="boolean"||H==null||Ye(H)?!0:a.test(H)||!o.test(H)||K!=null&&H in Object(K)}function de(H){var K=typeof H;return K=="string"||K=="number"||K=="symbol"||K=="boolean"?H!=="__proto__":H===null}function be(H){return!!f&&f in H}var me=ae(function(H){H=tt(H);var K=[];return t.test(H)&&K.push(""),H.replace(e,function(ne,we,De,Oe){K.push(De?Oe.replace(n,"$1"):we||ne)}),K});function pe(H){if(typeof H=="string"||Ye(H))return H;var K=H+"";return K=="0"&&1/H==-k?"-0":K}function ge(H){if(H!=null){try{return A.call(H)}catch(K){}try{return H+""}catch(K){}}return""}function ae(H,K){i
|
||
|
`).length-1;if(c.length!==0){var y=c[0],$=c[c.length-1],b=0;switch(l){case e.DIFF_EQUAL:n.left+=d,n.right+=d;break;case e.DIFF_DELETE:y===`
|
||
|
`&&(n.left++,d--),b=d,b===0&&i.right.push({startLine:n.right,endLine:n.right}),$===`
|
||
|
`&&(b-=1),i.left.push({startLine:n.left,endLine:n.left+b}),n.left+=d;break;case e.DIFF_INSERT:y===`
|
||
|
`&&(n.right++,d--),b=d,b===0&&i.left.push({startLine:n.left,endLine:n.left}),$===`
|
||
|
`&&(b-=1),i.right.push({startLine:n.right,endLine:n.right+b}),n.right+=d;break;default:throw new Error("Diff type was not defined.")}}}),i},a.prototype.setCodeMarkers=function(t){t===void 0&&(t={left:[],right:[]});for(var e=[],i={left:[],right:[]},n=0;n<t.left.length;n++){var r={startRow:t.left[n].startLine-1,endRow:t.left[n].endLine,type:"text",className:"codeMarker"};i.left.push(r)}for(var n=0;n<t.right.length;n++){var r={startRow:t.right[n].startLine-1,endRow:t.right[n].endLine,type:"text",className:"codeMarker"};i.right.push(r)}return e[0]=i.left,e[1]=i.right,e},a.prototype.render=function(){var t=this.diff();return k.createElement(v.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:t})},a.propTypes={cursorStart:L.number,editorProps:L.object,enableBasicAutocompletion:L.bool,enableLiveAutocompletion:L.bool,focus:L.bool,fontSize:L.number,height:L.string,highlightActiveLine:L.bool,maxLines:L.number,minLines:L.number,mode:L.string,name:L.string,className:L.string,onLoad:L.func,onPaste:L.func,onScroll:L.func,onChange:L.func,orientation:L.string,readOnly:L.bool,scrollMargin:L.array,setOptions:L.object,showGutter:L.bool,showPrintMargin:L.bool,splits:L.number,style:L.object,tabSize:L.number,theme:L.string,value:L.array,width:L.string,wrapEnabled:L.bool},a.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},a}(k.Component);U.default=h},1048:function(ve,U,X){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getAceInstance=U.debounce=U.editorEvents=U.editorOptions=void 0;var E=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];U.editorOptions=E;var L=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];U.editorEvents=L;var k=function(){var p;return typeof window=="undefined"?(X.g.window={},p=X(36547),delete X.g.window):window.ace?(p=window.ace,p.acequire=window.ace.require||window.ace.acequire):p=X(36547),p};U.getAceInstance=k;var v=function(p,h){var o=null;return function(){var a=this,t=arguments;clearTimeout(o),o=setTimeout(function(){p.apply(a,t)},h)}};U.debounce=v},74981:function(ve,U,X){"use strict";var E;E={value:!0},E=E=void 0;var L=X(93946),k=X(63532);E=k.default;var v=X(88663);E=v.default,U.ZP=L.default},88663:function(ve,U,X){"use strict";var E=this&&this.__extends||function(){var n=function(r,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(c[y]=d[y])},n(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(r,l);function c(){this.
|
||
|
/*# sourceURL=ace/css/`+n+" */");var d=L.createElement("style");d.appendChild(c.createTextNode(i)),n&&(d.id=n),l==c&&(l=L.getDocumentHead(c)),l.insertBefore(d,l.firstChild)}}}if(L.importCssString=t,L.importCssStylsheet=function(i,n){L.buildDom(["link",{rel:"stylesheet",href:i}],L.getDocumentHead(n))},L.scrollbarWidth=function(i){var n=L.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=L.createElement("ace_outer"),l=r.style;l.position="absolute",l.left="-10000px",l.overflow="hidden",l.width="200px",l.minWidth="0px",l.height="150px",l.display="block",r.appendChild(n);var c=i&&i.documentElement||document&&document.documentElement;if(!c)return 0;c.appendChild(r);var d=n.offsetWidth;l.overflow="scroll";var y=n.offsetWidth;return d===y&&(y=r.clientWidth),c.removeChild(r),d-y},L.computedStyle=function(i,n){return window.getComputedStyle(i,"")||{}},L.setStyle=function(i,n,r){i[n]!==r&&(i[n]=r)},L.HAS_CSS_ANIMATION=!1,L.HAS_CSS_TRANSFORMS=!1,L.HI_DPI=v.isWin?typeof window!="undefined"&&window.devicePixelRatio>=1.5:!0,v.isChromeOS&&(L.HI_DPI=!1),typeof document!="undefined"){var e=document.createElement("div");L.HI_DPI&&e.style.transform!==void 0&&(L.HAS_CSS_TRANSFORMS=!0),!v.isEdge&&typeof e.style.animationName!="undefined"&&(L.HAS_CSS_ANIMATION=!0),e=null}L.HAS_CSS_TRANSFORMS?L.translate=function(i,n,r){i.style.transform="translate("+Math.round(n)+"px, "+Math.round(r)+"px)"}:L.translate=function(i,n,r){i.style.top=Math.round(r)+"px",i.style.left=Math.round(n)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(E,L,k){/*
|
||
|
* based on code from:
|
||
|
*
|
||
|
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||
|
* Available via the MIT or new BSD license.
|
||
|
* see: http://github.com/jrburke/requirejs for details
|
||
|
*/"use strict";var v=E("./dom");L.get=function(p,h){var o=new XMLHttpRequest;o.open("GET",p,!0),o.onreadystatechange=function(){o.readyState===4&&h(o.responseText)},o.send(null)},L.loadScript=function(p,h){var o=v.getDocumentHead(),a=document.createElement("script");a.src=p,o.appendChild(a),a.onload=a.onreadystatechange=function(t,e){(e||!a.readyState||a.readyState=="loaded"||a.readyState=="complete")&&(a=a.onload=a.onreadystatechange=null,e||h())}},L.qualifyURL=function(p){var h=document.createElement("a");return h.href=p,h.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(E,L,k){"use strict";var v={},p=function(){this.propagationStopped=!0},h=function(){this.defaultPrevented=!0};v._emit=v._dispatchEvent=function(o,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[o]||[],e=this._defaultHandlers[o];if(!(!t.length&&!e)){(typeof a!="object"||!a)&&(a={}),a.type||(a.type=o),a.stopPropagation||(a.stopPropagation=p),a.preventDefault||(a.preventDefault=h),t=t.slice();for(var i=0;i<t.length&&(t[i](a,this),!a.propagationStopped);i++);if(e&&!a.defaultPrevented)return e(a,this)}},v._signal=function(o,a){var t=(this._eventRegistry||{})[o];if(!!t){t=t.slice();for(var e=0;e<t.length;e++)t[e](a,this)}},v.once=function(o,a){var t=this;if(this.on(o,function e(){t.off(o,e),a.apply(null,arguments)}),!a)return new Promise(function(e){a=e})},v.setDefaultHandler=function(o,a){var t=this._defaultHandlers;if(t||(t=this._defaultHandlers={_disabled_:{}}),t[o]){var e=t[o],i=t._disabled_[o];i||(t._disabled_[o]=i=[]),i.push(e);var n=i.indexOf(a);n!=-1&&i.splice(n,1)}t[o]=a},v.removeDefaultHandler=function(o,a){var t=this._defaultHandlers;if(!!t){var e=t._disabled_[o];if(t[o]==a)e&&this.setDefaultHandler(o,e.pop());else if(e){var i=e.indexOf(a);i!=-1&&e.splice(i,1)}}},v.on=v.addEventListener=function(o,a,t){this._eventRegistry=this._eventRegistry||{};var e=this._eventRegistry[o];return e||(e=this._eventRegistry[o]=[]),e.indexOf(a)==-1&&e[t?"unshift":"push"](a),a},v.off=v.removeListener=v.removeEventListener=function(o,a){this._eventRegistry=this._eventRegistry||{};var t=this._eventRegistry[o];if(!!t){var e=t.indexOf(a);e!==-1&&t.splice(e,1)}},v.removeAllListeners=function(o){o||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[o]=void 0),this._defaultHandlers&&(this._defaultHandlers[o]=void 0)},L.EventEmitter=v}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(E,L,k){var v=E("./oop"),p=E("./event_emitter").EventEmitter,h={setOptions:function(e){Object.keys(e).forEach(function(i){this.setOption(i,e[i])},this)},getOptions:function(e){var i={};if(e)Array.isArray(e)||(i=e,e=Object.keys(i));else{var n=this.$options;e=Object.keys(n).filter(function(r){return!n[r].hidden})}return e.forEach(function(r){i[r]=this.getOption(r)},this),i},setOption:function(e,i){if(this["$"+e]!==i){var n=this.$options[e];if(!n)return o('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,i);n.handlesSet||(this["$"+e]=i),n&&n.set&&n.set.call(this,i)}},getOption:function(e){var i=this.$options[e];return i?i.forwardTo?this[i.forwardTo]&&this[i.forwardTo].getOption(e):i&&i.get?i.get.call(this):this["$"+e]:o('misspelled option "'+e+'"')}};function o(e){typeof console!="undefined"&&console.warn&&console.warn.apply(console,arguments)}function a(e,i){var n=new Error(e);n.data=i,typeof console=="object"&&console.error&&console.error(n),setTimeout(function(){throw n})}var t=function(){this.$defaultOptions={}};(function(){v.implement(this,p),this.defineOptions=function(e,i,n){return e.$options||(this.$defaultOptions[i]=e.$options={}),Object.keys(n).forEach(function(r){var l=n[r];typeof l=="string"&&(l={forwardTo:l}),l.name||(l.name=r),e.$options[l.name]=l,"initialValue"in l&&(e["$"+l.name]=l.initialValue)}),v.implement(e,h),this},this.resetOptions=function(e){Object.keys(e.$options).forEach(function(i){var n=e.$options[i];"value"in n
|
||
|
background: #f0f0f0;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_print-margin {
|
||
|
width: 1px;
|
||
|
background: #e8e8e8;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_fold {
|
||
|
background-color: #6B72E6;
|
||
|
}
|
||
|
|
||
|
.ace-tm {
|
||
|
background-color: #FFFFFF;
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_cursor {
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_invisible {
|
||
|
color: rgb(191, 191, 191);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_storage,
|
||
|
.ace-tm .ace_keyword {
|
||
|
color: blue;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_constant {
|
||
|
color: rgb(197, 6, 11);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_constant.ace_buildin {
|
||
|
color: rgb(88, 72, 246);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_constant.ace_language {
|
||
|
color: rgb(88, 92, 246);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_constant.ace_library {
|
||
|
color: rgb(6, 150, 14);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_invalid {
|
||
|
background-color: rgba(255, 0, 0, 0.1);
|
||
|
color: red;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_support.ace_function {
|
||
|
color: rgb(60, 76, 114);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_support.ace_constant {
|
||
|
color: rgb(6, 150, 14);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_support.ace_type,
|
||
|
.ace-tm .ace_support.ace_class {
|
||
|
color: rgb(109, 121, 222);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_keyword.ace_operator {
|
||
|
color: rgb(104, 118, 135);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_string {
|
||
|
color: rgb(3, 106, 7);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_comment {
|
||
|
color: rgb(76, 136, 107);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_comment.ace_doc {
|
||
|
color: rgb(0, 102, 255);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_comment.ace_doc.ace_tag {
|
||
|
color: rgb(128, 159, 191);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_constant.ace_numeric {
|
||
|
color: rgb(0, 0, 205);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_variable {
|
||
|
color: rgb(49, 132, 149);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_xml-pe {
|
||
|
color: rgb(104, 104, 91);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_entity.ace_name.ace_function {
|
||
|
color: #0000A2;
|
||
|
}
|
||
|
|
||
|
|
||
|
.ace-tm .ace_heading {
|
||
|
color: rgb(12, 7, 255);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_list {
|
||
|
color:rgb(185, 6, 144);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_meta.ace_tag {
|
||
|
color:rgb(0, 22, 142);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_string.ace_regex {
|
||
|
color: rgb(255, 0, 0)
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_marker-layer .ace_selection {
|
||
|
background: rgb(181, 213, 255);
|
||
|
}
|
||
|
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
||
|
box-shadow: 0 0 3px 0px white;
|
||
|
}
|
||
|
.ace-tm .ace_marker-layer .ace_step {
|
||
|
background: rgb(252, 255, 0);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_marker-layer .ace_stack {
|
||
|
background: rgb(164, 229, 101);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_marker-layer .ace_bracket {
|
||
|
margin: -1px 0 0 -1px;
|
||
|
border: 1px solid rgb(192, 192, 192);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_marker-layer .ace_active-line {
|
||
|
background: rgba(0, 0, 0, 0.07);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_gutter-active-line {
|
||
|
background-color : #dcdcdc;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_marker-layer .ace_selected-word {
|
||
|
background: rgb(250, 250, 255);
|
||
|
border: 1px solid rgb(200, 200, 250);
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_indent-guide {
|
||
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||
|
}
|
||
|
|
||
|
.ace-tm .ace_indent-guide-active {
|
||
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
||
|
}
|
||
|
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"],function(E,L,k){"use strict";L.isDark=!1,L.cssClass="ace-tm",L.cssText=E("./textmate.css"),L.$id="ace/theme/textmate";var v=E("../lib/dom");v.importCssString(L.cssText,L.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(E,L,k){var v=E("./lib/lang"),p=E("./lib/oop"),h=E("./lib/net"),o=E("./lib/dom"),a=E("./lib/app_config").AppConfig;k.exports=L=new a;var t={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};L.get=function(n){if(!t.hasOwnProperty(n))throw new Error("Unknown config key: "+n);return t[n]},L.set=function(n,r){if(t.hasOwnProperty(n))t[n]=r;else if(this.setDefaultValue("",n,r)==!1)throw new Error("Unknown config key: "+n);n=="useStrictCSP"&&o.useStrictCSP(r)},L.all=function(){return v.copyObject(t)},L.$modes={},L.moduleUrl=function(n,r){if(t.$moduleUrls[n])return t.$moduleUrls[n];var l=n.split("/");r=r||l[l.length-2]||"";var c=r=="snippets"?"/":"-",d=l[l.length-1];if(r=="worker"&&c=="-"){var y=new RegExp("^"+r+"[\\-_]|[\\-_]"+r+"$","g");d=d.replace(y,"")}(!d||d==r)&&l.length>1&&(d=l[l.length-2]);var $=t[r+"Path"];return $==null?$=t.basePath:c=="/"&&(r=c=""),$&&$.slice(-1)!="/"&&($+="/"),$+r+c+d+this.get("suffix")},L.setModuleUrl=function(n,r){return t.$moduleUrls[n]=r};var e=function(n,r){return n==="ace/theme/textmate"||n==="./theme/textmate"?r(null,E("./theme/textmate")):console.error("loader is not configured")};L.setLoader=function(n){e=n},L.dynamicModules=Object.create(null),L.$loading={},L.loadModule=function(n,r){var l,c;Array.isArray(n)&&(c=n[0],n=n[1]);var d=function(y){if(y&&!L.$loading[n])return r&&r(y);if(L.$loading[n]||(L.$loading[n]=[]),L.$loading[n].push(r),!(L.$loading[n].length>1)){var $=function(){e(n,function(b,w){L._emit("load.module",{name:n,module:w});var S=L.$loading[n];L.$loading[n]=null,S.forEach(function(g){g&&g(w)})})};if(!L.get("packaged"))return $();h.loadScript(L.moduleUrl(n,c),$),i()}};if(L.dynamicModules[n])L.dynamicModules[n]().then(function(y){y.default?d(y.default):d(y)});else{try{l=E(n)}catch(y){}d(l)}},L.setModuleLoader=function(n,r){L.dynamicModules[n]=r};var i=function(){!t.basePath&&!t.workerPath&&!t.modePath&&!t.themePath&&!Object.keys(t.$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(){})};L.version="1.16.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(E,L,k){"use strict";E("./lib/fixoldbrowsers");var v=E("./config");v.setLoader(function(a,t){E([a],function(e){t(null,e)})});var p=function(){return this||typeof window!="undefined"&&window}();k.exports=function(a){v.init=h,a.require=E,a.define=X.amdD},h(!0);function h(a){if(!(!p||!p.document)){v.set("packaged",a||E.packaged||k.packaged||p.define&&X.amdD.packaged);var t={},e="",i=document.currentScript||document._currentScript,n=i&&i.ownerDocument||document;i&&i.src&&(e=i.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var r=n.getElementsByTagName("script"),l=0;l<r.length;l++){var c=r[l],d=c.src||c.getAttribute("src");if(!!d){for(var y=c.attributes,$=0,b=y.length;$<b;$++){var w=y[$];w.name.indexOf("data-ace-")===0&&(t[o(w.name.replace(/^data-ace-/,""))]=w.value)}var S=d.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);S&&(e=S[1])}}e&&(t.base=t.base||e,t.packaged=!0),t.basePath=t.base,t.workerPath=t.workerPath||t.base,t.modePath=t.modePath||t.base,t.themePath=t.themePath||t.base,delete t.base;for(var g in t)typeof t[g]!="undefined"&&v.set(g,t[g])}}function o(a){return a.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(E,L,k){/*! @license
|
||
|
==========================================================================
|
||
|
SproutCore -- JavaScript Application Framework
|
||
|
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
||
|
|
||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||
|
copy of this software and associated documentation files (the "Software"),
|
||
|
to deal in the Software without restriction, including without limitation
|
||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||
|
Software is furnished to do so, subject to the following conditions:
|
||
|
|
||
|
The above copyright notice and this permission notice shall be included in
|
||
|
all copies or substantial portions of the Software.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||
|
DEALINGS IN THE SOFTWARE.
|
||
|
|
||
|
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
||
|
|
||
|
For more information about SproutCore, visit http://www.sproutcore.com
|
||
|
|
||
|
|
||
|
==========================================================================
|
||
|
@license */"use strict";var v=E("./oop"),p=function(){var h={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",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};h.PRINTABLE_KEYS[173]="-";var o,a;for(a in h.FUNCTION_KEYS)o=h.FUNCTION_KEYS[a].toLowerCase(),h[o]=parseInt(a,10);for(a in h.PRINTABLE_KEYS)o=h.PRINTABLE_KEYS[a].toLowerCase(),h[o]=parseInt(a,10);return v.mixin(h,h.MODIFIER_KEYS),v.mixin(h,h.PRINTABLE_KEYS),v.mixin(h,h.FUNCTION_KEYS),h.enter=h.return,h.escape=h.esc,h.del=h.delete,function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)h.KEY_MODS[e]=t.filter(function(i){return e&h.KEY_MODS[i]}).join("-")+"-"}(),h.KEY_MODS[0]="",h.KEY_MODS[-1]="input-",h}();v.mixin(L,p),L.keyCodeToString=function(h){var o=p[h];return typeof o!="string"&&(o=String.fromCharCode(h)),o.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(E,L,k){"use strict";var v=E("./keys"),p=E("./useragent"),h=null,o=0,a;function t(){a=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){a={passive:!1}}})}catch($){}}function e(){return a==null&&t(),a}function i($,b,w){this.elem=$,this.type=b,this.callback=w}i.prototype.destroy=function(){r(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var n=L.addListener=function($,b,w,S){$.addEventListener(b,w,e()),S&&S.$toDestroy.push(new i($,b,w))},r=L.removeListener=function($,b,w){$.removeEventListener(b,w,e())};L.stopEvent=function($){return L.stopPropagation($),L.preventDefault($),!1},L.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},L.preventDefault=function($){$.preventDefault&&$.preventDefault()},L.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||p.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},L.capture=function($,b,w){var S=$&&$.ownerDocument||document;function g(f){b&&b(f),w&&w(f),r(S,"mousemove",b),r(S,"mouseup",g),r(S,"dragstart",g)}return n(S,"mousemove",b),n(S,"mouseup",g),n(S,"dragstart",g),g},L.addMouseWheelListener=function($,b,w){n($,"wheel",function(S){var g=.15,f=S.deltaX||0,A=S.deltaY||0;switch(S.deltaMode){case S.DOM_DELTA_PIXEL:S.wheelX=f*g,S.wheelY=A*g;break;case S.DOM_DELTA_LINE:var s=15;S.wheelX=f*s,S.wheelY=A*s;break;case S.DOM_DELTA_PAGE:var u=150;S.wheelX=f*u,S.wheelY=A*u;break}b(S)},w)},L.addMultiMouseDownListener=function($,b,w,S,g){var f=0,A,s,u,m={2:"dblclick",3:"tripleclick",4:"quadclick"};function C(_){if(L.getButton(_)!==0?f=0:_.detail>1?(f++,f>4&&(f=1)):f=1,p.isIE){var M=Math.abs(_.clientX-A)>5||Math.abs(_.clientY-s)>5;(!u||M)&&(f=1),u&&clearTimeout(u),u=setTimeout(function(){u=null},b[f-1]||600),f==1&&(A=_.clientX,s=_.clientY)}if(_._clicks=f,w[S]("mousedown",_),f>4)f=0;else if(f>1)return w[S](m[f],_)}Array.isArray($)||($=[$]),$.forEach(function(_){n(_,"mousedown",C,g)})};var l=function($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)};L.getModifierString=function($){return v.KEY_MODS[l($)]};function c($,b,w){var S=l(b);if(!p.isMac&&h){if(b.getModifierState&&(b.getModi
|
||
|
ab`+z+`cde fg
|
||
|
`;Y!=S.value&&(S.value=_=Y);var te=4,he=4+(z.length||(w.selection.isEmpty()?0:1));(M!=te||R!=he)&&S.setSelectionRange(te,he),M=te,R=he}}:function(){if(!(A||s)&&!(!I&&!W)){A=!0;var z=0,Y=0,te="";if(w.session){var he=w.selection,de=he.getRange(),be=he.cursor.row;if(z=de.start.column,Y=de.end.column,te=w.session.getLine(be),de.start.row!=be){var me=w.session.getLine(be-1);z=de.start.row<be-1?0:z,Y+=me.length+1,te=me+`
|
||
|
`+te}else if(de.end.row!=be){var pe=w.session.getLine(be+1);Y=de.end.row>be+1?pe.length:Y,Y+=te.length+1,te=te+`
|
||
|
`+pe}else y&&be>0&&(te=`
|
||
|
`+te,Y+=1,z+=1);te.length>n&&(z<n&&Y<n?te=te.slice(0,n):(te=`
|
||
|
`,z==Y?z=Y=0:(z=0,Y=1)))}var ge=te+`
|
||
|
|
||
|
`;if(ge!=_&&(S.value=_=ge,M=R=ge.length),W&&(M=S.selectionStart,R=S.selectionEnd),R!=Y||M!=z||S.selectionEnd!=R)try{S.setSelectionRange(z,Y),M=z,R=Y}catch(ae){}A=!1}};this.resetSelection=x,I&&w.onFocus();var B=function(z){return z.selectionStart===0&&z.selectionEnd>=_.length&&z.value===_&&_&&z.selectionEnd!==R},O=function(z){A||(g?g=!1:B(S)?(w.selectAll(),x()):y&&S.selectionStart!=M&&x())},P=null;this.setInputHandler=function(z){P=z},this.getInputHandler=function(){return P};var W=!1,V=function(z,Y){if(W&&(W=!1),f)return x(),z&&w.onPaste(z),f=!1,"";for(var te=S.selectionStart,he=S.selectionEnd,de=M,be=_.length-R,me=z,pe=z.length-te,ge=z.length-he,ae=0;de>0&&_[ae]==z[ae];)ae++,de--;for(me=me.slice(ae),ae=1;be>0&&_.length-ae>M-1&&_[_.length-ae]==z[z.length-ae];)ae++,be--;pe-=ae-1,ge-=ae-1;var ke=me.length-ae+1;if(ke<0&&(de=-ke,ke=0),me=me.slice(0,ke),!Y&&!me&&!pe&&!de&&!be&&!ge)return"";s=!0;var Ie=!1;return p.isAndroid&&me==". "&&(me=" ",Ie=!0),me&&!de&&!be&&!pe&&!ge||m?w.onTextInput(me):w.onTextInput(me,{extendLeft:de,extendRight:be,restoreStart:pe,restoreEnd:ge}),s=!1,_=z,M=te,R=he,F=ge,Ie?`
|
||
|
`:me},N=function(z){if(A)return j();if(z&&z.inputType){if(z.inputType=="historyUndo")return w.execCommand("undo");if(z.inputType=="historyRedo")return w.execCommand("redo")}var Y=S.value,te=V(Y,!0);(Y.length>n+100||d.test(te)||y&&M<1&&M==R)&&x()},re=function(z,Y,te){var he=z.clipboardData||window.clipboardData;if(!(!he||t)){var de=e||te?"Text":"text/plain";try{return Y?he.setData(de,Y)!==!1:he.getData(de)}catch(be){if(!te)return re(be,Y,!0)}}},Z=function(z,Y){var te=w.getCopyText();if(!te)return v.preventDefault(z);re(z,te)?(c&&(x(te),g=te,setTimeout(function(){g=!1},10)),Y?w.onCut():w.onCopy(),v.preventDefault(z)):(g=!0,S.value=te,S.select(),setTimeout(function(){g=!1,x(),Y?w.onCut():w.onCopy()}))},q=function(z){Z(z,!0)},ie=function(z){Z(z,!1)},J=function(z){var Y=re(z);a.pasteCancelled()||(typeof Y=="string"?(Y&&w.onPaste(Y,z),p.isIE&&setTimeout(x),v.preventDefault(z)):(S.value="",f=!0))};v.addCommandKeyListener(S,w.onCommandKey.bind(w),w),v.addListener(S,"select",O,w),v.addListener(S,"input",N,w),v.addListener(S,"cut",q,w),v.addListener(S,"copy",ie,w),v.addListener(S,"paste",J,w),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&v.addListener(b,"keydown",function(z){if(!(p.isMac&&!z.metaKey||!z.ctrlKey))switch(z.keyCode){case 67:ie(z);break;case 86:J(z);break;case 88:q(z);break}},w);var ee=function(z){if(!(A||!w.onCompositionStart||w.$readOnly)&&(A={},!m)){z.data&&(A.useTextareaForIME=!1),setTimeout(j,0),w._signal("compositionStart"),w.on("mousedown",ce);var Y=w.getSelectionRange();Y.end.row=Y.start.row,Y.end.column=Y.start.column,A.markerRange=Y,A.selectionStart=M,w.onCompositionStart(A),A.useTextareaForIME?(_=S.value="",M=0,R=0):(S.msGetInputContext&&(A.context=S.msGetInputContext()),S.getInputContext&&(A.context=S.getInputContext()))}},j=function(){if(!(!A||!w.onCompositionUpdate||w.$readOnly)){if(m)return ce();if(A.useTextareaForIME)w.onCompositionUpdate(S.value);else{var z=S.value;V(z),A.markerRange&&(A.context&&(A.markerRange.start.column=A.selectionStart=A.context.compositionStartOffset),A.markerRange.end.column=A.markerRange.start.column+R-A.selectionStart+F)}}},oe=function(z){!w.onCompositionEnd||w.$readOnly||(A=!1,w.onCompositionEnd(),w.off("mousedown",ce),z&&N())};function ce(){C=!0,S.blur(),S.focus(),C=!1}var ue=o.delayedCall(j,50).schedule.bind(null,null);function se(z){z.keyCode==27&&S.value.length<S.selectionStart&&(A||(_=S.value),M=R=-1,x()),ue()}v.addListener(S,"compositionstart",ee,w),v.addListener(S,"compositionupdate",j,w),v.addListener(S,"keyup",se,w),v.addListener(S,"keydown",ue,w),v.addListener(S,"compositionend",oe,w),this.getElement=function(){return S},this.setCommandMode=function(z){m=z,S.readOnly=!1},this.setReadOnly=function(z){m||(S.readOnly=z)},this.setCopyWithEmptySelection=function(z){},this.onContextMenu=function(z){W=!0,x(),w._emit("nativecontextmenu",{target:w,domEvent:z}),this.moveToMouse(z,!0)},this.moveToMouse=function(z,Y){u||(u=S.style.cssText),S.style.cssText=(Y?"z-index:100000;":"")+(p.isIE?"opacity:0.1;":"")+"text-indent: -"+(M+R)*w.renderer.characterWidth*.5+"px;";var te=w.container.getBoundingClientRect(),he=h.computedStyle(w.container),de=te.top+(parseInt(he.borderTopWidth)||0),be=te.left+(parseInt(te.borderLeftWidth)||0),me=te.bottom-de-S.clientHeight-2,pe=function(ge){h.translate(S,ge.clientX-be-2,Math.min(ge.clientY-de-2,me))};pe(z),z.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(fe),p.isWin&&v.capture(w.container,pe,Le))},this.onContextMenuClose=Le;var fe;function Le(){clearTimeout(fe),fe=setTimeout(function(){u&&(S.style.cssText=u,u=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var Re=function(z){w.textInput.onContextMenu(z),Le()};v.addListener(S,"mouseup",Re,w),v.addListener(S,"mousedown",function(z){z.preventDefault(),Le()},w),v.addListener(w.renderer.scroller,"contextmenu",Re,w),v.addListener(S,"contextmenu",Re,w),c&&Ee(b,w,S);function Ee(z,Y,te){var he=null,de=!1;te.addEventListener("keydown",function(me){he&&clearTimeout(he),de=!0},!0),te.addEventListener("keyup",function(me){he=se
|
||
|
`?ae=r.end:pe<M&&_[pe-1]==" "?(ae=r.left,ke=l.option):pe<M||pe==M&&R!=M&&pe==ge?ae=r.left:ge>R&&_.slice(0,ge).split(`
|
||
|
`).length>2?ae=r.down:ge>R&&_[ge-1]==" "?(ae=r.right,ke=l.option):(ge>R||ge==R&&R!=M&&pe==ge)&&(ae=r.right),pe!==ge&&(ke|=l.shift),ae){var Ie=Y.onCommandKey({},ke,ae);if(!Ie&&Y.commands){ae=r.keyCodeToString(ae);var Ke=Y.commands.findKeyCommand(ke,ae);Ke&&Y.execCommand(Ke)}M=pe,R=ge,x("")}}};document.addEventListener("selectionchange",be),Y.on("destroy",function(){document.removeEventListener("selectionchange",be)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}};L.TextInput=$,L.$setUserAgentForTests=function(b,w){y=b,c=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(E,L,k){"use strict";var v=E("../lib/useragent"),p=0,h=550;function o(e){e.$clickSelection=null;var i=e.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(r){e[r]=this[r]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}(function(){this.onMouseDown=function(e){var i=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,l=e.getButton();if(l!==0){var c=r.getSelectionRange(),d=c.isEmpty();(d||l==1)&&r.selection.moveToPosition(n),l==2&&(r.textInput.onContextMenu(e.domEvent),v.isMozilla||e.preventDefault());return}if(this.mousedownEvent.time=Date.now(),i&&!r.isFocused()&&(r.focus(),this.$focusTimeout&&!this.$clickSelection&&!r.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(e);return}return this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()},this.startSelect=function(e,i){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):i||n.selection.moveToPosition(e),i||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(r==-1)e=this.$clickSelection.end;else if(r==1)e=this.$clickSelection.start;else{var l=t(this.$clickSelection,n);n=l.cursor,e=l.anchor}i.selection.setSelectionAnchor(e.row,e.column)}i.selection.selectToPosition(n),i.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var i,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),l=n.selection[e](r.row,r.column);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(l.start),d=this.$clickSelection.comparePoint(l.end);if(c==-1&&d<=0)i=this.$clickSelection.end,(l.end.row!=r.row||l.end.column!=r.column)&&(r=l.start);else if(d==1&&c>=0)i=this.$clickSelection.start,(l.start.row!=r.row||l.start.column!=r.column)&&(r=l.end);else if(c==-1&&d==1)r=l.end,i=l.start;else{var y=t(this.$clickSelection,r);r=y.cursor,i=y.anchor}n.selection.setSelectionAnchor(i.row,i.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},this.focusWait=function(){var e=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(e>p||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var i=e.getDocumentPosition(),n=this.editor,r=n.session,l=r.getBracketRange(i);l?(l.isEmpty()&&(l.start.column--,l.end.column++),this.setState("select")):(l=n.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=l,this.select()},this.onTripleClick=function(e){var i=e.getDocumentPosition(),n
|
||
|
`))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var a=0,t=this.session.$screenRowCache;if(t.length){var e=this.session.$getRowCacheIndex(t,this.currentRow);e>=0&&(a=this.session.$docRowCache[e])}return a},this.getSplitIndex=function(){var a=0,t=this.session.$screenRowCache;if(t.length)for(var e,i=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-a>0&&(e=this.session.$getRowCacheIndex(t,this.currentRow-a-1),e===i);)i=e,a++;else a=this.currentRow;return a},this.updateRowLine=function(a,t){a===void 0&&(a=this.getDocumentRow());var e=a===this.session.getLength()-1,i=e?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var n=this.session.$wrapData[a];n&&(t===void 0&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.wrapOffset=this.wrapIndent*this.charWidths[v.L],this.line=t<n.length?this.line.substring(n[t-1],n[t]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]),t==n.length&&(this.line+=this.showInvisibles?i:v.DOT))}else this.line+=this.showInvisibles?i:v.DOT;var r=this.session,l=0,c;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(d,y){return d===" "||r.isFullWidth(d.charCodeAt(0))?(c=d===" "?r.getScreenTabSize(y+l):2,l+=c-1,p.stringRepeat(v.DOT,c)):d}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==v.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var a=[];v.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=v.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var t=this.characterWidth=a.$characterSize.width,e=a.$measureCharWidth("\u05D4");this.charWidths[v.L]=this.charWidths[v.EN]=this.charWidths[v.ON_R]=t,this.charWidths[v.R]=this.charWidths[v.AN]=e,this.charWidths[v.R_H]=e*.45,this.charWidths[v.B]=this.charWidths[v.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},this.setEolChar=function(a){this.EOL=a},this.setContentWidth=function(a){this.contentWidth=a},this.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(a,t){for(var e=a.getCursorPosition(),i=a.selection.getSelectionAnchor().row;i<=e.row;i++)!t&&a.session.getLine(i).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(i,0,1):t&&a.session.getLine(i).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:i},a.session.$bidiHandler.RLE)},this.getPosLeft=function(a){a-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,e=a>t?this.session.getOverwrite()?a:a-1:t,i=v.getVisualFromLogicalIdx(e,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&a<=t&&n[i]%2!=0&&i++;for(var l=0;l<i;l++)r+=this.charWidths[n[l]];return!this.session.getOverwrite()&&a>t&&n[i]%2==0&&(r+=this.charWidths[n[i]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(a,t){var e=this.bidiMap,i=e.bidiLevels,n,r=[],l=0,c=Math.min(a,t)-this.wrapIndent,d=Math.max(a,t)-this.wrapIndent,y=!1,$=!1,b=0;this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,S=0;S<i.length;S++)w=e.logicalFromVisual[S],n=i[S],y=w>=c&&w<d,y&&!$?b=l:!y&&$&&r.push({left:b,width:l-b}),l+=this.charWidths[n],$=y;if(y&&S===i.length&&r.push({left:b,width:l-b}),this.isRtlDir)for(var g=0;g<r.length;g++)r[g].left+=this.rtlLineOffset;return r},this.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var t=0,a=Math.max(a,0),e=0,i=0,n=this.bidiMap.bidiLevels,r=this.charWidths[n[i]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>e+r/
|
||
|
`||S==`\r
|
||
|
`){r(b);var C="";c.isMaybeInsertedClosing(g,f)&&(C=o.stringRepeat("}",e.maybeInsertedBrackets),c.clearMaybeInsertedClosing());var u=f.substring(g.column,g.column+1);if(u==="}"){var _=w.findMatchingBracket({row:g.row,column:g.column+1},"}");if(!_)return null;var M=this.$getIndent(w.getLine(_.row))}else if(C)var M=this.$getIndent(f);else{c.clearMaybeInsertedClosing();return}var R=M+w.getTabString();return{text:`
|
||
|
`+R+`
|
||
|
`+M+C,selection:[1,R.length,1,R.length]}}else c.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,$,b,w,S){var g=w.doc.getTextRange(S);if(!S.isMultiLine()&&g=="{"){r(b);var f=w.doc.getLine(S.start.row),A=f.substring(S.end.column,S.end.column+1);if(A=="}")return S.end.column++,S;e.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,$,b,w,S){if(S=="("){r(b);var g=b.getSelectionRange(),f=w.doc.getTextRange(g);if(f!==""&&b.getWrapBehavioursEnabled())return l(g,f,"(",")");if(c.isSaneInsertion(b,w))return c.recordAutoInsert(b,w,")"),{text:"()",selection:[1,1]}}else if(S==")"){r(b);var A=b.getCursorPosition(),s=w.doc.getLine(A.row),u=s.substring(A.column,A.column+1);if(u==")"){var m=w.$findOpeningBracket(")",{column:A.column+1,row:A.row});if(m!==null&&c.isAutoInsertedClosing(A,s,S))return c.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,$,b,w,S){var g=w.doc.getTextRange(S);if(!S.isMultiLine()&&g=="("){r(b);var f=w.doc.getLine(S.start.row),A=f.substring(S.start.column+1,S.start.column+2);if(A==")")return S.end.column++,S}}),this.add("brackets","insertion",function(y,$,b,w,S){if(S=="["){r(b);var g=b.getSelectionRange(),f=w.doc.getTextRange(g);if(f!==""&&b.getWrapBehavioursEnabled())return l(g,f,"[","]");if(c.isSaneInsertion(b,w))return c.recordAutoInsert(b,w,"]"),{text:"[]",selection:[1,1]}}else if(S=="]"){r(b);var A=b.getCursorPosition(),s=w.doc.getLine(A.row),u=s.substring(A.column,A.column+1);if(u=="]"){var m=w.$findOpeningBracket("]",{column:A.column+1,row:A.row});if(m!==null&&c.isAutoInsertedClosing(A,s,S))return c.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,$,b,w,S){var g=w.doc.getTextRange(S);if(!S.isMultiLine()&&g=="["){r(b);var f=w.doc.getLine(S.start.row),A=f.substring(S.start.column+1,S.start.column+2);if(A=="]")return S.end.column++,S}}),this.add("string_dquotes","insertion",function(y,$,b,w,S){var g=w.$mode.$quotes||n;if(S.length==1&&g[S]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(S)!=-1)return;r(b);var f=S,A=b.getSelectionRange(),s=w.doc.getTextRange(A);if(s!==""&&(s.length!=1||!g[s])&&b.getWrapBehavioursEnabled())return l(A,s,f,f);if(!s){var u=b.getCursorPosition(),m=w.doc.getLine(u.row),C=m.substring(u.column-1,u.column),_=m.substring(u.column,u.column+1),M=w.getTokenAt(u.row,u.column),R=w.getTokenAt(u.row,u.column+1);if(C=="\\"&&M&&/escape/.test(M.type))return null;var F=M&&/string|escape/.test(M.type),I=!R||/string|escape/.test(R.type),x;if(_==f)x=F!==I,x&&/string\.end/.test(R.type)&&(x=!1);else{if(F&&!I||F&&I)return null;var B=w.$mode.tokenRe;B.lastIndex=0;var O=B.test(C);B.lastIndex=0;var P=B.test(_),W=w.$mode.$pairQuotesAfter,V=W&&W[f]&&W[f].test(C);if(!V&&O||P||_&&!/[\s;,.})\]\\]/.test(_))return null;var N=m[u.column-2];if(C==f&&(N==f||B.test(N)))return null;x=!0}return{text:x?f+f:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,$,b,w,S){var g=w.$mode.$quotes||n,f=w.doc.getTextRange(S);if(!S.isMultiLine()&&g.hasOwnProperty(f)){r(b);var A=w.doc.getLine(S.start.row),s=A.substring(S.start.column+1,S.start.column+2);if(s==f)return S.end.column++,S}})};c.isSaneInsertion=function(d,y){var $=d.getCursorPosition(),b=new h(y,$.row,$.column);if(!this.$matchTokenType(b.getCurrentToken()||"text",a)){if(/[)}\]]/.test(d.session.getLine($.row)[$.column]))return!0;var w=new h(y,$.row,$.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",a))return!1}return b.stepForward(),b.getCurrentTokenRow()!==$.row||this.$matchTokenType(b.getCurrentToken()||"text",t)},c.$matchTokenType=function(d,y){return y.indexOf(d.type||d)>-1},c.recordAutoInsert=function(d,y,$){var b=d.getCursorPosition(),w=y.doc.getLine(b.row);this.isAutoInsertedClosing(b,w,e.autoInsertedLineEnd[0])||(e.autoInsertedBrackets=0),e.autoInsertedRow=b.row,e.autoInsertedLineEnd=$+w.substr(b.column),e.autoInsertedBrackets++},c.recordMaybeInsert=function(d,y,$){var b=d.getCursorPosition(),w=y.doc.getLine(b.row);this.isMaybeInsertedClosing(b,w)||(e.maybeInsertedBrackets=0),e.maybeInsertedRow=
|
||
|
`).split(`
|
||
|
`)}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var i=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=i?i[1]:`
|
||
|
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
||
|
`;case"unix":return`
|
||
|
`;default:return this.$autoNewLine||`
|
||
|
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==`\r
|
||
|
`||e=="\r"||e==`
|
||
|
`},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,i){return this.$lines.slice(e,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var i;if(e.start.row===e.end.row)i=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{i=this.getLines(e.start.row,e.end.row),i[0]=(i[0]||"").substring(e.start.column);var n=i.length-1;e.end.row-e.start.row==n&&(i[n]=i[n].substring(0,e.end.column))}return i},this.insertLines=function(e,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,i)},this.removeLines=function(e,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,i)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(e,this.$split(i))},this.insertInLine=function(e,i){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+i.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[i]},!0),this.clonePos(r)},this.clippedPos=function(e,i){var n=this.getLength();e===void 0?e=n:e<0?e=0:e>=n&&(e=n-1,i=void 0);var r=this.getLine(e);return i==null&&(i=r.length),i=Math.min(Math.max(i,0),r.length),{row:e,column:i}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,i){return{row:e,column:i}},this.$clipPosition=function(e){var i=this.getLength();return e.row>=i?(e.row=Math.max(0,i-1),e.column=this.getLine(i-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,i){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(i=i.concat([""]),n=0):(i=[""].concat(i),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},i)},this.insertMergedLines=function(e,i){var n=this.clippedPos(e.row,e.column),r={row:n.row+i.length-1,column:(i.length==1?n.column:0)+i[i.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:i}),this.clonePos(r)},this.remove=function(e){var i=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:i,end:n,action:"remove",lines:this.getLinesForRange({start:i,end:n})}),this.clonePos(i)},this.removeInLine=function(e,i,n){var r=this.clippedPos(e,i),l=this.clippedPos(e,n);return this.applyDelta({start:r,end:l,action:"remove",lines:this.getLinesForRange({start:r,end:l})},!0),this.clonePos(r)},this.removeFullLines=function(e,i){e=Math.min(Math.max(0,e),this.getLength()-1),i=Math.min(Math.max(0,i),this.getLength()-1);var n=i==this.getLength()-1&&e>0,r=i<this.getLength()-1,l=n?e-1:e,c=n?this.getLine(l).length:0,d=r?i+1:i,y=r?0:this.getLine(d).length,$=new o(l,c,d,y),b=this.$lines.slice(e,i+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),b},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,i){if(e instanceof o||(e=o.fromPoints(e.start,e.end)),i.length===0&&e.isEmpty())return e.start;if(i==this.getTextRange(e))return e.end;this.remove(e);var n;return i?n=this.insert(e.start,i):n=e.start,n},this.applyDeltas=function(e){for(var i=0;i<e.length;i++)this.applyDelta(e[i])},this.revertDeltas=function(e){for(var i=e.length-1;i>=0;i--)this.revertDelta(e[i])},this.applyDelta=function(e,i){var n=e.action=="insert";(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(p(this.$lines,e,i),this._signal("change",e)))
|
||
|
`)},this.idxToPosition=function(h){for(var o=0,a=0;a<this.folds.length;a++){var t=this.folds[a];if(h-=t.start.column-o,h<0)return{row:t.start.row,column:t.start.column+h};if(h-=t.placeholder.length,h<0)return t.start;o=t.end.column}return{row:this.end.row,column:this.end.column+h}}}).call(p.prototype),L.FoldLine=p}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(E,L,k){"use strict";var v=E("./range").Range,p=v.comparePoints,h=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=p,this.pointIndex=function(o,a,t){for(var e=this.ranges,i=t||0;i<e.length;i++){var n=e[i],r=p(o,n.end);if(!(r>0)){var l=p(o,n.start);return r===0?a&&l!==0?-i-2:i:l>0||l===0&&!a?i:-i-1}}return-i-1},this.add=function(o){var a=!o.isEmpty(),t=this.pointIndex(o.start,a);t<0&&(t=-t-1);var e=this.pointIndex(o.end,a,t);return e<0?e=-e-1:e++,this.ranges.splice(t,e-t,o)},this.addList=function(o){for(var a=[],t=o.length;t--;)a.push.apply(a,this.add(o[t]));return a},this.substractPoint=function(o){var a=this.pointIndex(o);if(a>=0)return this.ranges.splice(a,1)},this.merge=function(){var o=[],a=this.ranges;a=a.sort(function(r,l){return p(r.start,l.start)});for(var t=a[0],e,i=1;i<a.length;i++){e=t,t=a[i];var n=p(e.end,t.start);n<0||n==0&&!e.isEmpty()&&!t.isEmpty()||(p(e.end,t.end)<0&&(e.end.row=t.end.row,e.end.column=t.end.column),a.splice(i,1),o.push(t),t=e,i--)}return this.ranges=a,o},this.contains=function(o,a){return this.pointIndex({row:o,column:a})>=0},this.containsPoint=function(o){return this.pointIndex(o)>=0},this.rangeAtPoint=function(o){var a=this.pointIndex(o);if(a>=0)return this.ranges[a]},this.clipRows=function(o,a){var t=this.ranges;if(t[0].start.row>a||t[t.length-1].start.row<o)return[];var e=this.pointIndex({row:o,column:0});e<0&&(e=-e-1);var i=this.pointIndex({row:a,column:0},e);i<0&&(i=-i-1);for(var n=[],r=e;r<i;r++)n.push(t[r]);return n},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(o){this.session&&this.detach(),this.session=o,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(o){for(var a=o.start,t=o.end,e=a.row,i=t.row,n=this.ranges,r=0,l=n.length;r<l;r++){var c=n[r];if(c.end.row>=e)break}if(o.action=="insert")for(var d=i-e,y=-a.column+t.column;r<l;r++){var c=n[r];if(c.start.row>e)break;if(c.start.row==e&&c.start.column>=a.column&&(c.start.column==a.column&&this.$bias<=0||(c.start.column+=y,c.start.row+=d)),c.end.row==e&&c.end.column>=a.column){if(c.end.column==a.column&&this.$bias<0)continue;c.end.column==a.column&&y>0&&r<l-1&&c.end.column>c.start.column&&c.end.column==n[r+1].start.column&&(c.end.column-=y),c.end.column+=y,c.end.row+=d}}else for(var d=e-i,y=a.column-t.column;r<l;r++){var c=n[r];if(c.start.row>i)break;c.end.row<i&&(e<c.end.row||e==c.end.row&&a.column<c.end.column)?(c.end.row=e,c.end.column=a.column):c.end.row==i?c.end.column<=t.column?(d||c.end.column>a.column)&&(c.end.column=a.column,c.end.row=a.row):(c.end.column+=y,c.end.row+=d):c.end.row>i&&(c.end.row+=d),c.start.row<i&&(e<c.start.row||e==c.start.row&&a.column<c.start.column)?(c.start.row=e,c.start.column=a.column):c.start.row==i?c.start.column<=t.column?(d||c.start.column>a.column)&&(c.start.column=a.column,c.start.row=a.row):(c.start.column+=y,c.start.row+=d):c.start.row>i&&(c.start.row+=d)}if(d!=0&&r<l)for(;r<l;r++){var c=n[r];c.start.row+=d,c.end.row+=d}}}).call(h.prototype),L.RangeList=h}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(E,L,k){"use strict";var v=E("../range_list").RangeList,p=E("../lib/oop"),h=L.Fold=function(i,n){this.foldLine=null,this.placeholder=n,this.range=i,this.start=i.start,this.end=i.end,this.sameRow=i.start.row==i.end.row,this.subFolds=this.ranges=[]};p.inherits(h,v),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(i){this.foldLine=i,this.subFolds.fo
|
||
|
`)},this.bgTokenizer=new r(new e().getTokenizer(),this);var $=this;this.bgTokenizer.on("update",function(b){$._signal("tokenizerUpdate",b)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof d!="object"||!d.getLine)&&(d=new n(d)),this.setDocument(d),this.selection=new t(this),this.$bidiHandler=new h(this),o.resetOptions(this),this.setMode(y),o._signal("session",this),this.destroyed=!1};c.$uid=0,function(){v.implement(this,a),this.setDocument=function(s){this.doc&&this.doc.off("change",this.$onChange),this.doc=s,s.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(s){if(!s){this.$docRowCache=[],this.$screenRowCache=[];return}var u=this.$docRowCache.length,m=this.$getRowCacheIndex(this.$docRowCache,s)+1;u>m&&(this.$docRowCache.splice(m,u),this.$screenRowCache.splice(m,u))},this.$getRowCacheIndex=function(s,u){for(var m=0,C=s.length-1;m<=C;){var _=m+C>>1,M=s[_];if(u>M)m=_+1;else if(u<M)C=_-1;else return _}return m-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(s){var u=s.data;this.$resetRowCache(u.start.row)},this.onChange=function(s){this.$modified=!0,this.$bidiHandler.onChange(s),this.$resetRowCache(s.start.row);var u=this.$updateInternalDataOnChange(s);!this.$fromUndo&&this.$undoManager&&(u&&u.length&&(this.$undoManager.add({action:"removeFolds",folds:u},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(s,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(s),this._signal("change",s)},this.setValue=function(s){this.doc.setValue(s),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(s){return this.bgTokenizer.getState(s)},this.getTokens=function(s){return this.bgTokenizer.getTokens(s)},this.getTokenAt=function(s,u){var m=this.bgTokenizer.getTokens(s),C,_=0;if(u==null){var M=m.length-1;_=this.getLine(s).length}else for(var M=0;M<m.length&&(_+=m[M].value.length,!(_>=u));M++);return C=m[M],C?(C.index=M,C.start=_-C.value.length,C):null},this.setUndoManager=function(s){if(this.$undoManager=s,this.$informUndoManager&&this.$informUndoManager.cancel(),s){var u=this;s.addSession(this),this.$syncInformUndoManager=function(){u.$informUndoManager.cancel(),u.mergeUndoDeltas=!1},this.$informUndoManager=p.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?p.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(s){this.setOption("useSoftTabs",s)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(s){this.setOption("tabSize",s)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(s){return this.$useSoftTabs&&s.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(s){this.setOption("navigateWithinSoftTabs",s)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(s){this.setOption("overwrite",s)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(s,u){this.$decorations[s]||(this.$decorations[s]
|
||
|
`},this.getWordRange=function(s,u){var m=this.getLine(s),C=!1;if(u>0&&(C=!!m.charAt(u-1).match(this.tokenRe)),C||(C=!!m.charAt(u).match(this.tokenRe)),C)var _=this.tokenRe;else if(/^\s+$/.test(m.slice(u-1,u+1)))var _=/\s/;else var _=this.nonTokenRe;var M=u;if(M>0){do M--;while(M>=0&&m.charAt(M).match(_));M++}for(var R=u;R<m.length&&m.charAt(R).match(_);)R++;return new i(s,M,s,R)},this.getAWordRange=function(s,u){for(var m=this.getWordRange(s,u),C=this.getLine(m.end.row);C.charAt(m.end.column).match(/[ \t]/);)m.end.column+=1;return m},this.setNewLineMode=function(s){this.doc.setNewLineMode(s)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(s){this.setOption("useWorker",s)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(s){var u=s.data;this.bgTokenizer.start(u.first),this._signal("tokenizerUpdate",s)},this.$modes=o.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(s,u){if(s&&typeof s=="object"){if(s.getTokenizer)return this.$onChangeMode(s);var m=s,C=m.path}else C=s||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new e),this.$modes[C]&&!m){this.$onChangeMode(this.$modes[C]),u&&u();return}this.$modeId=C,o.loadModule(["mode",C],function(_){if(this.$modeId!==C)return u&&u();this.$modes[C]&&!m?this.$onChangeMode(this.$modes[C]):_&&_.Mode&&(_=new _.Mode(m),m||(this.$modes[C]=_,_.$id=C),this.$onChangeMode(_)),u&&u()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(s,u){if(u||(this.$modeId=s.$id),this.$mode!==s){var m=this.$mode;this.$mode=s,this.$stopWorker(),this.$useWorker&&this.$startWorker();var C=s.getTokenizer();if(C.on!==void 0){var _=this.onReloadTokenizer.bind(this);C.on("update",_)}this.bgTokenizer.setTokenizer(C),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=s.tokenRe,this.nonTokenRe=s.nonTokenRe,u||(s.attachToSession&&s.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(s.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:m,mode:s}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(s){o.warn("Could not load worker",s),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(s){this.$scrollTop===s||isNaN(s)||(this.$scrollTop=s,this._signal("changeScrollTop",s))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(s){this.$scrollLeft===s||isNaN(s)||(this.$scrollLeft=s,this._signal("changeScrollLeft",s))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var s=0;return this.lineWidgets.forEach(function(u){u&&u.screenWidth>s&&(s=u.screenWidth)}),this.lineWidgetWidth=s},this.$computeWidth=function(s){if(this.$modified||s){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var u=this.doc.getAllLines(),m=this.$rowLengthCache,C=0,_=0,M=this.$foldData[_],R=M?M.start.row:Infinity,F=u.length,I=0;I<F;I++){if(I>R){if(I=M.end.row+1,I>=F)break;M=this.$foldData[_++],R=M?M.start.row:Infinity}m[I]==null&&(m[I]=this.$getStringScreenWidth(u[I])[0]),m[I]>C&&(C=m[I])}this.screenWidth=C}},this.getLine=function(s){return this.doc.getLine(s)},this.getLines=function(s,u){return this.doc.getLines(s,u)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(s){return this.doc.getTextRange(s||this.selection.getRange())},this.insert=function(s,u){return this.doc.insert(s,u)},this.remove=function(s){return this.doc.remove(s)},this.removeFullLines=function(s,u){return this.doc.removeFullLines(s,u)},this.undoChanges=function(s,u){if(!!s.length){this.$fromUndo=!0
|
||
|
^`).split(`
|
||
|
`),n=[],r=0;r<i.length;r++)try{n.push(new RegExp(i[r],e))}catch(l){return!1}return n},this.$matchIterator=function(t,e){var i=this.$assembleRegExp(e);if(!i)return!1;var n=e.backwards==!0,r=e.skipCurrent!=!1,l=e.range,c=e.start;c||(c=l?l[n?"end":"start"]:t.selection.getRange()),c.start&&(c=c[r!=n?"end":"start"]);var d=l?l.start.row:0,y=l?l.end.row:t.getLength()-1;if(n)var $=function(S){var g=c.row;if(!w(g,c.column,S)){for(g--;g>=d;g--)if(w(g,Number.MAX_VALUE,S))return;if(e.wrap!=!1){for(g=y,d=c.row;g>=d;g--)if(w(g,Number.MAX_VALUE,S))return}}};else var $=function(g){var f=c.row;if(!w(f,c.column,g)){for(f=f+1;f<=y;f++)if(w(f,0,g))return;if(e.wrap!=!1){for(f=d,y=c.row;f<=y;f++)if(w(f,0,g))return}}};if(e.$isMultiLine)var b=i.length,w=function(S,g,f){var A=n?S-b+1:S;if(!(A<0||A+b>t.getLength())){var s=t.getLine(A),u=s.search(i[0]);if(!(!n&&u<g||u===-1)){for(var m=1;m<b;m++)if(s=t.getLine(A+m),s.search(i[m])==-1)return;var C=s.match(i[b-1])[0].length;if(!(n&&C>g)&&f(A,u,A+b-1,C))return!0}}};else if(n)var w=function(g,f,A){var s=t.getLine(g),u=[],m,C=0;for(i.lastIndex=0;m=i.exec(s);){var _=m[0].length;if(C=m.index,!_){if(C>=s.length)break;i.lastIndex=C+=1}if(m.index+_>f)break;u.push(m.index,_)}for(var M=u.length-1;M>=0;M-=2){var R=u[M-1],_=u[M];if(A(g,R,g,R+_))return!0}};else var w=function(g,f,A){var s=t.getLine(g),u,m;for(i.lastIndex=f;m=i.exec(s);){var C=m[0].length;if(u=m.index,A(g,u,g,u+C))return!0;if(!C&&(i.lastIndex=u+=1,u>=s.length))return!1}};return{forEach:$}}}).call(o.prototype);function a(t,e){function i(n){return/\w/.test(n)||e.regExp?"\\b":""}return i(t[0])+t+i(t[t.length-1])}L.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(E,L,k){"use strict";var v=E("../lib/keys"),p=E("../lib/useragent"),h=v.KEY_MODS;function o(t,e){this.platform=e||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function a(t,e){o.call(this,t,e),this.$singleCommand=!1}a.prototype=o.prototype,function(){this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,i){var n=e&&(typeof e=="string"?e:e.name);e=this.commands[n],i||delete this.commands[n];var r=this.commandKeyBinding;for(var l in r){var c=r[l];if(c==e)delete r[l];else if(Array.isArray(c)){var d=c.indexOf(e);d!=-1&&(c.splice(d,1),c.length==1&&(r[l]=c[0]))}}},this.bindKey=function(e,i,n){if(typeof e=="object"&&e&&(n==null&&(n=e.position),e=e[this.platform]),!!e){if(typeof i=="function")return this.addCommand({exec:i,bindKey:e,name:i.name||e});e.split("|").forEach(function(r){var l="";if(r.indexOf(" ")!=-1){var c=r.split(/\s+/);r=c.pop(),c.forEach(function($){var b=this.parseKeys($),w=h[b.hashId]+b.key;l+=(l?" ":"")+w,this._addCommandToBinding(l,"chainKeys")},this),l+=" "}var d=this.parseKeys(r),y=h[d.hashId]+d.key;this._addCommandToBinding(l+y,i,n)},this)}};function t(e){return typeof e=="object"&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this._addCommandToBinding=function(e,i,n){var r=this.commandKeyBinding,l;if(!i)delete r[e];else if(!r[e]||this.$singleCommand)r[e]=i;else{Array.isArray(r[e])?(l=r[e].indexOf(i))!=-1&&r[e].splice(l,1):r[e]=[r[e]],typeof n!="number"&&(n=t(i));var c=r[e];for(l=0;l<c.length;l++){var d=c[l],y=t(d);if(y>n)break}c.splice(l,0,i)}},this.addCommands=function(e){e&&Object.keys(e).forEach(function(i){var n=e[i];if(!!n){if(typeof n=="string")return this.bindKey(n,i);typeof n=="function"&&(n={exec:n}),typeof n=="object"&&(n.name||(n.name=i),this.addCommand(n))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(i){this.removeCommand(e[i])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(i){this.bindKey(i,e[i])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var i=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(y){return y}),n=i.pop(),r=v[n];if(v.FUNCTION_KEYS[r])n=v.FUNCTION_KEYS[r].toLowerCase();else if(i.length){if(i.length==1&&i[
|
||
|
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(t){t.selection.clearSelection();var e=t.getCursorPosition();t.selection.moveTo(e.row-1,Number.MAX_VALUE),t.insert(`
|
||
|
`),e.row===0&&t.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:o("F1","F1"),exec:function(t){t.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:o(null,null),exec:function(t){t.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)L.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(t){t.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(E,L,k){"use strict";var v=E("./lib/dom");function p(h){this.session=h,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)}(function(){this.getRowLength=function(h){var o;return this.lineWidgets?o=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:o=0,!this.$useWrapMode||!this.$wrapData[h]?1+o:this.$wrapData[h].length+1+o},this.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(o){o&&o.rowCount&&!o.hidden&&(h+=o.rowCount)}),h},this.$onChangeEditor=function(h){this.attach(h.editor)},this.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(h){var o=this.editor;if(!!o){this.editor=null,o.widgetManager=null,o.renderer.off("beforeRender",this.measureWidgets),o.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))})}},this.updateOnFold=function(h,o){var a=o.lineWidgets;if(!(!a||!h.action)){for(var t=h.data,e=t.start.row,i=t.end.row,n=h.action=="add",r=e+1;r<i;r++)a[r]&&(a[r].hidden=n);a[i]&&(n?a[e]?a[i].hidden=n:a[e]=a[i]:(a[e]==a[i]&&(a[e]=void 0),a[i].hidden=n))}},this.updateOnChange=function(h){var o=this.session.lineWidgets;if(!!o){var a=h.start.row,t=h.end.row-a;if(t!==0)if(h.action=="remove"){var e=o.splice(a+1,t);!o[a]&&e[e.length-1]&&(o[a]=e.pop()),e.forEach(function(n){n&&this.removeLineWidget(n)},this),this.$updateRows()}else{var i=new Array(t);o[a]&&o[a].column!=null&&h.start.column>o[a].column&&a++,i.unshift(a,0),o.splice.apply(o,i),this.$updateRows()}}},this.$updateRows=function(){var h=this.session.lineWidgets;if(!!h){var o=!0;h.forEach(function(a,t){if(a)for(o=!1,a.row=t;a.$oldWidget;)a.$oldWidget.row=t,a=a.$oldWidget}),o&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var o=this.session.lineWidgets[h.row];return o&&(h.$oldWidget=o,o.el&&o.el.parentNode&&(o.el.parentNode.removeChild(o.el),o._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},this.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var o=this.editor.renderer;h.html&&!h.el&&(h.el=v.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=v.createElement("div"),h.el.textContent=h.text),h.el&&(v.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&v.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex=5,o.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex=3),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/o.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var t=this.session.lin
|
||
|
`)==-1){var R=new c.fromPoints(_,_);R.end.column+=s.length,this.session.remove(R)}}else{var R=this.getSelectionRange();_=this.session.remove(R),this.clearSelection()}if(s==`
|
||
|
`||s==`\r
|
||
|
`){var B=m.getLine(_.row);if(_.column>B.search(/\S|$/)){var F=B.substr(_.column).search(/\S|$/);m.doc.removeInLine(_.row,_.column,_.column+F)}}this.clearSelection();var I=_.column,x=m.getState(_.row),B=m.getLine(_.row),O=C.checkOutdent(x,B,s);if(m.insert(_,s),M&&M.selection&&(M.selection.length==2?this.selection.setSelectionRange(new c(_.row,I+M.selection[0],_.row,I+M.selection[1])):this.selection.setSelectionRange(new c(_.row+M.selection[0],M.selection[1],_.row+M.selection[2],M.selection[3]))),this.$enableAutoIndent){if(m.getDocument().isNewLine(s)){var P=C.getNextLineIndent(x,B.slice(0,_.column),m.getTabString());m.insert({row:_.row+1,column:0},P)}O&&C.autoOutdent(x,m,_.row)}},this.autoIndent=function(){var s=this.session,u=s.getMode(),m,C;if(this.selection.isEmpty())m=0,C=s.doc.getLength()-1;else{var _=this.getSelectionRange();m=_.start.row,C=_.end.row}for(var M="",R="",F="",I,x,B,O=s.getTabString(),P=m;P<=C;P++)P>0&&(M=s.getState(P-1),R=s.getLine(P-1),F=u.getNextLineIndent(M,R,O)),I=s.getLine(P),x=u.$getIndent(I),F!==x&&(x.length>0&&(B=new c(P,0,P,x.length),s.remove(B)),F.length>0&&s.insert({row:P,column:0},F)),u.autoOutdent(M,s,P)},this.onTextInput=function(s,u){if(!u)return this.keyBinding.onTextInput(s);this.startOperation({command:{name:"insertstring"}});var m=this.applyComposition.bind(this,s,u);this.selection.rangeCount?this.forEachSelection(m):m(),this.endOperation()},this.applyComposition=function(s,u){if(u.extendLeft||u.extendRight){var m=this.selection.getRange();m.start.column-=u.extendLeft,m.end.column+=u.extendRight,m.start.column<0&&(m.start.row--,m.start.column+=this.session.getLine(m.start.row).length+1),this.selection.setRange(m),!s&&!m.isEmpty()&&this.remove()}if((s||!this.selection.isEmpty())&&this.insert(s,!0),u.restoreStart||u.restoreEnd){var m=this.selection.getRange();m.start.column-=u.restoreStart,m.end.column-=u.restoreEnd,this.selection.setRange(m)}},this.onCommandKey=function(s,u,m){return this.keyBinding.onCommandKey(s,u,m)},this.setOverwrite=function(s){this.session.setOverwrite(s)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(s){this.setOption("scrollSpeed",s)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(s){this.setOption("dragDelay",s)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(s){this.setOption("selectionStyle",s)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(s){this.setOption("highlightActiveLine",s)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(s){this.setOption("highlightGutterLine",s)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(s){this.setOption("highlightSelectedWord",s)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(s){this.renderer.setAnimatedScroll(s)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(s){this.renderer.setShowInvisibles(s)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(s){this.renderer.setDisplayIndentGuides(s)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(s){this.renderer.setHighlightIndentGuides(s)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(s){this.renderer.setShowPrintMargin(s)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(s){this.renderer.setPrintMarginColumn(s)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(s){this.setOption("readOnly",s)},this.getRe
|
||
|
`){var R=m.getLine(u.end.row);/^\s+$/.test(R)&&(u.end.column=R.length)}}_&&(u=_)}this.session.remove(u),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var s=this.getSelectionRange();s.start.column==s.end.column&&s.start.row==s.end.row&&(s.end.column=0,s.end.row++),this.session.remove(s),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var s=this.getCursorPosition();this.insert(`
|
||
|
`),this.moveCursorToPosition(s)},this.setGhostText=function(s,u){this.session.widgetManager||(this.session.widgetManager=new S(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(s,u)},this.removeGhostText=function(){!this.session.widgetManager||this.renderer.removeGhostText()},this.transposeLetters=function(){if(!!this.selection.isEmpty()){var s=this.getCursorPosition(),u=s.column;if(u!==0){var m=this.session.getLine(s.row),C,_;u<m.length?(C=m.charAt(u)+m.charAt(u-1),_=new c(s.row,u-1,s.row,u+1)):(C=m.charAt(u-1)+m.charAt(u-2),_=new c(s.row,u-2,s.row,u)),this.session.replace(_,C),this.session.selection.moveToPosition(_.end)}}},this.toLowerCase=function(){var s=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var u=this.getSelectionRange(),m=this.session.getTextRange(u);this.session.replace(u,m.toLowerCase()),this.selection.setSelectionRange(s)},this.toUpperCase=function(){var s=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var u=this.getSelectionRange(),m=this.session.getTextRange(u);this.session.replace(u,m.toUpperCase()),this.selection.setSelectionRange(s)},this.indent=function(){var s=this.session,u=this.getSelectionRange();if(u.start.row<u.end.row){var m=this.$getSelectedRows();s.indentRows(m.first,m.last," ");return}else if(u.start.column<u.end.column){var C=s.getTextRange(u);if(!/^\s+$/.test(C)){var m=this.$getSelectedRows();s.indentRows(m.first,m.last," ");return}}var _=s.getLine(u.start.row),M=u.start,R=s.getTabSize(),F=s.documentToScreenColumn(M.row,M.column);if(this.session.getUseSoftTabs())var I=R-F%R,x=o.stringRepeat(" ",I);else{for(var I=F%R;_[u.start.column-1]==" "&&I;)u.start.column--,I--;this.selection.setSelectionRange(u),x=" "}return this.insert(x)},this.blockIndent=function(){var s=this.$getSelectedRows();this.session.indentRows(s.first,s.last," ")},this.blockOutdent=function(){var s=this.session.getSelection();this.session.outdentRows(s.getRange())},this.sortLines=function(){for(var s=this.$getSelectedRows(),u=this.session,m=[],C=s.first;C<=s.last;C++)m.push(u.getLine(C));m.sort(function(R,F){return R.toLowerCase()<F.toLowerCase()?-1:R.toLowerCase()>F.toLowerCase()?1:0});for(var _=new c(0,0,0,0),C=s.first;C<=s.last;C++){var M=u.getLine(C);_.start.row=C,_.end.row=C,_.end.column=M.length,u.replace(_,m[C-s.first])}},this.toggleCommentLines=function(){var s=this.session.getState(this.getCursorPosition().row),u=this.$getSelectedRows();this.session.getMode().toggleCommentLines(s,this.session,u.first,u.last)},this.toggleBlockComment=function(){var s=this.getCursorPosition(),u=this.session.getState(s.row),m=this.getSelectionRange();this.session.getMode().toggleBlockComment(u,this.session,m,s)},this.getNumberAt=function(s,u){var m=/[\-]?[0-9]+(?:\.[0-9]+)?/g;m.lastIndex=0;for(var C=this.session.getLine(s);m.lastIndex<u;){var _=m.exec(C);if(_.index<=u&&_.index+_[0].length>=u){var M={value:_[0],start:_.index,end:_.index+_[0].length};return M}}return null},this.modifyNumber=function(s){var u=this.selection.getCursor().row,m=this.selection.getCursor().column,C=new c(u,m-1,u,m),_=this.session.getTextRange(C);if(!isNaN(parseFloat(_))&&isFinite(_)){var M=this.getNumberAt(u,m);if(M){var R=M.value.indexOf(".")>=0?M.start+M.value.indexOf(".")+1:M.end,F=M.start+M.value.length-R,I=parseFloat(M.value);I*=Math.pow(10,F),R!==M.end&&m<R?s*=Math.pow(10,M.end-m-1):s*=Math.pow(10,M.end-m),I+=s,I/=Math.pow(10,F);var x=I.toFixed(F),B=new c(u,M.start,u,M.end);this.session.replace(B,x),this.moveCursorTo(u,Math.max(M.start+1,m+x.length-M.value.length))}}else this.toggleWord()},this.$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"],["&&","||"],["==","!="]],this.toggleWord=function(){var s=this.selection.getCursor().row,u=th
|
||
|
---
|
||
|
`+n(this.$redoStack)}}).call(v.prototype);function p(g,f){for(var A=f;A--;){var s=g[A];if(s&&!s[0].ignore){for(;A<f-1;){var u=c(g[A],g[A+1]);g[A]=u[0],g[A+1]=u[1],A++}return!0}}}var h=E("./range").Range,o=h.comparePoints,a=h.comparePoints;function t(g){var f=g.action=="insert",A=g.start,s=g.end,u=(s.row-A.row)*(f?1:-1),m=(s.column-A.column)*(f?1:-1);f&&(s=A);for(var C in this.marks){var _=this.marks[C],M=a(_,A);if(!(M<0)){if(M===0&&f)if(_.bias==1)M=1;else{_.bias==-1;continue}var R=f?M:a(_,s);if(R>0){_.row+=u,_.column+=_.row==s.row?m:0;continue}!f&&R<=0&&(_.row=A.row,_.column=A.column,R===0&&(_.bias=1))}}}function e(g){return{row:g.row,column:g.column}}function i(g){return{start:e(g.start),end:e(g.end),action:g.action,lines:g.lines.slice()}}function n(g){if(g=g||this,Array.isArray(g))return g.map(n).join(`
|
||
|
`);var f="";return g.action?(f=g.action=="insert"?"+":"-",f+="["+g.lines+"]"):g.value&&(Array.isArray(g.value)?f=g.value.map(r).join(`
|
||
|
`):f=r(g.value)),g.start&&(f+=r(g)),(g.id||g.rev)&&(f+=" ("+(g.id||g.rev)+")"),f}function r(g){return g.start.row+":"+g.start.column+"=>"+g.end.row+":"+g.end.column}function l(g,f){var A=g.action=="insert",s=f.action=="insert";if(A&&s)if(o(f.start,g.end)>=0)y(f,g,-1);else if(o(f.start,g.start)<=0)y(g,f,1);else return null;else if(A&&!s)if(o(f.start,g.end)>=0)y(f,g,-1);else if(o(f.end,g.start)<=0)y(g,f,-1);else return null;else if(!A&&s)if(o(f.start,g.start)>=0)y(f,g,1);else if(o(f.start,g.start)<=0)y(g,f,1);else return null;else if(!A&&!s)if(o(f.start,g.start)>=0)y(f,g,1);else if(o(f.end,g.start)<=0)y(g,f,-1);else return null;return[f,g]}function c(g,f){for(var A=g.length;A--;)for(var s=0;s<f.length;s++)if(!l(g[A],f[s])){for(;A<g.length;){for(;s--;)l(f[s],g[A]);s=f.length,A++}return[g,f]}return g.selectionBefore=f.selectionBefore=g.selectionAfter=f.selectionAfter=null,[f,g]}function d(g,f){var A=g.action=="insert",s=f.action=="insert";if(A&&s)o(g.start,f.start)<0?y(f,g,1):y(g,f,1);else if(A&&!s)o(g.start,f.end)>=0?y(g,f,-1):(o(g.start,f.start)<=0||y(g,h.fromPoints(f.start,g.start),-1),y(f,g,1));else if(!A&&s)o(f.start,g.end)>=0?y(f,g,-1):(o(f.start,g.start)<=0||y(f,h.fromPoints(g.start,f.start),-1),y(g,f,1));else if(!A&&!s)if(o(f.start,g.end)>=0)y(f,g,-1);else if(o(f.end,g.start)<=0)y(g,f,-1);else{var u,m;return o(g.start,f.start)<0&&(u=g,g=b(g,f.start)),o(g.end,f.end)>0&&(m=b(g,f.end)),$(f.end,g.start,g.end,-1),m&&!u&&(g.lines=m.lines,g.start=m.start,g.end=m.end,m=g),[f,u,m].filter(Boolean)}return[f,g]}function y(g,f,A){$(g.start,f.start,f.end,A),$(g.end,f.start,f.end,A)}function $(g,f,A,s){g.row==(s==1?f:A).row&&(g.column+=s*(A.column-f.column)),g.row+=s*(A.row-f.row)}function b(g,f){var A=g.lines,s=g.end;g.end=e(f);var u=g.end.row-g.start.row,m=A.splice(u,A.length),C=u?f.column:f.column-g.start.column;A.push(m[0].substring(0,C)),m[0]=m[0].substr(C);var _={start:e(f),end:s,lines:m,action:g.action};return _}function w(g,f){f=i(f);for(var A=g.length;A--;){for(var s=g[A],u=0;u<s.length;u++){var m=s[u],C=d(m,f);f=C[0],C.length!=2&&(C[2]?(s.splice(u+1,1,C[1],C[2]),u++):C[1]||(s.splice(u,1),u--))}s.length||g.splice(A,1)}return g}function S(g,f){for(var A=0;A<f.length;A++)for(var s=f[A],u=0;u<s.length;u++)w(g,s[u])}L.UndoManager=v}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(E,L,k){"use strict";var v=E("../lib/dom"),p=function(h,o){this.element=h,this.canvasHeight=o||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(h){v.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},this.pageChanged=function(h,o){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)},this.computeLineTop=function(h,o,a){var t=o.firstRowScreen*o.lineHeight,e=Math.floor(t/this.canvasHeight),i=a.documentToScreenRow(h,0)*o.lineHeight;return i-e*this.canvasHeight},this.computeLineHeight=function(h,o,a){return o.lineHeight*a.getRowLineCount(h)},this.getLength=function(){return this.cells.length},this.get=function(h){return this.cells[h]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var o=v.createFragment(this.element),a=0;a<h.length;a++)o.appendChild(h[a].element);this.element.appendChild(o)}else this.cells.push(h),this.element.appendChild(h.element)},this.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var o=v.createFragment(this.element),a=0;a<h.length;a++)o.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(o,this.element.firstChild):this.element.appendChild(o)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(h){!h||(h.element.rem
|
||
|
`&&e.getNewLineMode()!="windows",n=i?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(i){this._signal("changeCharacterSize",i)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.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)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides===e?!1:(this.$highlightIndentGuides=e,e)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var i=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showTabs){var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_tab",r.textContent=h.stringRepeat(this.TAB_CHAR,n),i.push(r)}else i.push(this.dom.createTextNode(h.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var l="ace_indent-guide",c=this.showSpaces?" ace_invisible ace_invisible_space":"",d=this.showSpaces?h.stringRepeat(this.SPACE_CHAR,this.tabSize):h.stringRepeat(" ",this.tabSize),y=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?h.stringRepeat(this.TAB_CHAR,this.tabSize):d,r=this.dom.createElement("span");r.className=l+c,r.textContent=d,this.$tabStrings[" "]=r;var r=this.dom.createElement("span");r.className=l+y,r.textContent=$,this.$tabStrings[" "]=r}},this.updateLines=function(e,i,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var r=Math.max(i,e.firstRow),l=Math.min(n,e.lastRow),c=this.element.childNodes,d=0,$=e.firstRow;$<r;$++){var b=this.session.getFoldLine($);if(b)if(b.containsRow(r)){r=b.start.row;break}else $=b.end.row;d++}for(var y=!1,$=r,b=this.session.getNextFoldLine($),w=b?b.start.row:Infinity;$>w&&($=b.end.row+1,b=this.session.getNextFoldLine($,b),w=b?b.start.row:Infinity),!($>l);){var S=c[d++];if(S){this.dom.removeChildren(S),this.$renderLine(S,$,$==w?b:!1),y&&(S.style.top=this.$lines.computeLineTop($,e,this.session)+"px");var g=e.lineHeight*this.session.getRowLength($)+"px";S.style.height!=g&&(y=!0,S.style.height=g)}$++}if(y)for(;d<this.$lines.cells.length;){var f=this.$lines.cells[d++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},this.scrollLines=function(e){var i=this.config;if(this.config=e,this.$lines.pageChanged(i,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=i?i.lastRow:-1;if(!i||r<e.firstRow)return this.update(e);if(n<i.firstRow)return this.update(e);if(!i||i.lastRow<e.firstRow)return this.update(e);if(e.lastRow<i.firstRow)return this.update(e);if(i.firstRow<e.firstRow)for(var l=this.session.getFoldedRowCount(i.firstRow,e.firstRow-1);l>0;l--)this.$lines.shift();if(i.lastRow>e.lastRow)for(var l=this.session.getFoldedRowCount(e.lastRow+1,i.lastRow);l>0;l--)this.$lines.pop();e.firstRow<i.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,i.firstRow-1)),e.lastRow>i.lastRow&&this.$lines.push(this.$renderLinesFragment(e,i.lastRow+1,e.lastRow)),this.
|
||
|
position: absolute;
|
||
|
background: rgba(128, 128, 128, 0.6);
|
||
|
-moz-box-sizing: border-box;
|
||
|
box-sizing: border-box;
|
||
|
border: 1px solid #bbb;
|
||
|
border-radius: 2px;
|
||
|
z-index: 8;
|
||
|
}
|
||
|
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
||
|
position: absolute;
|
||
|
z-index: 6;
|
||
|
background: none;
|
||
|
overflow: hidden!important;
|
||
|
}
|
||
|
.ace_editor>.ace_sb-v {
|
||
|
z-index: 6;
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
width: 12px;
|
||
|
}
|
||
|
.ace_editor>.ace_sb-v div {
|
||
|
z-index: 8;
|
||
|
right: 0;
|
||
|
width: 100%;
|
||
|
}
|
||
|
.ace_editor>.ace_sb-h {
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
height: 12px;
|
||
|
}
|
||
|
.ace_editor>.ace_sb-h div {
|
||
|
bottom: 0;
|
||
|
height: 100%;
|
||
|
}
|
||
|
.ace_editor>.ace_sb_grabbed {
|
||
|
z-index: 8;
|
||
|
background: #000;
|
||
|
}`,"ace_scrollbar.css",!1);var a=function(i){this.element=p.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=p.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){v.implement(this,o),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(a.prototype);var t=function(i,n){a.call(this,i),this.scrollTop=0,this.scrollHeight=0,this.parent=i,this.width=this.VScrollWidth,this.renderer=n,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};v.inherits(t,a),function(){this.classSuffix="-v",v.implement(this,o),this.onMouseDown=function(i,n){if(i==="mousedown"&&!(h.getButton(n)!==0||n.detail===2)){if(n.target===this.inner){var r=this,l=n.clientY,c=function(g){l=g.clientY},d=function(){clearInterval(w)},y=n.clientY,$=this.thumbTop,b=function(){if(l!==void 0){var g=r.scrollTopFromThumbTop($+l-y);g!==r.scrollTop&&r._emit("scroll",{data:g})}};h.capture(this.inner,c,d);var w=setInterval(b,20);return h.preventDefault(n)}var S=n.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(S)}),h.preventDefault(n)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(i){var n=i*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return n=n>>0,n<0?n=0:n>this.pageHeight-this.viewHeight&&(n=this.pageHeight-this.viewHeight),n},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.height=Math.max(0,i),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(i,n){this.pageHeight===i&&!n||(this.pageHeight=i,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})))},this.setScrollTop=function(i){this.scrollTop=i,i<0&&(i=0),this.thumbTop=i*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(t.prototype);var e=function(i,n){a.call(this,i),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=n};v.inherits(e,a),function(){this.classSuffix="-h",v.implement(this,o),this.onMouseDown=function(i,n){if(i==="mousedown"&&!(h.getButton(n)!==0||n.detail===2)){if(n.target===this.inner){var r=this,l=n.clientX,c=function(g){l=g.clientX},d=function(){clearInterval(w)},y=n.clientX,$=this.thumbLeft,b=function(){if(l!==void 0){var g=r.scrollLeftFromThumbLeft($+l-y);g!==r.scrollLeft&&r._emit("scroll",{data:g})}};h.capture(this.inner,c,d);var w=setInterval(b,20);return h.preventDefault(n)}var S=n.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(S)}),h.preventDefault(n)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(i){var n=i*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return n=n>>0,n<0?n=0:n>this.pageWidth-this.viewWidth&&(n=this.pageWidth-this.viewWidth),n},this.setWidth=function(i){this.width=Math.max(0,i),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(i,n){this.pageWidth===i&&!n||(this.pageWidth=i,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbW
|
||
|
.ace_br1 {border-top-left-radius : 3px;}
|
||
|
.ace_br2 {border-top-right-radius : 3px;}
|
||
|
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
||
|
.ace_br4 {border-bottom-right-radius: 3px;}
|
||
|
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
||
|
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
||
|
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
||
|
.ace_br8 {border-bottom-left-radius : 3px;}
|
||
|
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
|
||
|
|
||
|
.ace_editor {
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
padding: 0;
|
||
|
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
||
|
direction: ltr;
|
||
|
text-align: left;
|
||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
|
}
|
||
|
|
||
|
.ace_scroller {
|
||
|
position: absolute;
|
||
|
overflow: hidden;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
background-color: inherit;
|
||
|
-ms-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
user-select: none;
|
||
|
cursor: text;
|
||
|
}
|
||
|
|
||
|
.ace_content {
|
||
|
position: absolute;
|
||
|
box-sizing: border-box;
|
||
|
min-width: 100%;
|
||
|
contain: style size layout;
|
||
|
font-variant-ligatures: no-common-ligatures;
|
||
|
}
|
||
|
|
||
|
.ace_dragging .ace_scroller:before{
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
content: '';
|
||
|
background: rgba(250, 250, 250, 0.01);
|
||
|
z-index: 1000;
|
||
|
}
|
||
|
.ace_dragging.ace_dark .ace_scroller:before{
|
||
|
background: rgba(0, 0, 0, 0.01);
|
||
|
}
|
||
|
|
||
|
.ace_gutter {
|
||
|
position: absolute;
|
||
|
overflow : hidden;
|
||
|
width: auto;
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
cursor: default;
|
||
|
z-index: 4;
|
||
|
-ms-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
user-select: none;
|
||
|
contain: style size layout;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-active-line {
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
.ace_scroller.ace_scroll-left:after {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-cell {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
padding-left: 19px;
|
||
|
padding-right: 6px;
|
||
|
background-repeat: no-repeat;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-cell.ace_error {
|
||
|
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==");
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: 2px center;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-cell.ace_warning {
|
||
|
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==");
|
||
|
background-position: 2px center;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-cell.ace_info {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
||
|
background-position: 2px center;
|
||
|
}
|
||
|
.ace_dark .ace_gutter-cell.ace_info {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
||
|
}
|
||
|
|
||
|
.ace_scrollbar {
|
||
|
contain: strict;
|
||
|
position: absolute;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
z-index: 6;
|
||
|
}
|
||
|
|
||
|
.ace_scrollbar-inner {
|
||
|
position: absolute;
|
||
|
cursor: text;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
}
|
||
|
|
||
|
.ace_scrollbar-v{
|
||
|
overflow-x: hidden;
|
||
|
overflow-y: scroll;
|
||
|
top: 0;
|
||
|
}
|
||
|
|
||
|
.ace_scrollbar-h {
|
||
|
overflow-x: scroll;
|
||
|
overflow-y: hidden;
|
||
|
left: 0;
|
||
|
}
|
||
|
|
||
|
.ace_print-margin {
|
||
|
position: absolute;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.ace_text-input {
|
||
|
position: absolute;
|
||
|
z-index: 0;
|
||
|
width: 0.5em;
|
||
|
height: 1em;
|
||
|
opacity: 0;
|
||
|
background: transparent;
|
||
|
-moz-appearance: none;
|
||
|
appearance: none;
|
||
|
border: none;
|
||
|
resize: none;
|
||
|
outline: none;
|
||
|
overflow: hidden;
|
||
|
font: inherit;
|
||
|
padding: 0 1px;
|
||
|
margin: 0 -1px;
|
||
|
contain: strict;
|
||
|
-ms-user-select: text;
|
||
|
-moz-user-select: text;
|
||
|
-webkit-user-select: text;
|
||
|
user-select: text;
|
||
|
/*with \`pre-line\` chrome inserts instead of space*/
|
||
|
white-space: pre!important;
|
||
|
}
|
||
|
.ace_text-input.ace_composition {
|
||
|
background: transparent;
|
||
|
color: inherit;
|
||
|
z-index: 1000;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
.ace_composition_placeholder { color: transparent }
|
||
|
.ace_composition_marker {
|
||
|
border-bottom: 1px solid;
|
||
|
position: absolute;
|
||
|
border-radius: 0;
|
||
|
margin-top: 1px;
|
||
|
}
|
||
|
|
||
|
[ace_nocontext=true] {
|
||
|
transform: none!important;
|
||
|
filter: none!important;
|
||
|
clip-path: none!important;
|
||
|
mask : none!important;
|
||
|
contain: none!important;
|
||
|
perspective: none!important;
|
||
|
mix-blend-mode: initial!important;
|
||
|
z-index: auto;
|
||
|
}
|
||
|
|
||
|
.ace_layer {
|
||
|
z-index: 1;
|
||
|
position: absolute;
|
||
|
overflow: hidden;
|
||
|
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
||
|
word-wrap: normal;
|
||
|
white-space: pre;
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
box-sizing: border-box;
|
||
|
/* setting pointer-events: auto; on node under the mouse, which changes
|
||
|
during scroll, will break mouse wheel scrolling in Safari */
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
.ace_gutter-layer {
|
||
|
position: relative;
|
||
|
width: auto;
|
||
|
text-align: right;
|
||
|
pointer-events: auto;
|
||
|
height: 1000000px;
|
||
|
contain: style size layout;
|
||
|
}
|
||
|
|
||
|
.ace_text-layer {
|
||
|
font: inherit !important;
|
||
|
position: absolute;
|
||
|
height: 1000000px;
|
||
|
width: 1000000px;
|
||
|
contain: style size layout;
|
||
|
}
|
||
|
|
||
|
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
||
|
contain: style size layout;
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
.ace_hidpi .ace_text-layer,
|
||
|
.ace_hidpi .ace_gutter-layer,
|
||
|
.ace_hidpi .ace_content,
|
||
|
.ace_hidpi .ace_gutter {
|
||
|
contain: strict;
|
||
|
will-change: transform;
|
||
|
}
|
||
|
.ace_hidpi .ace_text-layer > .ace_line,
|
||
|
.ace_hidpi .ace_text-layer > .ace_line_group {
|
||
|
contain: strict;
|
||
|
}
|
||
|
|
||
|
.ace_cjk {
|
||
|
display: inline-block;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.ace_cursor-layer {
|
||
|
z-index: 4;
|
||
|
}
|
||
|
|
||
|
.ace_cursor {
|
||
|
z-index: 4;
|
||
|
position: absolute;
|
||
|
box-sizing: border-box;
|
||
|
border-left: 2px solid;
|
||
|
/* workaround for smooth cursor repaintng whole screen in chrome */
|
||
|
transform: translatez(0);
|
||
|
}
|
||
|
|
||
|
.ace_multiselect .ace_cursor {
|
||
|
border-left-width: 1px;
|
||
|
}
|
||
|
|
||
|
.ace_slim-cursors .ace_cursor {
|
||
|
border-left-width: 1px;
|
||
|
}
|
||
|
|
||
|
.ace_overwrite-cursors .ace_cursor {
|
||
|
border-left-width: 0;
|
||
|
border-bottom: 1px solid;
|
||
|
}
|
||
|
|
||
|
.ace_hidden-cursors .ace_cursor {
|
||
|
opacity: 0.2;
|
||
|
}
|
||
|
|
||
|
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
.ace_smooth-blinking .ace_cursor {
|
||
|
transition: opacity 0.18s;
|
||
|
}
|
||
|
|
||
|
.ace_animate-blinking .ace_cursor {
|
||
|
animation-duration: 1000ms;
|
||
|
animation-timing-function: step-end;
|
||
|
animation-name: blink-ace-animate;
|
||
|
animation-iteration-count: infinite;
|
||
|
}
|
||
|
|
||
|
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
||
|
animation-duration: 1000ms;
|
||
|
animation-timing-function: ease-in-out;
|
||
|
animation-name: blink-ace-animate-smooth;
|
||
|
}
|
||
|
|
||
|
@keyframes blink-ace-animate {
|
||
|
from, to { opacity: 1; }
|
||
|
60% { opacity: 0; }
|
||
|
}
|
||
|
|
||
|
@keyframes blink-ace-animate-smooth {
|
||
|
from, to { opacity: 1; }
|
||
|
45% { opacity: 1; }
|
||
|
60% { opacity: 0; }
|
||
|
85% { opacity: 0; }
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
||
|
position: absolute;
|
||
|
z-index: 3;
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_selection {
|
||
|
position: absolute;
|
||
|
z-index: 5;
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_bracket {
|
||
|
position: absolute;
|
||
|
z-index: 6;
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_error_bracket {
|
||
|
position: absolute;
|
||
|
border-bottom: 1px solid #DE5555;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_active-line {
|
||
|
position: absolute;
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
.ace_marker-layer .ace_selected-word {
|
||
|
position: absolute;
|
||
|
z-index: 4;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
.ace_line .ace_fold {
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
display: inline-block;
|
||
|
height: 11px;
|
||
|
margin-top: -2px;
|
||
|
vertical-align: middle;
|
||
|
|
||
|
background-image:
|
||
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
||
|
background-repeat: no-repeat, repeat-x;
|
||
|
background-position: center center, top left;
|
||
|
color: transparent;
|
||
|
|
||
|
border: 1px solid black;
|
||
|
border-radius: 2px;
|
||
|
|
||
|
cursor: pointer;
|
||
|
pointer-events: auto;
|
||
|
}
|
||
|
|
||
|
.ace_dark .ace_fold {
|
||
|
}
|
||
|
|
||
|
.ace_fold:hover{
|
||
|
background-image:
|
||
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
||
|
}
|
||
|
|
||
|
.ace_tooltip {
|
||
|
background-color: #f5f5f5;
|
||
|
border: 1px solid gray;
|
||
|
border-radius: 1px;
|
||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||
|
color: black;
|
||
|
max-width: 100%;
|
||
|
padding: 3px 4px;
|
||
|
position: fixed;
|
||
|
z-index: 999999;
|
||
|
box-sizing: border-box;
|
||
|
cursor: default;
|
||
|
white-space: pre;
|
||
|
word-wrap: break-word;
|
||
|
line-height: normal;
|
||
|
font-style: normal;
|
||
|
font-weight: normal;
|
||
|
letter-spacing: normal;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
|
||
|
.ace_tooltip:focus {
|
||
|
outline: 1px solid black;
|
||
|
}
|
||
|
|
||
|
.ace_folding-enabled > .ace_gutter-cell {
|
||
|
padding-right: 13px;
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget {
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
margin: 0 -12px 0 1px;
|
||
|
display: none;
|
||
|
width: 11px;
|
||
|
vertical-align: top;
|
||
|
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
||
|
background-repeat: no-repeat;
|
||
|
background-position: center;
|
||
|
|
||
|
border-radius: 3px;
|
||
|
|
||
|
border: 1px solid transparent;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.ace_folding-enabled .ace_fold-widget {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget.ace_end {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget.ace_closed {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget:hover {
|
||
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
||
|
background-color: rgba(255, 255, 255, 0.2);
|
||
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget:active {
|
||
|
border: 1px solid rgba(0, 0, 0, 0.4);
|
||
|
background-color: rgba(0, 0, 0, 0.05);
|
||
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
||
|
}
|
||
|
/**
|
||
|
* Dark version for fold widgets
|
||
|
*/
|
||
|
.ace_dark .ace_fold-widget {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
||
|
}
|
||
|
.ace_dark .ace_fold-widget.ace_end {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
||
|
}
|
||
|
.ace_dark .ace_fold-widget.ace_closed {
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
||
|
}
|
||
|
.ace_dark .ace_fold-widget:hover {
|
||
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
|
background-color: rgba(255, 255, 255, 0.1);
|
||
|
}
|
||
|
.ace_dark .ace_fold-widget:active {
|
||
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
|
}
|
||
|
|
||
|
.ace_inline_button {
|
||
|
border: 1px solid lightgray;
|
||
|
display: inline-block;
|
||
|
margin: -1px 8px;
|
||
|
padding: 0 5px;
|
||
|
pointer-events: auto;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
.ace_inline_button:hover {
|
||
|
border-color: gray;
|
||
|
background: rgba(200,200,200,0.2);
|
||
|
display: inline-block;
|
||
|
pointer-events: auto;
|
||
|
}
|
||
|
|
||
|
.ace_fold-widget.ace_invalid {
|
||
|
background-color: #FFB4B4;
|
||
|
border-color: #DE5555;
|
||
|
}
|
||
|
|
||
|
.ace_fade-fold-widgets .ace_fold-widget {
|
||
|
transition: opacity 0.4s ease 0.05s;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
|
||
|
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
||
|
transition: opacity 0.05s ease 0.05s;
|
||
|
opacity:1;
|
||
|
}
|
||
|
|
||
|
.ace_underline {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
|
||
|
.ace_bold {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.ace_nobold .ace_bold {
|
||
|
font-weight: normal;
|
||
|
}
|
||
|
|
||
|
.ace_italic {
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
|
||
|
.ace_error-marker {
|
||
|
background-color: rgba(255, 0, 0,0.2);
|
||
|
position: absolute;
|
||
|
z-index: 9;
|
||
|
}
|
||
|
|
||
|
.ace_highlight-marker {
|
||
|
background-color: rgba(255, 255, 0,0.2);
|
||
|
position: absolute;
|
||
|
z-index: 8;
|
||
|
}
|
||
|
|
||
|
.ace_mobile-menu {
|
||
|
position: absolute;
|
||
|
line-height: 1.5;
|
||
|
border-radius: 4px;
|
||
|
-ms-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
user-select: none;
|
||
|
background: white;
|
||
|
box-shadow: 1px 3px 2px grey;
|
||
|
border: 1px solid #dcdcdc;
|
||
|
color: black;
|
||
|
}
|
||
|
.ace_dark > .ace_mobile-menu {
|
||
|
background: #333;
|
||
|
color: #ccc;
|
||
|
box-shadow: 1px 3px 2px grey;
|
||
|
border: 1px solid #444;
|
||
|
|
||
|
}
|
||
|
.ace_mobile-button {
|
||
|
padding: 2px;
|
||
|
cursor: pointer;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
.ace_mobile-button:hover {
|
||
|
background-color: #eee;
|
||
|
opacity:1;
|
||
|
}
|
||
|
.ace_mobile-button:active {
|
||
|
background-color: #ddd;
|
||
|
}
|
||
|
|
||
|
.ace_placeholder {
|
||
|
font-family: arial;
|
||
|
transform: scale(0.9);
|
||
|
transform-origin: left;
|
||
|
white-space: pre;
|
||
|
opacity: 0.7;
|
||
|
margin: 0 10px;
|
||
|
}
|
||
|
|
||
|
.ace_ghost_text {
|
||
|
opacity: 0.5;
|
||
|
font-style: italic;
|
||
|
white-space: pre;
|
||
|
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(E,L,k){"use strict";var v=E("../lib/dom"),p=E("../lib/oop"),h=E("../lib/event_emitter").EventEmitter,o=function(a,t){this.canvas=v.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",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)"},a.element.appendChild(this.canvas)};(function(){p.implement(this,h),this.$updateDecorators=function(a){var t=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var e=(a.lastRow+1)*this.lineHeight;e<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var i=this.canvas.getContext("2d");function n(s,u){return s.priority<u.priority?-1:s.priority>u.priority?1:0}var r=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),r){var l={info:1,warning:2,error:3};r.forEach(function(s){s.priority=l[s.type]||null}),r=r.sort(n);for(var c=this.renderer.session.$foldData,d=0;d<r.length;d++){var y=r[d].row,$=this.compensateFoldRows(y,c),b=Math.round((y-$)*this.lineHeight*this.heightRatio),w=Math.round((y-$)*this.lineHeight*this.heightRatio),S=Math.round(((y-$)*this.lineHeight+this.lineHeight)*this.heightRatio),g=S-w;if(g<this.minDecorationHeight){var f=(w+S)/2|0;f<this.halfMinDecorationHeight?f=this.halfMinDecorationHeight:f+this.halfMinDecorationHeight>this.canvasHeight&&(f=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(f-this.halfMinDecorationHeight),S=Math.round(f+this.halfMinDecorationHeight)}i.fillStyle=t[r[d].type]||null,i.fillRect(0,b,this.canvasWidth,S-w)}}var A=this.renderer.session.selection.getCursor();if(A){var $=this.compensateFoldRows(A.row,c),b=Math.round((A.row-$)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,b,this.canvasWidth,2)}},this.compensateFoldRows=function(a,t){var e=0;if(t&&t.length>0)for(var i=0;i<t.length;i++)a>t[i].start.row&&a<t[i].end.row?e+=a-t[i].start.row:a>=t[i].end.row&&(e+=t[i].end.row-t[i].start.row);return e}}).call(o.prototype),L.Decorator=o}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","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"],function(E,L,k){"use strict";var v=E("./lib/oop"),p=E("./lib/dom"),h=E("./config"),o=E("./layer/gutter").Gutter,a=E("./layer/marker").Marker,t=E("./layer/text").Text,e=E("./layer/cursor").Cursor,i=E("./scrollbar").HScrollBar,n=E("./scrollbar").VScrollBar,r=E("./scrollbar_custom").HScrollBar,l=E("./scrollbar_custom").VScrollBar,c=E("./renderloop").RenderLoop,d=E("./layer/font_metrics").FontMetrics,y=E("./lib/event_emitter").EventEmitter,$=E("./css/editor.css"),b=E("./layer/decorators").Decorator,w=E("./lib/useragent"),S=w.isIE;p.importCssString($,"ace_editor.css",!1);var g=function(f,A){var s=this;this.container=f||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=p.createElement("div"),this.$gutte
|
||
|
`);this.addToken(m[0],"ghost_text",u.row,u.column),this.$ghostText={text:f,position:{row:u.row,column:u.column}},m.length>1&&(this.$ghostTextWidget={text:m.slice(1).join(`
|
||
|
`),row:u.row,column:u.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},this.removeGhostText=function(){if(!!this.$ghostText){var f=this.$ghostText.position;this.removeExtraToken(f.row,f.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},this.addToken=function(f,A,s,u){var m=this.session;m.bgTokenizer.lines[s]=null;var C={type:A,value:f},_=m.getTokens(s);if(u==null||!_.length)_.push(C);else for(var M=0,R=0;R<_.length;R++){var F=_[R];if(M+=F.value.length,u<=M){var I=F.value.length-(M-u),x=F.value.slice(0,I),B=F.value.slice(I);_.splice(R,1,{type:F.type,value:x},C,{type:F.type,value:B});break}}this.updateLines(s,s)},this.removeExtraToken=function(f,A){this.session.bgTokenizer.lines[f]=null,this.updateLines(f,f)},this.setTheme=function(f,A){var s=this;if(this.$themeId=f,s._dispatchEvent("themeChange",{theme:f}),!f||typeof f=="string"){var u=f||this.$options.theme.initialValue;h.loadModule(["theme",u],m)}else m(f);function m(C){if(s.$themeId!=f)return A&&A();if(!C||!C.cssClass)throw new Error("couldn't load module "+f+" or it didn't call define");C.$id&&(s.$themeId=C.$id),p.importCssString(C.cssText,C.cssClass,s.container),s.theme&&p.removeCssClass(s.container,s.theme.cssClass);var _="padding"in C?C.padding:"padding"in(s.theme||{})?4:s.$padding;s.$padding&&_!=s.$padding&&s.setPadding(_),s.$theme=C.cssClass,s.theme=C,p.addCssClass(s.container,C.cssClass),p.setCssClass(s.container,"ace_dark",C.isDark),s.$size&&(s.$size.width=0,s.$updateSizeAsync()),s._dispatchEvent("themeLoaded",{theme:C}),A&&A()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(f,A){p.setCssClass(this.container,f,A!==!1)},this.unsetStyle=function(f){p.removeCssClass(this.container,f)},this.setCursorStyle=function(f){p.setStyle(this.scroller.style,"cursor",f)},this.setMouseCursor=function(f){p.setStyle(this.scroller.style,"cursor",f)},this.attachToShadowRoot=function(){p.importCssString($,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(f){var A=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,f===!0?(this.scrollBarV=new l(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(s){A.$scrollAnimation||A.session.setScrollTop(s.data-A.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(s){A.$scrollAnimation||A.session.setScrollLeft(s.data-A.scrollMargin.left)}),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new n(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.addEventListener("scroll",function(s){A.$scrollAnimation||A.session.setScrollTop(s.data-A.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(s){A.$scrollAnimation||A.session.setScrollLeft(s.data-A.scrollMargin.left)}))}}).call(g.prototype),h.defineOptions(g.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(f){this.$textLayer.setShowInvisibles(f)&&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(f){typeof f=="number"&&(this.$printMarginColumn=f),this.$showPrintMargin=!!f,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(f){this.$gutter.style.display=f?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(f){p.setC
|
||
|
`)+`
|
||
|
`),m||(A.start.column=0,A.end.column=M[M.length-1].length),this.selection.setRange(A)}else{f.forEach(function(x){w.substractPoint(x.cursor)});var R=0,F=Infinity,I=S.map(function(x){var B=x.cursor,O=b.getLine(B.row),P=O.substr(B.column).search(/\S/g);return P==-1&&(P=0),B.column>R&&(R=B.column),P<F&&(F=P),P});S.forEach(function(x,B){var O=x.cursor,P=R-O.column,W=I[B]-F;P>W?b.insert(O,t.stringRepeat(" ",P-W)):b.remove(new p(O.row,O.column,O.row,O.column-P+W)),x.start.column=x.end.column=R,x.start.row=x.end.row=O.row,x.cursor=x.end}),w.fromOrientedRange(S[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(b,w){var S=!0,g=!0,f,A,s;return b.map(function(M){var R=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return R?f==null?(f=R[1].length,A=R[2].length,s=R[3].length,R):(f+A+s!=R[1].length+R[2].length+R[3].length&&(g=!1),f!=R[1].length&&(S=!1),f>R[1].length&&(f=R[1].length),A<R[2].length&&(A=R[2].length),s>R[3].length&&(s=R[3].length),R):[M]}).map(w?m:S?g?C:m:_);function u(M){return t.stringRepeat(" ",M)}function m(M){return M[2]?u(f)+M[2]+u(A-M[2].length+s)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function C(M){return M[2]?u(f+A-M[2].length)+M[2]+u(s)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function _(M){return M[2]?u(f)+M[2]+u(s)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(c.prototype);function d(b,w){return b.row==w.row&&b.column==w.column}L.onSessionChange=function(b){var w=b.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var S=b.oldSession;S&&(S.multiSelect.off("addRange",this.$onAddRange),S.multiSelect.off("removeRange",this.$onRemoveRange),S.multiSelect.off("multiSelect",this.$onMultiSelect),S.multiSelect.off("singleSelect",this.$onSingleSelect),S.multiSelect.lead.off("change",this.$checkMultiselectChange),S.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(b){b.$multiselectOnSessionChange||(b.$onAddRange=b.$onAddRange.bind(b),b.$onRemoveRange=b.$onRemoveRange.bind(b),b.$onMultiSelect=b.$onMultiSelect.bind(b),b.$onSingleSelect=b.$onSingleSelect.bind(b),b.$multiselectOnSessionChange=L.onSessionChange.bind(b),b.$checkMultiselectChange=b.$checkMultiselectChange.bind(b),b.$multiselectOnSessionChange(b),b.on("changeSession",b.$multiselectOnSessionChange),b.on("mousedown",o),b.commands.addCommands(e.defaultCommands),$(b))}function $(b){if(!b.textInput)return;var w=b.textInput.getElement(),S=!1;a.addListener(w,"keydown",function(f){var A=f.keyCode==18&&!(f.ctrlKey||f.shiftKey||f.metaKey);b.$blockSelectEnabled&&A?S||(b.renderer.setMouseCursor("crosshair"),S=!0):S&&g()},b),a.addListener(w,"keyup",g,b),a.addListener(w,"blur",g,b);function g(f){S&&(b.renderer.setMouseCursor(""),S=!1)}}L.MultiSelect=y,E("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(b){y(this),b?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(b){this.$blockSelectEnabled=b},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(E,L,k){"use strict";var v=E("../../range").Range,p=L.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(h,o,a){var t=h.getLine(a);return this.foldingStartMarker.test(t)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(h,o,a){return null},this.indentat
|
||
|
.error_widget_wrapper {
|
||
|
background: inherit;
|
||
|
color: inherit;
|
||
|
border:none
|
||
|
}
|
||
|
.error_widget {
|
||
|
border-top: solid 2px;
|
||
|
border-bottom: solid 2px;
|
||
|
margin: 5px 0;
|
||
|
padding: 10px 40px;
|
||
|
white-space: pre-wrap;
|
||
|
}
|
||
|
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
||
|
border-color: #ff5a5a
|
||
|
}
|
||
|
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
||
|
border-color: #F1D817
|
||
|
}
|
||
|
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
||
|
border-color: #5a5a5a
|
||
|
}
|
||
|
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
||
|
border-color: #5aaa5a
|
||
|
}
|
||
|
.error_widget_arrow {
|
||
|
position: absolute;
|
||
|
border: solid 5px;
|
||
|
border-top-color: transparent!important;
|
||
|
border-right-color: transparent!important;
|
||
|
border-left-color: transparent!important;
|
||
|
top: -5px;
|
||
|
}
|
||
|
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","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(E,L,k){"use strict";E("./loader_build")(L);var v=E("./lib/dom"),p=E("./lib/event"),h=E("./range").Range,o=E("./editor").Editor,a=E("./edit_session").EditSession,t=E("./undomanager").UndoManager,e=E("./virtual_renderer").VirtualRenderer;E("./worker/worker_client"),E("./keyboard/hash_handler"),E("./placeholder"),E("./multi_select"),E("./mode/folding/fold_mode"),E("./theme/textmate"),E("./ext/error_marker"),L.config=E("./config"),L.edit=function(i,n){if(typeof i=="string"){var r=i;if(i=document.getElementById(r),!i)throw new Error("ace.edit can't find div #"+r)}if(i&&i.env&&i.env.editor instanceof o)return i.env.editor;var l="";if(i&&/input|textarea/i.test(i.tagName)){var c=i;l=c.value,i=v.createElement("pre"),c.parentNode.replaceChild(i,c)}else i&&(l=i.textContent,i.innerHTML="");var d=L.createEditSession(l),y=new o(new e(i),d,n),$={document:d,editor:y,onResize:y.resize.bind(y,null)};return c&&($.textarea=c),p.addListener(window,"resize",$.onResize),y.on("destroy",function(){p.removeListener(window,"resize",$.onResize),$.editor.container.env=null}),y.container.env=y.env=$,y},L.createEditSession=function(i,n){var r=new a(i,n);return r.setUndoManager(new t),r},L.Range=h,L.Editor=o,L.EditSession=a,L.UndoManager=t,L.VirtualRenderer=e,L.version=L.config.version}),function(){ace.require(["ace/ace"],function(E){E&&(E.config.init(!0),E.define=ace.define),window.ace||(window.ace=E);for(var L in E)E.hasOwnProperty(L)&&(window.ace[L]=E[L]);window.ace.default=window.ace,ve&&(ve.exports=window.ace)})}()},21545:function(ve,U,X){ve=X.nmd(ve),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(E,L,k){"use strict";var v=E("./lib/oop"),p=E("./lib/lang"),h=E("./lib/event_emitter").EventEmitter,o=E("./editor").Editor,a=E("./virtual_renderer").VirtualRenderer,t=E("./edit_session").EditSession,e=function(i,n,r){this.BELOW=1,this.BESIDE=0,this.$container=i,this.$theme=n,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(r||1),this.$cEditor=this.$editors[0],this.on("focus",function(l){this.$cEditor=l}.bind(this))};(function(){v.implement(this,h),this.$createEditor=function(){var i=document.createElement("div");i.className=this.$editorCSS,i.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(i);var n=new o(new a(i,this.$theme));return n.on("focus",function(){this._emit("focus",n)}.bind(this)),this.$editors.push(n),n.setFontSize(this.$fontSize),n},this.setSplits=function(i){var n;if(i<1)throw"The number of splits have to be > 0!";if(i!=this.$splits){if(i>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<i;)n=this.$editors[this.$splits],this.$container.appendChild(n.container),n.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<i;)this.$createEditor(),this.$splits++}else for(;this.$splits>i;)n=this.$editors[this.$splits-1],this.$container.removeChild(n.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(i){return this.$editors[i]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(i){this.$editors.forEach(function(n){n.setTheme(i)})},this.setKeyboardHandler=function(i){this.$editors.forEach(function(n){n.setKeyboardHandler(i)})},this.forEach=function(i,n){this.$editors.forEach(i,n)},this.$fontSize="",this.setFontSize=function(i){this.$fontSize=i,this.forEach(function(n){n.setFontSize(i)})},this.$cloneSession=function(i){var n=new t(i.getDocument(),i.getMode()),r=i
|