PageSourceSearch

https://store.thebereancall.org/web/static/lib/ace/ace.odoo-custom.js

js thebereancall.org collected 2026-09-24 19:01:44 UTC 514,505 bytes, 9,839 lines download raw bytes

1(function() {
2    function o(n) {
3        var i = e;
4        n && (e[n] || (e[n] = {}), i = e[n]);
5        if (!i.define || !i.define.packaged) t.original = i.define, i.define = t, i.define.packaged = !0;
6        if (!i.require || !i.require.packaged) r.original = i.require, i.require = r, i.require.packaged = !0
7    }
8    var ACE_NAMESPACE = "",
9        e = {};
10    window.ace = e;
11    if (!ACE_NAMESPACE && typeof requirejs != "undefined") return;
12    var t = function(e, n, r) {
13        if (typeof e != "string") {
14            t.original ? t.original.apply(this, arguments) : (console.error("dropping module because define wasn't a string."), console.trace());
15            return
16        }
17        arguments.length == 2 && (r = n), t.modules[e] || (t.payloads[e] = r, t.modules[e] = null)
18    };
19    t.modules = {}, t.payloads = {};
20    var n = function(e, t, n) {
21            if (typeof t == "string") {
22                var i = s(e, t);
23                if (i != undefined) return n && n(), i
24            } else if (Object.prototype.toString.call(t) === "[object Array]") {
25                var o = [];
26                for (var u = 0, a = t.length; u < a; ++u) {
27                    var f = s(e, t[u]);
28                    if (f == undefined && r.original) return;
29                    o.push(f)
30                }
31                return n && n.apply(null, o) || !0
32            }
33        },
34        r = function(e, t) {
35            var i = n("", e, t);
36            return i == undefined && r.original ? r.original.apply(this, arguments) : i
37        },
38        i = function(e, t) {
39            if (t.indexOf("!") !== -1) {
40                var n = t.split("!");
41                return i(e, n[0]) + "!" + i(e, n[1])
42            }
43            if (t.charAt(0) == ".") {
44                var r = e.split("/").slice(0, -1).join("/");
45                t = r + "/" + t;
46                while (t.indexOf(".") !== -1 && s != t) {
47                    var s = t;
48                    t = t.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, "")
49                }
50            }
51            return t
52        },
53        s = function(e, r) {
54            r = i(e, r);
55            var s = t.modules[r];
56            if (!s) {
57                s = t.payloads[r];
58                if (typeof s == "function") {
59                    var o = {},
60                        u = {
61                            id: r,
62                            uri: "",
63                            exports: o,
64                            packaged: !0
65                        },
66                        a = function(e, t) {
67                            return n(r, e, t)
68                        },
69                        f = s(a, o, u);
70                    o = f || u.exports, t.modules[r] = o, delete t.payloads[r]
71                }
72                s = t.modules[r] = o || s
73            }
74            return s
75        };
76    o(ACE_NAMESPACE)
77})();
78(function() {var define = ace.define, require = ace.require;
79define("ace/lib/regexp", ["require", "exports", "module"], function(e, t, n) {
80    "use strict";
81
82    function o(e) {
83        return (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.extended ? "x" : "") + (e.sticky ? "y" : "")
84    }
85
86    function u(e, t, n) {
87        if (Array.prototype.indexOf) return e.indexOf(t, n);
88        for (var r = n || 0; r < e.length; r++)
89            if (e[r] === t) return r;
90        return -1
91    }
92    var r = {
93            exec: RegExp.prototype.exec,
94            test: RegExp.prototype.test,
95            match: String.prototype.match,
96            replace: String.prototype.replace,
97            split: String.prototype.split
98        },
99        i = r.exec.call(/()??/, "")[1] === undefined,
100        s = function() {
101            var e = /^/g;
102            return r.test.call(e, ""), !e.lastIndex
103        }();
104    if (s && i) return;
105    RegExp.prototype.exec = function(e) {
106        var t = r.exec.apply(this, arguments),
107            n, a;
108        if (typeof e == "string" && t) {
109            !i && t.length > 1 && u(t, "") > -1 && (a = RegExp(this.source, r.replace.call(o(this), "g", "")), r.replace.call(e.slice(t.index), a, function() {
110                for (var e = 1; e < arguments.length - 2; e++) arguments[e] === undefined && (t[e] = undefined)
111            }));
112            if (this._xregexp && this._xregexp.captureNames)
113                for (var f = 1; f < t.length; f++) n = this._xregexp.captureNames[f - 1], n && (t[n] = t[f]);
114            !s && this.global && !t[0].length && this.lastIndex > t.index && this.lastIndex--
115        }
116        return t
117    }
117, s || (RegExp.prototype.test = function(e) {
118        var t = r.exec.call(this, e);
119        return t && this.global && !t[0].length && this.lastIndex > t.index && this.lastIndex--, !!t
120    })
121}), define("ace/lib/es5-shim", ["require", "exports", "module"], function(e, t, n) {
122    function r() {}
123
124    function w(e) {
125        try {
126            return Object.defineProperty(e, "sentinel", {}), "sentinel" in e
127        } catch (t) {}
128    }
129
130    function H(e) {
131        return e = +e, e !== e ? e = 0 : e !== 0 && e !== 1 / 0 && e !== -1 / 0 && (e = (e > 0 || -1) * Math.floor(Math.abs(e))), e
132    }
133
134    function B(e) {
135        var t = typeof e;
136        return e === null || t === "undefined" || t === "boolean" || t === "number" || t === "string"
137    }
138
139    function j(e) {
140        var t, n, r;
141        if (B(e)) return e;
142        n = e.valueOf;
143        if (typeof n == "function") {
144            t = n.call(e);
145            if (B(t)) return t
146        }
147        r = e.toString;
148        if (typeof r == "function") {
149            t = r.call(e);
150            if (B(t)) return t
151        }
152        throw new TypeError
153    }
154    Function.prototype.bind || (Function.prototype.bind = function(t) {
155        var n = this;
156        if (typeof n != "function") throw new TypeError("Function.prototype.bind called on incompatible " + n);
157        var i = u.call(arguments, 1),
158            s = function() {
159                if (this instanceof s) {
160                    var e = n.apply(this, i.concat(u.call(arguments)));
161                    return Object(e) === e ? e : this
162                }
163                return n.apply(t, i.concat(u.call(arguments)))
164            };
165        return n.prototype && (r.prototype = n.prototype, s.prototype = new r, r.prototype = null), s
166    });
167    var i = Function.prototype.call,
168        s = Array.prototype,
169        o = Object.prototype,
170        u = s.slice,
171        a = i.bind(o.toString),
172        f = i.bind(o.hasOwnProperty),
173        l, c, h, p, d;
174    if (d = f(o, "__defineGetter__")) l = i.bind(o.__defineGetter__), c = i.bind(o.__defineSetter__), h = i.bind(o.__lookupGetter__), p = i.bind(o.__lookupSetter__);
175    if ([1, 2].splice(0).length != 2)
176        if (! function() {
177                function e(e) {
178                    var t = new Array(e + 2);
179                    return t[0] = t[1] = 0, t
180                }
181                var t = [],
182                    n;
183                t.splice.apply(t, e(20)), t.splice.apply(t, e(26)), n = t.length, t.splice(5, 0, "XXX"), n + 1 == t.length;
184                if (n + 1 == t.length) return !0
185            }()) Array.prototype.splice = function(e, t) {
186            var n = this.length;
187            e > 0 ? e > n && (e = n) : e == void 0 ? e = 0 : e < 0 && (e = Math.max(n + e, 0)), e + t < n || (t = n - e);
188            var r = this.slice(e, e + t),
189                i = u.call(arguments, 2),
190                s = i.length;
191            if (e === n) s && this.push.apply(this, i);
192            else {
193                var o = Math.min(t, n - e),
194                    a = e + o,
195                    f = a + s - o,
196                    l = n - a,
197                    c = n - o;
198                if (f < a)
199                    for (var h = 0; h < l; ++h) this[f + h] = this[a + h];
200                else if (f > a)
201                    for (h = l; h--;) this[f + h] = this[a + h];
202                if (s && e === c) this.length = c, this.push.apply(this, i);
203                else {
204                    this.length = c + s;
205                    for (h = 0; h < s; ++h) this[e + h] = i[h]
206                }
207            }
208            return r
209        };
210        else {
211            var v = Array.prototype.splice;
212            Array.prototype.splice = function(e, t) {
213                return arguments.length ? v.apply(this, [e === void 0 ? 0 : e, t === void 0 ? this.length - e : t].concat(u.call(arguments, 2))) : []
214            }
215        }
216    Array.isArray || (Array.isArray = function(t) {
217        return a(t) == "[object Array]"
218    });
219    var m = Object("a"),
220        g = m[0] != "a" || !(0 in m);
221    Array.prototype.forEach || (Array.prototype.forEach = function(t) {
222        var n = F(this),
223            r = g && a(this) == "[object String]" ? this.split("") : n,
224            i = arguments[1],
225            s = -1,
226            o = r.length >>> 0;
227        if (a(t) != "[object Function]") throw new TypeError;
228        while (++s < o) s in r && t.call(i, r[s], s, n)
229    }), Array.prototype.map || (Array.prototype.map = function(t) {
230        var n = F(this),
231            r = g && a(this) == "[object String]" ? this.split("") : n,
232            i = r.length >>> 0,
233            s = Array(i),
234            o = arguments[1];
235        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
236        for (var u = 0; u < i; u++) u in r && (s[u] = t.call(o, r[u], u, n));
237        return s
238    }), Array.prototype.filter || (Array.prototype.filter = function(t) {
239        var n = F(this),
240            r = g && a(this) == "[object String]" ? this.split("") : n,
241            i = r.length >>> 0,
242            s = [],
243            o, u = arguments[1];
244        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
245        for (var f = 0; f < i; f++) f in r && (o = r[f], t.call(u, o, f, n) && s.push(o));
246        return s
247    }), Array.prototype.every || (Array.prototype.every = function(t) {
248        var n = F(this),
249            r = g && a(this) == "[object String]" ? this.split("") : n,
250            i = r.length >>> 0,
251            s = arguments[1];
252        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
253        for (var o = 0; o < i; o++)
254            if (o in r && !t.call(s, r[o], o, n)) return !1;
255        return !0
256    }), Array.prototype.some || (Array.prototype.some = function(t) {
257        var n = F(this),
258            r = g && a(this) == "[object String]" ? this.split("") : n,
259            i = r.length >>> 0,
260            s = arguments[1];
261        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
262        for (var o = 0; o < i; o++)
263            if (o in r && t.call(s, r[o], o, n)) return !0;
264        return !1
265    }), Array.prototype.reduce || (Array.prototype.reduce = function(t) {
266        var n = F(this),
267            r = g && a(this) == "[object String]" ? this.split("") : n,
268            i = r.length >>> 0;
269        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
270        if (!i && arguments.length == 1) throw new TypeError("reduce of empty array with 
270no initial value");
271        var s = 0,
272            o;
273        if (arguments.length >= 2) o = arguments[1];
274        else
275            do {
276                if (s in r) {
277                    o = r[s++];
278                    break
279                }
280                if (++s >= i) throw new TypeError("reduce of empty array with no initial value")
281            } while (!0);
282        for (; s < i; s++) s in r && (o = t.call(void 0, o, r[s], s, n));
283        return o
284    }), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(t) {
285        var n = F(this),
286            r = g && a(this) == "[object String]" ? this.split("") : n,
287            i = r.length >>> 0;
288        if (a(t) != "[object Function]") throw new TypeError(t + " is not a function");
289        if (!i && arguments.length == 1) throw new TypeError("reduceRight of empty array with no initial value");
290        var s, o = i - 1;
291        if (arguments.length >= 2) s = arguments[1];
292        else
293            do {
294                if (o in r) {
295                    s = r[o--];
296                    break
297                }
298                if (--o < 0) throw new TypeError("reduceRight of empty array with no initial value")
299            } while (!0);
300        do o in this && (s = t.call(void 0, s, r[o], o, n)); while (o--);
301        return s
302    });
303    if (!Array.prototype.indexOf || [0, 1].indexOf(1, 2) != -1) Array.prototype.indexOf = function(t) {
304        var n = g && a(this) == "[object String]" ? this.split("") : F(this),
305            r = n.length >>> 0;
306        if (!r) return -1;
307        var i = 0;
308        arguments.length > 1 && (i = H(arguments[1])), i = i >= 0 ? i : Math.max(0, r + i);
309        for (; i < r; i++)
310            if (i in n && n[i] === t) return i;
311        return -1
312    };
313    if (!Array.prototype.lastIndexOf || [0, 1].lastIndexOf(0, -3) != -1) Array.prototype.lastIndexOf = function(t) {
314        var n = g && a(this) == "[object String]" ? this.split("") : F(this),
315            r = n.length >>> 0;
316        if (!r) return -1;
317        var i = r - 1;
318        arguments.length > 1 && (i = Math.min(i, H(arguments[1]))), i = i >= 0 ? i : r - Math.abs(i);
319        for (; i >= 0; i--)
320            if (i in n && t === n[i]) return i;
321        return -1
322    };
323    Object.getPrototypeOf || (Object.getPrototypeOf = function(t) {
324        return t.__proto__ || (t.constructor ? t.constructor.prototype : o)
325    });
326    if (!Object.getOwnPropertyDescriptor) {
327        var y = "Object.getOwnPropertyDescriptor called on a non-object: ";
328        Object.getOwnPropertyDescriptor = function(t, n) {
329            if (typeof t != "object" && typeof t != "function" || t === null) throw new TypeError(y + t);
330            if (!f(t, n)) return;
331            var r, i, s;
332            r = {
333                enumerable: !0,
334                configurable: !0
335            };
336            if (d) {
337                var u = t.__proto__;
338                t.__proto__ = o;
339                var i = h(t, n),
340                    s = p(t, n);
341                t.__proto__ = u;
342                if (i || s) return i && (r.get = i), s && (r.set = s), r
343            }
344            return r.value = t[n], r
345        }
346    }
347    Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(t) {
348        return Object.keys(t)
349    });
350    if (!Object.create) {
351        var b;
352        Object.prototype.__proto__ === null ? b = function() {
353            return {
354                __proto__: null
355            }
356        } : b = function() {
357            var e = {};
358            for (var t in e) e[t] = null;
359            return e.constructor = e.hasOwnProperty = e.propertyIsEnumerable = e.isPrototypeOf = e.toLocaleString = e.toString = e.valueOf = e.__proto__ = null, e
360        }, Object.create = function(t, n) {
361            var r;
362            if (t === null) r = b();
363            else {
364                if (typeof t != "object") throw new TypeError("typeof prototype[" + typeof t + "] != 'object'");
365                var i = function() {};
366                i.prototype = t, r = new i, r.__proto__ = t
367            }
368            return n !== void 0 && Object.defineProperties(r, n), r
369        }
370    }
371    if (Object.defineProperty) {
372        var E = w({}),
373            S = typeof document == "undefined" || w(document.createElement("div"));
374        if (!E || !S) var x = Object.defineProperty
375    }
376    if (!Object.defineProperty || x) {
377        var T = "Property description must be an object: ",
378            N = "Object.defineProperty called on non-object: ",
379            C = "getters & setters can not be defined on this javascript engine";
380        Object.defineProperty = function(t, n, r) {
381            if (typeof t != "object" && typeof t != "function" || t === null) throw new TypeError(N + t);
382            if (typeof r != "object" && typeof r != "function" || r === null) throw new TypeError(T + r);
383            if (x) try {
384                return x.call(Object, t, n, r)
385            } catch (i) {}
386            if (f(r, "value"))
387                if (d && (h(t, n) || p(t, n))) {
388                    var s = t.__proto__;
389                    t.__proto__ = o, delete t[n], t[n] = r.value, t.__proto__ = s
390                } else t[n] = r.value;
391            else {
392                if (!d) throw new TypeError(C);
393                f(r, "get") && l(t, n, r.get), f(r, "set") && c(t, n, r.set)
394            }
395            return t
396        }
397    }
398    Object.defineProperties || (Object.defineProperties = function(t, n) {
399        for (var r in n) f(n, r) && Object.defineProperty(t, r, n[r]);
400        return t
401    }), Object.seal || (Object.seal = function(t) {
402        return t
403    }), Object.freeze || (Object.freeze = function(t) {
404        return t
405    });
406    try {
407        Object.freeze(function() {})
408    } catch (k) {
409        Object.freeze = function(t) {
410            return function(n) {
411                return typeof n == "function" ? n : t(n)
412            }
413        }(Object.freeze)
414    }
415    Object.preventExtensions || (Object.preventExtensions = function(t) {
416        return t
417    }), Object.isSealed || (Object.isSealed = function(t) {
418        return !1
419    }), Object.isFrozen || (Object.isFrozen = function(t) {
420        return !1
421    }), Object.isExtensible || (Object.isExtensible = function(t) {
422        if (Object(t) === t) throw new TypeError;
423        var n = "";
424        while (f(t, n)) n += "?";
425        t[n] = !0;
426        var r = f(t, n);
427        return delete t[n], r
428    });
429    if (!Object.keys) {
430        var L = !0,
431            A = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],
432            O = A.length;
433        for (var M in {
434                toString: null
435            }) L = !1;
436        Object.keys = function I(e) {
437            if (typeof e != "object" && typeof e != "function" || e === null) throw new TypeError("Object.keys called on a non-object");
438            var I = [];
439            for (var t in e) f(e, t) && I.push(t);
440            if (L)
441                for (var n = 0, r = O; n < r; n++) {
442                    var i = A[n];
443                    f(e, i) && I.push(i)
444                }
445            return I
446        }
447    }
448    Date.now || (Date.now = function() {
449        return (new Date).getTime()
450    });
451    var _ = "   \n�\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";
452    if (!String.prototype.trim || _.trim()) {
453        _ = "[" + _ + "]";
454        var D = new RegExp("^" + _ + _ + "*"),
455            P = new RegExp(_ + _ + "*$");
456        String.prototype.trim = function() {
457            return String(this).replace(D, "").replace(P, "")
458        }
459    }
460    var F = function(e) {
461        if (e == null) throw new TypeError("can't convert " + e + " to object");
462        return Object(e)
463    }
464}), define("ace/lib/fixoldbrowsers", ["require", "exports", "module", "ace/lib/regexp", "ace/lib/es5-shim"], function(e, t, n) {
465    "use strict";
466    e("./regexp"), e("./es5-shim")
467}), define("ace/lib/dom", ["require", "exports", "module"], function(e, t, n) {
468    "use strict";
469    var r = "http://www.w3.org/1999/xhtml";
470    t.getDocumentHead = function(e) {
471        return e || (e = document), e.head || e.getElementsByTagName("head")[0] || e.documentElement
472    }, t.createElement = function(e, t) {
473        return document.createElementNS ? document.createElementNS(t || r, e) : document.createElement(e)
474    }, t.hasCssClass = function(e, t) {
475        var n = (e.className || "").split(/\s+/g);
476        return n.indexOf(t) !== -1
477    }, t.addCssClass = function(e, n) {
478        t.hasCssClass(e, n) || (e.className += " " + n)
479    }, t.removeCssClass = function(e, t) {
480        var n = e.className.split(/\s+/g);
481        for (;;) {
482            var r = n.indexOf(t);
483            if (r == -1) break;
484            n.splice(r, 1)
485        }
486        e.className = n.join(" ")
487    }, t.toggleCssClass = function(e, t) {
488        var n = e.className.split(/\s+/g),
489            r = !0;
490        for (;;) {
491            var i = n.indexOf(t);
492            if (i == -1) break;
493            r = !1, n.splice(i, 1)
494        }
495        return r && n.push(t), e.className = n.join(" "), r
496    }, t.setCssClass = function(e, n, r) {
497        r ? t.addCssClass(e, n) : t.removeCssClass(e, n)
498    }, t.hasCssString = function(e, t) {
499        var n = 0,
500            r;
501        t = t || document;
502        if (t.createStyleSheet && (r = t.styleSheets)) {
503            while (n < r.length)
504                if (r[n++].owningElement.id === e) return !0
505        } else if (r = t.getElementsByTagName("style"))
506            while (n < r.length)
507                if (r[n++].id === e) return !0;
508        return !1
509    }, t.importCssString = function(n, i, s) {
510        s = s || document;
511        if (i && t.hasCssString(i, s)) return null;
512        var o;
513        i && (n += "\n/*# sourceURL=ace/css/" + i + " */"), s.createStyleSheet ? (o = s.createStyleSheet(), o.cssText = n, i && (o.owningElement.id = i)) : (o = s.createElementNS ? s.createElementNS(r, "style") : s.createElement("style"), o.appendChild(s.createTextNode(n)), i && (o.id = i), t.getDocumentHead(s).appendChild(o))
514    }, t.importCssStylsheet = function(e, n) {
515        if (n.createStyleSheet) n.createStyleSheet(e);
516        else {
517            var r = t.createElement("link");
518            r.rel = "stylesheet", r.href = e, t.getDocumentHead(n).appendChild(r)
519        }
520    }, t.getInnerWidth = function(e) {
521        return parseInt(t.computedStyle(e, "paddingLeft"), 10) + parseInt(t.computedStyle(e, "paddingRight"), 10) + e.clientWidth
522    }, t.getInnerHeight = function(e) {
523        return parseInt(t.computedStyle(e, "paddingTop"), 10) + parseInt(t.computedStyle(e, "paddingBottom"), 10) + e.clientHeight
524    }, t.scrollbarWidth = function(e) {
525        var n = t.createElement("ace_inner");
526        n.style.width = "100%", n.style.minWidth = "0px", n.style.height = "200px", n.style.display = "block";
527        var r = t.createElement("ace_outer"),
528            i = r.style;
529        i.position = "absolute", i.left = "-10000px", i.overflow = "hidden", i.width = "200px", i.minWidth = "0px", i.height = "150px", i.display = "block", r.appendChild(n);
530        var s = e.documentElement;
531        s.appendChild(r);
532        var o = n.offsetWidth;
533        i.overflow = "scroll";
534        var u = n.offsetWidth;
535        return o == u && (u = r.clientWidth), s.removeChild(r), o - u
536    };
537    if (typeof document == "undefined") {
538        t.importCssString = function() {};
539        return
540    }
541    window.pageYOffset !== undefined ? (t.getPageScrollTop = function() {
542        return window.pageYOffset
543    }, t.getPageScrollLeft = function() {
544        return window.pageXOffset
545    }) : (t.getPageScrollTop = function() {
546        return document.body.scrollTop
547    }, t.getPageScrollLeft = function() {
548        return document.body.scrollLeft
549    }), window.getComputedStyle ? t.computedStyle = function(e, t) {
550        return t ? (window.getComputedStyle(e, "") || {})[t] || "" : window.getComputedStyle(e, "") || {}
551    } : t.computedStyle = function(e, t) {
552        return t ? e.currentStyle[t] : e.currentStyle
553    }, t.setInnerHtml = function(e, t) {
554        var n = e.cloneNode(!1);
555        return n.innerHTML = t, e.parentNode.replaceChild(n, e), n
556    }, "textContent" in document.documentElement ? (t.setInnerText = function(e, t) {
557        e.textContent = t
558    }, t.getInnerText = function(e) {
559        return e.textContent
560    }) : (t.setInnerText = function(e, t) {
561        e.innerText = t
562    }, t.getInnerText = function(e) {
563        return e.innerText
564    }), t.getParentWindow = function(e) {
565        return e.defaultView || e.parentWindow
566    }
567}), define("ace/lib/oop", ["require", "exports", "module"], function(e, t, n) {
568    "use strict";
569    t.inherits = function(e, t) {
570        e.super_ = t, e.prototype = Object.create(t.prototype, {
571            constructor: {
572                value: e,
573                enumerable: !1,
574                writable: !0,
575                configurable: !0
576            }
577        })
578    }, t.mixin = function(e, t) {
579        for (var n in t) e[n] = t[n];
580        return e
581    }, t.implement = function(e, n) {
582        t.mixin(e, n)
583    }
584}), define("ace/lib/keys", ["require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/lib/oop"], function(e, t, n) {
585    "use strict";
586    e("./fixoldbrowsers");
587    var r = e("./oop"),
588        i = function() {
589            var e = {
590                    MODIFIER_KEYS: {
591                        16: "Shift",
592                        17: "Ctrl",
593                        18: "Alt",
594                        224: "Meta"
595                    },
596                    KEY_MODS: {
597                        ctrl: 1,
598                        alt: 2,
599                        option: 2,
600                        shift: 4,
601                        "super": 8,
602                        meta: 8,
603                        command: 8,
604                        cmd: 8
605                    },
606                    FUNCTION_KEYS: {
607                        8: "Backspace",
608                        9: "Tab",
609                        13: "Return",
610                        19: "Pause",
611                        27: "Esc",
612                        32: "Space",
613                        33: "PageUp",
614                        34: "PageDown",
615                        35: "End",
616                        36: "Home",
617                        37: "Left",
618                        38: "Up",
619                        39: "Right",
620                        40: "Down",
621                        44: "Print",
622                        45: "Insert",
623                        46: "Delete",
624                        96: "Numpad0",
625                        97: "Numpad1",
626                        98: "Numpad2",
627                        99: "Numpad3",
628                        100: "Numpad4",
629                        101: "Numpad5",
630                        102: "Numpad6",
631                        103: "Numpad7",
632                        104: "Numpad8",
633                        105: "Numpad9",
634                        "-13": "NumpadEnter",
635                        112: "F1",
636                        113: "F2",
637                        114: "F3",
638                        115: "F4",
639                        116: "F5",
640                        117: "F6",
641                        118: "F7",
642                        119: "F8",
643                        120: "F9",
644                        121: "F10",
645                        122: "F11",
646                        123: "F12",
647                        144: "Numlock",
648                        145: "Scrolllock"
649                    },
650                    PRINTABLE_KEYS: {
651                        32: " ",
652                        48: "0",
653                        49: "1",
654                        50: "2",
655                        51: "3",
656                        52: "4",
657                        53: "5",
658                        54: "6",
659                        55: "7",
660                        56: "8",
661                        57: "9",
662                        59: ";",
663                        61: "=",
664                        65: "a",
665                        66: "b",
666                        67: "c",
667                        68: "d",
668                        69: "e",
669                        70: "f",
670                        71: "g",
671                        72: "h",
672                        73: "i",
673                        74: "j",
674                        75: "k",
675                        76: "l",
676                        77: "m",
677                        78: "n",
678                        79: "o",
679                        80: "p",
680                        81: "q",
681                        82: "r",
682                        83: "s",
683                        84: "t",
684                        85: "u",
685                        86: "v",
686                        87: "w",
687                        88: "x",
688                        89: "y",
689                        90: "z",
690                        107: "+",
691                        109: "-",
692                        110: ".",
693                        186: ";",
694                        187: "=",
695                        188: ",",
696                        189: "-",
697                        190: ".",
698                        191: "/",
699                        192: "`",
700                        219: "[",
701                        220: "\\",
702                        221: "]",
703                        222: "'"
704                    }
705                },
706                t, n;
707            for (n in e.FUNCTION_KEYS) t = e.FUNCTION_KEYS[n].toLowerCase(), e[t] = parseInt(n, 10);
708            for (n in e.PRINTABLE_KEYS) t = e.PRINTABLE_KEYS[n].toLowerCase(), e[t] = parseInt(n, 10);
709            return r.mixin(e, e.MODIFIER_KEYS), r.mixin(e, e.PRINTABLE_KEYS), r.mixin(e, e.FUNCTION_KEYS), e.enter = e["return"], e.escape = e.esc, e.del = e["delete"], e[173] = "-",
710                function() {
711                    var t = ["cmd", "ctrl", "alt", "shift"];
712                    for (var n = Math.pow(2, t.length); n--;) e.KEY_MODS[n] = t.filter(function(t) {
713                        return n & e.KEY_MODS[t]
714                    }).join("-") + "-"
715                }(), e.KEY_MODS[0] = "", e.KEY_MODS[-1] = "input-", e
716        }();
717    r.mixin(t, i), t.keyCodeToString = function(e) {
718        var t = i[e];
719        return typeof t != "string" && (t = String.fromCharCode(e)), t.toLowerCase()
720    }
721}), define("ace/lib/useragent", ["require", "exports", "module"], function(e, t, n) {
722    "use strict";
723    t.OS = {
724        LINUX: "LINUX",
725        MAC: "MAC",
726        WINDOWS: "WINDOWS"
727    }, t.getOS = function() {
728        return t.isMac ? t.OS.MAC : t.isLinux ? t.OS.LINUX : t.OS.WINDOWS
729    };
730    if (typeof navigator != "object") return;
731    var r = (navigator.platform.match(/mac|win|linux/i) || ["other"])[0].toLowerCase(),
732        i = navigator.userAgent;
733    t.isWin = r == "win", t.isMac = r == "mac", t.isLinux = r == "linux", t.isIE = navigator.appName == "Microsoft Internet Explorer" || navigator.appName.indexOf("MSAppHost") >= 0 ? parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) || [])[1]) : parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) || [])[1]), t.isOldIE = t.isIE && t.isIE < 9, t.isGecko = t.isMozilla = (window.Controllers || window.controllers) && window.navigator.product === "Gecko", t.isOldGecko = t.isGecko && parseInt((i.match(/rv\:(\d+)/) || [])[1], 10) < 4, t.isOpera = window.opera && Object.prototype.toString.call(window.opera) == "[object Opera]", t.isWebKit = parseFloat(i.split("WebKit/")[1]) || undefined, t.isChrome = parseFloat(i.split(" Chrome/")[1]) || undefined, t.isAIR = i.indexOf("AdobeAIR") >= 0, t.isIPad = i.indexOf("iPad") >= 0, t.isTouchPad = i.indexOf("TouchPad") >= 0, t.isChromeOS = i.indexOf(" CrOS ") >= 0
734}), define("ace/lib/event", ["require", "exports", "module", "ace/lib/keys", "ace/lib/useragent"], function(e, t, n) {
735    "use strict";
736
737    function o(e, t, n) {
738        var o = s(t);
739        if (!i.isMac && u) {
740            if (u[91] || u[92]) o |= 8;
741            if (u.altGr) {
742                if ((3 & o) == 3) return;
743                u.altGr = 0
744            }
745            if (n === 18 || n === 17) {
746                var f = "location" in t ? t.location : t.keyLocation;
747                if (n === 17 && f === 1) u[n] == 1 && (a = t.timeStamp);
748                else if (n === 18 && o === 3 && f === 2) {
749                    var l = t.timeStamp - a;
750                    l < 50 && (u.altGr = !0)
751                }
752            }
753        }
754        n in r.MODIFIER_KEYS && (n = -1), o & 8 && (n === 91 || n === 93) && (n = -1);
755        if (!o && n === 13) {
756            var f = "location" in t ? t.location : t.keyLocation;
757            if (f === 3) {
758                e(t, o, -n);
759                if (t.defaultPrevented) return
760            }
761        }
762        if (i.isChromeOS && o & 8) {
763            e(t, o, n);
764            if (t.defaultPrevented) return;
765            o &= -9
766        }
767        return !!o || n in r.FUNCTION_KEYS || n in r.PRINTABLE_KEYS ? e(t, o, n) : !1
768    }
769
770    function f(e) {
771        u = Object.create(null)
772    }
773    var r = e("./keys"),
774        i = e("./useragent");
775    t.addListener = function(e, t, n) {
776        if (e.addEventListener) return e.addEventListener(t, n, !1);
777        if (e.attachEvent) {
778            var r = function() {
779                n.call(e, window.event)
780            };
781            n._wrapper = r, e.attachEvent("on" + t, r)
782        }
783    }, t.removeListener = function(e, t, n) {
784        if (e.removeEventListener) return e.removeEventListener(t, n, !1);
785        e.detachEvent && e.detachEvent("on" + t, n._wrapper || n)
786    }, t.stopEvent = function(e) {
787        return t.stopPropagation(e), t.preventDefault(e), !1
788    }, t.stopPropagation = function(e) {
789        e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0
790    }, t.preventDefault = function(e) {
791        e.preventDefault ? e.preventDefault() : e.returnValue = !1
792    }, t.getButton = function(e) {
793        return e.type == "dblclick" ? 0 : e.type == "contextmenu" || i.isMac && e.ctrlKey && !e.altKey && !e.shiftKey ? 2 : e.preventDefault ? e.button : {
794            1: 0,
795            2: 2,
796            4: 1
797        }[e.button]
798    }, t.capture = function(e, n, r) {
799        function i(e) {
800            n && n(e), r && r(e), t.removeListener(document, "mousemove", n, !0), t.removeListener(document, "mouseup", i, !0), t.removeListener(document, "dragstart", i, !0)
801        }
802        return t.addListener(document, "mousemove", n, !0), t.addListener(document, "mouseup", i, !0), t.addListener(document, "dragstart", i, !0), i
803    }, t.addTouchMoveListener = function(e, n) {
804        if ("ontouchmove" in e) {
805            var r, i;
806            t.addListener(e, "touchstart", function(e) {
807                var t = e.changedTouches[0];
808                r = t.clientX, i = t.clientY
809            }), t.addListener(e, "touchmove", function(e) {
810                var t = 1,
811                    s = e.changedTouches[0];
812                e.wheelX = -(s.clientX - r) / t, e.wheelY = -(s.clientY - i) / t, r = s.clientX, i = s.clientY, n(e)
813            })
814        }
815    }, t.addMouseWheelListener = function(e, n) {
816        "onmousewheel" in e ? t.addListener(e, "mousewheel", function(e) {
817            var t = 8;
818            e.wheelDeltaX !== undefined ? (e.wheelX = -e.wheelDeltaX / t, e.wheelY = -e.wheelDeltaY / t) : (e.wheelX = 0, e.wheelY = -e.wheelDelta / t), n(e)
819        }) : "onwheel" in e ? t.addListener(e, "wheel", function(e) {
820            var t = .35;
821            switch (e.deltaMode) {
822                case e.DOM_DELTA_PIXEL:
823                    e.wheelX = e.deltaX * t || 0, e.wheelY = e.deltaY * t || 0;
824                    break;
825                case e.DOM_DELTA_LINE:
826                case e.DOM_DELTA_PAGE:
827                    e.wheelX = (e.deltaX || 0) * 5, e.wheelY = (e.deltaY || 0) * 5
828            }
829            n(e)
830        }) : t.addListener(e, "DOMMouseScroll", function(e) {
831            e.axis && e.axis == e.HORIZONTAL_AXIS ? (e.wheelX = (e.detail || 0) * 5, e.wheelY = 0) : (e.wheelX = 0, e.wheelY = (e.detail || 0) * 5), n(e)
832        })
833    }, t.addMultiMouseDownListener = function(e, n, r, s) {
834        var o = 0,
835            u, a, f, l = {
836                2: "dblclick",
837                3: "tripleclick",
838                4: "quadclick"
839            };
840        t.addListener(e, "mousedown", function(e) {
841            t.getButton(e) !== 0 ? o = 0 : e.detail > 1 ? (o++, o > 4 && (o = 1)) : o = 1;
842            if (i.isIE) {
843                var c = Math.abs(e.clientX - u) > 5 || Math.abs(e.clientY - a) > 5;
844                if (!f || c) o = 1;
845                f && clearTimeout(f), f = setTimeout(function() {
846                    f = null
847                }, n[o - 1] || 600), o == 1 && (u = e.clientX, a = e.clientY)
848            }
849            e._clicks = o, r[s]("mousedown", e);
850            if (o > 4) o = 0;
851            else if (o > 1) return r[s](l[o], e)
852        }), i.isOldIE && t.addListener(e, "dblclick", function(e) {
853            o = 2, f && clearTimeout(f), f = setTimeout(function() {
854                f = null
855            }, n[o - 1] || 600), r[s]("mousedown", e), r[s](l[o], e)
856        })
857    };
858    var s = !i.isMac || !i.isOpera || "KeyboardEvent" in window ? function(e) {
859        return 0 | (e.ctrlKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.metaKey ? 8 : 0)
860    } : function(e) {
861        return 0 | (e.metaKey ? 1 : 0) | (e.altKey ? 2 : 0) | (e.shiftKey ? 4 : 0) | (e.ctrlKey ? 8 : 0)
862    };
863    t.getModifierString = function(e) {
864        return r.KEY_MODS[s(e)]
865    };
866    var u = null,
867        a = 0;
868    t.addCommandKeyListener = function(e, n) {
869        var r = t.addListener;
870        if (i.isOldGecko || i.isOpera && !("KeyboardEvent" in window)) {
871            var s = null;
872            r(e, "keydown", function(e) {
873                s = e.keyCode
874            }), r(e, "keypress", function(e) {
875                return o(n, e, s)
876            })
877        } else {
878            var a = null;
879            r(e, "keydown", function(e) {
880                u[e.keyCode] = (u[e.keyCode] || 0) + 1;
881                var t = o(n, e, e.keyCode);
882                return a = e.defaultPrevented, t
883            }), r(e, "keypress", function(e) {
884                a && (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && (t.stopEvent(e), a = null)
885            }), r(e, "keyup", function(e) {
886                u[e.keyCode] = null
887            }), u || (f(), r(window, "focus", f))
888        }
889    };
890    if (typeof window == "object" && window.postMessage && !i.isOldIE) {
891        var l = 1;
892        t.nextTick = function(e, n) {
893            n = n || window;
894            var r = "zero-timeout-message-" + l;
895            t.addListener(n, "message", function i(s) {
896                s.data == r && (t.stopPropagation(s), t.removeListener(n, "message", i), e())
897            }), n.postMessage(r, "*")
898        }
899    }
900    t.nextFrame = typeof window == "object" && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame), t.nextFrame ? t.nextFrame = t.nextFrame.bind(window) : t.nextFrame = function(e) {
901        setTimeout(e, 17)
902    }
903}), define("ace/lib/lang", ["require", "exports", "module"], function(e, t, n) {
904    "use strict";
905    t.last = function(e) {
906        return e[e.length - 1]
907    }
907, t.stringReverse = function(e) {
908        return e.split("").reverse().join("")
909    }, t.stringRepeat = function(e, t) {
910        var n = "";
911        while (t > 0) {
912            t & 1 && (n += e);
913            if (t >>= 1) e += e
914        }
915        return n
916    };
917    var r = /^\s\s*/,
918        i = /\s\s*$/;
919    t.stringTrimLeft = function(e) {
920        return e.replace(r, "")
921    }, t.stringTrimRight = function(e) {
922        return e.replace(i, "")
923    }, t.copyObject = function(e) {
924        var t = {};
925        for (var n in e) t[n] = e[n];
926        return t
927    }, t.copyArray = function(e) {
928        var t = [];
929        for (var n = 0, r = e.length; n < r; n++) e[n] && typeof e[n] == "object" ? t[n] = this.copyObject(e[n]) : t[n] = e[n];
930        return t
931    }, t.deepCopy = function s(e) {
932        if (typeof e != "object" || !e) return e;
933        var t;
934        if (Array.isArray(e)) {
935            t = [];
936            for (var n = 0; n < e.length; n++) t[n] = s(e[n]);
937            return t
938        }
939        var r = e.constructor;
940        if (r === RegExp) return e;
941        t = r();
942        for (var n in e) t[n] = s(e[n]);
943        return t
944    }, t.arrayToMap = function(e) {
945        var t = {};
946        for (var n = 0; n < e.length; n++) t[e[n]] = 1;
947        return t
948    }, t.createMap = function(e) {
949        var t = Object.create(null);
950        for (var n in e) t[n] = e[n];
951        return t
952    }, t.arrayRemove = function(e, t) {
953        for (var n = 0; n <= e.length; n++) t === e[n] && e.splice(n, 1)
954    }, t.escapeRegExp = function(e) {
955        return e.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1")
956    }, t.escapeHTML = function(e) {
957        return e.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;")
958    }, t.getMatchOffsets = function(e, t) {
959        var n = [];
960        return e.replace(t, function(e) {
961            n.push({
962                offset: arguments[arguments.length - 2],
963                length: e.length
964            })
965        }), n
966    }, t.deferredCall = function(e) {
967        var t = null,
968            n = function() {
969                t = null, e()
970            },
971            r = function(e) {
972                return r.cancel(), t = setTimeout(n, e || 0), r
973            };
974        return r.schedule = r, r.call = function() {
975            return this.cancel(), e(), r
976        }, r.cancel = function() {
977            return clearTimeout(t), t = null, r
978        }, r.isPending = function() {
979            return t
980        }, r
981    }, t.delayedCall = function(e, t) {
982        var n = null,
983            r = function() {
984                n = null, e()
985            },
986            i = function(e) {
987                n == null && (n = setTimeout(r, e || t))
988            };
989        return i.delay = function(e) {
990            n && clearTimeout(n), n = setTimeout(r, e || t)
991        }, i.schedule = i, i.call = function() {
992            this.cancel(), e()
993        }, i.cancel = function() {
994            n && clearTimeout(n), n = null
995        }, i.isPending = function() {
996            return n
997        }, i
998    }
999}), define("ace/keyboard/textinput", ["require", "exports", "module", "ace/lib/event", "ace/lib/useragent", "ace/lib/dom", "ace/lib/lang"], function(e, t, n) {
1000    "use strict";
1001    var r = e("../lib/event"),
1002        i = e("../lib/useragent"),
1003        s = e("../lib/dom"),
1004        o = e("../lib/lang"),
1005        u = i.isChrome < 18,
1006        a = i.isIE,
1007        f = function(e, t) {
1008            function b(e) {
1009                if (h) return;
1010                h = !0;
1011                if (k) t = 0, r = e ? 0 : n.value.length - 1;
1012                else var t = e ? 2 : 1,
1013                    r = 2;
1014                try {
1015                    n.setSelectionRange(t, r)
1016                } catch (i) {}
1017                h = !1
1018            }
1019
1020            function w() {
1021                if (h) return;
1022                n.value = f, i.isWebKit && y.schedule()
1023            }
1024
1025            function R() {
1026                clearTimeout(q), q = setTimeout(function() {
1027                    p && (n.style.cssText = p, p = ""), t.renderer.$keepTextAreaAtCurs
1027or == null && (t.renderer.$keepTextAreaAtCursor = !0, t.renderer.$moveTextAreaToCursor())
1028                }, i.isOldIE ? 200 : 0)
1029            }
1030            var n = s.createElement("textarea");
1031            n.className = "ace_text-input", i.isTouchPad && n.setAttribute("x-palm-disable-auto-cap", !0), n.setAttribute("wrap", "off"), n.setAttribute("autocorrect", "off"), n.setAttribute("autocapitalize", "off"), n.setAttribute("spellcheck", !1), n.style.opacity = "0", i.isOldIE && (n.style.top = "-1000px"), e.insertBefore(n, e.firstChild);
1032            var f = "��",
1033                l = !1,
1034                c = !1,
1035                h = !1,
1036                p = "",
1037                d = !0;
1038            try {
1039                var v = document.activeElement === n
1040            } catch (m) {}
1041            r.addListener(n, "blur", function(e) {
1042                t.onBlur(e), v = !1
1043            }), r.addListener(n, "focus", function(e) {
1044                v = !0, t.onFocus(e), b()
1045            }), this.focus = function() {
1046                if (p) return n.focus();
1047                var e = n.style.top;
1048                n.style.position = "fixed", n.style.top = "-1000px", n.focus(), setTimeout(function() {
1049                    n.style.position = "", n.style.top == "-1000px" && (n.style.top = e)
1050                }, 0)
1051            }, this.blur = function() {
1052                n.blur()
1053            }, this.isFocused = function() {
1054                return v
1055            };
1056            var g = o.delayedCall(function() {
1057                    v && b(d)
1058                }),
1059                y = o.delayedCall(function() {
1060                    h || (n.value = f, v && b())
1061                });
1062            i.isWebKit || t.addEventListener("changeSelection", function() {
1063                t.selection.isEmpty() != d && (d = !d, g.schedule())
1064            }), w(), v && t.onFocus();
1065            var E = function(e) {
1066                return e.selectionStart === 0 && e.selectionEnd === e.value.length
1067            };
1068            !n.setSelectionRange && n.createTextRange && (n.setSelectionRange = function(e, t) {
1069                var n = this.createTextRange();
1070                n.collapse(!0), n.moveStart("character", e), n.moveEnd("character", t), n.select()
1071            }, E = function(e) {
1072                try {
1073                    var t = e.ownerDocument.selection.createRange()
1074                } catch (n) {}
1075                return !t || t.parentElement() != e ? !1 : t.text == e.value
1076            });
1077            if (i.isOldIE) {
1078                var S = !1,
1079                    x = function(e) {
1080                        if (S) return;
1081                        var t = n.value;
1082                        if (h || !t || t == f) return;
1083                        if (e && t == f[0]) return T.schedule();
1084                        A(t), S = !0, w(), S = !1
1085                    },
1086                    T = o.delayedCall(x);
1087                r.addListener(n, "propertychange", x);
1088                var N = {
1089                    13: 1,
1090                    27: 1
1091                };
1092                r.addListener(n, "keyup", function(e) {
1093                    h && (!n.value || N[e.keyCode]) && setTimeout(F, 0);
1094                    if ((n.value.charCodeAt(0) || 0) < 129) return T.call();
1095                    h ? j() : B()
1096                }), r.addListener(n, "keydown", function(e) {
1097                    T.schedule(50)
1098                })
1099            }
1100            var C = function(e) {
1101                    l ? l = !1 : E(n) ? (t.selectAll(), b()) : k && b(t.selection.isEmpty())
1102                },
1103                k = null;
1104            this.setInputHandler = function(e) {
1105                k = e
1106            }, this.getInputHandler = function() {
1107                return k
1108            };
1109            var L = !1,
1110                A = function(e) {
1111                    k && (e = k(e), k = null), c ? (b(), e && t.onPaste(e), c = !1) : e == f.charAt(0) ? L ? t.execCommand("del", {
1112                        source: "ace"
1113                    }) : t.execCommand("backspace", {
1114                        source: "ace"
1115                    }) : (e.substring(0, 2) == f ? e = e.substr(2) : e.charAt(0) == f.charAt(0) ? e = e.substr(1) : e.charAt(e.length - 1) == f.charAt(0) && (e = e.slice(0, -1)), e.charAt(e.length - 1) == f.charAt(0) && (e = e.slice(0, -1)), e && t.onTextInput(e)), L && (L = !1)
1116                },
1117                O = function(e) {
1118                    if (h) return;
1119                    var t = n.value;
1120                    A(t), w()
1121                },
1122                M = function(e, t) {
1123                    var n = e.clipboardData || window.clipboardData;
1124                    if (!n || u) return;
1125                    var r = a ? "Text" : "text/plain";
1126                    return t ? n.setData(r, t) !== !1 : n.getData(r)
1127                },
1128                _ = function(e, i) {
1129                    var s = t.getCopyText();
1130                    if (!s) return r.preventDefault(e);
1131                    M(e, s) ? (i ? t.onCut() : t.onCopy(), r.preventDefault(e)) : (l = !0, n.value = s, n.select(), setTimeout(function() {
1132                        l = !1, w(), b(), i ? t.onCut() : t.onCopy()
1133                    }))
1134                },
1135                D = function(e) {
1136                    _(e, !0)
1137                },
1138                P = function(e) {
1139                    _(e, !1)
1140                },
1141                H = function(e) {
1142                    var s = M(e);
1143                    typeof s == "string" ? (s && t.onPaste(s, e), i.isIE && setTimeout(b), r.preventDefault(e)) : (n.value = "", c = !0)
1144                };
1145            r.addCommandKeyListener(n, t.onCommandKey.bind(t)), r.addListener(n, "select", C), r.addListener(n, "input", O), r.addListener(n, "cut", D), r.addListener(n, "copy", P), r.addListener(n, "paste", H), (!("oncut" in n) || !("oncopy" in n) || !("onpaste" in n)) && r.addListener(e, "keydown", function(e) {
1146                if (i.isMac && !e.metaKey || !e.ctrlKey) return;
1147                switch (e.keyCode) {
1148                    case 67:
1149                        P(e);
1150                        break;
1151                    case 86:
1152                        H(e);
1153                        break;
1154                    case 88:
1155                        D(e)
1156                }
1157            });
1158            var B = function(e) {
1159                    if (h || !t.onCompositionStart || t.$readOnly) return;
1160                    h = {}, t.onCompositionStart(), setTimeout(j, 0), t.on("mousedown", F), t.selection.isEmpty() || (t.insert(""), t.session.markUndoGroup(), t.selection.clearSelection()), t.session.markUndoGroup()
1161                },
1162                j = function() {
1163                    if (!h || !t.onCompositionUpdate || t.$readOnly) return;
1164                    var e = n.value.replace(/\x01/g, "");
1165                    if (h.lastValue === e) return;
1166                    t.onCompositionUpdate(e), h.lastValue && t.undo(), h.lastValue = e;
1167                    if (h.lastValue) {
1168                        var r = t.selection.getRange();
1169                        t.insert(h.lastValue), t.session.markUndoGroup(), h.range = t.selection.getRange(), t.selection.setRange(r), t.selection.clearSelection()
1170                    }
1171                },
1172                F = function(e) {
1173                    if (!t.onCompositionEnd || t.$readOnly) return;
1174                    var r = h;
1175                    h = !1;
1176                    var i2 = setTimeout(function() {
1177                        i2 = null;
1178                        var e = n.value.replace(/\x01/g, "");
1179                        if (h) return;
1180                        e == r.lastValue ? w() : !r.lastValue && e && (w(), A(e))
1181                    });
1182                    k = function(n) {
1183                        return i2 && clearTimeout(i2), n = n.replace(/\x01/g, ""), n == r.lastValue ? "" : (r.lastValue && i2 && t.undo(), n)
1184                    }, t.onCompositionEnd(), t.removeListener("mousedown", F), e.type == "compositionend" && r.range && t.selection.setRange(r.range),
1185                    i.isChrome && i.isChrome >= 53 && O()
1186                },
1187                I = o.delayedCall(j, 50);
1188            r.addListener(n, "compositionstart", B), i.isGecko ? r.addListener(n, "text", function() {
1189                I.schedule()
1190            }) : (r.addListener(n, "keyup", function() {
1191                I.schedule()
1192            }), r.addListener(n, "keydown", function() {
1193                I.schedule()
1194            })), r.addListener(n, "compositionend", F), this.getElement = function() {
1195                return n
1196            }, this.setReadOnly = function(e) {
1197                n.readOnly = e
1198            }, this.onContextMenu = function(e) {
1199                L = !0, b(t.selection.isEmpty()), t._emit("nativecontextmenu", {
1200                    target: t,
1201                    domEvent: e
1202                }), this.moveToMouse(e, !0)
1203            }, this.moveToMouse = function(e, o) {
1204                if (!o && i.isOldIE) return;
1205                p || (p = n.style.cssText), n.style.cssText = (o ? "z-index:100000;" : "") + "height:" + n.style.height + ";" + (i.isIE ? "opacity:0.1;" : "");
1206                var u = t.container.getBoundingClientRect(),
1207                    a = s.computedStyle(t.container),
1208                    f = u.top + (parseInt(a.borderTopWidth) || 0),
1209                    l = u.left + (parseInt(u.borderLeftWidth) || 0),
1210                    c = u.bottom - f - n.clientHeight - 2,
1211                    h = function(e) {
1212                        n.style.left = e.clientX - l - 2 + "px", n.style.top = Math.min(e.clientY - f - 2, c) + "px"
1213                    };
1214                h(e);
1215                if (e.type != "mousedown") return;
1216                t.renderer.$keepTextAreaAtCursor && (t.renderer.$keepTextAreaAtCursor = null), i.isWin && !i.isOldIE && r.capture(t.container, h, R)
1217            }, this.onContextMenuClose = R;
1218            var q, U = function(e) {
1219                t.textInput.onContextMenu(e), R()
1220            };
1221            r.addListener(t.renderer.scroller, "contextmenu", U), r.addListener(n, "contextmenu", U)
1222        };
1223    t.TextInput = f
1224}), define("ace/mouse/default_handlers", ["require", "exports", "module", "ace/lib/dom", "ace/lib/event", "ace/lib/useragent"], function(e, t, n) {
1225    "use strict";
1226
1227    function u(e) {
1228        e.$clickSelection = null;
1229        var t = e.editor;
1230        t.setDefaultHandler("mousedown", this.onMouseDown.bind(e)), t.setDefaultHandler("dblclick", this.onDoubleClick.bind(e)), t.setDefaultHandler("tripleclick", this.onTripleClick.bind(e)), t.setDefaultHandler("quadclick", this.onQuadClick.bind(e)), t.setDefaultHandler("mousewheel", this.onMouseWheel.bind(e)), t.setDefaultHandler("touchmove", this.onTouchMove.bind(e));
1231        var n = ["select", "startSelect", "selectEnd", "selectAllEnd", "selectByWordsEnd", "selectByLinesEnd", "dragWait", "dragWaitEnd", "focusWait"];
1232        n.forEach(function(t) {
1233            e[t] = this[t]
1234        }, this), e.selectByLines = this.extendSelectionBy.bind(e, "getLineRange"), e.selectByWords = this.extendSelectionBy.bind(e, "getWordRange")
1235    }
1236
1237    function a(e, t, n, r) {
1238        return Math.sqrt(Math.pow(n - e, 2) + Math.pow(r - t, 2))
1239    }
1240
1241    function f(e, t) {
1242        if (e.start.row == e.end.row) var n = 2 * t.column - e.start.column - e.end.column;
1243        else if (e.start.row == e.end.row - 1 && !e.start.column && !e.end.column) var n = t.column - 4;
1244        else var n = 2 * t.row - e.start.row - e.end.row;
1245        return n < 0 ? {
1246            cursor: e.start,
1247            anchor: e.end
1248        } : {
1249            cursor: e.end,
1250            anchor: e.start
1251        }
1252    }
1253    var r = e("../lib/dom"),
1254        i = e("../lib/event"),
1255        s = e("../lib/useragent"),
1256        o = 0;
1257    (function() {
1258        this.onMouseDown = function(e) {
1259            var t = e.inSelection(),
1260                n = e.getDocumentPosition();
1261            this.mousedownEvent = e;
1262            var r = this.editor,
1263                i = e.getButton();
1264            if (i !== 0) {
1265                var s = r.getSelectionRange(),
1266                    o = s.isEmpty();
1267                r.$blockScrolling++, o && r.selection.moveToPosition(n), r.$blockScrolling--, r.textInput.onContextMenu(e.domEvent);
1268                return
1269            }
1270            this.mousedownEvent.time = Date.now();
1271            if (t && !r.isFocused()) {
1272                r.focus();
1273                if (this.$focusTimout && !this.$clickSelection && !r.inMultiSelectMode) {
1274                    this.setState("focusWait"), this.captureMouse(e);
1275                    return
1276                }
1277            }
1278            return this.captureMouse(e), this.startSelect(n, e.domEvent._clicks > 1), e.preventDefault()
1279        }, this.startSelect = function(e, t) {
1280            e = e || this.editor.renderer.screenToTextCoordinates(this.x, this.y);
1281            var n = this.editor;
1282            n.$blockScrolling++, this.mousedownEvent.getShiftKey() ? n.selection.selectToPosition(e) : t || n.selection.moveToPosition(e), t || this.select(), n.renderer.scroller.setCapture && n.renderer.scroller.setCapture(), n.setStyle("ace_selecting"), this.setState("select"), n.$blockScrolling--
1283        }, this.select = function() {
1284            var e, t = this.editor,
1285                n = t.renderer.screenToTextCoordinates(this.x, this.y);
1286            t.$blockScrolling++;
1287            if (this.$clickSelection) {
1288                var r = this.$clickSelection.comparePoint(n);
1289                if (r == -1) e = this.$clickSelection.end;
1290                else if (r == 1) e = this.$clickSelection.start;
1291                else {
1292                    var i = f(this.$clickSelection, n);
1293                    n = i.cursor, e = i.anchor
1294                }
1295                t.selection.setSelectionAnchor(e.row, e.column)
1296            }
1297            t.selection.selectToPosition(n), t.$blockScrolling--, t.renderer.scrollCursorIntoView()
1298        }, this.extendSelectionBy = function(e) {
1299            var t, n = this.editor,
1300                r = n.renderer.screenToTextCoordinates(this.x, this.y),
1301                i = n.selection[e](r.row, r.column);
1302            n.$blockScrolling++;
1303            if (this.$clickSelection) {
1304                var s = this.$clickSelection.comparePoint(i.start),
1305                    o = this.$clickSelection.comparePoint(i.end);
1306                if (s == -1 && o <= 0) {
1307                    t = this.$clickSelection.end;
1308                    if (i.end.row != r.row || i.end.column != r.column) r = i.start
1309                } else if (o == 1 && s >= 0) {
1310                    t = this.$clickSelection.start;
1311                    if (i.start.row != r.row || i.start.column != r.column) r = i.end
1312                } else if (s == -1 && o == 1) r = i.end, t = i.start;
1313                else {
1314                    var u = f(this.$clickSelection, r);
1315                    r = u.cursor, t = u.anchor
1316                }
1317                n.selection.setSelectionAnchor(t.row, t.column)
1318            }
1319            n.selection.selectToPosition(r), n.$blockScrolling--, n.renderer.scrollCursorIntoView()
1320        }, this.selectEnd = this.selectAllEnd = this.selectByWordsEnd = this.selectByLinesEnd = function() {
1321            this.$clickSelection = null, this.editor.unsetStyle("ace_selecting"), this.editor.renderer.scroller.releaseCapture && this.editor.renderer.scroller.releaseCapture()
1322        }, this.focusWait = function() {
1323            var e = a(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y),
1324                t = Date.now();
1325            (e > o || t - this.mousedownEvent.time > this.$focusTimout) && this.startSelect(this.mousedownEvent.getDocumentPosition())
1326        }, this.onDoubleClick = function(e) {
1327            var t = e.getDocumentPosition(),
1328                n = this.editor,
1329                r = n.session,
1330                i = r.getBracketRange(t);
1331            i ? (i.isEmpty() && (i.start.column--, i.end.column++), this.setState("select")) : (i = n.selection.getWordRange(t.row, t.column), this.setState("selectByWords")), this.$clickSelection = i, this.select()
1332        }, this.onTripleClick = function(e) {
1333            var t = e.getDocumentPosition(),
1334                n = this.editor;
1335            this.setState("selectByLines");
1336            var r = n.getSelectionRange();
1337            r.isMultiLine() && r.contains(t.row, t.column) ? (this.$clickSelection = n.selection.getLineRange(r.start.row), this.$clickSelection.end = n.selection.getLineRange(r.end.row).end) : this.$clickSelection = n.selection.getLineRange(t.row), this.select()
1338        }, this.onQuadClick = function(e) {
1339            var t = this.editor;
1340            t.selectAll(), this.$clickSelection = t.getSelectionRange(), this.setState("selectAll")
1341        }, this.onMouseWheel = function(e) {
1342            if (e.getAccelKey()) return;
1343            e.getShiftKey() && e.wheelY && !e.wheelX && (e.wheelX = e.wheelY, e.wheelY = 0);
1344            var t = e.domEvent.timeStamp,
1345                n = t - (this.$lastScrollTime || 0),
1346                r = this.editor,
1347                i = r.renderer.isScrollableBy(e.wheelX * e.speed, e.wheelY * e.speed);
1348            if (i || n < 200) return this.$lastScrollTime = t, r.renderer.scrollBy(e.wheelX * e.speed, e.wheelY * e.speed), e.stop()
1349        }, this.onTouchMove = function(e) {
1350            var t = e.domEvent.timeStamp,
1351                n = t - (this.$lastScrollTime || 0),
1352                r = this.editor,
1353                i = r.renderer.isScrollableBy(e.wheelX * e.speed, e.wheelY * e.speed);
1354            if (i || n < 200) return this.$lastScrollTime = t, r.renderer.scrollBy(e.wheelX * e.speed, e.wheelY * e.speed), e.stop()
1355        }
1356    }).call(u.prototype), t.DefaultHandlers = u
1357}), define("ace/tooltip", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom"], function(e, t, n) {
1358    "use strict";
1359
1360    function s(e) {
1361        this.isOpen = !1, this.$element = null, this.$parentNode = e
1362    }
1363    var r = e("./lib/oop"),
1364        i = e("./lib/dom");
1365    (function() {
1366        this.$init = function() {
1367            return this.$element = i.createElement("div"), this.$element.className = "ace_tooltip", this.$element.style.display = "none", this.$parentNode.appendChild(this.$element), this.$element
1368        }, this.getElement = function() {
1369            return this.$element || this.$init()
1370        }, this.setText = function(e) {
1371            i.setInnerText(this.getElement(), e)
1372        }, this.setHtml = function(e) {
1373            this.getElement().innerHTML = e
1374        }, this.setPosition = function(e, t) {
1375            this.getElement().style.left = e + "px", this.getElement().style.top = t + "px"
1376        }, this.setClassName = function(e) {
1377            i.addCssClass(this.getElement(), e)
1378        }, this.show = function(e, t, n) {
1379            e != null && this.setText(e), t != null && n != null && this.setPosition(t, n), this.isOpen || (this.getElement().style.display = "block", this.isOpen = !0)
1380        }, this.hide = function() {
1381            this.isOpen && (this.getElement().style.display = "none", this.isOpen = !1)
1382        }, this.getHeight = function() {
1383            return this.getElement().offsetHeight
1384        }, this.getWidth = function() {
1385            return this.getElement().offsetWidth
1386        }
1387    }).call(s.prototype), t.Tooltip = s
1388}), define("ace/mouse/default_gutter_handler", ["require", "exports", "module", "ace/lib/dom", "ace/lib/oop", "ace/lib/event", "ace/tooltip"], function(e, t, n) {
1389    "use strict";
1390
1391    function u(e) {
1392        function l() {
1393            var r = u.getDocumentPosition().row,
1394                s = n.$annotations[r];
1395            if (!s) return c();
1396            var o = t.session.getLength();
1397            if (r == o) {
1398                var a = t.renderer.pixelToScreenCoordinates(0, u.y).row,
1399                    l = u.$pos;
1400                if (a > t.session.documentToScreenRow(l.row, l.column)) return c()
1401            }
1402            if (f == s) return;
1403            f = s.text.join("<br/>"), i.setHtml(f), i.show(), t.on("mousewheel", c);
1404            if (e.$tooltipFollowsMouse) h(u);
1405            else {
1406                var p = n.$cells[t.session.documentToScreenRow(r, 0)].element,
1407                    d = p.getBoundingClientRect(),
1408                    v = i.getElement().style;
1409                v.left = d.right + "px", v.top = d.bottom + "px"
1410            }
1411        }
1412
1413        function c() {
1414            o && (o = clearTimeout(o)), f && (i.hide(), f = null, t.removeEventListener("mousewheel", c))
1415        }
1416
1417        function h(e) {
1418            i.setPosition(e.x, e.y)
1419        }
1420        var t = e.editor,
1421            n = t.renderer.$gutterLayer,
1422            i = new a(t.container);
1423        e.editor.setDefaultHandler("guttermousedown", function(r) {
1424            if (!t.isFocused() || r.getButton() != 0) return;
1425            var i = n.getRegion(r);
1426            if (i == "foldWidgets") return;
1427            var s = r.getDocumentPosition().row,
1428                o = t.session.selection;
1429            if (r.getShiftKey()) o.selectTo(s, 0);
1430            else {
1431                if (r.domEvent.detail == 2) return t.selectAll(), r.preventDefault();
1432                e.$clickSelection = t.selection.getLineRange(s)
1433            }
1434            return e.setState("selectByLines"), e.captureMouse(r), r.preventDefault()
1435        });
1436        var o, u, f;
1437        e.editor.setDefaultHandler("guttermousemove", function(t) {
1438            var n = t.domEvent.target || t.domEvent.srcElement;
1439            if (r.hasCssClass(n, "ace_fold-widget")) return c();
1440            f && e.$tooltipFollowsMouse && h(t), u = t;
1441            if (o) return;
1442            o = setTimeout(function() {
1443                o = null, u && !e.isMousePressed ? l() : c()
1444            }, 50)
1445        }), s.addListener(t.renderer.$gutter, "mouseout", function(e) {
1446            u = null;
1447            if (!f || o) return;
1448            o = setTimeout(function() {
1449                o = null, c()
1450            }, 50)
1451        }), t.on("changeSession", c)
1452    }
1453
1454    function a(e) {
1455        o.call(this, e)
1456    }
1457    var r = e("../lib/dom"),
1458        i = e("../lib/oop"),
1459        s = e("../lib/event"),
1460        o = e("../tooltip").Tooltip;
1461    i.inherits(a, o),
1462        function() {
1463            this.setPosition = function(e, t) {
1464                var n = window.innerWidth || document.documentElement.clientWidth,
1465                    r = window.innerHeight || document.documentElement.clientHeight,
1466                    i = this.getWidth(),
1467                    s = this.getHeight();
1468                e += 15, t += 15, e + i > n && (e -= e + i - n), t + s > r && (t -= 20 + s), o.prototype.setPosition.call(this, e, t)
1469            }
1470        }.call(a.prototype), t.GutterHandler = u
1471}), define("ace/mouse/mouse_event", ["require", "exports", "module", "ace/lib/event", "ace/lib/useragent"], function(e, t, n) {
1472    "use strict";
1473    var r = e("../lib/event"),
1474        i = e("../lib/useragent"),
1475        s = t.MouseEvent = function(e, t) {
1476            this.domEvent = e, this.editor = t, this.x = this.clientX = e.clientX, this.y = this.clientY = e.clientY, this.$pos = null, this.$inSelection = null, this.prop
1476agationStopped = !1, this.defaultPrevented = !1
1477        };
1478    (function() {
1479        this.stopPropagation = function() {
1480            r.stopPropagation(this.domEvent), this.propagationStopped = !0
1481        }, this.preventDefault = function() {
1482            r.preventDefault(this.domEvent), this.defaultPrevented = !0
1483        }, this.stop = function() {
1484            this.stopPropagation(), this.preventDefault()
1485        }, this.getDocumentPosition = function() {
1486            return this.$pos ? this.$pos : (this.$pos = this.editor.renderer.screenToTextCoordinates(this.clientX, this.clientY), this.$pos)
1487        }, this.inSelection = function() {
1488            if (this.$inSelection !== null) return this.$inSelection;
1489            var e = this.editor,
1490                t = e.getSelectionRange();
1491            if (t.isEmpty()) this.$inSelection = !1;
1492            else {
1493                var n = this.getDocumentPosition();
1494                this.$inSelection = t.contains(n.row, n.column)
1495            }
1496            return this.$inSelection
1497        }, this.getButton = function() {
1498            return r.getButton(this.domEvent)
1499        }, this.getShiftKey = function() {
1500            return this.domEvent.shiftKey
1501        }, this.getAccelKey = i.isMac ? function() {
1502            return this.domEvent.metaKey
1503        } : function() {
1504            return this.domEvent.ctrlKey
1505        }
1506    }).call(s.prototype)
1507}), define("ace/mouse/dragdrop_handler", ["require", "exports", "module", "ace/lib/dom", "ace/lib/event", "ace/lib/useragent"], function(e, t, n) {
1508    "use strict";
1509
1510    function f(e) {
1511        function T(e, n) {
1512            var r = Date.now(),
1513                i = !n || e.row != n.row,
1514                s = !n || e.column != n.column;
1515            if (!S || i || s) t.$blockScrolling += 1, t.moveCursorToPosition(e), t.$blockScrolling -= 1, S = r, x = {
1516                x: p,
1517                y: d
1518            };
1519            else {
1520                var o = l(x.x, x.y, p, d);
1521                o > a ? S = null : r - S >= u && (t.renderer.scrollCursorIntoView(), S = null)
1522            }
1523        }
1524
1525        function N(e, n) {
1526            var r = Date.now(),
1527                i = t.renderer.layerConfig.lineHeight,
1528                s = t.renderer.layerConfig.characterWidth,
1529                u = t.renderer.scroller.getBoundingClientRect(),
1530                a = {
1531                    x: {
1532                        left: p - u.left,
1533                        right: u.right - p
1534                    },
1535                    y: {
1536                        top: d - u.top,
1537                        bottom: u.bottom - d
1538                    }
1539                },
1540                f = Math.min(a.x.left, a.x.right),
1541                l = Math.min(a.y.top, a.y.bottom),
1542                c = {
1543                    row: e.row,
1544                    column: e.column
1545                };
1546            f / s <= 2 && (c.column += a.x.left < a.x.right ? -3 : 2), l / i <= 1 && (c.row += a.y.top < a.y.bottom ? -1 : 1);
1547            var h = e.row != c.row,
1548                v = e.column != c.column,
1549                m = !n || e.row != n.row;
1550            h || v && !m ? E ? r - E >= o && t.renderer.scrollCursorIntoView(c) : E = r : E = null
1551        }
1552
1553        function C() {
1554            var e = g;
1555            g = t.renderer.screenToTextCoordinates(p, d), T(g, e), N(g, e)
1556        }
1557
1558        function k() {
1559            m = t.selection.toOrientedRange(), h = t.session.addMarker(m, "ace_selection", t.getSelectionStyle()), t.clearSelection(), t.isFocused() && t.renderer.$cursorLayer.setBlinking(!1), clearInterval(v), C(), v = setInterval(C, 20), y = 0, i.addListener(document, "mousemove", O)
1560        }
1561
1562        function L() {
1563            clearInterval(v), t.session.removeMarker(h), h = null, t.$blockScrolling += 1, t.selection.fromOrientedRange(m), t.$blockScrolling -= 1, t.isFocused() && !w && t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()), m = null, g = null, y = 0, E = null, S = null, i.removeListener(document, "mousemove", O)
1564        }
1565
1566        function O() {
1567            A == null && (A = setTimeout(function() {
1568                A != null && h && L()
1569            }, 20))
1570        }
1571
1572        function M(e) {
1573            var t = e.types;
1574            return !t || Array.prototype.some.call(t, function(e) {
1575                return e == "text/plain" || e == "Text"
1576            })
1577        }
1578
1579        function _(e) {
1580            var t = ["copy", "copymove", "all", "uninitialized"],
1581                n = ["move", "copymove", "linkmove", "all", "uninitialized"],
1582                r = s.isMac ? e.altKey : e.ctrlKey,
1583                i = "uninitialized";
1584            try {
1585                i = e.dataTransfer.effectAllowed.toLowerCase()
1586            } catch (e) {}
1587            var o = "none";
1588            return r && t.indexOf(i) >= 0 ? o = "copy" : n.indexOf(i) >= 0 ? o = "move" : t.indexOf(i) >= 0 && (o = "copy"), o
1589        }
1590        var t = e.editor,
1591            n = r.createElement("img");
1592        n.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", s.isOpera && (n.style.cssText = "width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");
1593        var f = ["dragWait", "dragWaitEnd", "startDrag", "dragReadyEnd", "onMouseDrag"];
1594        f.forEach(function(t) {
1595            e[t] = this[t]
1596        }, this), t.addEventListener("mousedown", this.onMouseDown.bind(e));
1597        var c = t.container,
1598            h, p, d, v, m, g, y = 0,
1599            b, w, E, S, x;
1600        this.onDragStart = function(e) {
1601            if (this.cancelDrag || !c.draggable) {
1602                var r = this;
1603                return setTimeout(function() {
1604                    r.startSelect(), r.captureMouse(e)
1605                }, 0), e.preventDefault()
1606            }
1607            m = t.getSelectionRange();
1608            var i = e.dataTransfer;
1609            i.effectAllowed = t.getReadOnly() ? "copy" : "copyMove", s.isOpera && (t.container.appendChild(n), n.scrollTop = 0), i.setDragImage && i.setDragImage(n, 0, 0), s.isOpera && t.container.removeChild(n), i.clearData(), i.setData("Text", t.session.getTextRange()), w = !0, this.setState("drag")
1610        }, this.onDragEnd = function(e) {
1611            c.draggable = !1, w = !1, this.setState(null);
1612            if (!t.getReadOnly()) {
1613                var n = e.dataTransfer.dropEffect;
1614                !b && n == "move" && t.session.remove(t.getSelectionRange()), t.renderer.$cursorLayer.setBlinking(!0)
1615            }
1616            this.editor.unsetStyle("ace_dragging"), this.editor.renderer.setCursorStyle("")
1617        }, this.onDragEnter = function(e) {
1618            if (t.getReadOnly() || !M(e.dataTransfer)) return;
1619            return p = e.clientX, d = e.clientY, h || k(), y++, e.dataTransfer.dropEffect = b = _(e), i.preventDefault(e)
1620        }, this.onDragOver = function(e) {
1621            if (t.getReadOnly() || !M(e.dataTransfer)) return;
1622            return p = e.clientX, d = e.clientY, h || (k(), y++), A !== null && (A = null), e.dataTransfer.dropEffect = b = _(e), i.preventDefault(e)
1623        }, this.onDragLeave = function(e) {
1624            y--;
1625            if (y <= 0 && h) return L(), b = null, i.preventDefault(e)
1626        }, this.onDrop = function(e) {
1627            if (!g) return;
1628            var n = e.dataTransfer;
1629            if (w) switch (b) {
1630                case "move":
1631                    m.contains(g.row, g.column) ? m = {
1632                        start: g,
1633                        end: g
1634                    } : m = t.moveText(m, g);
1635                    break;
1636                case "copy":
1637                    m = t.moveText(m, g, !0)
1638            } else {
1639                var r = n.getData("Text");
1640                m = {
1641                    start: g,
1642                    end: t.session.insert(g, r)
1643                }, t.focus(), b = null
1644            }
1645            return L(), i.preventDefault(e)
1646        }, i.addListener(c, "dragstart", this.onDragStart.bind(e)), i.addListener(c, "dragend", this.onDragEnd.bind(e)), i.addListener(c, "dragenter", this.onDragEnter.bind(e)), i.addListener(c, "dragover", this.onDragOver.bind(e)), i.addListener(c, "dragleave", this.onDragLeave.bind(e)), i.addListener(c, "drop", this.onDrop.bind(e));
1647        var A = null
1648    }
1649
1650    function l(e, t, n, r) {
1651        return Math.sqrt(Math.pow(n - e, 2) + Math.pow(r - t, 2))
1652    }
1653    var r = e("../lib/dom"),
1654        i = e("../lib/event"),
1655        s = e("../lib/useragent"),
1656        o = 200,
1657        u = 200,
1658        a = 5;
1659    (function() {
1660        this.dragWait = function() {
1661            var e = Date.now() - this.mousedownEvent.time;
1662            e > this.editor.getDragDelay() && this.startDrag()
1663        }, this.dragWaitEnd = function() {
1664            var e = this.editor.container;
1665            e.draggable = !1, this.startSelect(this.mousedownEvent.getDocumentPosition()), this.selectEnd()
1666        }, this.dragReadyEnd = function(e) {
1667            this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()), this.editor.unsetStyle("ace_dragging"), this.editor.renderer.setCursorStyle(""), this.dragWaitEnd()
1668        }, this.startDrag = function() {
1669            this.cancelDrag = !1;
1670            var e = this.editor,
1671                t = e.container;
1672            t.draggable = !0, e.renderer.$cursorLayer.setBlinking(!1), e.setStyle("ace_dragging");
1673            var n = s.isWin ? "default" : "move";
1674            e.renderer.setCursorStyle(n), this.setState("dragReady")
1675        }, this.onMouseDrag = function(e) {
1676            var t = this.editor.container;
1677            if (s.isIE && this.state == "dragReady") {
1678                var n = l(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y);
1679                n > 3 && t.dragDrop()
1680            }
1681            if (this.state === "dragWait") {
1682                var n = l(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y);
1683                n > 0 && (t.draggable = !1, this.startSelect(this.mousedownEvent.getDocumentPosition()))
1684            }
1685        }, this.onMouseDown = function(e) {
1686            if (!this.$dragEnabled) return;
1687            this.mousedownEvent = e;
1688            var t = this.editor,
1689                n = e.inSelection(),
1690                r = e.getButton(),
1691                i = e.domEvent.detail || 1;
1692            if (i === 1 && r === 0 && n) {
1693                if (e.editor.inMultiSelectMode && (e.getAccelKey() || e.getShiftKey())) return;
1694                this.mousedownEvent.time = Date.now();
1695                var o = e.domEvent.target || e.domEvent.srcElement;
1696                "unselectable" in o && (o.unselectable = "on");
1697                if (t.getDragDelay()) {
1698                    if (s.isWebKit) {
1699                        this.cancelDrag = !0;
1700                        var u = t.container;
1701                        u.draggable = !0
1702                    }
1703                    this.setState("dragWait")
1704                } else this.startDrag();
1705                this.captureMouse(e, this.onMouseDrag.bind(this)), e.defaultPrevented = !0
1706            }
1707        }
1708    }).call(f.prototype), t.DragdropHandler = f
1709}), define("ace/lib/net", ["require", "exports", "module", "ace/lib/dom"], function(e, t, n) {
1710    "use strict";
1711    var r = e("./dom");
1712    t.get = function(e, t) {
1713        var n = new XMLHttpRequest;
1714        n.open("GET", e, !0), n.onreadystatechange = function() {
1715            n.readyState === 4 && t(n.responseText)
1716        }, n.send(null)
1717    }, t.loadScript = function(e, t) {
1718        var n = r.getDocumentHead(),
1719            i = document.createElement("script");
1720        i.src = e, n.appendChild(i), i.onload = i.onreadystatechange = function(e, n) {
1721            if (n || !i.readyState || i.readyState == "loaded" || i.readyState == "complete") i = i.onload = i.onreadystatechange = null, n || t()
1722        }
1723    }, t.qualifyURL = function(e) {
1724        var t = document.createElement("a");
1725        return t.href = e, t.href
1726    }
1727}), define("ace/lib/event_emitter", ["require", "exports", "module"], function(e, t, n) {
1728    "use strict";
1729    var r = {},
1730        i = function() {
1731            this.propagationStopped = !0
1732        },
1733        s = function() {
1734            this.defaultPrevented = !0
1735        };
1736    r._emit = r._dispatchEvent = function(e, t) {
1737        this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});
1738        var n = this._eventRegistry[e] || [],
1739            r = this._defaultHandlers[e];
1740        if (!n.length && !r) return;
1741        if (typeof t != "object" || !t) t = {};
1742        t.type || (t.type = e), t.stopPropagation || (t.stopPropagation = i), t.preventDefault || (t.preventDefault = s), n = n.slice();
1743        for (var o = 0; o < n.length; o++) {
1744            n[o](t, this);
1745            if (t.propagationStopped) break
1746        }
1747        if (r && !t.defaultPrevented) return r(t, this)
1748    }, r._signal = function(e, t) {
1749        var n = (this._eventRegistry || {})[e];
1750        if (!n) return;
1751        n = n.slice();
1752        for (var r = 0; r < n.length; r++) n[r](t, this)
1753    }, r.once = function(e, t) {
1754        var n = this;
1755        t && this.addEventListener(e, function r() {
1756            n.removeEventListener(e, r), t.apply(null, arguments)
1757        })
1758    }, r.setDefaultHandler = function(e, t) {
1759        var n = this._defaultHandlers;
1760        n || (n = this._defaultHandlers = {
1761            _disabled_: {}
1762        });
1763        if (n[e]) {
1764            var r = n[e],
1765                i = n._disabled_[e];
1766            i || (n._disabled_[e] = i = []), i.push(r);
1767            var s = i.indexOf(t);
1768            s != -1 && i.splice(s, 1)
1769        }
1770        n[e] = t
1771    }, r.removeDefaultHandler = function(e, t) {
1772        var n = this._defaultHandlers;
1773        if (!n) return;
1774        var r = n._disabled_[e];
1775        if (n[e] == t) {
1776            var i = n[e];
1777            r && this.setDefaultHandler(e, r.pop())
1778        } else if (r) {
1779            var s = r.indexOf(t);
1780            s != -1 && r.splice(s, 1)
1781        }
1782    }, r.on = r.addEventListener = function(e, t, n) {
1783        this._eventRegistry = this._eventRegistry || {};
1784        var r = this._eventRegistry[e];
1785        return r || (r = this._eventRegistry[e] = []), r.indexOf(t) == -1 && r[n ? "unshift" : "push"](t), t
1786    }, r.off = r.removeListener = r.removeEventListener = function(e, t) {
1787        this._eventRegistry = this._eventRegistry || {};
1788        var n = this._eventRegistry[e];
1789        if (!n) return;
1790        var r = n.indexOf(t);
1791        r !== -1 && n.splice(r, 1)
1792    }, r.removeAllListeners = function(e) {
1793        this._eventRegistry && (this._eventRegistry[e] = [])
1794    }, t.EventEmitter = r
1795}), define("ace/lib/app_config", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(e, t, n) {
1796    "no use strict";
1797
1798    function o(e) {
1799        typeof console != "undefined" && console.warn && console.warn.apply(console, arguments)
1800    }
1801
1802    function u(e, t) {
1803        var n = new Error(e);
1804        n.data = t, typeof console == "object" && console.error && console.error(n), setTimeout(function() {
1805            throw n
1806        })
1807    }
1808    var r = e("./oop"),
1809        i = e("./event_emitter").EventEmitter,
1810        s = {
1811            setOptions: function(e) {
1812                Object.keys(e).forEach(function(t) {
1813                    this.setOption(t, e[t])
1814                }, this)
1815            },
1816            getOptions: function(e) {
1817                var t = {};
1818                return e ? Array.isArray(e) || (t = e, e = Object.keys(t)) : e = Object.keys(this.$options), e.forEach(function(e) {
1819                    t[e] = this.getOption(e)
1820                }, this), t
1821            },
1822            setOption: function(e, t) {
1823                if (this["$" + e] === t) return;
1824                var n = this.$options[e];
1825                if (!n) return o('misspelled option "' + e + '"');
1826                if (n.forwardTo) return this[n.forwardTo] && this[n.forwardTo].setOption(e, t);
1827                n.handlesSet || (this["$" + e] = t), n && n.set && n.set.call(this, t)
1828            },
1829            getOption: function(e) {
1830                var t = this.$options[e];
1831                return t ? t.forwardTo ? this[t.forwardTo] && this[t.forwardTo].getOption(e) : t && t.get ? t.get.call(this) : this["$" + e] : o('misspelled option "' + e + '"')
1832            }
1833        },
1834        a = function() {
1835            this.$defaultOptions = {}
1836        };
1837    (function() {
1838        r.implement(this, i), this.defineOptions = function(e, t, n) {
1839            return e.$options || (this.$defaultOptions[t] = e.$options = {}
1839), Object.keys(n).forEach(function(t) {
1840                var r = n[t];
1841                typeof r == "string" && (r = {
1842                    forwardTo: r
1843                }), r.name || (r.name = t), e.$options[r.name] = r, "initialValue" in r && (e["$" + r.name] = r.initialValue)
1844            }), r.implement(e, s), this
1845        }, this.resetOptions = function(e) {
1846            Object.keys(e.$options).forEach(function(t) {
1847                var n = e.$options[t];
1848                "value" in n && e.setOption(t, n.value)
1849            })
1850        }, this.setDefaultValue = function(e, t, n) {
1851            var r = this.$defaultOptions[e] || (this.$defaultOptions[e] = {});
1852            r[t] && (r.forwardTo ? this.setDefaultValue(r.forwardTo, t, n) : r[t].value = n)
1853        }, this.setDefaultValues = function(e, t) {
1854            Object.keys(t).forEach(function(n) {
1855                this.setDefaultValue(e, n, t[n])
1856            }, this)
1857        }, this.warn = o, this.reportError = u
1858    }).call(a.prototype), t.AppConfig = a
1859}), define("ace/config", ["require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/lib/net", "ace/lib/app_config"], function(e, t, n) {
1860    "no use strict";
1861
1862    function f(r) {
1863        a.packaged = r || e.packaged || n.packaged || u.define && define.packaged;
1864        if (!u.document) return "";
1865        var i = {},
1866            s = "",
1867            o = document.currentScript || document._currentScript,
1868            f = o && o.ownerDocument || document,
1869            c = f.getElementsByTagName("script");
1870        for (var h = 0; h < c.length; h++) {
1871            var p = c[h],
1872                d = p.src || p.getAttribute("src");
1873            if (!d) continue;
1874            var v = p.attributes;
1875            for (var m = 0, g = v.length; m < g; m++) {
1876                var y = v[m];
1877                y.name.indexOf("data-ace-") === 0 && (i[l(y.name.replace(/^data-ace-/, ""))] = y.value)
1878            }
1879            var b = d.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);
1880            b && (s = b[1])
1881        }
1882        s && (i.base = i.base || s, i.packaged = !0), i.basePath = i.base, i.workerPath = i.workerPath || i.base, i.modePath = i.modePath || i.base, i.themePath 
1882= i.themePath || i.base, delete i.base;
1883        for (var w in i) typeof i[w] != "undefined" && t.set(w, i[w])
1884    }
1885
1886    function l(e) {
1887        return e.replace(/-(.)/g, function(e, t) {
1888            return t.toUpperCase()
1889        })
1890    }
1891    var r = e("./lib/lang"),
1892        i = e("./lib/oop"),
1893        s = e("./lib/net"),
1894        o = e("./lib/app_config").AppConfig;
1895    n.exports = t = new o;
1896    var u = function() {
1897            return this || typeof window != "undefined" && window
1898        }(),
1899        a = {
1900            packaged: !1,
1901            workerPath: null,
1902            modePath: null,
1903            themePath: null,
1904            basePath: "",
1905            suffix: ".js",
1906            $moduleUrls: {}
1907        };
1908    t.get = function(e) {
1909        if (!a.hasOwnProperty(e)) throw new Error("Unknown config key: " + e);
1910        return a[e]
1911    }, t.set = function(e, t) {
1912        if (!a.hasOwnProperty(e)) throw new Error("Unknown config key: " + e);
1913        a[e] = t
1914    }, t.all = function() {
1915        return r.copyObject(a)
1916    }, t.moduleUrl = function(e, t) {
1917        if (a.$moduleUrls[e]) return a.$moduleUrls[e];
1918        var n = e.split("/");
1919        t = t || n[n.length - 2] || "";
1920        var r = t == "snippets" ? "/" : "-",
1921            i = n[n.length - 1];
1922        if (t == "worker" && r == "-") {
1923            var s = new RegExp("^" + t + "[\\-_]|[\\-_]" + t + "$", "g");
1924            i = i.replace(s, "")
1925        }(!i || i == t) && n.length > 1 && (i = n[n.length - 2]);
1926        var o = a[t + "Path"];
1927        return o == null ? o = a.basePath : r == "/" && (t = r = ""), o && o.slice(-1) != "/" && (o += "/"), o + t + r + i + this.get("suffix")
1928    }, t.setModuleUrl = function(e, t) {
1929        return a.$moduleUrls[e] = t
1930    }, t.$loading = {}, t.loadModule = function(n, r) {
1931        var i, o;
1932        Array.isArray(n) && (o = n[0], n = n[1]);
1933        try {
1934            i = e(n)
1935        } catch (u) {}
1936        if (i && !t.$loading[n]) return r && r(i);
1937        t.$loading[n] || (t.$loading[n] = []), t.$loading[n].push(r);
1938        if (t.$loading[n].length > 1) return;
1939        var a = function() {
1940            e([n], function(e) {
1941                t._emit("load.module", {
1942                    name: n,
1943                    module: e
1944                });
1945                var r = t.$loading[n];
1946                t.$loading[n] = null, r.forEach(function(t) {
1947                    t && t(e)
1948                })
1949            })
1950        };
1951        if (!t.get("packaged")) return a();
1952        s.loadScript(t.moduleUrl(n, o), a)
1953    }, t.init = f
1954}), define("ace/mouse/mouse_handler", ["require", "exports", "module", "ace/lib/event", "ace/lib/useragent", "ace/mouse/default_handlers", "ace/mouse/default_gutter_handler", "ace/mouse/mouse_event", "ace/mouse/dragdrop_handler", "ace/config"], function(e, t, n) {
1955    "use strict";
1956    var r = e("../lib/event"),
1957        i = e("../lib/useragent"),
1958        s = e("./default_handlers").DefaultHandlers,
1959        o = e("./default_gutter_handler").GutterHandler,
1960        u = e("./mouse_event").MouseEvent,
1961        a = e("./dragdrop_handler").DragdropHandler,
1962        f = e("../config"),
1963        l = function(e) {
1964            var t = this;
1965            this.editor = e, new s(this), new o(this), new a(this);
1966            var n = function(t) {
1967                    (!document.hasFocus || !document.hasFocus()) && window.focus(), e.focus()
1968                },
1969                u = e.renderer.getMouseEventTarget();
1970            r.addListener(u, "click", this.onMouseEvent.bind(this, "click")), r.addListener(u, "mousemove", this.onMouseMove.bind(this, "mousemove")), r.addMultiMouseDownListener(u, [400, 300, 250], this, "onMouseEvent"), e.renderer.scrollBarV && (r.addMultiMouseDownListener(e.renderer.scrollBarV.inner, [400, 300, 250], this, "onMouseEvent"), r.addMultiMouseDownListener(e.renderer.scrollBarH.inner, [400, 300, 250], this, "onMouseEvent"), i.isIE && (r.addListener(e.renderer.scrollBarV.element, "mousedown", n), r.addListener(e.renderer.scrollBarH.element, "mousedown", n))), r.addMouseWheelListener(e.container, this.onMouseWheel.bind(this, "mousewheel")), r.addTouchMoveListener(e.container, this.onTouchMove.bind(this, "touchmove"));
1971            var f = e.renderer.$gutter;
1972            r.addListener(f, "mousedown", this.onMouseEvent.bind(this, "guttermousedown")), r.addListener(f, "click", this.onMouseEvent.bind(this, "gutterclick")), r.addListener(f, "dblclick", this.onMouseEvent.bind(this, "gutterdblclick")), r.addListener(f, "mousemove", this.onMouseEvent.bind(this, "guttermousemove")), r.addListener(u, "mousedown", n), r.addListener(f, "mousedown", function(t) {
1973                return e.focus(), r.preventDefault(t)
1974            }), e.on("mousemove", function(n) {
1975                if (t.state || t.$dragDelay || !t.$dragEnabled) return;
1976                var r = e.renderer.screenToTextCoordinates(n.x, n.y),
1977                    i = e.session.selection.getRange(),
1978                    s = e.renderer;
1979                !i.isEmpty() && i.insideStart(r.row, r.column) ? s.setCursorStyle("default") : s.setCursorStyle("")
1980            })
1981        };
1982    (function() {
1983        this.onMouseEvent = function(e, t) {
1984            this.editor._emit(e, new u(t, this.editor))
1985        }, this.onMouseMove = function(e, t) {
1986            var n = this.editor._eventRegistry && this.editor._eventRegistry.mousemove;
1987            if (!n || !n.length) return;
1988            this.editor._emit(e, new u(t, this.editor))
1989        }, this.onMouseWheel = function(e, t) {
1990            var n = new u(t, this.editor);
1991            n.speed = this.$scrollSpeed * 2, n.wheelX = t.wheelX, n.wheelY = t.wheelY, this.editor._emit(e, n)
1992        }, this.onTouchMove = function(e, t) {
1993            var n = new u(t, this.editor);
1994            n.speed = 1, n.wheelX = t.wheelX, n.wheelY = t.wheelY, this.editor._emit(e, n)
1995        }, this.setState = function(e) {
1996            this.state = e
1997        }, this.captureMouse = function(e, t) {
1998            this.x = e.x, this.y = e.y, this.isMousePressed = !0;
1999            var n = this.editor.renderer;
2000            n.$keepTextAreaAtCursor && (n.$keepTextAreaAtCursor = null);
2001            var s = this,
2002                o = function(e) {
2003                    if (!e) return;
2004                    if (i.isWebKit && !e.which && s.releaseMouse) return s.releaseMouse();
2005                    s.x = e.clientX, s.y = e.clientY, t && t(e), s.mouseEvent = new u(e, s.editor), s.$mouseMoved = !0
2006                },
2007                a = function(e) {
2008                    clearInterval(l), f(), s[s.state + "End"] && s[s.state + "End"](e), s.state = "", n.$keepTextAreaAtCursor == null && (n.$keepTextAreaAtCursor = !0, n.$moveTextAreaToCursor()), s.isMousePressed = !1, s.$onCaptureMouseMove = s.releaseMouse = null, e && s.onMouseEvent("mouseup", e)
2009                },
2010                f = function() {
2011                    s[s.state] && s[s.state](), s.$mouseMoved = !1
2012                };
2013            if (i.isOldIE && e.domEvent.type == "dblclick") return setTimeout(function() {
2014                a(e)
2015            });
2016            s.$onCaptureMouseMove = o, s.releaseMouse = r.capture(this.editor.container, o, a);
2017            var l = setInterval(f, 20)
2018        }, this.releaseMouse = null, this.cancelContextMenu = function() {
2019            var e = function(t) {
2020                if (t && t.domEvent && t.domEvent.type != "contextmenu") return;
2021                this.editor.off("nativecontextmenu", e), t && t.domEvent && r.stopEvent(t.domEvent)
2022            }.bind(this);
2023            setTimeout(e, 10), this.editor.on("nativecontextmenu", e)
2024        }
2025    }).call(l.prototype), f.defineOptions(l.prototype, "mouseHandler", {
2026        scrollSpeed: {
2027            initialValue: 2
2028        },
2029        dragDelay: {
2030            initialValue: i.isMac ? 150 : 0
2031        },
2032        dragEnabled: {
2033            initialValue: !0
2034        },
2035        focusTimout: {
2036            initialValue: 0
2037        },
2038        tooltipFollowsMouse: {
2039            initialValue: !0
2040        }
2041    }), t.MouseHandler = l
2042}), define("ace/mouse/fold_handler", ["require", "exports", "module"], function(e, t, n) {
2043    "use strict";
2044
2045    function r(e) {
2046        e.on("click", function(t) {
2047            var n = t.getDocumentPosition(),
2048                r = e.session,
2049                i = r.getFoldAt(n.row, n.column, 1);
2050            i && (t.getAccelKey() ? r.removeFold(i) : r.expandFold(i), t.stop())
2051        }), e.on("gutterclick", function(t) {
2052            var n = e.renderer.$gutterLayer.getRegion(t);
2053            if (n == "foldWidgets") {
2054                var r = t.getDocumentPosition().row,
2055                    i = e.session;
2056                i.foldWidgets && i.foldWidgets[r] && e.session.onFoldWidgetClick(r, t), e.isFocused() || e.focus(), t.stop()
2057            }
2058        }), e.on("gutterdblclick", function(t) {
2059            var n = e.renderer.$gutterLayer.getRegion(t);
2060            if (n == "foldWidgets") {
2061                var r = t.getDocumentPosition().row,
2062                    i = e.session,
2063                    s = i.getParentFoldRangeData(r, !0),
2064                    o = s.range || s.firstRange;
2065                if (o) {
2066                    r = o.start.row;
2067                    var u = i.getFoldAt(r, i.getLine(r).length, 1);
2068                    u ? i.removeFold(u) : (i.addFold("...", o), e.renderer.scrollCursorIntoView({
2069                        row: o.start.row,
2070                        column: 0
2071                    }))
2072                }
2073                t.stop()
2074            }
2075        })
2076    }
2077    t.FoldHandler = r
2078}), define("ace/keyboard/keybinding", ["require", "exports", "module", "ace/lib/keys", "ace/lib/event"], function(e, t, n) {
2079    "use strict";
2080    var r = e("../lib/keys"),
2081        i = e("../lib/event"),
2082        s = function(e) {
2083            this.$editor = e, this.$data = {
2084                editor: e
2085            }, this.$handlers = [], this.setDefaultHandler(e.commands)
2086        };
2087    (function() {
2088        this.setDefaultHandler = function(e) {
2089            this.removeKeyboardHandler(this.$defaultHandler), this.$defaultHandler = e, this.addKeyboardHandler(e, 0)
2090        }, this.setKeyboardHandler = function(e) {
2091            var t = this.$handlers;
2092            if (t[t.length - 1] == e) return;
2093            while (t[t.length - 1] && t[t.length - 1] != this.$defaultHandler) this.removeKeyboardHandler(t[t.length - 1]);
2094            this.addKeyboardHandler(e, 1)
2095        }, this.addKeyboardHandler = function(e, t) {
2096            if (!e) return;
2097            typeof e == "function" && !e.handleKeyboard && (e.handleKeyboard = e);
2098            var n = this.$handlers.indexOf(e);
2099            n != -1 && this.$handlers.splice(n, 1), t == undefined ? this.$handlers.push(e) : this.$handlers.splice(t, 0, e), n == -1 && e.attach && e.attach(this.$editor)
2100        }, this.removeKeyboardHandler = function(e) {
2101            var t = this.$handlers.indexOf(e);
2102            return t == -1 ? !1 : (this.$handlers.splice(t, 1), e.detach && e.detach(this.$editor), !0)
2103        }, this.getKeyboardHandler = function() {
2104            return this.$handlers[this.$handlers.length - 1]
2105        }
2105, this.getStatusText = function() {
2106            var e = this.$data,
2107                t = e.editor;
2108            return this.$handlers.map(function(n) {
2109                return n.getStatusText && n.getStatusText(t, e) || ""
2110            }).filter(Boolean).join(" ")
2111        }, this.$callKeyboardHandlers = function(e, t, n, r) {
2112            var s, o = !1,
2113                u = this.$editor.commands;
2114            for (var a = this.$handlers.length; a--;) {
2115                s = this.$handlers[a].handleKeyboard(this.$data, e, t, n, r);
2116                if (!s || !s.command) continue;
2117                s.command == "null" ? o = !0 : o = u.exec(s.command, this.$editor, s.args, r), o && r && e != -1 && s.passEvent != 1 && s.command.passEvent != 1 && i.stopEvent(r);
2118                if (o) break
2119            }
2120            return o
2121        }, this.onCommandKey = function(e, t, n) {
2122            var i = r.keyCodeToString(n);
2123            this.$callKeyboardHandlers(t, i, n, e)
2124        }, this.onTextInput = function(e) {
2125            var t = this.$callKeyboardHandlers(-1, e);
2126            t || this.$editor.commands.exec("insertstring", this.$editor, e)
2127        }
2128    }).call(s.prototype), t.KeyBinding = s
2129}), define("ace/range", ["require", "exports", "module"], function(e, t, n) {
2130    "use strict";
2131    var r = function(e, t) {
2132            return e.row - t.row || e.column - t.column
2133        },
2134        i = function(e, t, n, r) {
2135            this.start = {
2136                row: e,
2137                column: t
2138            }, this.end = {
2139                row: n,
2140                column: r
2141            }
2142        };
2143    (function() {
2144        this.isEqual = function(e) {
2145            return this.start.row === e.start.row && this.end.row === e.end.row && this.start.column === e.start.column && this.end.column === e.end.column
2146        }, this.toString = function() {
2147            return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"
2148        }, this.contains = function(e, t) {
2149            return this.compare(e, t) == 0
2150        }, this.compareRange = function(e) {
2151            var t, n = e.end,
2152                r = e.start;
2153            return t = this.compare(n.row, n.column), t == 1 ? (t = this.compare(r.row, r.column), t == 1 ? 2 : t == 0 ? 1 : 0) : t == -1 ? -2 : (t = this.compare(r.row, r.column), t == -1 ? -1 : t == 1 ? 42 : 0)
2154        }, this.comparePoint = function(e) {
2155            return this.compare(e.row, e.column)
2156        }, this.containsRange = function(e) {
2157            return this.comparePoint(e.start) == 0 && this.comparePoint(e.end) == 0
2158        }, this.intersects = function(e) {
2159            var t = this.compareRange(e);
2160            return t == -1 || t == 0 || t == 1
2161        }, this.isEnd = function(e, t) {
2162            return this.end.row == e && this.end.column == t
2163        }, this.isStart = function(e, t) {
2164            return this.start.row == e && this.start.column == t
2165        }, this.setStart = function(e, t) {
2166            typeof e == "object" ? (this.start.column = e.column, this.start.row = e.row) : (this.start.row = e, this.start.column = t)
2167        }, this.setEnd = function(e, t) {
2168            typeof e == "object" ? (this.end.column = e.column, this.end.row = e.row) : (this.end.row = e, this.end.column = t)
2169        }, this.inside = function(e, t) {
2170            return this.compare(e, t) == 0 ? this.isEnd(e, t) || this.isStart(e, t) ? !1 : !0 : !1
2171        }, this.insideStart = function(e, t) {
2172            return this.compare(e, t) == 0 ? this.isEnd(e, t) ? !1 : !0 : !1
2173        }, this.insideEnd = function(e, t) {
2174            return this.compare(e, t) == 0 ? this.isStart(e, t) ? !1 : !0 : !1
2175        }, this.compare = function(e, t) {
2176            return !this.isMultiLine() && e === this.start.row ? t < this.start.column ? -1 : t > this.end.column ? 1 : 0 : e < this.start.row ? -1 : e > this.end.row ? 1 : this.start.row === e ? t >= this.start.column ? 0 : -1 : this.end.row === e ? t <= this.end.column ? 0 : 1 : 0
2177        }, this.compareStart = function(e, t) {
2178            return this.start.row == e && this.start.column == t ? -1 : this.compare(e, t)
2179        }, this.compareEnd = function(e, t) {
2180            return this.end.row == e && this.end.column == t ? 1 : this.compare(e, t)
2181        }, this.compareInside = function(e, t) {
2182            return this.end.row == e && this.end.column == t ? 1 : this.start.row == e && this.start.column == t ? -1 : this.compare(e, t)
2183        }, this.clipRows = function(e, t) {
2184            if (this.end.row > t) var n = {
2185                row: t + 1,
2186                column: 0
2187            };
2188            else if (this.end.row < e) var n = {
2189                row: e,
2190                column: 0
2191            };
2192            if (this.start.row > t) var r = {
2193                row: t + 1,
2194                column: 0
2195            };
2196            else if (this.start.row < e) var r = {
2197                row: e,
2198                column: 0
2199            };
2200            return i.fromPoints(r || this.start, n || this.end)
2201        }, this.extend = function(e, t) {
2202            var n = this.compare(e, t);
2203            if (n == 0) return this;
2204            if (n == -1) var r = {
2205                row: e,
2206                column: t
2207            };
2208            else var s = {
2209                row: e,
2210                column: t
2211            };
2212            return i.fromPoints(r || this.start, s || this.end)
2213        }, this.isEmpty = function() {
2214            return this.start.row === this.end.row && this.start.column === this.end.column
2215        }, this.isMultiLine = function() {
2216            return this.start.row !== this.end.row
2217        }, this.clone = function() {
2218            return i.fromPoints(this.start, this.end)
2219        }, this.collapseRows = function() {
2220            return this.end.column == 0 ? new i(this.start.row, 0, Math.max(this.start.row, this.end.row - 1), 0) : new i(this.start.row, 0, this.end.row, 0)
2221        }, this.toScreenRange = function(e) {
2222            var t = e.documentToScreenPosition(this.start),
2223                n = e.documentToScreenPosition(this.end);
2224            return new i(t.row, t.column, n.row, n.column)
2225        }, this.moveBy = function(e, t) {
2226            this.start.row += e, this.start.column += t, this.end.row += e, this.end.column += t
2227        }
2228    }).call(i.prototype), i.fromPoints = function(e, t) {
2229        return new i(e.row, e.column, t.row, t.column)
2230    }, i.comparePoints = r, i.comparePoints = function(e, t) {
2231        return e.row - t.row || e.column - t.column
2232    }, t.Range = i
2233}), define("ace/selection", ["require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter", "ace/range"], function(e, t, n) {
2234    "use strict";
2235    var r = e("./lib/oop"),
2236        i = e("./lib/lang"),
2237        s = e("./lib/event_emitter").EventEmitter,
2238        o = e("./range").Range,
2239        u = function(e) {
2240            this.session = e, this.doc = e.getDocument(), this.clearSelection(), this.lead = this.selectionLead = this.doc.createAnchor(0, 0), this.anchor = this.selectionAnchor = this.doc.createAnchor(0, 0);
2241            var t = this;
2242            this.lead.on("change", function(e) {
2243                t._emit("changeCursor"), t.$isEmpty || t._emit("changeSelection"), !t.$keepDesiredColumnOnChange && e.old.column != e.value.column && (t.$desiredColumn = null)
2244            }), this.selectionAnchor.on("change", function() {
2245                t.$isEmpty || t._emit("changeSelection")
2246            })
2247        };
2248    (function() {
2249        r.implement(this, s), this.isEmpty = function() {
2250            return this.$isEmpty || this.anchor.row == this.lead.row && this.anchor.column == this.lead.column
2251        }, this.isMultiLine = function() {
2252            return this.isEmpty() ? !1 : this.getRange().isMultiLine()
2253        }, this.getCursor = function() {
2254            return this.lead.getPosition()
2255        }, this.setSelectionAnchor = function(e, t) {
2256            this.anchor.setPosition(e, t), this.$isEmpty && (this.$isEmpty = !1, this._emit("changeSelection"))
2257        }, this.getSelectionAnchor = function() {
2258            return this.$isEmpty ? this.getSelectionLead() : this.anchor.getPosition()
2259        }, this.getSelectionLead = function() {
2260            return this.lead.getPosition()
2261        }, this.shiftSelection = function(e) {
2262            if (this.$isEmpty) {
2263                this.moveCursorTo(this.lead.row, this.lead.column + e);
2264                return
2265            }
2266            var t = this.getSelectionAnchor(),
2267                n = this.getSelectionLead(),
2268                r = this.isBackwards();
2269            (!r || t.column !== 0) && this.setSelectionAnchor(t.row, t.column + e), (r || n.column !== 0) && this.$moveSelection(function() {
2270                this.moveCursorTo(n.row, n.column + e)
2271            })
2272        }, this.isBackwards = function() {
2273            var e = this.anchor,
2274                t = this.lead;
2275            return e.row > t.row || e.row == t.row && e.column > t.column
2276        }, this.getRange = function() {
2277            var e = this.anchor,
2278                t = this.lead;
2279            return this.isEmpty() ? o.fromPoints(t, t) : this.isBackwards() ? o.fromPoints(t, e) : o.fromPoints(e, t)
2280        }, this.clearSelection = function() {
2281            this.$isEmpty || (this.$isEmpty = !0, this._emit("changeSelection"))
2282        }, this.selectAll = function() {
2283            var e = this.doc.getLength() - 1;
2284            this.setSelectionAnchor(0, 0), this.moveCursorTo(e, this.doc.getLine(e).length)
2285        }, this.setRange = this.setSelectionRange = function(e, t) {
2286            t ? (this.setSelectionAnchor(e.end.row, e.end.column), this.selectTo(e.start.row, e.start.column)) : (this.setSelectionAnchor(e.start.row, e.start.column), this.selectTo(e.end.row, e.end.column)), this.getRange().isEmpty() && (this.$isEmpty = !0), this.$desiredColumn = null
2287        }, this.$moveSelection = function(e) {
2288            var t = this.lead;
2289            this.$isEmpty && this.setSelectionAnchor(t.row, t.column), e.call(this)
2290        }, this.selectTo = function(e, t) {
2291            this.$moveSelection(function() {
2292                this.moveCursorTo(e, t)
2293            })
2294        }, this.selectToPosition = function(e) {
2295            this.$moveSelection(function() {
2296                this.moveCursorToPosition(e)
2297            })
2298        }, this.moveTo = function(e, t) {
2299            this.clearSelection(), this.moveCursorTo(e, t)
2300        }, this.moveToPosition = function(e) {
2301            this.clearSelection(), this.moveCursorToPosition(e)
2302        }, this.selectUp = function() {
2303            this.$moveSelection(this.moveCursorUp)
2304        }, this.selectDown = function() {
2305            this.$moveSelection(this.moveCursorDown)
2306        }, this.selectRight = function() {
2307            this.$moveSelection(this.moveCursorRight)
2308        }, this.selectLeft = function() {
2309            this.$moveSelection(this.moveCursorLeft)
2310        }, this.selectLineStart = function() {
2311            this.$moveSelection(this.moveCursorLineStart)
2312        }, this.selectLineEnd = function() {
2313            this.$moveSelection(this.moveCursorLineEnd)
2314        }, this.selectFileEnd = function() {
2315            this.$moveSelection(this.moveCursorFileEnd)
2316        }, this.selectFileStart = function() {
2317            this.$moveSelection(this.moveCursorFileStart)
2318        }, this.selectWordRight = function() {
2319            this.$moveSelection(this.moveCursorWordRight)
2320        }, this.selectWordLeft = function() {
2321            this.$moveSelection(this.moveCursorWordLeft)
2322        }, this.getWordRange = function(e, t) {
2323            if (typeof t == "undefined") {
2324                var n = e || this.lead;
2325                e = n.row, t = n.column
2326            }
2327            return this.session.getWordRange(e, t)
2328        }, this.selectWord = function() {
2329            this.setSelectionRange(this.getWordRange())
2330        }, this.selectAWord = function() {
2331            var e = this.getCursor(),
2332                t = this.session.getAWordRange(e.row, e.column);
2333            this.setSelectionRange(t)
2334        }, this.getLineRange = function(e, t) {
2335            var n = typeof e == "number" ? e : this.lead.row,
2336                r, i = this.session.getFoldLine(n);
2337            return i ? (n = i.start.row, r = i.end.row) : r = n, t === !0 ? new o(n, 0, r, this.session.getLine(r).length) : new o(n, 0, r + 1, 0)
2338        }, this.selectLine = function() {
2339            this.setSelectionRange(this.getLineRange())
2340        }, this.moveCursorUp = function() {
2341            this.moveCursorBy(-1, 0)
2342        }, this.moveCursorDown = function() {
2343            this.moveCursorBy(1, 0)
2344        }, this.moveCursorLeft = function() {
2345            var e = this.lead.getPosition(),
2346                t;
2347            if (t = this.session.getFoldAt(e.row, e.column, -1)) this.moveCursorTo(t.start.row, t.start.column);
2348            else if (e.column === 0) e.row > 0 && this.moveCursorTo(e.row - 1, this.doc.getLine(e.row - 1).length);
2349            else {
2350                var n = this.session.getTabSize();
2351                this.session.isTabStop(e) && this.doc.getLine(e.row).slice(e.column - n, e.column).split(" ").length - 1 == n ? this.moveCursorBy(0, -n) : this.moveCursorBy(0, -1)
2352            }
2353        }, this.moveCursorRight = function() {
2354            var e = this.lead.getPosition(),
2355                t;
2356            if (t = this.session.getFoldAt(e.row, e.column, 1)) this.moveCursorTo(t.end.row, t.end.column);
2357            else if (this.lead.column == this.doc.getLine(this.lead.row).length) this.lead.row < this.doc.getLength() - 1 && this.moveCursorTo(this.lead.row + 1, 0);
2358            else {
2359                var n = this.session.getTabSize(),
2360                    e = this.lead;
2361                this.session.isTabStop(e) && this.doc.getLine(e.row).slice(e.column, e.column + n).split(" ").length - 1 == n ? this.moveCursorBy(0, n) : this.moveCursorBy(0, 1)
2362            }
2363        }, this.moveCursorLineStart = function() {
2364            var e = this.lead.row,
2365                t = this.lead.column,
2366                n = this.session.documentToScreenRow(e, t),
2367                r = this.session.screenToDocumentPosition(n, 0),
2368                i = this.session.getDisplayLine(e, null, r.row, r.column),
2369                s = i.match(/^\s*/);
2370            s[0].length != t && !this.session.$useEmacsStyleLineStart && (r.column += s[0].length), this.moveCursorToPosition(r)
2371        }, this.moveCursorLineEnd = function() {
2372            var e = this.lead,
2373                t = this.session.getDocumentLastRowColumnPosition(e.row, e.column);
2374            if (this.lead.column == t.column) {
2375                var n = this.session.getLine(t.row);
2376                if (t.column == n.length) {
2377                    var r = n.search(/\s+$/);
2378                    r > 0 && (t.column = r)
2379                }
2380            }
2381            this.moveCursorTo(t.row, t.column)
2382        }, this.moveCursorFileEnd = function() {
2383            var e = this.doc.getLength() - 1,
2384                t = this.doc.getLine(e).length;
2385            this.moveCursorTo(e, t)
2386        }, this.moveCursorFileStart = function() {
2387            this.moveCursorTo(0, 0)
2388        }, this.moveCursorLongWordRight = function() {
2389            var e = this.lead.row,
2390                t = this.lead.column,
2391                n = this.doc.getLine(e),
2392                r = n.substring(t),
2393                i;
2394            this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0;
2395            var s = this.session.getFoldAt(e, t, 1);
2396            if (s) {
2397                this.moveCursorTo(s.end.row, s.end.column);
2398                return
2399            }
2400            if (i = this.session.nonTokenRe.exec(r)) t += this.session.nonTokenRe.lastIndex, this.session.nonTokenRe.lastIndex = 0, r = n.substring(t);
2401            if (t >= n.length) {
2402                this.moveCursorTo(e, n.length), this.moveCursorRight(), e < this.doc.getLength() - 1 && this.moveCursorWordRight();
2403                return
2404            }
2405            if (i = this.session.tokenRe.exec(r)) t += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0;
2406            this.moveCursorTo(e, t)
2407        }, this.moveCursorLongWordLeft = function() {
2408            var e = this.lead.row,
2409                t = this.lead.column,
2410                n;
2411            if (n = this.session.getFoldAt(e, t, -1)) {
2412                this.moveCursorTo(n.start.row, n.start.column);
2413                return
2414            }
2415            var r = this.session.getFoldStringAt(e, t, -1);
2416            r == null && (r = this.doc.getLine(e).substring(0, t));
2417            var s = i.stringReverse(r),
2418                o;
2419            this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0;
2420            if (o = this.session.nonTokenRe.exec(s)) t -= this.session.nonTokenRe.lastIndex, s = s.slice(this.session.nonTokenRe.lastIndex), this.session.nonTokenRe.lastIndex = 0;
2421            if (t <= 0) {
2422                this.moveCursorTo(e, 0), this.moveCursorLeft(), e > 0 && this.moveCursorWordLeft();
2423                return
2424            }
2425            if (o = this.session.tokenRe.exec(s)) t -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0;
2426            this.moveCursorTo(e, t)
2427        }, this.$shortWordEndIndex = function(e) {
2428            var t, n = 0,
2429                r, i = /\s/,
2430                s = this.session.tokenRe;
2431            s.lastIndex = 0;
2432            if (t = this.session.tokenRe.exec(e)) n = this.session.token
2432Re.lastIndex;
2433            else {
2434                while ((r = e[n]) && i.test(r)) n++;
2435                if (n < 1) {
2436                    s.lastIndex = 0;
2437                    while ((r = e[n]) && !s.test(r)) {
2438                        s.lastIndex = 0, n++;
2439                        if (i.test(r)) {
2440                            if (n > 2) {
2441                                n--;
2442                                break
2443                            }
2444                            while ((r = e[n]) && i.test(r)) n++;
2445                            if (n > 2) break
2446                        }
2447                    }
2448                }
2449            }
2450            return s.lastIndex = 0, n
2451        }, this.moveCursorShortWordRight = function() {
2452            var e = this.lead.row,
2453                t = this.lead.column,
2454                n = this.doc.getLine(e),
2455                r = n.substring(t),
2456                i = this.session.getFoldAt(e, t, 1);
2457            if (i) return this.moveCursorTo(i.end.row, i.end.column);
2458            if (t == n.length) {
2459                var s = this.doc.getLength();
2460                do e++, r = this.doc.getLine(e); while (e < s && /^\s*$/.test(r));
2461                /^\s+/.test(r) || (r = ""), t = 0
2462            }
2463            var o = this.$shortWordEndIndex(r);
2464            this.moveCursorTo(e, t + o)
2465        }, this.moveCursorShortWordLeft = function() {
2466            var e = this.lead.row,
2467                t = this.lead.column,
2468                n;
2469            if (n = this.session.getFoldAt(e, t, -1)) return this.moveCursorTo(n.start.row, n.start.column);
2470            var r = this.session.getLine(e).substring(0, t);
2471            if (t === 0) {
2472                do e--, r = this.doc.getLine(e); while (e > 0 && /^\s*$/.test(r));
2473                t = r.length, /\s+$/.test(r) || (r = "")
2474            }
2475            var s = i.stringReverse(r),
2476                o = this.$shortWordEndIndex(s);
2477            return this.moveCursorTo(e, t - o)
2478        }, this.moveCursorWordRight = function() {
2479            this.session.$selectLongWords ? this.moveCursorLongWordRight() : this.moveCursorShortWordRight()
2480        }, this.moveCursorWordLeft = function() {
2481            this.session.$selectLongWords ? this.moveCursorLongWordLeft() : this.moveCursorShortWordLeft()
2482        }, this.moveCursorBy = function(e, t) {
2483            var n = this.session.documentToScreenPosition(this.lead.row, this.lead.column);
2484            t === 0 && (this.$desiredColumn ? n.column = this.$desiredColumn : this.$desiredColumn = n.column);
2485            var r = this.session.screenToDocumentPosition(n.row + e, n.column);
2486            e !== 0 && t === 0 && r.row === this.lead.row && r.column === this.lead.column && this.session.lineWidgets && this.session.lineWidgets[r.row] && r.row++, this.moveCursorTo(r.row, r.column + t, t === 0)
2487        }, this.moveCursorToPosition = function(e) {
2488            this.moveCursorTo(e.row, e.column)
2489        }, this.moveCursorTo = function(e, t, n) {
2490            var r = this.session.getFoldAt(e, t, 1);
2491            r && (e = r.start.row, t = r.start.column), this.$keepDesiredColumnOnChange = !0, this.lead.setPosition(e, t), this.$keepDesiredColumnOnChange = !1, n || (this.$desiredColumn = null)
2492        }, this.moveCursorToScreen = function(e, t, n) {
2493            var r = this.session.screenToDocumentPosition(e, t);
2494            this.moveCursorTo(r.row, r.column, n)
2495        }, this.detach = function() {
2496            this.lead.detach(), this.anchor.detach(), this.session = this.doc = null
2497        }, this.fromOrientedRange = function(e) {
2498            this.setSelectionRange(e, e.cursor == e.start), this.$desiredColumn = e.desiredColumn || this.$desiredColumn
2499        }, this.toOrientedRange = function(e) {
2500            var t = this.getRange();
2501            return e ? (e.start.column = t.start.column, e.start.row = t.start.row, e.end.column = t.end.column, e.end.row = t.end.row) : e = t, e.cursor = this.isBackwards() ? e.start : e.end, e.desiredColumn = this.$desiredColumn, e
2502        }, this.getRangeOfMovements = function(e) {
2503            var t = this.getCursor();
2504            try {
2505                e.call(null, this);
2506                var n = this.getCursor();
2507                return o.fromPoints(t, n)
2508            } catch (r) {
2509                return o.fromPoints(t, t)
2510            } finally {
2511                this.moveCursorToPosition(t)
2512            }
2513        }, this.toJSON = function() {
2514            if (this.rangeCount) var e = this.ranges.map(function(e) {
2515                var t = e.clone();
2516                return t.isBackwards = e.cursor == e.start, t
2517            });
2518            else {
2519                var e = this.getRange();
2520                e.isBackwards = this.isBackwards()
2521            }
2522            return e
2523        }, this.fromJSON = function(e) {
2524            if (e.start == undefined) {
2525                if (this.rangeList) {
2526                    this.toSingleRange(e[0]);
2527                    for (var t = e.length; t--;) {
2528                        var n = o.fromPoints(e[t].start, e[t].end);
2529                        e[t].isBackwards && (n.cursor = n.start), this.addRange(n, !0)
2530                    }
2531                    return
2532                }
2533                e = e[0]
2534            }
2535            this.rangeList && this.toSingleRange(e), this.setSelectionRange(e, e.isBackwards)
2536        }, this.isEqual = function(e) {
2537            if ((e.length || this.rangeCount) && e.length != this.rangeCount) return !1;
2538            if (!e.length || !this.ranges) return this.getRange().isEqual(e);
2539            for (var t = this.ranges.length; t--;)
2540                if (!this.ranges[t].isEqual(e[t])) return !1;
2541            return !0
2542        }
2543    }).call(u.prototype), t.Selection = u
2544}), define("ace/tokenizer", ["require", "exports", "module", "ace/config"], function(e, t, n) {
2545    "use strict";
2546    var r = e("./config"),
2547        i = 2e3,
2548        s = function(e) {
2549            this.states = e, this.regExps = {}, this.matchMappings = {};
2550            for (var t in this.states) {
2551                var n = this.states[t],
2552                    r = [],
2553                    i = 0,
2554                    s = this.matchMappings[t] = {
2555                        defaultToken: "text"
2556                    },
2557                    o = "g",
2558                    u = [];
2559                for (var a = 0; a < n.length; a++) {
2560                    var f = n[a];
2561                    f.defaultToken && (s.defaultToken = f.defaultToken), f.caseInsensitive && (o = "gi");
2562                    if (f.regex == null) continue;
2563                    f.regex instanceof RegExp && (f.regex = f.regex.toString().slice(1, -1));
2564                    var l = f.regex,
2565                        c = (new RegExp("(?:(" + l + ")|(.))")).exec("a").length - 2;
2566                    Array.isArray(f.token) ? f.token.length == 1 || c == 1 ? f.token = f.token[0] : c - 1 != f.token.length ? (this.reportError("number of classes and regexp groups doesn't match", {
2567                        rule: f,
2568                        groupCount: c - 1
2569                    }), f.token = f.token[0]) : (f.tokenArray = f.token, f.token = null, f.onMatch = this.$arrayTokens) : typeof f.token == "function" && !f.onMatch && (c > 1 ? f.onMatch = this.$applyToken : f.onMatch = f.token), c > 1 && (/\\\d/.test(f.regex) ? l = f.regex.replace(/\\([0-9]+)/g, function(e, t) {
2570                        return "\\" + (parseInt(t, 10) + i + 1)
2571                    }) : (c = 1, l = this.removeCapturingGroups(f.regex)), !f.splitRegex && typeof f.token != "string" && u.push(f)), s[i] = a, i += c, r.push(l), f.onMatch || (f.onMatch = null)
2572                }
2573                r.length || (s[0] = 0, r.push("$")), u.forEach(function(e) {
2574                    e.splitRegex = this.createSplitterRegexp(e.regex, o)
2575                }, this), this.regExps[t] = new RegExp("(" + r.join(")|(") + ")|($)", o)
2576            }
2577        };
2578    (function() {
2579        this.$setMaxTokenCount = function(e) {
2580            i = e | 0
2581        }, this.$applyToken = function(e) {
2582            var t = this.splitRegex.exec(e).slice(1),
2583                n = this.token.apply(this, t);
2584            if (typeof n == "string") return [{
2585                type: n,
2586                value: e
2587            }];
2588            var r = [];
2589            for (var i = 0, s = n.length; i < s; i++) t[i] && (r[r.length] = {
2590                type: n[i],
2591                value: t[i]
2592            });
2593            return r
2594        }, this.$arrayTokens = function(e) {
2595            if (!e) return [];
2596            var t = this.splitRegex.exec(e);
2597            if (!t) return "text";
2598            var n = [],
2599                r = this.tokenArray;
2600            for (var i = 0, s = r.length; i < s; i++) t[i + 1] && (n[n.length] = {
2601                type: r[i],
2602                value: t[i + 1]
2603            });
2604            return n
2605        }, this.removeCapturingGroups = function(e) {
2606            var t = e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g, function(e, t) {
2607                return t ? "(?:" : e
2608            });
2609            return t
2610        }, this.createSplitterRegexp = function(e, t) {
2611            if (e.indexOf("(?=") != -1) {
2612                var n = 0,
2613                    r = !1,
2614                    i = {};
2615                e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g, function(e, t, s, o, u, a) {
2616                    return r ? r = u != "]" : u ? r = !0 : o ? (n == i.stack && (i.end = a + 1, i.stack = -1), n--) : s && (n++, s.length != 1 && (i.stack = n, i.start = a)), e
2617                }), i.end != null && /^\)*$/.test(e.substr(i.end)) && (e = e.substring(0, i.start) + e.substr(i.end))
2618            }
2619            return new RegExp(e, (t || "").replace("g", ""))
2620        }, this.getLineTokens = function(e, t) {
2621            if (t && typeof t != "string") {
2622                var n = t.slice(0);
2623                t = n[0], t === "#tmp" && (n.shift(), t = n.shift())
2624            } else var n = [];
2625            var r = t || "start",
2626                s = this.states[r];
2627            s || (r = "start", s = this.states[r]);
2628            var o = this.matchMappings[r],
2629                u = this.regExps[r];
2630            u.lastIndex = 0;
2631            var a, f = [],
2632                l = 0,
2633                c = 0,
2634                h = {
2635                    type: null,
2636                    value: ""
2637                };
2638            while (a = u.exec(e)) {
2639                var p = o.defaultToken,
2640                    d = null,
2641                    v = a[0],
2642                    m = u.lastIndex;
2643                if (m - v.length > l) {
2644                    var g = e.substring(l, m - v.length);
2645                    h.type == p ? h.value += g : (h.type && f.push(h), h = {
2646                        type: p,
2647                        value: g
2648                    })
2649                }
2650                for (var y = 0; y < a.length - 2; y++) {
2651                    if (a[y + 1] === undefined) continue;
2652                    d = s[o[y]], d.onMatch ? p = d.onMatch(v, r, n) : p = d.token, d.next && (typeof d.next == "string" ? r = d.next : r = d.next(r, n), s = this.states[r], s || (this.reportError("state doesn't exist", r), r = "start", s = this.states[r]), o = this.matchMappings[r], l = m, u = this.regExps[r], u.lastIndex = m);
2653                    break
2654                }
2655                if (v)
2656                    if (typeof p == "string") !!d && d.merge === !1 || h.type !== p ? (h.type && f.push(h), h = {
2657                        type: p,
2658                        value: v
2659                    }) : h.value += v;
2660                    else if (p) {
2661                    h.type && f.push(h), h = {
2662                        type: null,
2663                        value: ""
2664                    };
2665                    for (var y = 0; y < p.length; y++) f.push(p[y])
2666                }
2667                if (l == e.length) break;
2668                l = m;
2669                if (c++ > i) {
2670                    c > 2 * e.length && this.reportError("infinite loop with in ace tokenizer", {
2671                        startState: t,
2672                        line: e
2673                    });
2674                    while (l < e.length) h.type && f.push(h), h = {
2675                        value: e.substring(l, l += 2e3),
2676                        type: "overflow"
2677                    };
2678                    r = "start", n = [];
2679                    break
2680                }
2681            }
2682            return h.type && f.push(h), n.length > 1 && n[0] !== r && n.unshift("#tmp", r), {
2683                tokens: f,
2684                state: n.length ? n : r
2685            }
2686        }, this.reportError = r.reportError
2687    }).call(s.prototype), t.Tokenizer = s
2688}), define("ace/mode/text_highlight_rules", ["require", "exports", "module", "ace/lib/lang"], function(e, t, n) {
2689    "use strict";
2690    var r = e("../lib/lang"),
2691        i = function() {
2692            this.$rules = {
2693                start: [{
2694                    token: "empty_line",
2695                    regex: "^$"
2696                }, {
2697                    defaultToken: "text"
2698                }]
2699            }
2700        };
2701    (function() {
2702        this.addRules = function(e, t) {
2703            if (!t) {
2704                for (var n in e) this.$rules[n] = e[n];
2705                return
2706            }
2707            for (var n in e) {
2708                var r = e[n];
2709                for (var i = 0; i < r.length; i++) {
2710                    var s = r[i];
2711                    if (s.next || s.onMatch) typeof s.next != "string" ? s.nextState && s.nextState.indexOf(t) !== 0 && (s.nextState = t + s.nextState) : s.next.indexOf(t) !== 0 && (s.next = t + s.next)
2712                }
2713                this.$rules[t + n] = r
2714            }
2715        }, this.getRules = function() {
2716            return this.$rules
2717        }, this.embedRules = function(e, t, n, i, s) {
2718            var o = typeof e == "function" ? (new e).getRules() : e;
2719            if (i)
2720                for (var u = 0; u < i.length; u++) i[u] = t + i[u];
2721            else {
2722                i = [];
2723                for (var a in o) i.push(t + a)
2724            }
2725            this.addRules(o, t);
2726            if (n) {
2727                var f = Array.prototype[s ? "push" : "unshift"];
2728                for (var u = 0; u < i.length; u++) f.apply(this.$rules[i[u]], r.deepCopy(n))
2729            }
2730            this.$embeds || (this.$embeds = []), this.$embeds.push(t)
2731        }, this.getEmbeds = function() {
2732            return this.$embeds
2733        };
2734        var e = function(e, t) {
2735                return (e != "start" || t.length) && t.unshift(this.nextState, e), this.nextState
2736            },
2737            t = function(e, t) {
2738                return t.shift(), t.shift() || "start"
2739            };
2740        this.normalizeRules = function() {
2741            function i(s) {
2742                var o = r[s];
2743                o.processed = !0;
2744                for (var u = 0; u < o.length; u++) {
2745                    var a = o[u];
2746                    !a.regex && a.start && (a.regex = a.start, a.next || (a.next = []), a.next.push({
2747                        defaultToken: a.token
2748                    }, {
2749                        token: a.token + ".end",
2750                        regex: a.end || a.start,
2751                        next: "pop"
2752                    }), a.token = a.token + ".start", a.push = !0);
2753                    var f = a.next || a.push;
2754                    if (f && Array.isArray(f)) {
2755                        var l = a.stateName;
2756                        l || (l = a.token, typeof l != "string" && (l = l[0] || ""), r[l] && (l += n++)), r[l] = f, a.next = l, i(l)
2757                    } else f == "pop" && (a.next = t);
2758                    a.push && (a.nextState = a.next || a.push, a.next = e, delete a.push);
2759                    if (a.rules)
2760                        for (var c in a.rules) r[c] ? r[c].push && r[c].push.apply(r[c], a.rules[c]) : r[c] = a.rules[c];
2761                    if (a.include || typeof a == "string") var h = a.include || a,
2762                        p = r[h];
2763                    else Array.isArray(a) && (p = a);
2764                    if (p) {
2765                        var d = [u, 1].concat(p);
2766                        a.noEscape && (d = d.filter(function(e) {
2767                            return !e.next
2768                        })), o.splice.apply(o, d), u--, p = null
2769                    }
2770                    a.keywordMap && (a.token = this.createKeywordMapper(a.keywordMap, a.defaultToken || "text", a.caseInsensitive), delete a.defaultToken)
2771                }
2772            }
2773            var n = 0,
2774                r = this.$rules;
2775            Object.keys(r).forEach(i, this)
2776        }, this.createKeywordMapper = function(e, t, n, r) {
2777            var i = Object.create(null);
2778            return Object.keys(e).forEach(function(t) {
2779                var s = e[t];
2780                n && (s = s.toLowerCase());
2781                var o = s.split(r || "|");
2782                for (var u = o.length; u--;) i[o[u]] = t
2783            }), Object.getPrototypeOf(i) && (i.__proto__ = null), this.$keywordList = Object.keys(i), e = null, n ? function(e) {
2784                return i[e.toLowerCase()] || t
2785            } : function(e) {
2786                return i[e] || t
2787            }
2788        }, this.getKeywords = function() {
2789            return this.$keywords
2790        }
2791    }).call(i.prototype), t.TextHighlightRules = i
2792}), define("ace/mode/behaviour", ["require", "exports", "module"], function(e, t, n) {
2793    "use strict";
2794    var r = function() {
2795        this.$behaviours = {}
2796    };
2797    (function() {
2798        this.add = function(e, t, n) {
2799            switch (undefined) {
2800                case this.$behaviours:
2801                    this.$behaviours = {};
2802                case this.$behaviours[e]:
2803                    this.$behaviours[e] = {}
2804            }
2805            this.$behaviours[e][t] = n
2806        }, this.addBehaviours = function(e) {
2807            for (var t in e)
2808                for (var n in e[t]) this.add(t, n, e[t][n])
2809        }, this.remove = function(e) {
2810            this.$behaviours && this.$behaviours[e] && delete this.$behaviours[e]
2811        }, this.inherit = function(e, t) {
2812            if (typeof e == "function") var n = (new e).getBehaviours(t);
2813            else var n = e.getBehaviours(t);
2814            this.addBehaviours(n)
2815        }, this.getBehaviours = function(e) {
2816            if (!e) return this.$behaviours;
2817            var t = {};
2818            for (var n = 0; n < e.length; n++) this.$behaviours[e[n]] && (t[e[n]] = this.$behaviours[e[n]]);
2819            return t
2820        }
2821    }).call(r.prototype), t.Behaviour = r
2822}), define("ace/unicode", ["require", "exports", "module"], function(e, t, n) {
2823    "use strict";
2824
2825    function r(e) {
2826        var n = /\w{4}/g;
2827        for (var r in e) t.packages[r] = e[r].replace(n, "\\u$&")
2828    }
2829    t.packages = {}, r({
2830        L: "0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0B
2830B90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",
2831        Ll: "0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E
2831771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",
2832        Lu: "0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",
2833        Lt: "01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",
2834        Lm: "02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",
2835        Lo: "01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0B
2835B90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",
2836        M: "0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",
2837        Mn: "0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",
2838        Mc: "0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",
2839        Me: "0488048906DE20DD-20E020E2-20E4A670-A672",
2840        N: "0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F33
28401040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",
2841        Nd: "0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",
2842        Nl: "16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",
2843        No: "00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",
2844        P: "0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",
2845        Pd: "002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",
2846        Ps: "0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",
2847        Pe: "0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",
2848        Pi: "00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",
2849        Pf: "00BB2019201D203A2E032E052E0A2E0D2E1D2E21",
2850        Pc: "005F203F20402054FE33FE34FE4D-FE4FFF3F",
2851        Po: "0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",
2852        S: "0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",
2853        Sm: "002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",
2854        Sc: "002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",
2855        Sk: "005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",
2856        So: "00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0
2856B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",
2857        Z: "002000A01680180E2000-200A20282029202F205F3000",
2858        Zs: "002000A01680180E2000-200A202F205F3000",
2859        Zl: "2028",
2860        Zp: "2029",
2861        C: "0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",
2862        Cc: "0000-001F007F-009F",
2863        Cf: "00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",
2864        Co: "E000-F8FF",
2865        Cs: "D800-DFFF",
2866        Cn: "03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE
286650BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"
2867    })
2868}), define("ace/token_iterator", ["require", "exports", "module"], function(e, t, n) {
2869    "use strict";
2870    var r = function(e, t, n) {
2871        this.$session = e, this.$row = t, this.$rowTokens = e.getTokens(t);
2872        var r = e.getTokenAt(t, n);
2873        this.$tokenIndex = r ? r.index : -1
2874    };
2875    (function() {
2876        this.stepBackward = function() {
2877            this.$tokenIndex -= 1;
2878            while (this.$tokenIndex < 0) {
2879                this.$row -= 1;
2880                if (this.$row < 0) return this.$row = 0, null;
2881                this.$rowTokens = this.$session.getTokens(this.$row), this.$tokenIndex = this.$rowTokens.length - 1
2882            }
2883            return this.$rowTokens[this.$tokenIndex]
2884        }, this.stepForward = function() {
2885            this.$tokenIndex += 1;
2886            var e;
2887            while (this.$tokenIndex >= this.$rowTokens.length) {
2888                this.$row += 1, e || (e = this.$session.getLength());
2889                if (this.$row >= e) return this.$row = e - 1, null;
2890                this.$rowTokens = this.$session.getTokens(this.$row), this.$tokenIndex = 0
2891            }
2892            return this.$rowTokens[this.$tokenIndex]
2893        }, this.getCurrentToken = function() {
2894            return this.$rowTokens[this.$tokenIndex]
2895        }, this.getCurrentTokenRow = function() {
2896            return this.$row
2897        }, this.getCurrentTokenColumn = function() {
2898            var e = this.$rowTokens,
2899                t = this.$tokenIndex,
2900                n = e[t].start;
2901            if (n !== undefined) return n;
2902            n = 0;
2903            while (t > 0) t -= 1, n += e[t].value.length;
2904            return n
2905        }, this.getCurrentTokenPosition = function() {
2906            return {
2907                row: this.$row,
2908                column: this.getCurrentTokenColumn()
2909            }
2910        }
2911    }).call(r.prototype), t.TokenIterator = r
2912}), define("ace/mode/text", ["require", "exports", "module", "ace/tokenizer", "ace/mode/text_highlight_rules", "ace/mode/behaviour", "ace/unicode", "ace/lib/lang", "ace/token_iterator", "ace/range"], function(e, t, n) {
2913    "use strict";
2914    var r = e("../tokenizer").Tokenizer,
2915        i = e("./text_highlight_rules").TextHighlightRules,
2916        s = e("./behaviour").Behaviour,
2917        o = e("../unicode"),
2918        u = e("../lib/lang"),
2919        a = e("../token_iterator").TokenIterator,
2920        f = e("../range").Range,
2921        l = function() {
2922            this.HighlightRules = i, this.$behaviour = new s
2923        };
2924    (function() {
2925        this.tokenRe = new RegExp("^[" + o.packages.L + o.packages.Mn + o.packages.Mc + o.packages.Nd + o.packages.Pc + "\\$_]+", "g"), this.nonTokenRe = new RegExp("^(?:[^" + o.packages.L + o.packages.Mn + o.packages.Mc + o.packages.Nd + o.packages.Pc + "\\$_]|\\s])+", "g"), this.getTokenizer = function() {
2926            return this.$tokenizer || (this.$highlightRules = this.$highlightRules || new this.HighlightRules, this.$tokenizer = new r(this.$highlightRules.getRules())), this.$tokenizer
2927        }, this.lineCommentStart = "", this.blockComment = "", this.toggleCommentLines = function(e, t, n, r) {
2928            function w(e) {
2929                for (var t = n; t <= r; t++) e(i.getLine(t), t)
2930            }
2931            var i = t.doc,
2932                s = !0,
2933                o = !0,
2934                a = Infinity,
2935                f = t.getTabSize(),
2936                l = !1;
2937            if (!this.lineCommentStart) {
2938                if (!this.blockComment) return !1;
2939                var c = this.blockComment.start,
2940                    h = this.blockComment.end,
2941                    p = new RegExp("^(\\s*)(?:" + u.escapeRegExp(c) + ")"),
2942                    d = new RegExp("(?:" + u.escapeRegExp(h) + ")\\s*$"),
2943                    v = function(e, t) {
2944                        if (g(e, t)) return;
2945                        if (!s || /\S/.test(e)) i.insertInLine({
2946                            row: t,
2947                            column: e.length
2948                        }, h), i.insertInLine({
2949                            row: t,
2950                            column: a
2951                        }, c)
2952                    },
2953                    m = function(e, t) {
2954                        var n;
2955                        (n = e.match(d)) && i.removeInLine(t, e.length - n[0].length, e.length), (n = e.match(p)) && i.removeInLine(t, n[1].length, n[0].length)
2956                    },
2957                    g = function(e, n) {
2958                        if (p.test(e)) return !0;
2959                        var r = t.getTokens(n);
2960                        for (var i = 0; i < r.length; i++)
2961                            if (r[i].type === "comment") return !0
2962                    }
2963            } else {
2964                if (Array.isArray(this.lineCommentStart)) var p = this.lineCommentStart.map(u.escapeRegExp).join("|"),
2965                    c = this.lineCommentStart[0];
2966                else var p = u.escapeRegExp(this.lineCommentStart),
2967                    c = this.lineCommentStart;
2968                p = new RegExp("^(\\s*)(?:" + p + ") ?"), l = t.getUseSoftTabs();
2969                var m = function(e, t) {
2970                        var n = e.match(p);
2971                        if (!n) return;
2972                        var r = n[1].length,
2973                            s = n[0].length;
2974                        !b(e, r, s) && n[0][s - 1] == " " && s--, i.removeInLine(t, r, s)
2975                    },
2976                    y = c + " ",
2977                    v = function(e, t) {
2978                        if (!s || /\S/.test(e)) b(e, a, a) ? i.insertInLine({
2979                            row: t,
2980                            column: a
2981                        }, y) : i.insertInLine({
2982                            row: t,
2983                            column: a
2984                        }, c)
2985                    },
2986                    g = function(e, t) {
2987                        return p.test(e)
2988                    },
2989                    b = function(e, t, n) {
2990                        var r = 0;
2991                        while (t-- && e.charAt(t) == " ") r++;
2992                        if (r % f != 0) return !1;
2993                        var r = 0;
2994                        while (e.charAt(n++) == " ") r++;
2995                        return f > 2 ? r % f != f - 1 : r % f == 0
2996                    }
2997            }
2998            var E = Infinity;
2999            w(function(e, t) {
3000                var n = e.search(/\S/);
3001                n !== -1 ? (n < a && (a = n), o && !g(e, t) && (o = !1)) : E > e.length && (E = e.length)
3002            }), a == Infinity && (a = E, s = !1, o = !1), l && a % f != 0 && (a = Math.floor(a / f) * f), w(o ? m : v)
3003        }, this.toggleBlockComment = function(e, t, n, r) {
3004            var i = this.blockComment;
3005            if (!i) return;
3006            !i.start && i[0] && (i = i[0]);
3007            var s = new a(t, r.row, r.column),
3008                o = s.getCurrentToken(),
3009                u = t.selection,
3010                l = t.selection.toOrientedRange(),
3011                c, h;
3012            if (o && /comment/.test(o.type)) {
3013                var p, d;
3014                while (o && /comment/.test(o.type)) {
3015                    var v = o.value.indexOf(i.start);
3016                    if (v != -1) {
3017                        var m = s.getCurrentTokenRow(),
3018                            g = s.getCurrentTokenColumn() + v;
3019                        p = new f(m, g, m, g + i.start.length);
3020                        break
3021                    }
3022                    o = s.stepBackward()
3023                }
3024                var s = new a(t, r.row, r.column),
3025                    o = s.getCurrentToken();
3026                while (o && /comment/.test(o.type)) {
3027                    var v = o.value.indexOf(i.end);
3028                    if (v != -1) {
3029                        var m = s.getCurrentTokenRow(),
3030                            g = s.getCurrentTokenColumn() + v;
3031                        d = new f(m, g, m, g + i.end.length);
3032                        break
3033                    }
3034                    o = s.stepForward()
3035                }
3036                d && t.remove(d), p && (t.remove(p), c = p.start.row, h = -i.start.length)
3037            } else h = i.start.length, c = n.start.row, t.insert(n.end, i.end), t.insert(n.start, i.start);
3038            l.start.row == c && (l.start.column += h), l.end.row 
3038== c && (l.end.column += h), t.selection.fromOrientedRange(l)
3039        }, this.getNextLineIndent = function(e, t, n) {
3040            return this.$getIndent(t)
3041        }, this.checkOutdent = function(e, t, n) {
3042            return !1
3043        }, this.autoOutdent = function(e, t, n) {}, this.$getIndent = function(e) {
3044            return e.match(/^\s*/)[0]
3045        }, this.createWorker = function(e) {
3046            return null
3047        }, this.createModeDelegates = function(e) {
3048            this.$embeds = [], this.$modes = {};
3049            for (var t in e) e[t] && (this.$embeds.push(t), this.$modes[t] = new e[t]);
3050            var n = ["toggleBlockComment", "toggleCommentLines", "getNextLineIndent", "checkOutdent", "autoOutdent", "transformAction", "getCompletions"];
3051            for (var t = 0; t < n.length; t++)(function(e) {
3052                var r = n[t],
3053                    i = e[r];
3054                e[n[t]] = function() {
3055                    return this.$delegator(r, arguments, i)
3056                }
3057            })(this)
3058        }, this.$delegator = function(e, t, n) {
3059            var r = t[0];
3060            typeof r != "string" && (r = r[0]);
3061            for (var i = 0; i < this.$embeds.length; i++) {
3062                if (!this.$modes[this.$embeds[i]]) continue;
3063                var s = r.split(this.$embeds[i]);
3064                if (!s[0] && s[1]) {
3065                    t[0] = s[1];
3066                    var o = this.$modes[this.$embeds[i]];
3067                    return o[e].apply(o, t)
3068                }
3069            }
3070            var u = n.apply(this, t);
3071            return n ? u : undefined
3072        }, this.transformAction = function(e, t, n, r, i) {
3073            if (this.$behaviour) {
3074                var s = this.$behaviour.getBehaviours();
3075                for (var o in s)
3076                    if (s[o][t]) {
3077                        var u = s[o][t].apply(this, arguments);
3078                        if (u) return u
3079                    }
3080            }
3081        }, this.getKeywords = function(e) {
3082            if (!this.completionKeywords) {
3083                var t = this.$tokenizer.rules,
3084                    n = [];
3085                for (var r in t) {
3086                    var i = t[r];
3087                    for (var s = 0, o = i.length; s < o; s++)
3088                        if (typeof i[s].token == "string") /keyword|support|storage/.test(i[s].token) && n.push(i[s].regex);
3089                        else if (typeof i[s].token == "object")
3090                        for (var u = 0, a = i[s].token.length; u < a; u++)
3091                            if (/keyword|support|storage/.test(i[s].token[u])) {
3092                                var r = i[s].regex.match(/\(.+?\)/g)[u];
3093                                n.push(r.substr(1, r.length - 2))
3094                            }
3095                }
3096                this.completionKeywords = n
3097            }
3098            return e ? n.concat(this.$keywordList || []) : this.$keywordList
3099        }, this.$createKeywordList = function() {
3100            return this.$highlightRules || this.getTokenizer(), this.$keywordList = this.$highlightRules.$keywordList || []
3101        }, this.getCompletions = function(e, t, n, r) {
3102            var i = this.$keywordList || this.$createKeywordList();
3103            return i.map(function(e) {
3104                return {
3105                    name: e,
3106                    value: e,
3107                    score: 0,
3108                    meta: "keyword"
3109                }
3110            })
3111        }, this.$id = "ace/mode/text"
3112    }).call(l.prototype), t.Mode = l
3113}), define("ace/apply_delta", ["require", "exports", "module"], function(e, t, n) {
3114    "use strict";
3115
3116    function r(e, t) {
3117        throw console.log("Invalid Delta:", e), "Invalid Delta: " + t
3118    }
3119
3120    function i(e, t) {
3121        return t.row >= 0 && t.row < e.length && t.column >= 0 && t.column <= e[t.row].length
3122    }
3123
3124    function s(e, t) {
3125        t.action != "insert" && t.action != "remove" && r(t, "delta.action must be 'insert' or 'remove'"), t.lines instanceof Array || r(t, "delta.lines must be an Array"), (!t.start || !t.end) && r(t, "delta.start/end must be an present");
3126        var n = t.start;
3127        i(e, t.start) || r(t, "delta.start must be contained in document");
3128        var s = t.end;
3129        t.action == "remove" && !i(e, s) && r(t, "delta.end must contained in document for 'remove' actions");
3130        var o = s.row - n.row,
3131            u = s.column - (o == 0 ? n.column : 0);
3132        (o != t.lines.length - 1 || t.lines[o].length != u) && r(t, "delta.range must match delta lines")
3133    }
3134    t.applyDelta = function(e, t, n) {
3135        var r = t.start.row,
3136            i = t.start.column,
3137            s = e[r] || "";
3138        switch (t.action) {
3139            case "insert":
3140                var o = t.lines;
3141                if (o.length === 1) e[r] = s.substring(0, i) + t.lines[0] + s.substring(i);
3142                else {
vendor: 16,384 bytes, lines 3143-3508
3143                    var u = [r, 1].concat(t.lines);
3144                    e.splice.apply(e, u), e[r] = s.substring(0, i) + e[r], e[r + t.lines.length - 1] += s.substring(i)
3145                }
3146                break;
3147            case "remove":
3148                var a = t.end.column,
3149                    f = t.end.row;
3150                r === f ? e[r] = s.substring(0, i) + s.substring(a) : e.splice(r, f - r + 1, s.substring(0, i) + e[f].substring(a))
3151        }
3152    }
3153}), define("ace/anchor", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(e, t, n) {
3154    "use strict";
3155    var r = e("./lib/oop"),
3156        i = e("./lib/event_emitter").EventEmitter,
3157        s = t.Anchor = function(e, t, n) {
3158            this.$onChange = this.onChange.bind(this), this.attach(e), typeof n == "undefined" ? this.setPosition(t.row, t.column) : this.setPosition(t, n)
3159        };
3160    (function() {
3161        function e(e, t, n) {
3162            var r = n ? e.column <= t.column : e.column < t.column;
3163            return e.row < t.row || e.row == t.row && r
3164        }
3165
3166        function t(t, n, r) {
3167            var i = t.action == "insert",
3168                s = (i ? 1 : -1) * (t.end.row - t.start.row),
3169                o = (i ? 1 : -1) * (t.end.column - t.start.column),
3170                u = t.start,
3171                a = i ? u : t.end;
3172            return e(n, u, r) ? {
3173                row: n.row,
3174                column: n.column
3175            } : e(a, n, !r) ? {
3176                row: n.row + s,
3177                column: n.column + (n.row == a.row ? o : 0)
3178            } : {
3179                row: u.row,
3180                column: u.column
3181            }
3182        }
3183        r.implement(this, i), this.getPosition = function() {
3184            return this.$clipPositionToDocument(this.row, this.column)
3185        }, this.getDocument = function() {
3186            return this.document
3187        }, this.$insertRight = !1, this.onChange = function(e) {
3188            if (e.start.row == e.end.row && e.start.row != this.row) return;
3189            if (e.start.row > this.row) return;
3190            var n = t(e, {
3191                row: this.row,
3192                column: this.column
3193            }, this.$insertRight);
3194            this.setPosition(n.row, n.column, !0)
3195        }, this.setPosition = function(e, t, n) {
3196            var r;
3197            n ? r = {
3198                row: e,
3199                column: t
3200            } : r = this.$clipPositionToDocument(e, t);
3201            if (this.row == r.row && this.column == r.column) return;
3202            var i = {
3203                row: this.row,
3204                column: this.column
3205            };
3206            this.row = r.row, this.column = r.column, this._signal("change", {
3207                old: i,
3208                value: r
3209            })
3210        }, this.detach = function() {
3211            this.document.removeEventListener("change", this.$onChange)
3212        }, this.attach = function(e) {
3213            this.document = e || this.document, this.document.on("change", this.$onChange)
3214        }, this.$clipPositionToDocument = function(e, t) {
3215            var n = {};
3216            return e >= this.document.getLength() ? (n.row = Math.max(0, this.document.getLength() - 1), n.column = this.document.getLine(n.row).length) : e < 0 ? (n.row = 0, n.column = 0) : (n.row = e, n.column = Math.min(this.document.getLine(n.row).length, Math.max(0, t))), t < 0 && (n.column = 0), n
3217        }
3218    }).call(s.prototype)
3219}), define("ace/document", ["require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor"], function(e, t, n) {
3220    "use strict";
3221    var r = e("./lib/oop"),
3222        i = e("./apply_delta").applyDelta,
3223        s = e("./lib/event_emitter").EventEmitter,
3224        o = e("./range").Range,
3225        u = e("./anchor").Anchor,
3226        a = function(e) {
3227            this.$lines = [""], e.length === 0 ? this.$lines = [""] : Array.isArray(e) ? this.insertMergedLines({
3228                row: 0,
3229                column: 0
3230            }, e) : this.insert({
3231                row: 0,
3232                column: 0
3233            }, e)
3234        };
3235    (function() {
3236        r.implement(this, s), this.setValue = function(e) {
3237            var t = this.getLength() - 1;
3238            this.remove(new o(0, 0, t, this.getLine(t).length)), this.insert({
3239                row: 0,
3240                column: 0
3241            }, e)
3242        }, this.getValue = function() {
3243            return this.getAllLines().join(this.getNewLineCharacter())
3244        }, this.createAnchor = function(e, t) {
3245            return new u(this, e, t)
3246        }, "aaa".split(/a/).length === 0 ? this.$split = function(e) {
3247            return e.replace(/\r\n|\r/g, "\n").split("\n")
3248        } : this.$split = function(e) {
3249            return e.split(/\r\n|\r|\n/)
3250        }, this.$detectNewLine = function(e) {
3251            var t = e.match(/^.*?(\r\n|\r|\n)/m);
3252            this.$autoNewLine = t ? t[1] : "\n", this._signal("changeNewLineMode")
3253        }, this.getNewLineCharacter = function() {
3254            switch (this.$newLineMode) {
3255                case "windows":
3256                    return "\r\n";
3257                case "unix":
3258                    return "\n";
3259                default:
3260                    return this.$autoNewLine || "\n"
3261            }
3262        }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(e) {
3263            if (this.$newLineMode === e) return;
3264            this.$newLineMode = e, this._signal("changeNewLineMode")
3265        }, this.getNewLineMode = function() {
3266            return this.$newLineMode
3267        }, this.isNewLine = function(e) {
3268            return e == "\r\n" || e == "\r" || e == "\n"
3269        }, this.getLine = function(e) {
3270            return this.$lines[e] || ""
3271        }, this.getLines = function(e, t) {
3272            return this.$lines.slice(e, t + 1)
3273        }, this.getAllLines = function() {
3274            return this.getLines(0, this.getLength())
3275        }, this.getLength = function() {
3276            return this.$lines.length
3277        }, this.getTextRange = function(e) {
3278            return this.getLinesForRange(e).join(this.getNewLineCharacter())
3279        }, this.getLinesForRange = function(e) {
3280            var t;
3281            if (e.start.row === e.end.row) t = [this.getLine(e.start.row).substring(e.start.column, e.end.column)];
3282            else {
3283                t = this.getLines(e.start.row, e.end.row), t[0] = (t[0] || "").substring(e.start.column);
3284                var n = t.length - 1;
3285                e.end.row - e.start.row == n && (t[n] = t[n].substring(0, e.end.column))
3286            }
3287            return t
3288        }, this.insertLines = function(e, t) {
3289            return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(e, t)
3290        }, this.removeLines = function(e, t) {
3291            return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(e, t)
3292        }, this.insertNewLine = function(e) {
3293            return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."), this.insertMergedLines(e, ["", ""])
3294        }, this.insert = function(e, t) {
3295            return this.getLength() <= 1 && this.$detectNewLine(t), this.insertMergedLines(e, this.$split(t))
3296        }, this.insertInLine = function(e, t) {
3297            var n = this.clippedPos(e.row, e.column),
3298                r = this.pos(e.row, e.column + t.length);
3299            return this.applyDelta({
3300                start: n,
3301                end: r,
3302                action: "insert",
3303                lines: [t]
3304            }, !0), this.clonePos(r)
3305        }, this.clippedPos = function(e, t) {
3306            var n = this.getLength();
3307            e === undefined ? e = n : e < 0 ? e = 0 : e >= n && (e = n - 1, t = undefined);
3308            var r = this.getLine(e);
3309            return t == undefined && (t = r.length), t = Math.min(Math.max(t, 0), r.length), {
3310                row: e,
3311                column: t
3312            }
3313        }, this.clonePos = function(e) {
3314            return {
3315                row: e.row,
3316                column: e.column
3317            }
3318        }, this.pos = function(e, t) {
3319            return {
3320                row: e,
3321                column: t
3322            }
3323        }, this.$clipPosition = function(e) {
3324            var t = this.getLength();
3325            return e.row >= t ? (e.row = Math.max(0, t - 1), e.column = this.getLine(t - 1).length) : (e.row = Math.max(0, e.row), e.column = Math.min(Math.max(e.column, 0), this.getLine(e.row).length)), e
3326        }, this.insertFullLines = function(e, t) {
3327            e = Math.min(Math.max(e, 0), this.getLength());
3328            var n = 0;
3329            e < this.getLength() ? (t = t.concat([""]), n = 0) : (t = [""].concat(t), e--, n = this.$lines[e].length), this.insertMergedLines({
3330                row: e,
3331                column: n
3332            }, t)
3333        }, this.insertMergedLines = function(e, t) {
3334            var n = this.clippedPos(e.row, e.column),
3335                r = {
3336                    row: n.row + t.length - 1,
3337                    column: (t.length == 1 ? n.column : 0) + t[t.length - 1].length
3338                };
3339            return this.applyDelta({
3340                start: n,
3341                end: r,
3342                action: "insert",
3343                lines: t
3344            }), this.clonePos(r)
3345        }, this.remove = function(e) {
3346            var t = this.clippedPos(e.start.row, e.start.column),
3347                n = this.clippedPos(e.end.row, e.end.column);
3348            return this.applyDelta({
3349                start: t,
3350                end: n,
3351                action: "remove",
3352                lines: this.getLinesForRange({
3353                    start: t,
3354                    end: n
3355                })
3356            }), this.clonePos(t)
3357        }, this.removeInLine = function(e, t, n) {
3358            var r = this.clippedPos(e, t),
3359                i = this.clippedPos(e, n);
3360            return this.applyDelta({
3361                start: r,
3362                end: i,
3363                action: "remove",
3364                lines: this.getLinesForRange({
3365                    start: r,
3366                    end: i
3367                })
3368            }, !0), this.clonePos(r)
3369        }, this.removeFullLines = function(e, t) {
3370            e = Math.min(Math.max(0, e), this.getLength() - 1), t = Math.min(Math.max(0, t), this.getLength() - 1);
3371            var n = t == this.getLength() - 1 && e > 0,
3372                r = t < this.getLength() - 1,
3373                i = n ? e - 1 : e,
3374                s = n ? this.getLine(i).length : 0,
3375                u = r ? t + 1 : t,
3376                a = r ? 0 : this.getLine(u).length,
3377                f = new o(i, s, u, a),
3378                l = this.$lines.slice(e, t + 1);
3379            return this.applyDelta({
3380                start: f.start,
3381                end: f.end,
3382                action: "remove",
3383                lines: this.getLinesForRange(f)
3384            }), l
3385        }, this.removeNewLine = function(e) {
3386            e < this.getLength() - 1 && e >= 0 && this.applyDelta({
3387                start: this.pos(e, this.getLine(e).length),
3388                end: this.pos(e + 1, 0),
3389                action: "remove",
3390                lines: ["", ""]
3391            })
3392        }, this.replace = function(e, t) {
3393            !e instanceof o && (e = o.fromPoints(e.start, e.end));
3394            if (t.length === 0 && e.isEmpty()) return e.start;
3395            if (t == this.getTextRange(e)) return e.end;
3396            this.remove(e);
3397            var n;
3398            return t ? n = this.insert(e.start, t) : n = e.start, n
3399        }, this.applyDeltas = function(e) {
3400            for (var t = 0; t < e.length; t++) this.applyDelta(e[t])
3401        }, this.revertDeltas = function(e) {
3402            for (var t = e.length - 1; t >= 0; t--) this.revertDelta(e[t])
3403        }, this.applyDelta = function(e, t) {
3404            var n = e.action == "insert";
3405            if (n ? e.lines.length <= 1 && !e.lines[0] : !o.comparePoints(e.start, e.end)) return;
3406            n && e.lines.length > 2e4 && this.$splitAndapplyLargeDelta(e, 2e4), i(this.$lines, e, t), this._signal("change", e)
3407        }, this.$splitAndapplyLargeDelta = function(e, t) {
3408            var n = e.lines,
3409                r = n.length,
3410                i = e.start.row,
3411                s = e.start.column,
3412                o = 0,
3413                u = 0;
3414            do {
3415                o = u, u += t - 1;
3416                var a = n.slice(o, u);
3417                if (u > r) {
3418                    e.lines = a, e.start.row = i + o, e.start.column = s;
3419                    break
3420                }
3421                a.push(""), this.applyDelta({
3422                    start: this.pos(i + o, s),
3423                    end: this.pos(i + u, s = 0),
3424                    action: e.action,
3425                    lines: a
3426                }, !0)
3427            } while (!0)
3428        }, this.revertDelta = function(e) {
3429            this.applyDelta({
3430                start: this.clonePos(e.start),
3431                end: this.clonePos(e.end),
3432                action: e.action == "insert" ? "remove" : "insert",
3433                lines: e.lines.slice()
3434            })
3435        }, this.indexToPosition = function(e, t) {
3436            var n = this.$lines || this.getAllLines(),
3437                r = this.getNewLineCharacter().length;
3438            for (var i = t || 0, s = n.length; i < s; i++) {
3439                e -= n[i].length + r;
3440                if (e < 0) return {
3441                    row: i,
3442                    column: e + n[i].length + r
3443                }
3444            }
3445            return {
3446                row: s - 1,
3447                column: n[s - 1].length
3448            }
3449        }, this.positionToIndex = function(e, t) {
3450            var n = this.$lines || this.getAllLines(),
3451                r = this.getNewLineCharacter().length,
3452                i = 0,
3453                s = Math.min(e.row, n.length);
3454            for (var o = t || 0; o < s; ++o) i += n[o].length + r;
3455            return i + e.column
3456        }
3457    }).call(a.prototype), t.Document = a
3458}), define("ace/background_tokenizer", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(e, t, n) {
3459    "use strict";
3460    var r = e("./lib/oop"),
3461        i = e("./lib/event_emitter").EventEmitter,
3462        s = function(e, t) {
3463            this.running = !1, this.lines = [], this.states = [], this.currentLine = 0, this.tokenizer = e;
3464            var n = this;
3465            this.$worker = function() {
3466                if (!n.running) return;
3467                var e = new Date,
3468                    t = n.currentLine,
3469                    r = -1,
3470                    i = n.doc,
3471                    s = t;
3472                while (n.lines[t]) t++;
3473                var o = i.getLength(),
3474                    u = 0;
3475                n.running = !1;
3476                while (t < o) {
3477                    n.$tokenizeRow(t), r = t;
3478                    do t++; while (n.lines[t]);
3479                    u++;
3480                    if (u % 5 === 0 && new Date - e > 20) {
3481                        n.running = setTimeout(n.$worker, 20);
3482                        break
3483                    }
3484                }
3485                n.currentLine = t, s <= r && n.fireUpdateEvent(s, r)
3486            }
3487        };
3488    (function() {
3489        r.implement(this, i), this.setTokenizer = function(e) {
3490            this.tokenizer = e, this.lines = [], this.states = [], this.start(0)
3491        }, this.setDocument = function(e) {
3492            this.doc = e, this.lines = [], this.states = [], this.stop()
3493        }, this.fireUpdateEvent = function(e, t) {
3494            var n = {
3495                first: e,
3496                last: t
3497            };
3498            this._signal("update", {
3499                data: n
3500            })
3501        }, this.start = function(e) {
3502            this.currentLine = Math.min(e || 0, this.currentLine, this.doc.getLength()), this.lines.splice(this.currentLine, this.lines.length), this.states.splice(this.currentLine, this.states.length), this.stop(), this.running = setTimeout(this.$worker, 700)
3503        }, this.scheduleStart = function() {
3504            this.running || (this.running = setTimeout(this.$worker, 700))
3505        }, this.$updateOnChange = function(e) {
3506            var t = e.start.row,
3507                n = e.end.row - t;
3508            if (n === 0) this.lines[t] = null;
3509            else if (e.action == "remove") this.lines.splice(t, n + 1, null), this.states.splice(t, n + 1, null);
3510            else {
3511                var r = Array(n + 1);
3512                r.unshift(t, 1), this.lines.splice.apply(this.lines, r), this.states.splice.apply(this.states, r)
3513            }
3514            this.currentLine = Math.min(t, this.currentLine, this.doc.getLength()), this.stop()
3515        }, this.stop = function() {
3516            this.running && clearTimeout(this.running), this.running = !1
3517        }, this.getTokens = function(e) {
3518            return this.lines[e] || this.$tokenizeRow(e)
3519        }, this.getState = function(e) {
3520            return this.currentLine == e && this.$tokenizeRow(e), this.states[e] || "start"
3521        }, this.$tokenizeRow = function(e) {
3522            var t = this.doc.getLine(e),
3523                n = this.states[e - 1],
3524                r = this.tokenizer.getLineTokens(t, n, e);
3525            return this.states[e] + "" != r.state + "" ? (this.states[e] = r.state, this.lines[e + 1] = null, this.currentLine > e + 1 && (this.currentLine = e + 1)) : this.currentLine == e && (this.currentLine = e + 1), this.lines[e] = r.tokens
3526        }
3527    }).call(s.prototype), t.BackgroundTokenizer = s
3528}), define("ace/search_highlight", ["require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range"], function(e, t, n) {
3529    "use strict";
3530    var r = e("./lib/lang"),
3531        i = e("./lib/oop"),
3532        s = e("./range").Range,
3533        o = function(e, t, n) {
3534            this.setRegexp(e), this.clazz = t, this.type = n || "text"
3535        };
3536    (function() {
3537        this.MAX_RANGES = 500, this.setRegexp = function(e) {
3538            if (this.regExp + "" == e + "") return;
3539            this.regExp = e, this.cache = []
3540        }, this.update = function(e, t, n, i) {
3541            if (!this.regExp) return;
3542            var o = i.firstRow,
3543                u = i.lastRow;
3544            for (var a = o; a <= u; a++) {
3545                var f = this.cache[a];
3546                f == null && (f = r.getMatchOffsets(n.getLine(a), this.regExp), f.length > this.MAX_RANGES && (f = f.slice(0, this.MAX_RANGES)), f = f.map(function(e) {
3547                    return new s(a, e.offset, a, e.offset + e.length)
3548                }), this.cache[a] = f.length ? f : "");
3549                for (var l = f.length; l--;) t.drawSingleLineMarker(e, f[l].toScreenRange(n), this.clazz, i)
3550            }
3551        }
3552    }).call(o.prototype), t.SearchHighlight = o
3553}), define("ace/edit_session/fold_line", ["require", "exports", "module", "ace/range"], function(e, t, n) {
3554    "use strict";
3555
3556    function i(e, t) {
3557        this.foldData = e, Array.isArray(t) ? this.folds = t : t = this.folds = [t];
3558        var n = t[t.length - 1];
3559        this.range = new r(t[0].start.row, t[0].start.column, n.end.row, n.end.column), this.start = this.range.start, this.end = this.range.end, this.folds.forEach(function(e) {
3560            e.setFoldLine(this)
3561        }, this)
3562    }
3563    var r = e("../range").Range;
3564    (function() {
3565        this.shiftRow = function(e) {
3566            this.start.row += e, this.end.row += e, this.folds.forEach(function(t) {
3567                t.start.row += e, t.end.row += e
3568            })
3569        }, this.addFold = function(e) {
3570            if (e.sameRow) {
3571                if (e.start.row < this.startRow || e.endRow > this.endRow) throw new Error("Can't add a fold to this FoldLine as it has no connection");
3572                this.folds.push(e), this.folds.sort(function(e, t) {
3573                    return -e.range.compareEnd(t.start.row, t.start.column)
3574                }), this.range.compareEnd(e.start.row, e.start.column) > 0 ? (this.end.row = e.end.row, this.end.column = e.end.column) : this.range.compareStart(e.end.row, e.end.column) < 0 && (this.start.row = e.start.row, this.start.column = e.start.column)
3575            } else if (e.start.row == this.end.row) this.folds.push(e), this.end.row = e.end.row, this.end.column = e.end.column;
3576            else {
3577                if (e.end.row != this.start.row) throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");
3578                this.folds.unshift(e), this.start.row = e.start.row, this.start.column = e.start.column
3579            }
3580            e.foldLine = this
3581        }, this.containsRow = function(e) {
3582            return e >= this.start.row && e <= this.end.row
3583        }, this.walk = function(e, t, n) {
3584            var r = 0,
3585                i = this.folds,
3586                s, o, u, a = !0;
3587            t == null && (t = this.end.row, n = this.end.column);
3588            for (var f = 0; f < i.length; f++) {
3589                s = i[f], o = s.range.compareStart(t, n);
3590                if (o == -1) {
3591                    e(null, t, n, r, a);
3592                    return
3593                }
3594                u = e(null, s.start.row, s.start.column, r, a), u = !u && e(s.placeholder, s.start.row, s.start.column, r);
3595                if (u || o === 0) return;
3596                a = !s.sameRow, r = s.end.column
3597            }
3598            e(null, t, n, r, a)
3599        }, this.getNextFoldTo = function(e, t) {
3600            var n, r;
3601            for (var i = 0; i < this.folds.length; i++) {
3602                n = this.folds[i], r = n.range.compareEnd(e, t);
3603                if (r == -1) return {
3604                    fold: n,
3605                    kind: "after"
3606                };
3607                if (r === 0) return {
3608                    fold: n,
3609                    kind: "inside"
3610                }
3611            }
3612            return null
3613        }, this.addRemoveChars = function(e, t, n) {
3614            var r = this.getNextFoldTo(e, t),
3615                i, s;
3616            if (r) {
3617                i = r.fold;
3618                if (r.kind == "inside" && i.start.column != t && i.start.row != e) window.console && window.console.log(e, t, i);
3619                else if (i.start.row == e) {
3620                    s = this.folds;
3621                    var o = s.indexOf(i);
3622                    o === 0 && (this.start.column += n);
3623                    for (o; o < s.length; o++) {
3624                        i = s[o], i.start.column += n;
3625                        if (!i.sameRow) return;
3626                        i.end.column += n
3627                    }
3628                    this.end.column += n
3629                }
3630            }
3631        }, this.split = function(e, t) {
3632            var n = this.getNextFoldTo(e, t);
3633            if (!n || n.kind == "inside") return null;
3634            var r = n.fold,
3635                s = this.folds,
3636                o = this.foldData,
3637                u = s.indexOf(r),
3638                a = s[u - 1];
3639            this.end.row = a.end.row, this.end.column = a.end.column, s = s.splice(u, s.length - u);
3640            var f = new i(o, s);
3641            return o.splice(o.indexOf(this) + 1, 0, f), f
3642        }, this.merge = function(e) {
3643            var t = e.folds;
3644            for (var n = 0; n < t.length; n++) this.addFold(t[n]);
3645            var r = this.foldData;
3646            r.splice(r.indexOf(e), 1)
3647        }, this.toString = function() {
3648            var e = [this.range.toString() + ": ["];
3649            return this.folds.forEach(function(t) {
3650                e.push("  " + t.toString())
3651            }), e.push("]"), e.join("\n")
3652        }, this.idxToPosition = function(e) {
3653            var t = 0;
3654            for (var n = 0; n < this.folds.length; n++) {
3655                var r = this.folds[n];
3656                e -= r.start.column - t;
3657                if (e < 0) return {
3658                    row: r.start.row,
3659                    column: r.start.column + e
3660                };
3661                e -= r.placeholder.length;
3662                if (e < 0) return r.start;
3663                t = r.end.column
3664            }
3665            return {
3666                row: this.end.row,
3667                column: this.end.column + e
3668            }
3669        }
3670    }).call(i.prototype), t.FoldLine = i
3671}), define("ace/range_list", ["require", "exports", "module", "ace/range"], function(e, t, n) {
3672    "use strict";
3673    var r = e("./range").Range,
3674        i = r.comparePoints,
3675        s = function() {
3676            this.ranges = []
3677        };
3678    (function() {
3679        this.comparePoints = i, this.pointIndex = function(e, t, n) {
3680            var r = this.ranges;
3681            for (var s = n || 0; s < r.length; s++) {
3682                var o = r[s],
3683                    u = i(e, o.end);
3684                if (u > 0) continue;
3685                var a = i(e, o.start);
3686                return u === 0 ? t && a !== 0 ? -s - 2 : s : a > 0 || a === 0 && !t ? s : -s - 1
3687            }
3688            return -s - 1
3689        }, this.add = function(e) {
3690            var t = !e.isEmpty(),
3691                n = this.pointIndex(e.start, t);
3692            n < 0 && (n = -n - 1);
3693            var r = this.pointIndex(e.end, t, n);
3694            return r < 0 ? r = -r - 1 : r++, this.ranges.splice(n, r - n, e)
3695        }, this.addList = function(e) {
3696            var t = [];
3697            for (var n = e.length; n--;) t.push.call(t, this.add(e[n]));
3698            return t
3699        }, this.substractPoint = function(e) {
3700            var t = this.pointIndex(e);
3701            if (t >= 0) return this.ranges.splice(t, 1)
3702        }, this.merge = function() {
3703            var e = [],
3704                t = this.ranges;
3705            t = t.sort(function(e, t) {
3706                return i(e.start, t.start)
3707            });
3708            var n = t[0],
3709                r;
3710            for (var s = 1; s < t.length; s++) {
3711                r = n, n = t[s];
3712                var o = i(r.end, n.start);
3713                if (o < 0) continue;
3714                if (o == 0 && !r.isEmpty() && !n.isEmpty()) continue;
3715                i(r.end, n.end) < 0 && (r.end.row = n.end.row, r.end.column = n.end.column), t.splice(s, 1), e.push(n), n = r, s--
3716            }
3717            return this.ranges = t, e
3718        }, this.contains = function(e, t) {
3719            return this.pointIndex({
3720                row: e,
3721                column: t
3722            }) >= 0
3723        }, this.containsPoint = function(e) {
3724            return this.pointIndex(e) >= 0
3725        }, this.rangeAtPoint = function(e) {
3726            var t = this.pointIndex(e);
3727            if (t >= 0) return this.ranges[t]
3728        }, this.clipRows = function(e, t) {
3729            var n = this.ranges;
3730            if (n[0].start.row > t || n[n.length - 1].start.row < e) return [];
3731            var r = this.pointIndex({
3732                row: e,
3733                column: 0
3734            });
3735            r < 0 && (r = -r - 1);
3736            var i = this.pointIndex({
3737                row: t,
3738                column: 0
3739            }, r);
3740            i < 0 && (i = -i - 1);
3741            var s = [];
3742            for (var o = r; o < i; o++) s.push(n[o]);
3743            return s
3744        }, this.removeAll = function() {
3745            return this.ranges.splice(0, this.ranges.length)
3746        }, this.attach = function(e) {
3747            this.session && this.detach(), this.session = e, this.onChange = this.$onChange.bind(this), this.session.on("change", this.onChange)
3748        }, this.detach = function() {
3749            if (!this.session) return;
3750            this.session.removeListener("change", this.onChange), this.session = null
3751        }, this.$onChange = function(e) {
3752            if (e.action == "insert") var t = e.start,
3753                n = e.end;
3754            else var n = e.start,
3755                t = e.end;
3756            var r = t.row,
3757                i = n.row,
3758                s = i - r,
3759                o = -t.column + n.column,
3760                u = this.ranges;
3761            for (var a = 0, f = u.length; a < f; a++) {
3762                var l = u[a];
3763                if (l.end.row < r) continue;
3764                if (l.start.row > r) break;
3765                l.start.row == r && l.start.column >= t.column && (l.start.column != t.column || !this.$insertRight) && (l.start.column += o, l.start.row += s);
3766                if (l.end.row == r && l.end.column >= t.column) {
3767                    if (l.end.column == t.column && this.$insertRight) continue;
3768                    l.end.column == t.column && o > 0 && a < f - 1 && l.end.column > l.start.column && l.end.column == u[a + 1].start.column && (l.end.column -= o), l.end.column += o, l.end.row += s
3769                }
3770            }
3771            if (s != 0 && a < f)
3772                for (; a < f; a++) {
3773                    var l = u[a];
3774                    l.start.row += s, l.end.row += s
3775                }
3776        }
3777    }).call(s.prototype), t.RangeList = s
3778}), define("ace/edit_session/fold", ["require", "exports", "module", "ace/range", "ace/range_list", "ace/lib/oop"], function(e, t, n) {
3779    "use strict";
3780
3781    function u(e, t) {
3782        e.row -= t.row, e.row == 0 && (e.column -= t.column)
3783    }
3784
3785    function a(e, t) {
3786        u(e.start, t), u(e.end, t)
3787    }
3788
3789    function f(e, t) {
3790        e.row == 0 && (e.column += t.column), e.row += t.row
3791    }
3792
3793    function l(e, t) {
3794        f(e.start, t), f(e.end, t)
3795    }
3796    var r = e("../range").Range,
3797        i = e("../range_list").RangeList,
3798        s = e("../lib/oop"),
3799        o = t.Fold = function(e, t) {
3800            this.foldLine = null, this.placeholder = t, this.range = e, this.start = e.start, this.end = e.end, this.sameRow = e.start.row == e.end.row, this.subFolds = this.ranges = []
3801        };
3802    s.inherits(o, i),
3803        function() {
3804            this.toString = function() {
3805                return '"' + this.placeholder + '" ' + this.range.toString()
3806            }, this.setFoldLine = function(e) {
3807                this.foldLine = e, this.subFolds.forEach(function(t) {
3808                    t.setFoldLine(e)
3809                })
3810            }, this.clone = function() {
3811                var e = this.range.clone(),
3812                    t = new o(e, this.placeholder);
3813                return this.subFolds.forEach(function(e) {
3814                    t.subFolds.push(e.clone())
3815                }), t.collapseChildren = this.collapseChildren, t
3816            }, this.addSubFold = function(e) {
3817                if (this.range.isEqual(e)) return;
3818                if (!this.range.containsRange(e)) throw new Error("A fold can't intersect already existing fold" + e.range + this.range);
3819                a(e, this.start);
3820                var t = e.start.row,
3821                    n = e.start.column;
3822                for (var r = 0, i = -1; r < this.subFolds.length; r++) {
3823                    i = this.subFolds[r].range.compare(t, n);
3824                    if (i != 1) break
3825                }
3826                var s = this.subFolds[r];
3827                if (i == 0) return s.addSubFold(e);
3828                var t = e.range.end.row,
3829                    n = e.range.end.column;
3830                for (var o = r, i = -1; o < this.subFolds.length; o++) {
3831                    i = this.subFolds[o].range.compare(t, n);
3832                    if (i != 1) break
3833                }
3834                var u = this.subFolds[o];
3835                if (i == 0) throw new Error("A fold can't intersect already existing fold" + e.range + this.range);
3836                var f = this.subFolds.splice(r, o - r, e);
3837                return e.setFoldLine(this.foldLine), e
3838            }, this.restoreRange = function(e) {
3839                return l(e, this.start)
3840            }
3841        }.call(o.prototype)
3842}), define("ace/edit_session/folding", ["require", "exports", "module", "ace/range", "ace/edit_session/fold_line", "ace/edit_session/fold", "ace/token_iterator"], function(e, t, n) {
3843    "use strict";
3844
3845    function u() {
3846        this.getFoldAt = function(e, t, n) {
3847            var r = this.getFoldLine(e);
3848            if (!r) return null;
3849            var i = r.folds;
3850            for (var s = 0; s < i.length; s++) {
3851                var o = i[s];
3852                if (o.range.contains(e, t)) {
3853                    if (n == 1 && o.range.isEnd(e, t)) continue;
3854                    if (n == -1 && o.range.isStart(e, t)) continue;
3855                    return o
3856                }
3857            }
3858        }, this.getFoldsInRange = function(e) {
3859            var t = e.start,
3860                n = e.end,
3861                r = this.$foldData,
3862                i = [];
3863            t.column += 1, n.column -= 1;
3864            for (var s = 0; s < r.length; s++) {
3865                var o = r[s].range.compareRange(e);
3866                if (o == 2) continue;
3867                if (o == -2) break;
3868                var u = r[s].folds;
3869                for (var a = 0; a < u.length; a++) {
3870                    var f = u[a];
3871                    o = f.range.compareRange(e);
3872                    if (o == -2) break;
3873                    if (o == 2) continue;
3874                    if (o == 42) break;
3875                    i.push(f)
3876                }
3877            }
3878            return t.column -= 1, n.column += 1, i
3879        }, this.getFoldsInRangeList = function(e) {
3880            if (Array.isArray(e)) {
3881                var t = [];
3882                e.forEach(function(e) {
3883                    t = t.concat(this.getFoldsInRange(e))
3884                }, this)
3885            } else var t = this.getFoldsInRange(e);
3886            return t
3887        }
3887, this.getAllFolds = function() {
3888            var e = [],
3889                t = this.$foldData;
3890            for (var n = 0; n < t.length; n++)
3891                for (var r = 0; r < t[n].folds.length; r++) e.push(t[n].folds[r]);
3892            return e
3893        }, this.getFoldStringAt = function(e, t, n, r) {
3894            r = r || this.getFoldLine(e);
3895            if (!r) return null;
3896            var i = {
3897                    end: {
3898                        column: 0
3899                    }
3900                },
3901                s, o;
3902            for (var u = 0; u < r.folds.length; u++) {
3903                o = r.folds[u];
3904                var a = o.range.compareEnd(e, t);
3905                if (a == -1) {
3906                    s = this.getLine(o.start.row).substring(i.end.column, o.start.column);
3907                    break
3908                }
3909                if (a === 0) return null;
3910                i = o
3911            }
3912            return s || (s = this.getLine(o.start.row).substring(i.end.column)), n == -1 ? s.substring(0, t - i.end.column) : n == 1 ? s.substring(t - i.end.column) : s
3913        }, this.getFoldLine = function(e, t) {
3914            var n = this.$foldData,
3915                r = 0;
3916            t && (r = n.indexOf(t)), r == -1 && (r = 0);
3917            for (r; r < n.length; r++) {
3918                var i = n[r];
3919                if (i.start.row <= e && i.end.row >= e) return i;
3920                if (i.end.row > e) return null
3921            }
3922            return null
3923        }, this.getNextFoldLine = function(e, t) {
3924            var n = this.$foldData,
3925                r = 0;
3926            t && (r = n.indexOf(t)), r == -1 && (r = 0);
3927            for (r; r < n.length; r++) {
3928                var i = n[r];
3929                if (i.end.row >= e) return i
3930            }
3931            return null
3932        }, this.getFoldedRowCount = function(e, t) {
3933            var n = this.$foldData,
3934                r = t - e + 1;
3935            for (var i = 0; i < n.length; i++) {
3936                var s = n[i],
3937                    o = s.end.row,
3938                    u = s.start.row;
3939                if (o >= t) {
3940                    u < t && (u >= e ? r -= t - u : r = 0);
3941                    break
3942                }
3943                o >= e && (u >= e ? r -= o - u : r -= o - e + 1)
3944            }
3945            return r
3946        }, this.$addFoldLine = function(e) {
3947            return this.$foldData.push(e), this.$foldData.sort(function(e, t) {
3948                return e.start.row - t.start.row
3949            }), e
3950        }, this.addFold = function(e, t) {
3951            var n = this.$foldData,
3952                r = !1,
3953                o;
3954            e instanceof s ? o = e : (o = new s(t, e), o.collapseChildren = t.collapseChildren), this.$clipRangeToDocument(o.range);
3955            var u = o.start.row,
3956                a = o.start.column,
3957                f = o.end.row,
3958                l = o.end.column;
3959            if (u < f || u == f && a <= l - 2) {
3960                var c = this.getFoldAt(u, a, 1),
3961                    h = this.getFoldAt(f, l, -1);
3962                if (c && h == c) return c.addSubFold(o);
3963                c && !c.range.isStart(u, a) && this.removeFold(c), h && !h.range.isEnd(f, l) && this.removeFold(h);
3964                var p = this.getFoldsInRange(o.range);
3965                p.length > 0 && (this.removeFolds(p), p.forEach(function(e) {
3966                    o.addSubFold(e)
3967                }));
3968                for (var d = 0; d < n.length; d++) {
3969                    var v = n[d];
3970                    if (f == v.start.row) {
3971                        v.addFold(o), r = !0;
3972                        break
3973                    }
3974                    if (u == v.end.row) {
3975                        v.addFold(o), r = !0;
3976                        if (!o.sameRow) {
3977                            var m = n[d + 1];
3978                            if (m && m.start.row == f) {
3979                                v.merge(m);
3980                                break
3981                            }
3982                        }
3983                        break
3984                    }
3985                    if (f <= v.start.row) break
3986                }
3987                return r || (v = this.$addFoldLine(new i(this.$foldData, o))), this.$useWrapMode ? this.$updateWrapData(v.start.row, v.start.row) : this.$updateRowLengthCache(v.start.row, v.start.row), this.$modified = !0, this._emit("changeFold", {
3988                    data: o,
3989                    action: "add"
3990                }), o
3991            }
3992            throw new Error("The range has to be at least 2 characters width")
3993        }, this.addFolds = function(e) {
3994            e.forEach(function(e) {
3995                this.addFold(e)
3996            }, this)
3997        }, this.removeFold = function(e) {
3998            var t = e.foldLine,
3999                n = t.start.row,
4000                r = t.end.row,
4001                i = this.$foldData,
4002                s = t.folds;
4003            if (s.length == 1) i.splice(i.indexOf(t), 1);
4004            else if (t.range.isEnd(e.end.row, e.end.column)) s.pop(), t.end.row 
4004= s[s.length - 1].end.row, t.end.column = s[s.length - 1].end.column;
4005            else if (t.range.isStart(e.start.row, e.start.column)) s.shift(), t.start.row = s[0].start.row, t.start.column = s[0].start.column;
4006            else if (e.sameRow) s.splice(s.indexOf(e), 1);
4007            else {
4008                var o = t.split(e.start.row, e.start.column);
4009                s = o.folds, s.shift(), o.start.row = s[0].start.row, o.start.column = s[0].start.column
4010            }
4011            this.$updating || (this.$useWrapMode ? this.$updateWrapData(n, r) : this.$updateRowLengthCache(n, r)), this.$modified = !0, this._emit("changeFold", {
4012                data: e,
4013                action: "remove"
4014            })
4015        }, this.removeFolds = function(e) {
4016            var t = [];
4017            for (var n = 0; n < e.length; n++) t.push(e[n]);
4018            t.forEach(function(e) {
4019                this.removeFold(e)
4020            }, this), this.$modified = !0
4021        }, this.expandFold = function(e) {
4022            this.removeFold(e), e.subFolds.forEach(function(t) {
4023                e.restoreRange(t), this.addFold(t)
4024            }, this), e.collapseChildren > 0 && this.foldAll(e.start.row + 1, e.end.row, e.collapseChildren - 1), e.subFolds = []
4025        }, this.expandFolds = function(e) {
4026            e.forEach(function(e) {
4027                this.expandFold(e)
4028            }, this)
4029        }, this.unfold = function(e, t) {
4030            var n, i;
4031            e == null ? (n = new r(0, 0, this.getLength(), 0), t = !0) : typeof e == "number" ? n = new r(e, 0, e, this.getLine(e).length) : "row" in e ? n = r.fromPoints(e, e) : n = e, i = this.getFoldsInRangeList(n);
4032            if (t) this.removeFolds(i);
4033            else {
4034                var s = i;
4035                while (s.length) this.expandFolds(s), s = this.getFoldsInRangeList(n)
4036            }
4037            if (i.length) return i
4038        }, this.isRowFolded = function(e, t) {
4039            return !!this.getFoldLine(e, t)
4040        }, this.getRowFoldEnd = function(e, t) {
4041            var n = this.getFoldLine(e, t);
4042            return n ? n.end.row : e
4043        }, this.getRowFoldStart = function(e, t) {
4044            var n = this.getFoldLine(e, t);
4045            return n ? n.start.row : e
4046        }, this.getFoldDisplayLine = function(e, t, n, r, i) {
4047            r == null && (r = e.start.row), i == null && (i = 0), t == null && (t = e.end.row), n == null && (n = this.getLine(t).length);
4048            var s = this.doc,
4049                o = "";
4050            return e.walk(function(e, t, n, u) {
4051                if (t < r) return;
4052                if (t == r) {
4053                    if (n < i) return;
4054                    u = Math.max(i, u)
4055                }
4056                e != null ? o += e : o += s.getLine(t).substring(u, n)
4057            }, t, n), o
4058        }, this.getDisplayLine = function(e, t, n, r) {
4059            var i = this.getFoldLine(e);
4060            if (!i) {
4061                var s;
4062                return s = this.doc.getLine(e), s.substring(r || 0, t || s.length)
4063            }
4064            return this.getFoldDisplayLine(i, e, t, n, r)
4065        }, this.$cloneFoldData = function() {
4066            var e = [];
4067            return e = this.$foldData.map(function(t) {
4068                var n = t.folds.map(function(e) {
4069                    return e.clone()
4070                });
4071                return new i(e, n)
4072            }), e
4073        }, this.toggleFold = function(e) {
4074            var t = this.selection,
4075                n = t.getRange(),
4076                r, i;
4077            if (n.isEmpty()) {
4078                var s = n.start;
4079                r = this.getFoldAt(s.row, s.column);
4080                if (r) {
4081                    this.expandFold(r);
4082                    return
4083                }(i = this.findMatchingBracket(s)) ? n.comparePoint(i) == 1 ? n.end = i : (n.start = i, n.start.column++, n.end.column--): (i = this.findMatchingBracket({
4084                    row: s.row,
4085                    column: s.column + 1
4086                })) ? (n.comparePoint(i) == 1 ? n.end = i : n.start = i, n.start.column++) : n = this.getCommentFoldRange(s.row, s.column) || n
4087            } else {
4088                var o = this.getFoldsInRange(n);
4089                if (e && o.length) {
4090                    this.expandFolds(o);
4091                    return
4092                }
4093                o.length == 1 && (r = o[0])
4094            }
4095            r || (r = this.getFoldAt(n.start.row, n.start.column));
4096            if (r && r.range.toString() == n.toString()) {
4097                this.expandFold(r);
4098                return
4099            }
4100            var u = "...";
4101            if (!n.isMultiLine()) {
4102                u = this.getTextRange(n);
4103                if (u.length < 4) return;
4104                u = u.trim().substring(0, 2) + ".."
4105            }
4106            this.addFold(u, n)
4107        }, this.getCommentFoldRange = function(e, t, n) {
4108            var i = new o(this, e, t),
4109                s = i.getCurrentToken();
4110            if (s && /^comment|string/.test(s.type)) {
4111                var u = new r,
4112                    a = new RegExp(s.type.replace(/\..*/, "\\."));
4113                if (n != 1) {
4114                    do s = i.stepBackward(); while (s && a.test(s.type));
4115                    i.stepForward()
4116                }
4117                u.start.row = i.getCurrentTokenRow(), u.start.column = i.getCurrentTokenColumn() + 2, i = new o(this, e, t);
4118                if (n != -1) {
4119                    do s = i.stepForward(); while (s && a.test(s.type));
4120                    s = i.stepBackward()
4121                } else s = i.getCurrentToken();
4122                return u.end.row = i.getCurrentTokenRow(), u.end.column = i.getCurrentTokenColumn() + s.value.length - 2, u
4123            }
4124        }, this.foldAll = function(e, t, n) {
4125            n == undefined && (n = 1e5);
4126            var r = this.foldWidgets;
4127            if (!r) return;
4128            t = t || this.getLength(), e = e || 0;
4129            for (var i = e; i < t; i++) {
4130                r[i] == null && (r[i] = this.getFoldWidget(i));
4131                if (r[i] != "start") continue;
4132                var s = this.getFoldWidgetRange(i);
4133                if (s && s.isMultiLine() && s.end.row <= t && s.start.row >= e) {
4134                    i = s.end.row;
4135                    try {
4136                        var o = this.addFold("...", s);
4137                        o && (o.collapseChildren = n)
4138                    } catch (u) {}
4139                }
4140            }
4141        }, this.$foldStyles = {
4142            manual: 1,
4143            markbegin: 1,
4144            markbeginend: 1
4145        }, this.$foldStyle = "markbegin", this.setFoldStyle = function(e) {
4146            if (!this.$foldStyles[e]) throw new Error("invalid fold style: " + e + "[" + Object.keys(this.$foldStyles).join(", ") + "]");
4147            if (this.$foldStyle == e) return;
4148            this.$foldStyle = e, e == "manual" && this.unfold();
4149            var t = this.$foldMode;
4150            this.$setFolding(null), this.$setFolding(t)
4151        }, this.$setFolding = function(e) {
4152            if (this.$foldMode == e) return;
4153            this.$foldMode = e, this.off("change", this.$updateFoldWidgets), this.off("tokenizerUpdate", this.$tokenizerUpdateFoldWidgets), this._emit("changeAnnotation");
4154            if (!e || this.$foldStyle == "manual") {
4155                this.foldWidgets = null;
4156                return
4157            }
4158            this.foldWidgets = [], this.getFoldWidget = e.getFoldWidget.bind(e, this, this.$foldStyle), this.getFoldWidgetRange = e.getFoldWidgetRange.bind(e, this, this.$foldStyle), this.$updateFoldWidgets = this.updateFoldWidgets.bind(this), this.$tokenizerUpdateFoldWidgets = this.tokenizerUpdateFoldWidgets.bind(this), this.on("change", this.$updateFoldWidgets), this.on("tokenizerUpdate", this.$tokenizerUpdateFoldWidgets)
4159        }, this.getParentFoldRangeData = function(e, t) {
4160            var n = this.foldWidgets;
4161            if (!n || t && n[e]) return {};
4162            var r = e - 1,
4163                i;
4164            while (r >= 0) {
4165                var s = n[r];
4166                s == null && (s = n[r] = this.getFoldWidget(r));
4167                if (s == "start") {
4168                    var o = this.getFoldWidgetRange(r);
4169                    i || (i = o);
4170                    if (o && o.end.row >= e) break
4171                }
4172                r--
4173            }
4174            return {
4175                range: r !== -1 && o,
4176                firstRange: i
4177            }
4178        }, this.onFoldWidgetClick = function(e, t) {
4179            t = t.domEvent;
4180            var n = {
4181                    children: t.shiftKey,
4182                    all: t.ctrlKey || t.metaKey,
4183                    siblings: t.altKey
4184                },
4185                r = this.$toggleFoldWidget(e, n);
4186            if (!r) {
4187                var i = t.target || t.srcElement;
4188                i && /ace_fold-widget/.test(i.className) && (i.className += " ace_invalid")
4189            }
4190        }, this.$toggleFoldWidget = function(e, t) {
4191            if (!this.getFoldWidget) return;
4192            var n = this.getFoldWidget(e),
4193                r = this.getLine(e),
4194                i = n === "end" ? -1 : 1,
4195                s = this.getFoldAt(e, i === -1 ? 0 : r.length, i);
4196            if (s) {
4197                t.children || t.all ? this.removeFold(s) : this.expandFold(s);
4198                return
4199            }
4200            var o = this.getFoldWidgetRange(e, !0);
4201            if (o && !o.isMultiLine()) {
4202                s = this.getFoldAt(o.start.row, o.start.column, 1);
4203                if (s && o.isEqual(s.range)) {
4204                    this.removeFold(s);
4205                    return
4206                }
4207            }
4208            if (t.siblings) {
4209                var u = this.getParentFoldRangeData(e);
4210                if (u.range) var a = u.range.start.row + 1,
4211                    f = u.range.end.row;
4212                this.foldAll(a, f, t.all ? 1e4 : 0)
4213            } else t.children ? (f = o ? o.end.row : this.getLength(), this.foldAll(e + 1, f, t.all ? 1e4 : 0)) : o && (t.all && (o.collapseChildren = 1e4), this.addFold("...", o));
4214            return o
4215        }, this.toggleFoldWidget = function(e) {
4216            var t = this.selection.getCursor().row;
4217            t = this.getRowFoldStart(t);
4218            var n = this.$toggleFoldWidget(t, {});
4219            if (n) return;
4220            var r = this.getParentFoldRangeData(t, !0);
4221            n = r.range || r.firstRange;
4222            if (n) {
4223                t = n.start.row;
4224                var i = this.getFoldAt(t, this.getLine(t).length, 1);
4225                i ? this.removeFold(i) : this.addFold("...", n)
4226            }
4227        }, this.updateFoldWidgets = function(e) {
4228            var t = e.start.row,
4229                n = e.end.row - t;
4230            if (n === 0) this.foldWidgets[t] = null;
4231            else if (e.action == "remove") this.foldWidgets.splice(t, n + 1, null);
4232            else {
4233                var r = Array(n + 1);
4234                r.unshift(t, 1), this.foldWidgets.splice.apply(this.foldWidgets, r)
4235            }
4236        }, this.tokenizerUpdateFoldWidgets = function(e) {
4237            var t = e.data;
4238            t.first != t.last && this.foldWidgets.length > t.first && this.foldWidgets.splice(t.first, this.foldWidgets.length)
4239        }
4240    }
4241    var r = e("../range").Range,
4242        i = e("./fold_line").FoldLine,
4243        s = e("./fold").Fold,
4244        o = e("../token_iterator").TokenIterator;
4245    t.Folding = u
4246}), define("ace/edit_session/bracket_match", ["require", "exports", "module", "ace/token_iterator", "ace/range"], function(e, t, n) {
4247    "use strict";
4248
4249    function s() {
4250        this.findMatchingBracket = function(e, t) {
4251            if (e.column == 0) return null;
4252            var n = t || this.getLine(e.row).charAt(e.column - 1);
4253            if (n == "") return null;
4254            var r = n.match(/([\(\[\{])|([\)\]\}])/);
4255            return r ? r[1] ? this.$findClosingBracket(r[1], e) : this.$findOpeningBracket(r[2], e) : null
4256        }, this.getBracketRange = function(e) {
4257            var t = this.getLine(e.row),
4258                n = !0,
4259                r, s = t.charAt(e.column - 1),
4260                o = s && s.match(/([\(\[\{])|([\)\]\}])/);
4261            o || (s = t.charAt(e.column), e = {
4262                row: e.row,
4263                column: e.column + 1
4264            }, o = s && s.match(/([\(\[\{])|([\)\]\}])/), n = !1);
4265            if (!o) return null;
4266            if (o[1]) {
4267                var u = this.$findClosingBracket(o[1], e);
4268                if (!u) return null;
4269                r = i.fromPoints(e, u), n || (r.end.column++, r.start.column--), r.curs
4269or = r.end
4270            } else {
4271                var u = this.$findOpeningBracket(o[2], e);
4272                if (!u) return null;
4273                r = i.fromPoints(u, e), n || (r.start.column++, r.end.column--), r.cursor = r.start
4274            }
4275            return r
4276        }, this.$brackets = {
4277            ")": "(",
4278            "(": ")",
4279            "]": "[",
4280            "[": "]",
4281            "{": "}",
4282            "}": "{"
4283        }, this.$findOpeningBracket = function(e, t, n) {
4284            var i = this.$brackets[e],
4285                s = 1,
4286                o = new r(this, t.row, t.column),
4287                u = o.getCurrentToken();
4288            u || (u = o.stepForward());
4289            if (!u) return;
4290            n || (n = new RegExp("(\\.?" + u.type.replace(".", "\\.").replace("rparen", ".paren").replace(/\b(?:end)\b/, "(?:start|begin|end)") + ")+"));
4291            var a = t.column - o.getCurrentTokenColumn() - 2,
4292                f = u.value;
4293            for (;;) {
4294                while (a >= 0) {
4295                    var l = f.charAt(a);
4296                    if (l == i) {
4297                        s -= 1;
4298                        if (s == 0) return {
4299                            row: o.getCurrentTokenRow(),
4300                            column: a + o.getCurrentTokenColumn()
4301                        }
4302                    } else l == e && (s += 1);
4303                    a -= 1
4304                }
4305                do u = o.stepBackward(); while (u && !n.test(u.type));
4306                if (u == null) break;
4307                f = u.value, a = f.length - 1
4308            }
4309            return null
4310        }, this.$findClosingBracket = function(e, t, n) {
4311            var i = this.$brackets[e],
4312                s = 1,
4313                o = new r(this, t.row, t.column),
4314                u = o.getCurrentToken();
4315            u || (u = o.stepForward());
4316            if (!u) return;
4317            n || (n = new RegExp("(\\.?" + u.type.replace(".", "\\.").replace("lparen", ".paren").replace(/\b(?:start|begin)\b/, "(?:start|begin|end)") + ")+"));
4318            var a = t.column - o.getCurrentTokenColumn();
4319            for (;;) {
4320                var f = u.value,
4321                    l = f.length;
4322                while (a < l) {
4323                    var c = f.charAt(a);
4324                    if (c == i) {
4325                        s -= 1;
4326                        if (s == 0) return {
4327                            row: o.getCurrentTokenRow(),
4328                            column: a + o.getCurrentTokenColumn()
4329                        }
4330                    } else c == e && (s += 1);
4331                    a += 1
4332                }
4333                do u = o.stepForward(); while (u && !n.test(u.type));
4334                if (u == null) break;
4335                a = 0
4336            }
4337            return null
4338        }
4339    }
4340    var r = e("../token_iterator").TokenIterator,
4341        i = e("../range").Range;
4342    t.BracketMatch = s
4343}), define("ace/edit_session", ["require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/config", "ace/lib/event_emitter", "ace/selection", "ace/mode/text", "ace/range", "ace/document", "ace/background_tokenizer", "ace/search_highlight", "ace/edit_session/folding", "ace/edit_session/bracket_match"], function(e, t, n) {
4344    "use strict";
4345    var r = e("./lib/oop"),
4346        i = e("./lib/lang"),
4347        s = e("./config"),
4348        o = e("./lib/event_emitter").EventEmitter,
4349        u = e("./selection").Selection,
4350        a = e("./mode/text").Mode,
4351        f = e("./range").Range,
4352        l = e("./document").Document,
4353        c = e("./background_tokenizer").BackgroundTokenizer,
4354        h = e("./search_highlight").SearchHighlight,
4355        p = function(e, t) {
4356            this.$breakpoints = [], this.$decorations = [], this.$frontMarkers = {}, this.$backMarkers = {}, this.$markerId = 1, this.$undoSelect = !0, this.$foldData = [], this.$foldData.toString = function() {
4357                return this.join("\n")
4358            }, this.on("changeFold", this.onChangeFold.bind(this)), this.$onChange = this.onChange.bind(this);
4359            if (typeof e != "object" || !e.getLine) e = new l(e);
4360            this.setDocument(e), this.selection = new u(this), s.resetOptions(this), this.setMode(t), s._signal("session", this)
4361        };
4362    (function() {
4363        function m(e) {
4364            return e < 4352 ? !1 : e >= 4352 && e <= 4447 || e >= 4515 && e <= 4519 || e >= 4602 && e <= 4607 || e >= 9001 && e <= 9002 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12283 || e >= 12288 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12589 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12730 || e >= 12736 && e <= 12771 || e >= 12784 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 13054 || e >= 13056 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 55216 && e <= 55238 || e >= 55243 && e <= 55291 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510
4365        }
4366        r.implement(this, o), this.setDocument = function(e) {
4367            this.doc && this.doc.removeListener("change", this.$onChange), this.doc = e, e.on("change", this.$onChange), this.bgTokenizer && this.bgTokenizer.setDocument(this.getDocument()), this.resetCaches()
4368        }, this.getDocument = function() {
4369            return this.doc
4370        }, this.$resetRowCache = function(e) {
4371            if (!e) {
4372                this.$docRowCache = [], this.$screenRowCache = [];
4373                return
4374            }
4375            var t = this.$docRowCache.length,
4376                n = this.$getRowCacheIndex(this.$docRowCache, e) + 1;
4377            t > n && (this.$docRowCache.splice(n, t), this.$screenRowCache.splice(n, t))
4378        }, this.$getRowCacheIndex = function(e, t) {
4379            var n = 0,
4380                r = e.length - 1;
4381            while (n <= r) {
4382                var i = n + r >> 1,
4383                    s = e[i];
4384                if (t > s) n = i + 1;
4385                else {
4386                    if (!(t < s)) return i;
4387                    r = i - 1
4388                }
4389            }
4390            return n - 1
4391        }, this.resetCaches = function() {
4392            this.$modified = !0, this.$wrapData = [], this.$rowLengthCache = [], this.$resetRowCache(0), this.bgTokenizer && this.bgTokenizer.start(0)
4393        }, this.onChangeFold = function(e) {
4394            var t = e.data;
4395            this.$resetRowCache(t.start.row)
4396        }, this.onChange = function(e) {
4397            this.$modified = !0, this.$resetRowCache(e.start.row);
4398            var t = this.$updateInternalDataOnChange(e);
4399            !this.$fromUndo && this.$undoManager && !e.ignore && (this.$deltasDoc.push(e), t && t.length != 0 && this.$deltasFold.push({
4400                action: "removeFolds",
4401                folds: t
4402            }), this.$informUndoManager.schedule()), this.bgTokenizer && this.bgTokenizer.$updateOnChange(e), this._signal("change", e)
4403        }, this.setValue = function(e) {
4404            this.doc.setValue(e), this.selection.moveTo(0, 0), this.$resetRowCache(0), this.$deltas = [], this.$deltasDoc = [], this.$deltasFold = [], this.setUndoManager(this.$undoManager), this.getUndoManager().reset()
4405        }, this.getValue = this.toString = function() {
4406            return this.doc.getValue()
4407        }, this.getSelection = function() {
4408            return this.selection
4409        }, this.getState = function(e) {
4410            return this.bgTokenizer.getState(e)
4411        }, this.getTokens = function(e) {
4412            return this.bgTokenizer.getTokens(e)
4413        }, this.getTokenAt = function(e, t) {
4414            var n = this.bgTokenizer.getTokens(e),
4415                r, i = 0;
4416            if (t == null) s = n.length - 1, i = this.getLine(e).length;
4417            else
4418                for (var s = 0; s < n.length; s++) {
4419                    i += n[s].value.length;
4420                    if (i >= t) break
4421                }
4422            return r = n[s], r ? (r.index = s, r.start = i - r.value.length, r) : null
4423        }, this.setUndoManager = function(e) {
4424            this.$undoManager = e, this.$deltas = [], this.$deltasDoc = [], this.$deltasFold = [], this.$informUndoManager && this.$informUndoManager.cancel();
4425            if (e) {
4426                var t = this;
4427                this.$syncInformUndoManager = function() {
4428                    t.$informUndoManager.cancel(), t.$deltasFold.length && (t.$deltas.push({
4429                        group: "fold",
4430                        deltas: t.$deltasFold
4431                    }), t.$deltasFold = []), t.$deltasDoc.length && (t.$deltas.push({
4432                        group: "doc",
4433                        deltas: t.$deltasDoc
4434                    }), t.$deltasDoc = []), t.$deltas.length > 0 && e.execute({
4435                        action: "aceupdate",
4436                        args: [t.$deltas, t],
4437                        merge: t.mergeUndoDeltas
4438                    }), t.mergeUndoDeltas = !1, t.$deltas = []
4439                }, this.$informUndoManager = i.delayedCall(this.$syncInformUndoManager)
4440            }
4441        }, this.markUndoGroup = function() {
4442            this.$syncInformUndoManager && this.$syncInformUndoManager()
4443        }, this.$defaultUndoManager = {
4444            undo: function() {},
4445            redo: function() {},
4446            reset: function() {}
4447        }, this.getUndoManager = function() {
4448            return this.$undoManager || this.$defaultUndoManager
4449        }, this.getTabString = function() {
4450            return this.getUseSoftTabs() ? i.stringRepeat(" ", this.getTabSize()) : "   "
4451        }, this.setUseSoftTabs = function(e) {
4452            this.setOption("useSoftTabs", e)
4453        }, this.getUseSoftTabs = function() {
4454            return this.$useSoftTabs && !this.$mode.$indentWithTabs
4455        }, this.setTabSize = function(e) {
4456            this.setOption("tabSize", e)
4457        }, this.getTabSize = function() {
4458            return this.$tabSize
4459        }, this.isTabStop = function(e) {
4460            return this.$useSoftTabs && e.column % this.$tabSize === 0
4461        }, this.$overwrite = !1, this.setOverwrite = function(e) {
4462            this.setOption("overwrite", e)
4463        }, this.getOverwrite = function() {
4464            return this.$overwrite
4465        }, this.toggleOverwrite = function() {
4466            this.setOverwrite(!this.$overwrite)
4467        }, this.addGutterDecoration = function(e, t) {
4468            this.$decorations[e] || (this.$decorations[e] = ""), this.$decorations[e] += " " + t, this._signal("changeBreakpoint", {})
4469        }, this.removeGutterDecoration = function(e, t) {
4470            this.$decorations[e] = (this.$decorations[e] || "").replace(" " + t, ""), this._signal("changeBreakpoint", {})
4471        }, this.getBreakpoints = function() {
4472            return this.$breakpoints
4473        }, this.setBreakpoints = function(e) {
4474            this.$breakpoints = [];
4475            for (var t = 0; t < e.length; t++) this.$breakpoints[e[t]] = "ace_breakpoint";
4476            this._signal("changeBreakpoint", {})
4477        }, this.clearBreakpoints = function() {
4478            this.$breakpoints = [], this._signal("changeBreakpoint", {})
4479        }, this.setBreakpoint = function(e, t) {
4480            t === undefined && (t = "ace_breakpoint"), t ? this.$breakpoints[e] = t : delete this.$breakpoints[e], this._signal("changeBreakpoint", {})
4481        }, this.clearBreakpoint = function(e) {
4482            delete this.$breakpoints[e], this._signal("changeBreakpoint", {})
4483        }, this.addMarker = function(e, t, n, r) {
4484            var i = this.$markerId++,
4485                s = {
4486                    range: e,
4487                    type: n || "line",
4488                    renderer: typeof n == "function" ? n : null,
4489                    clazz: t,
4490                    inFront: !!r,
4491                    id: i
4492                };
4493            return r ? (this.$frontMarkers[i] = s, this._signal("changeFrontMarker")) : (this.$backMarkers[i] = s, this._signal("changeBackMarker")), i
4494        }, this.addDynamicMarker = function(e, t) {
4495            if (!e.update) return;
4496            var n = this.$markerId++;
4497            return e.id = n, e.inFront = !!t, t ? (this.$frontMarkers[n] = e, this._signal("changeFrontMarker")) : (this.$backMarkers[n] = e, this._signal("changeBackMarker")), e
4498        }, this.removeMarker = function(e) {
4499            var t = this.$frontMarkers[e] || this.$backMarkers[e];
4500            if (!t) return;
4501            var n = t.inFront ? this.$frontMarkers : this.$backMarkers;
4502            t && (delete n[e], this._signal(t.inFront ? "changeFrontMarker" : "changeBackMarker"))
4503        }, this.getMarkers = function(e) {
4504            return e ? this.$frontMarkers : this.$backMarkers
4505        }, this.highlight = function(e) {
4506            if (!this.$searchHighlight) {
4507                var t = new h(null, "ace_selected-word", "text");
4508                this.$searchHighlight = this.addDynamicMarker(t)
4509            }
4510            this.$searchHighlight.setRegexp(e)
4511        }, this.highlightLines = function(e, t, n, r) {
4512            typeof t != "number" && (n = t, t = e), n || (n = "ace_step");
4513            var i = new f(e, 0, t, Infinity);
4514            return i.id = this.addMarker(i, n, "fullLine", r), i
4515        }, this.setAnnotations = function(e) {
4516            this.$annotations = e, this._signal("changeAnnotation", {})
4517        }, this.getAnnotations = function() {
4518            return this.$annotations || []
4519        }, this.clearAnnotations = function() {
4520            this.setAnnotations([])
4521        }, this.$detectNewLine = function(e) {
4522            var t = e.match(/^.*?(\r?\n)/m);
4523            t ? this.$autoNewLine = t[1] : this.$autoNewLine = "\n"
4524        }, this.getWordRange = function(e, t) {
4525            var n = this.getLine(e),
4526                r = !1;
4527            t > 0 && (r = !!n.charAt(t - 1).match(this.tokenRe)), r || (r = !!n.charAt(t).match(this.tokenRe));
4528            if (r) var i = this.tokenRe;
4529            else if (/^\s+$/.test(n.slice(t - 1, t + 1))) var i = /\s/;
4530            else var i = this.nonTokenRe;
4531            var s = t;
4532            if (s > 0) {
4533                do s--; while (s >= 0 && n.charAt(s).match(i));
4534                s++
4535            }
4536            var o = t;
4537            while (o < n.length && n.charAt(o).match(i)) o++;
4538            return new f(e, s, e, o)
4539        }, this.getAWordRange = function(e, t) {
4540            var n = this.getWordRange(e, t),
4541                r = this.getLine(n.end.row);
4542            while (r.charAt(n.end.column).match(/[ \t]/)) n.end.column += 1;
4543            return n
4544        }, this.setNewLineMode = function(e) {
4545            this.doc.setNewLineMode(e)
4546        }, this.getNewLineMode = function() {
4547            return this.doc.getNewLineMode()
4548        }, this.setUseWorker = function(e) {
4549            this.setOption("useWorker", e)
4550        }, this.getUseWorker = function() {
4551            return this.$useWorker
4552        }, this.onReloadTokenizer = function(e) {
4553            var t = e.data;
4554            this.bgTokenizer.start(t.first), this._signal("tokenizerUpdate", e)
4555        }, this.$modes = {}, this.$mode = null, this.$modeId = null, this.setMode = function(e, t) {
4556            if (e && typeof e == "object") {
4557                if (e.getTokenizer) return this.$onChangeMode(e);
4558                var n = e,
4559                    r = n.path
4560            } else r = e || "ace/mode/text";
4561            this.$modes["ace/mode/text"] || (this.$modes["ace/mode/text"] = new a);
4562            if (this.$modes[r] && !n) {
4563                this.$onChangeMode(this.$modes[r]), t && t();
4564                return
4565            }
4566            this.$modeId = r, s.loadModule(["mode", r], function(e) {
4567                if (this.$modeId !== r) return t && t();
4568                this.$modes[r] && !n ? this.$onChangeMode(this.$modes[r]) : e && e.Mode && (e = new e.Mode(n), n || (this.$modes[r] = e, e.$id = r), this.$onChangeMode(e)), t && t()
4569            }.bind(this)), this.$mode || this.$onChangeMode(this.$modes["ace/mode/text"], !0)
4570        }, this.$onChangeMode = function(e, t) {
4571            t || (this.$modeId = e.$id);
4572            if (this.$mode === e) return;
4573            this.$mode = e, this.$stopWorker(), this.$useWorker && this.$startWorker();
4574            var n = e.getTokenizer();
4575            if (n.addEventListener !== undefined) {
4576                var r = this.onReloadTokenizer.bind(this);
4577                n.addEventListener("update", r)
4578            }
4579            if (!this.bgTokenizer) {
4580                this.bgTokenizer = new c(n);
4581                var i = this;
4582                this.bgTokenizer.addEventListener("update", function(e) {
4583                    i._signal("tokenizerUpdate", e)
4584                })
4585            } else this.bgTokenizer.setTokenizer(n);
4586            this.bgTokenizer.setDocument(this.getDocument()), this.tokenRe = e.tokenRe, this.nonTokenRe = e.nonTokenRe, t || (e.attachToSession && e.attachToSession(this), this.$options.wrapMethod.set.call(this, this.$wrapMethod), this.$setFolding(e.foldingRules), this.bgTokenizer.start(0), this._emit("changeMode"))
4587        }, this.$stopWorker = function() {
4588            this.$worker && (this.$worker.terminate(), this.$worker = null)
4589        }, this.$startWorker = function() {
4590            try {
4591                this.$worker = this.$mode.createWorker(this)
4592            } catch (e) {
4593                s.warn("Could not load worker", e), this.$worker = null
4594            }
4595        }, this.getMode = function() {
4596            return this.$mode
4597        }, this.$scrollTop = 0, this.setScrollTop = function(e) {
4598            if (this.$scrollTop === e || isNaN(e)) return;
4599            this.$scrollTop = e, this._signal("changeScrollTop", e)
4600        }
4600, this.getScrollTop = function() {
4601            return this.$scrollTop
4602        }, this.$scrollLeft = 0, this.setScrollLeft = function(e) {
4603            if (this.$scrollLeft === e || isNaN(e)) return;
4604            this.$scrollLeft = e, this._signal("changeScrollLeft", e)
4605        }, this.getScrollLeft = function() {
4606            return this.$scrollLeft
4607        }, this.getScreenWidth = function() {
4608            return this.$computeWidth(), this.lineWidgets ? Math.max(this.getLineWidgetMaxWidth(), this.screenWidth) : this.screenWidth
4609        }, this.getLineWidgetMaxWidth = function() {
4610            if (this.lineWidgetsWidth != null) return this.lineWidgetsWidth;
4611            var e = 0;
4612            return this.lineWidgets.forEach(function(t) {
4613                t && t.screenWidth > e && (e = t.screenWidth)
4614            }), this.lineWidgetWidth = e
4615        }, this.$computeWidth = function(e) {
4616            if (this.$modified || e) {
4617                this.$modified = !1;
4618                if (this.$useWrapMode) return this.screenWidth = this.$wrapLimit;
4619                var t = this.doc.getAllLines(),
4620                    n = this.$rowLengthCache,
4621                    r = 0,
4622                    i = 0,
4623                    s = this.$foldData[i],
4624                    o = s ? s.start.row : Infinity,
4625                    u = t.length;
4626                for (var a = 0; a < u; a++) {
4627                    if (a > o) {
4628                        a = s.end.row + 1;
4629                        if (a >= u) break;
4630                        s = this.$foldData[i++], o = s ? s.start.row : Infinity
4631                    }
4632                    n[a] == null && (n[a] = this.$getStringScreenWidth(t[a])[0]), n[a] > r && (r = n[a])
4633                }
4634                this.screenWidth = r
4635            }
4636        }, this.getLine = function(e) {
4637            return this.doc.getLine(e)
4638        }, this.getLines = function(e, t) {
4639            return this.doc.getLines(e, t)
4640        }, this.getLength = function() {
4641            return this.doc.getLength()
4642        }, this.getTextRange = function(e) {
4643            return this.doc.getTextRange(e || this.selection.getRange())
4644        }, this.insert = function(e, t) {
4645            return this.doc.insert(e, t)
4646        }, this.remove = function(e) {
4647            return this.doc.remove(e)
4648        }, this.removeFullLines = function(e, t) {
4649            return this.doc.removeFullLines(e, t)
4650        }, this.undoChanges = function(e, t) {
4651            if (!e.length) return;
4652            this.$fromUndo = !0;
4653            var n = null;
4654            for (var r = e.length - 1; r != -1; r--) {
4655                var i = e[r];
4656                i.group == "doc" ? (this.doc.revertDeltas(i.deltas), n = this.$getUndoSelection(i.deltas, !0, n)) : i.deltas.forEach(function(e) {
4657                    this.addFolds(e.folds)
4658                }, this)
4659            }
4660            return this.$fromUndo = !1, n && this.$undoSelect && !t && this.selection.setSelectionRange(n), n
4661        }, this.redoChanges = function(e, t) {
4662            if (!e.length) return;
4663            this.$fromUndo = !0;
4664            var n = null;
4665            for (var r = 0; r < e.length; r++) {
4666                var i = e[r];
4667                i.group == "doc" && (this.doc.applyDeltas(i.deltas), n = this.$getUndoSelection(i.deltas, !1, n))
4668            }
4669            return this.$fromUndo = !1, n && this.$undoSelect && !t && this.selection.setSelectionRange(n), n
4670        }, this.setUndoSelect = function(e) {
4671            this.$undoSelect = e
4672        }, this.$getUndoSelection = function(e, t, n) {
4673            function r(e) {
4674                return t ? e.action !== "insert" : e.action === "insert"
4675            }
4676            var i = e[0],
4677                s, o, u = !1;
4678            r(i) ? (s = f.fromPoints(i.start, i.end), u = !0) : (s = f.fromPoints(i.start, i.start), u = !1);
4679            for (var a = 1; a < e.length; a++) i = e[a], r(i) ? (o = i.start, s.compare(o.row, o.column) == -1 && s.setStart(o), o = i.end, s.compare(o.row, o.column) == 1 && s.setEnd(o), u = !0) : (o = i.start, s.compare(o.row, o.column) == -1 && (s = f.fromPoints(i.start, i.start)), u = !1);
4680            if (n != null) {
4681                f.comparePoints(n.start, s.start) === 0 && (n.start.column += s.end.column - s.start.column, n.end.column += s.end.column - s.start.column);
4682                var l = n.compareRange(s);
4683                l == 1 ? s.setStart(n.start) : l == -1 && s.setEnd(n.end)
4684            }
4685            return s
4686        }, this.replace = function(e, t) {
4687            return this.doc.replace(e, t)
4688        }, this.moveText = function(e, t, n) {
4689            var r = this.getTextRange(e),
4690                i = this.getFoldsInRange(e),
4691                s = f.fromPoints(t, t);
4692            if (!n) {
4693                this.remove(e);
4694                var o = e.start.row - e.end.row,
4695                    u = o ? -e.end.column : e.start.column - e.end.column;
4696                u && (s.start.row == e.end.row && s.start.column >
4696 e.end.column && (s.start.column += u), s.end.row == e.end.row && s.end.column > e.end.column && (s.end.column += u)), o && s.start.row >= e.end.row && (s.start.row += o, s.end.row += o)
4697            }
4698            s.end = this.insert(s.start, r);
4699            if (i.length) {
4700                var a = e.start,
4701                    l = s.start,
4702                    o = l.row - a.row,
4703                    u = l.column - a.column;
4704                this.addFolds(i.map(function(e) {
4705                    return e = e.clone(), e.start.row == a.row && (e.start.column += u), e.end.row == a.row && (e.end.column += u), e.start.row += o, e.end.row += o, e
4706                }))
4707            }
4708            return s
4709        }, this.indentRows = function(e, t, n) {
4710            n = n.replace(/\t/g, this.getTabString());
4711            for (var r = e; r <= t; r++) this.doc.insertInLine({
4712                row: r,
4713                column: 0
4714            }, n)
4715        }, this.outdentRows = function(e) {
4716            var t = e.collapseRows(),
4717                n = new f(0, 0, 0, 0),
4718                r = this.getTabSize();
4719            for (var i = t.start.row; i <= t.end.row; ++i) {
4720                var s = this.getLine(i);
4721                n.start.row = i, n.end.row = i;
4722                for (var o = 0; o < r; ++o)
4723                    if (s.charAt(o) != " ") break;
4724                o < r && s.charAt(o) == "   " ? (n.start.column = o, n.end.column = o + 1) : (n.start.column = 0, n.end.column = o), this.remove(n)
4725            }
4726        }, this.$moveLines = function(e, t, n) {
4727            e = this.getRowFoldStart(e), t = this.getRowFoldEnd(t);
4728            if (n < 0) {
4729                var r = this.getRowFoldStart(e + n);
4730                if (r < 0) return 0;
4731                var i = r - e
4732            } else if (n > 0) {
4733                var r = this.getRowFoldEnd(t + n);
4734                if (r > this.doc.getLength() - 1) return 0;
4735                var i = r - t
4736            } else {
4737                e = this.$clipRowToDocument(e), t = this.$clipRowToDocument(t);
4738                var i = t - e + 1
4739            }
4740            var s = new f(e, 0, t, Number.MAX_VALUE),
4741                o = this.getFoldsInRange(s).map(function(e) {
4742                    return e = e.clone(), e.start.row += i, e.end.row += i, e
4743                }),
4744                u = n == 0 ? this.doc.getLines(e, t) : this.doc.removeFullLines(e, t);
4745            return this.doc.insertFullLines(e + i, u), o.length && this.addFolds(o), i
4746        }, this.moveLinesUp = function(e, t) {
4747            return this.$moveLines(e, t, -1)
4748        }, this.moveLinesDown = function(e, t) {
4749            return this.$moveLines(e, t, 1)
4750        }, this.duplicateLines = function(e, t) {
4751            return this.$moveLines(e, t, 0)
4752        }, this.$clipRowToDocument = function(e) {
4753            return Math.max(0, Math.min(e, this.doc.getLength() - 1))
4754        }, this.$clipColumnToRow = function(e, t) {
4755            return t < 0 ? 0 : Math.min(this.doc.getLine(e).length, t)
4756        }, this.$clipPositionToDocument = function(e, t) {
4757            t = Math.max(0, t);
4758            if (e < 0) e = 0, t = 0;
4759            else {
4760                var n = this.doc.getLength();
4761                e >= n ? (e = n - 1, t = this.doc.getLine(n - 1).length) : t = Math.min(this.doc.getLine(e).length, t)
4762            }
4763            return {
4764                row: e,
4765                column: t
4766            }
4767        }, this.$clipRangeToDocument = function(e) {
4768            e.start.row < 0 ? (e.start.row = 0, e.start.column = 0) : e.start.column = this.$clipColumnToRow(e.start.row, e.start.column);
4769            var t = this.doc.getLength() - 1;
4770            return e.end.row > t ? (e.end.row = t, e.end.column = this.doc.getLine(t).length) : e.end.column = this.$clipColumnToRow(e.end.row, e.end.column), e
4771        }, this.$wrapLimit = 80, this.$useWrapMode = !1, this.$wrapLimitRange = {
4772            min: null,
4773            max: null
4774        }, this.setUseWrapMode = function(e) {
4775            if (e != this.$useWrapMode) {
4776                this.$useWrapMode = e, this.$modified = !0, this.$resetRowCache(0);
4777                if (e) {
4778                    var t = this.getLength();
4779                    this.$wrapData = Array(t), this.$updateWrapData(0, t - 1)
4780                }
4781                this._signal("changeWrapMode")
4782            }
4783        }, this.getUseWrapMode = function() {
4784            return this.$useWrapMode
4785        }, this.setWrapLimitRange = function(e, t) {
4786            if (this.$wrapLimitRange.min !== e || this.$wrapLimitRange.max !== t) this.$wrapLimitRange = {
4787                min: e,
4788                max: t
4789            }, this.$modified = !0, this.$useWrapMode && this._signal("changeWrapMode")
4790        }, this.adjustWrapLimit = function(e, t) {
4791            var n = this.$wrapLimitRange;
4792            n.max < 0 && (n = {
4793                min: t,
4794                max: t
4795            });
4796            var r = this.$constrainWrapLimit(e, n.min, n.max);
4797            return r != this.$wrapLimit && r > 1 ? (this.$wrapLimit = r, this.$modified = !0, this.$useWrapMode && (this.$updateWrapData(0, this.getLength() - 1), this.$resetRowCache(0), this._signal("changeWrapLimit")), !0) : !1
4798        }, this.$constrainWrapLimit = function(e, t, n) {
4799            return t && (e = Math.max(t, e)), n && (e = Math.min(n, e)), e
4800        }, this.getWrapLimit = function() {
4801            return this.$wrapLimit
4802        }, this.setWrapLimit = function(e) {
4803            this.setWrapLimitRange(e, e)
4804        }, this.getWrapLimitRange = function() {
4805            return {
4806                min: this.$wrapLimitRange.min,
4807                max: this.$wrapLimitRange.max
4808            }
4809        }, this.$updateInternalDataOnChange = function(e) {
4810            var t = this.$useWrapMode,
4811                n = e.action,
4812                r = e.start,
4813                i = e.end,
4814                s = r.row,
4815                o = i.row,
4816                u = o - s,
4817                a = null;
4818            this.$updating = !0;
4819            if (u != 0)
4820                if (n === "remove") {
4821                    this[t ? "$wrapData" : "$rowLengthCache"].splice(s, u);
4822                    var f = this.$foldData;
4823                    a = this.getFoldsInRange(e), this.removeFolds(a);
4824                    var l = this.getFoldLine(i.row),
4825                        c = 0;
4826                    if (l) {
4827                        l.addRemoveChars(i.row, i.column, r.column - i.column), l.shiftRow(-u);
4828                        var h = this.getFoldLine(s);
4829                        h && h !== l && (h.merge(l), l = h), c = f.indexOf(l) + 1
4830                    }
4831                    for (c; c < f.length; c++) {
4832                        var l = f[c];
4833                        l.start.row >= i.row && l.shiftRow(-u)
4834                    }
4835                    o = s
4836                } else {
4837                    var p = Array(u);
4838                    p.unshift(s, 0);
4839                    var d = t ? this.$wrapData : this.$rowLengthCache;
4840                    d.splice.apply(d, p);
4841                    var f = this.$foldData,
4842                        l = this.getFoldLine(s),
4843                        c = 0;
4844                    if (l) {
4845                        var v = l.range.compareInside(r.row, r.column);
4846                        v == 0 ? (l = l.split(r.row, r.column), l && (l.shiftRow(u), l.addRemoveChars(o, 0, i.column - r.column))) : v == -1 && (l.addRemoveChars(s, 0, i.column - r.column), l.shiftRow(u)), c = f.indexOf(l) + 1
4847                    }
4848                    for (c; c < f.length; c++) {
4849                        var l = f[c];
4850                        l.start.row >= s && l.shiftRow(u)
4851                    }
4852                } else {
4853                u = Math.abs(e.start.column - e.end.column), n === "remove" && (a = this.getFoldsInRange(e), this.removeFolds(a), u = -u);
4854                var l = this.getFoldLine(s);
4855                l && l.addRemoveChars(s, r.column, u)
4856            }
4857            return t && this.$wrapData.length != this.doc.getLength() && console.error("doc.getLength() and $wrapData.length have to be the same!"), this.$updating = !1, t ? this.$updateWrapData(s, o) : this.$updateRowLengthCache(s, o), a
4858        }, this.$updateRowLengthCache = function(e, t, n) {
4859            this.$rowLengthCache[e] = null, this.$rowLengthCache[t] = null
4860        }, this.$updateWrapData = function(e, t) {
4861            var r = this.doc.getAllLines(),
4862                i = this.getTabSize(),
4863                s = this.$wrapData,
4864                o = this.$wrapLimit,
4865                a, f, l = e;
4866            t = Math.min(t, r.length - 1);
4867            while (l <= t) f = this.getFoldLine(l, f), f ? (a = [], f.walk(function(e, t, i, s) {
4868                var o;
4869                if (e != null) {
4870                    o = this.$getDisplayTokens(e, a.length), o[0] = n;
4871                    for (var f = 1; f < o.length; f++) o[f] = u
4872                } else o = this.$getDisplayTokens(r[t].substring(s, i), a.length);
4873                a = a.concat(o)
4874            }.bind(this), f.end.row, r[f.end.row].length + 1), s[f.start.row] = this.$computeWrapSplits(a, o, i), l = f.end.row + 1) : (a = this.$getDisplayTokens(r[l]), s[l] = this.$computeWrapSplits(a, o, i), l++)
4875        };
4876        var e = 1,
4877            t = 2,
4878            n = 3,
4879            u = 4,
4880            l = 9,
4881            p = 10,
4882            d = 11,
4883            v = 12;
4884        this.$computeWrapSplits = function(e, r, i) {
4885            function g() {
4886                var t = 0;
4887                if (m === 0) return t;
4888                if (h)
4889                    for (var n = 0; n < e.length; n++) {
4890                        var r = e[n];
4891                        if (r == p) t += 1;
4892                        else {
4893                            if (r != d) {
4894                                if (r == v) continue;
4895                                break
4896                            }
4897                            t += i
4898                        }
4899                    }
4900                return c && h !== !1 && (t += i), Math.min(t, m)
4901            }
4902
4903            function y(t) {
4904                var n = e.slice(a, t),
4905                    r = n.length;
4906                n.join("").replace(/12/g, function() {
4907                    r -= 1
4908                }).replace(/2/g, function() {
4909                    r -= 1
4910                }), s.length || (b = g(), s.indent = b), f += r, s.push(f), a = t
4911            }
4912            if (e.length == 0) return [];
4913            var s = [],
4914                o = e.length,
4915                a = 0,
4916                f = 0,
4917                c = this.$wrapAsCode,
4918                h = this.$indentedSoftWrap,
4919                m = r <= Math.max(2 * i, 8) || h === !1 ? 0 : Math.floor(r / 2),
4920                b = 0;
4921            while (o - a > r - b) {
4922                var w = a + r - b;
4923                if (e[w - 1] >= p && e[w] >= p) {
4924                    y(w);
4925                    continue
4926                }
4927                if (e[w] == n || e[w] == u) {
4928                    for (w; w != a - 1; w--)
4929                        if (e[w] == n) break;
4930                    if (w > a) {
4931                        y(w);
4932                        continue
4933                    }
4934                    w = a + r;
4935                    for (w; w < e.length; w++)
4936                        if (e[w] != u) break;
4937                    if (w == e.length) break;
4938                    y(w);
4939                    continue
4940                }
4941                var E = Math.max(w - (r - (r >> 2)), a - 1);
4942                while (w > E && e[w] < n) w--;
4943                if (c) {
4944                    while (w > E && e[w] < n) w--;
4945                    while (w > E && e[w] == l) w--
4946                } else
4947                    while (w > E && e[w] < p) w--;
4948                if (w > E) {
4949                    y(++w);
4950                    continue
4951                }
4952                w = a + r, e[w] == t && w--, y(w - b)
4953            }
4954            return s
4955        }, this.$getDisplayTokens = function(n, r) {
4956            var i = [],
4957                s;
4958            r = r || 0;
4959            for (var o = 0; o < n.length; o++) {
4960                var u = n.charCodeAt(o);
4961                if (u == 9) {
4962                    s = this.getScreenTabSize(i.length + r), i.push(d);
4963                    for (var a = 1; a < s; a++) i.push(v)
4964                } else u == 32 ? i.push(p) : u > 39 && u < 48 || u > 57 && u < 64 ? i.push(l) : u >= 4352 && m(u) ? i.push(e, t) : i.push(e)
4965            }
4966            return i
4967        }, this.$getStringScreenWidth = function(e, t, n) {
4968            if (t == 0) return [0, 0];
4969            t == null && (t = Infinity), n = n || 0;
4970            var r, i;
4971            for (i = 0; i < e.length; i++) {
4972                r = e.charCodeAt(i), r == 9 ? n += this.getScreenTabSize(n) : r >= 4352 && m(r) ? n += 2 : n += 1;
4973                if (n > t) break
4974            }
4975            return [n, i]
4976        }, this.lineWidgets = null, this.getRowLength = function(e) {
4977            if (this.lineWidgets) var t = this.lineWidgets[e] && this.lineWidgets[e].rowCount || 0;
4978            else t = 0;
4979            return !this.$useWrapMode || !this.$wrapData[e] ? 1 + t : this.$wrapData[e].length + 1 + t
4980        }, this.getRowLineCount = function(e) {
4981            return !this.$useWrapMode || !this.$wrapData[e] ? 1 : this.$wrapData[e].length + 1
4982        }, this.getRowWrapIndent = function(e) {
4983            if (this.$useWrapMode) {
4984                var t = this.screenToDocumentPosition(e, Number.MAX_VALUE),
4985                    n = this.$wrapData[t.row];
4986                return n.length && n[0] < t.column ? n.indent : 0
4987            }
4988            return 0
4989        }, this.getScreenLastRowColumn = function(e) {
4990            var t = this.screenToDocumentPosition(e, Number.MAX_VALUE);
4991            return this.documentToScreenColumn(t.row, t.column)
4992        }, this.getDocumentLastRowColumn = function(e, t) {
4993            var n = this.documentToScreenRow(e, t);
4994            return this.getScreenLastRowColumn(n)
4995        }, this.getDocumentLastRowColumnPosition = function(e, t) {
4996            var n = this.documentToScreenRow(e, t);
4997            return this.screenToDocumentPosition(n, Number.MAX_VALUE / 10)
4998        }, this.getRowSplitData = function(e) {
4999            return this.$useWrapMode ? this.$wrapData[e] : undefined
5000        }, this.getScreenTabSize = function(e) {
5001            return this.$tabSize - e % this.$tabSize
5002        }, this.screenToDocumentRow = function(e, t) {
5003            return this.screenToDocumentPosition(e, t).row
5004        }, this.screenToDocumentColumn = function(e, t) {
5005            return this.screenToDocumentPosition(e, t).column
5006        }, this.screenToDocumentPosition = function(e, t) {
5007            if (e < 0) return {
5008                row: 0,
5009                column: 0
5010            };
5011            var n, r = 0,
5012                i = 0,
5013                s, o = 0,
5014                u = 0,
5015                a = this.$screenRowCache,
5016                f = this.$getRowCacheIndex(a, e),
5017                l = a.length;
5018            if (l && f >= 0) var o = a[f],
5019                r = this.$docRowCache[f],
5020                c = e > a[l - 1];
5021            else var c = !l;
5022            var h = this.getLength() - 1,
5023                p = this.getNextFoldLine(r),
5024                d = p ? p.start.row : Infinity;
5025            while (o <= e) {
5026                u = this.getRowLength(r);
5027                if (o + u > e || r >= h) break;
5028                o += u, r++, r > d && (r = p.end.row + 1, p = this.getNextFoldLine(r, p), d = p ? p.start.row : Infinity), c && (this.$docRowCache.push(r), this.$screenRowCache.push(o))
5029            }
5030            if (p && p.start.row <= r) n = this.getFoldDisplayLine(p), r = p.start.row;
5031            else {
5032                if (o + u <= e || r > h) return {
5033                    row: h,
5034                    column: this.getLine(h).length
5035                };
5036                n = this.getLine(r), p = null
5037            }
5038            var v = 0;
5039            if (this.$useWrapMode) {
5040                var m = this.$wrapData[r];
5041                if (m) {
5042                    var g = Math.floor(e - o);
5043                    s = m[g], g > 0 && m.length && (v = m.indent, i = m[g - 1] || m[m.length - 1], n = n.substring(i))
5044                }
5045            }
5046            return i += this.$getStringScreenWidth(n, t - v)[1], this.$useWrapMode && i >= s && (i = s - 1), p ? p.idxToPosition(i) : {
5047                row: r,
5048                column: i
5049            }
5050        }, this.documentToScreenPosition = function(e, t) {
5051            if (typeof t == "undefined") var n = this.$clipPositionToDocument(e.row, e.column);
5052            else n = this.$clipPositionToDocument(e, t);
5053            e = n.row, t = n.column;
5054            var r = 0,
5055                i = null,
5056                s = null;
5057            s = this.getFoldAt(e, t, 1), s && (e = s.start.row, t = s.start.column);
5058            var o, u = 0,
5059                a = this.$docRowCache,
5060                f = this.$getRowCacheIndex(a, e),
5061                l = a.length;
5062            if (l && f >= 0) var u = a[f],
5063                r = this.$screenRowCache[f],
5064                c = e > a[l - 1];
5065            else var c = !l;
5066            var h = this.getNextFoldLine(u),
5067                p = h ? h.start.row : Infinity;
5068            while (u < e) {
5069                if (u >= p) {
5070                    o = h.end.row + 1;
5071                    if (o > e) break;
5072                    h = this.getNextFoldLine(o, h), p = h ? h.start.row : Infinity
5073                } else o = u + 1;
5074                r += this.getRowLength(u), u = o, c && (this.$docRowCache.push(u), this.$screenRowCache.push(r))
5075            }
5076            var d = "";
5077            h && u >= p ? (d = this.getFoldDisplayLine(h, e, t), i = h.start.row) : (d = this.getLine(e).substring(0, t), i = e);
5078            var v = 0;
5079            if (this.$useWrapMode) {
5080                var m = this.$wrapData[i];
5081                if (m) {
5082                    var g = 0;
5083                    while (d.length >= m[g]) r++, g++;
5084                    d = d.substring(m[g - 1] || 0, d.length), v = g > 0 ? m.indent : 0
5085                }
5086            }
5087            return {
5088                row: r,
5089                column: v + this.$getStringScreenWidth(d)[0]
5090            }
5091        }, this.documentToScreenColumn = function(e, t) {
5092            return this.documentToScreenPosition(e, t).column
5093        }, this.documentToScreenRow = function(e, t) {
5094            return this.documentToScreenPosition(e, t).row
5095        }
5095, this.getScreenLength = function() {
5096            var e = 0,
5097                t = null;
5098            if (!this.$useWrapMode) {
5099                e = this.getLength();
5100                var n = this.$foldData;
5101                for (var r = 0; r < n.length; r++) t = n[r], e -= t.end.row - t.start.row
5102            } else {
5103                var i = this.$wrapData.length,
5104                    s = 0,
5105                    r = 0,
5106                    t = this.$foldData[r++],
5107                    o = t ? t.start.row : Infinity;
5108                while (s < i) {
5109                    var u = this.$wrapData[s];
5110                    e += u ? u.length + 1 : 1, s++, s > o && (s = t.end.row + 1, t = this.$foldData[r++], o = t ? t.start.row : Infinity)
5111                }
5112            }
5113            return this.lineWidgets && (e += this.$getWidgetScreenLength()), e
5114        }, this.$setFontMetrics = function(e) {}, this.destroy = function() {
5115            this.bgTokenizer && (this.bgTokenizer.setDocument(null), this.bgTokenizer = null), this.$stopWorker()
5116        }
5117    }).call(p.prototype), e("./edit_session/folding").Folding.call(p.prototype), e("./edit_session/bracket_match").BracketMatch.call(p.prototype), s.defineOptions(p.prototype, "session", {
5118        wrap: {
5119            set: function(e) {
5120                !e || e == "off" ? e = !1 : e == "free" ? e = !0 : e == "printMargin" ? e = -1 : typeof e == "string" && (e = parseInt(e, 10) || !1);
5121                if (this.$wrap == e) return;
5122                this.$wrap = e;
5123                if (!e) this.setUseWrapMode(!1);
5124                else {
5125                    var t = typeof e == "number" ? e : null;
5126                    this.setWrapLimitRange(t, t), this.setUseWrapMode(!0)
5127                }
5128            },
5129            get: function() {
5130                return this.getUseWrapMode() ? this.$wrap == -1 ? "printMargin" : this.getWrapLimitRange().min ? this.$wrap : "free" : "off"
5131            },
5132            handlesSet: !0
5133        },
5134        wrapMethod: {
5135            set: function(e) {
5136                e = e == "auto" ? this.$mode.type != "text" : e != "text", e != this.$wrapAsCode && (this.$wrapAsCode = e, this.$useWrapMode && (this.$modified = !0, this.$resetRowCache(0), this.$updateWrapData(0, this.getLength() - 1)))
5137            },
5138            initialValue: "auto"
5139        },
5140        indentedSoftWrap: {
5141            initialValue: !0
5142        },
5143        firstLineNumber: {
5144            set: function() {
5145                this._signal("changeBreakpoint")
5146            },
5147            initialValue: 1
5148        },
5149        useWorker: {
5150            set: function(e) {
5151                this.$useWorker = e, this.$stopWorker(), e && this.$startWorker()
5152            },
5153            initialValue: !0
5154        },
5155        useSoftTabs: {
5156            initialValue: !0
5157        },
5158        tabSize: {
5159            set: function(e) {
5160                if (isNaN(e) || this.$tabSize === e) return;
5161                this.$modified = !0, this.$rowLengthCache = [], this.$tabSize = e, this._signal("changeTabSize")
5162            },
5163            initialValue: 4,
5164            handlesSet: !0
5165        },
5166        overwrite: {
5167            set: function(e) {
5168                this._signal("changeOverwrite")
5169            },
5170            initialValue: !1
5171        },
5172        newLineMode: {
5173            set: function(e) {
5174                this.doc.setNewLineMode(e)
5175            },
5176            get: function() {
5177                return this.doc.getNewLineMode()
5178            },
5179            handlesSet: !0
5180        },
5181        mode: {
5182            set: function(e) {
5183                this.setMode(e)
5184            },
5185            get: function() {
5186                return this.$modeId
5187            }
5188        }
5189    }), t.EditSession = p
5190}), define("ace/search", ["require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range"], function(e, t, n) {
5191    "use strict";
5192    var r = e("./lib/lang"),
5193        i = e("./lib/oop"),
5194        s = e("./range").Range,
5195        o = function() {
5196            this.$options = {}
5197        };
5198    (function() {
5199        this.set = function(e) {
5200            return i.mixin(this.$options, e), this
5201        }, this.getOptions = function() {
5202            return r.copyObject(this.$options)
5203        }, this.setOptions = function(e) {
5204            this.$options = e
5205        }, this.find = function(e) {
5206            var t = this.$options,
5207                n = this.$matchIterator(e, t);
5208            if (!n) return !1;
5209            var r = null;
5210            return n.forEach(function(e, n, i) {
5211                if (!e.start) {
5212                    var o = e.offset + (i || 0);
5213                    r = new s(n, o, n, o + e.length);
5214                    if (!e.length && t.start && t.start.start && t.skipCurrent != 0 && r.isEqual(t.start)) return r = null, !1
5215                } else r = e;
5216                return !0
5217            }), r
5218        }, this.findAll = function(e) {
5219            var t = this.$options;
5220            if (!t.needle) return [];
5221            this.$assembleRegExp(t);
5222            var n = t.range,
5223                i = n ? e.getLines(n.start.row, n.end.row) : e.doc.getAllLines(),
5224                o = [],
5225                u = t.re;
5226            if (t.$isMultiLine) {
5227                var a = u.length,
5228                    f = i.length - a,
5229                    l;
5230                e: for (var c = u.offset || 0; c <= f; c++) {
5231                    for (var h = 0; h < a; h++)
5232                        if (i[c + h].search(u[h]) == -1) continue e;
5233                    var p = i[c],
5234                        d = i[c + a - 1],
5235                        v = p.length - p.match(u[0])[0].length,
5236                        m = d.match(u[a - 1])[0].length;
5237                    if (l && l.end.row === c && l.end.column > v) continue;
5238                    o.push(l = new s(c, v, c + a - 1, m)), a > 2 && (c = c + a - 2)
5239                }
5240            } else
5241                for (var g = 0; g < i.length; g++) {
5242                    var y = r.getMatchOffsets(i[g], u);
5243                    for (var h = 0; h < y.length; h++) {
5244                        var b = y[h];
5245                        o.push(new s(g, b.offset, g, b.offset + b.length))
5246                    }
5247                }
5248            if (n) {
5249                var w = n.start.column,
5250                    E = n.start.column,
5251                    g = 0,
5252                    h = o.length - 1;
5253                while (g < h && o[g].start.column < w && o[g].start.row == n.start.row) g++;
5254                while (g < h && o[h].end.column > E && o[h].end.row == n.end.row) h--;
5255                o = o.slice(g, h + 1);
5256                for (g = 0, h = o.length; g < h; g++) o[g].start.row += n.start.row, o[g].end.row += n.start.row
5257            }
5258            return o
5259        }, this.replace = function(e, t) {
5260            var n = this.$options,
5261                r = this.$assembleRegExp(n);
5262            if (n.$isMultiLine) return t;
5263            if (!r) return;
5264            var i = r.exec(e);
5265            if (!i || i[0].length != e.length) return null;
5266            t = e.replace(r, t);
5267            if (n.preserveCase) {
5268                t = t.split("");
5269                for (var s = Math.min(e.length, e.length); s--;) {
5270                    var o = e[s];
5271                    o && o.toLowerCase() != o ? t[s] = t[s].toUpperCase() : t[s] = t[s].toLowerCase()
5272                }
5273                t = t.join("")
5274            }
5275            return t
5276        }, this.$matchIterator = function(e, t) {
5277            var n = this.$assembleRegExp(t);
5278            if (!n) return !1;
5279            var i;
5280            if (t.$isMultiLine) var o = n.length,
5281                u = function(t, r, u) {
5282                    var a = t.search(n[0]);
5283                    if (a == -1) return;
5284                    for (var f = 1; f < o; f++) {
5285                        t = e.getLine(r + f);
5286                        if (t.search(n[f]) == -1) return
5287                    }
5288                    var l = t.match(n[o - 1])[0].length,
5289                        c = new s(r, a, r + o - 1, l);
5290                    n.offset == 1 ? (c.start.row--, c.start.column = Number.MAX_VALUE) : u && (c.start.column += u);
5291                    if (i(c)) return !0
5292                };
5293            else if (t.backwards) var u = function(e, t, s) {
5294                var o = r.getMatchOffsets(e, n);
5295                for (var u = o.length - 1; u >= 0; u--)
5296                    if (i(o[u], t, s)) return !0
5297            };
5298            else var u = function(e, t, s) {
5299                var o = r.getMatchOffsets(e, n);
5300                for (var u = 0; u < o.length; u++)
5301                    if (i(o[u], t, s)) return !0
5302            };
5303            var a = this.$lineIterator(e, t);
5304            return {
5305                forEach: function(e) {
5306                    i = e, a.forEach(u)
5307                }
5308            }
5309        }, this.$assembleRegExp = function(e, t) {
5310            if (e.needle instanceof RegExp) return e.re = e.needle;
5311            var n = e.needle;
5312            if (!e.needle) return e.re = !1;
5313            e.regExp || (n = r.escapeRegExp(n)), e.wholeWord && (n = "\\b" + n + "\\b");
5314            var i = e.caseSensitive ? "gm" : "gmi";
5315            e.$isMultiLine = !t && /[\n\r]/.test(n);
5316            if (e.$isMultiLine) return e.re = this.$assembleMultilineRegExp(n, i);
5317            try {
5318                var s = new RegExp(n, i)
5319            } catch (o) {
5320                s = !1
5321            }
5322            return e.re = s
5323        }, this.$assembleMultilineRegExp = function(e, t) {
5324            var n = e.replace(/\r\n|\r|\n/g, "$\n^").split("\n"),
5325                r = [];
5326            for (var i = 0; i < n.length; i++) try {
5327                r.push(new RegExp(n[i], t))
5328            } catch (s) {
5329                return !1
5330            }
5331            return n[0] == "" ? (r.shift(), r.offset = 1) : r.offset = 0, r
5332        }, this.$lineIterator = function(e, t) {
5333            var n = t.backwards == 1,
5334                r = t.skipCurrent != 0,
5335                i = t.range,
5336                s = t.start;
5337            s || (s = i ? i[n ? "end" : "start"] : e.selection.getRange()), s.start && (s = s[r != n ? "end" : "start"]);
5338            var o = i ? i.start.row : 0,
5339                u = i ? i.end.row : e.getLength() - 1,
5340                a = n ? function(n) {
5341                    var r = s.row,
5342                        i = e.getLine(r).substring(0, s.column);
5343                    if (n(i, r)) return;
5344                    for (r--; r >= o; r--)
5345                        if (n(e.getLine(r), r)) return;
5346                    if (t.wrap == 0) return;
5347                    for (r = u, o = s.row; r >= o; r--)
5348                        if (n(e.getLine(r), r)) return
5349                } : function(n) {
5350                    var r = s.row,
5351                        i = e.getLine(r).substr(s.column);
5352                    if (n(i, r, s.column)) return;
5353                    for (r += 1; r <= u; r++)
5354                        if (n(e.getLine(r), r)) return;
5355                    if (t.wrap == 0) return;
5356                    for (r = o, u = s.row; r <= u; r++)
5357                        if (n(e.getLine(r), r)) return
5358                };
5359            return {
5360                forEach: a
5361            }
5362        }
5363    }).call(o.prototype), t.Search = o
5364}), define("ace/keyboard/hash_handler", ["require", "exports", "module", "ace/lib/keys", "ace/lib/useragent"], function(e, t, n) {
5365    "use strict";
5366
5367    function o(e, t) {
5368        this.platform = t || (i.isMac ? "mac" : "win"), this.commands = {}, this.commandKeyBinding = {}, this.addCommands(e), this.$singleCommand = !0
5369    }
5370
5371    function u(e, t) {
5372        o.call(this, e, t), this.$singleCommand = !1
5373    }
5374    var r = e("../lib/keys"),
5375        i = e("../lib/useragent"),
5376        s = r.KEY_MODS;
5377    u.prototype = o.prototype,
5378        function() {
5379            function e(e) {
5380                return typeof e == "object" && e.bindKey && e.bindKey.position || 0
5381            }
5382            this.addCommand = function(e) {
5383                this.commands[e.name] && this.removeCommand(e), this.commands[e.name] = e, e.bindKey && this._buildKeyHash(e)
5384            }, this.removeCommand = function(e, t) {
5385                var n = e && (typeof e == "string" ? e : e.name);
5386                e = this.commands[n], t || delete this.commands[n];
5387                var r = this.commandKeyBinding;
5388                for (var i in r) {
5389                    var s = r[i];
5390                    if (s == e) delete r[i];
5391                    else if (Array.isArray(s)) {
5392                        var o = s.indexOf(e);
5393                        o != -1 && (s.splice(o, 1), s.length == 1 && (r[i] = s[0]))
5394                    }
5395                }
5396            }, this.bindKey = function(e, t, n) {
5397                typeof e == "object" && (n == undefined && (n = e.position), e = e[this.platform]);
5398                if (!e) return;
5399                if (typeof t == "function") return this.addCommand({
5400                    exec: t,
5401                    bindKey: e,
5402                    name: t.name || e
5403                });
5404                e.split("|").forEach(function(e) {
5405                    var r = "";
5406                    if (e.indexOf(" ") != -1) {
5407                        var i = e.split(/\s+/);
5408                        e = i.pop(), i.forEach(function(e) {
5409                            var t = this.parseKeys(e),
5410                                n = s[t.hashId] + t.key;
5411                            r += (r ? " " : "") + n, this._addCommandToBinding(r, "chainKeys")
5412                        }, this), r += " "
5413                    }
5414                    var o = this.parseKeys(e),
5415                        u = s[o.hashId] + o.key;
5416                    this._addCommandToBinding(r + u, t, n)
5417                }, this)
5418            }, this._addCommandToBinding = function(t, n, r) {
5419                var i = this.commandKeyBinding,
5420                    s;
5421                if (!n) delete i[t];
5422                else if (!i[t] || this.$singleCommand) i[t] = n;
5423                else {
5424                    Array.isArray(i[t]) ? (s = i[t].indexOf(n)) != -1 && i[t].splice(s, 1) : i[t] = [i[t]], typeof r != "number" && (r || n.isDefault ? r = -100 : r = e(n));
5425                    var o = i[t];
5426                    for (s = 0; s < o.length; s++) {
5427                        var u = o[s],
5428                            a = e(u);
5429                        if (a > r) break
5430                    }
5431                    o.splice(s, 0, n)
5432                }
5433            }, this.addCommands = function(e) {
5434                e && Object.keys(e).forEach(function(t) {
5435                    var n = e[t];
5436                    if (!n) return;
5437                    if (typeof n == "string") return this.bindKey(n, t);
5438                    typeof n == "function" && (n = {
5439                        exec: n
5440                    });
5441                    if (typeof n != "object") return;
5442                    n.name || (n.name = t), this.addCommand(n)
5443                }, this)
5444            }, this.removeCommands = function(e) {
5445                Object.keys(e).forEach(function(t) {
5446                    this.removeCommand(e[t])
5447                }, this)
5448            }, this.bindKeys = function(e) {
5449                Object.keys(e).forEach(function(t) {
5450                    this.bindKey(t, e[t])
5451                }, this)
5452            }, this._buildKeyHash = function(e) {
5453                this.bindKey(e.bindKey, e)
5454            }, this.parseKeys = function(e) {
5455                var t = e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e) {
5456                        return e
5457                    }),
5458                    n = t.pop(),
5459                    i = r[n];
5460                if (r.FUNCTION_KEYS[i]) n = r.FUNCTION_KEYS[i].toLowerCase();
5461                else {
5462                    if (!t.length) return {
5463                        key: n,
5464                        hashId: -1
5465                    };
5466                    if (t.length == 1 && t[0] == "shift") return {
5467                        key: n.toUpperCase(),
5468                        hashId: -1
5469                    }
5470                }
5471                var s = 0;
5472                for (var o = t.length; o--;) {
5473                    var u = r.KEY_MODS[t[o]];
5474                    if (u == null) return typeof console != "undefined" && console.error("invalid modifier " + t[o] + " in " + e), !1;
5475                    s |= u
5476                }
5477                return {
5478                    key: n,
5479                    hashId: s
5480                }
5481            }, this.findKeyCommand = function(t, n) {
5482                var r = s[t] + n;
5483                return this.commandKeyBinding[r]
5484            }, this.handleKeyboard = function(e, t, n, r) {
5485                var i = s[t] + n,
5486                    o = this.commandKeyBinding[i];
5487                e.$keyChain && (e.$keyChain += " " + i, o = this.commandKeyBinding[e.$keyChain] || o);
5488                if (o)
5489                    if (o == "chainKeys" || o[o.length - 1] == "chainKeys") return e.$keyChain = e.$keyChain || i, {
5490                        command: "null"
5491                    };
5492                if (e.$keyChain)
5493                    if (!!t && t != 4 || n.length != 1) {
5494                        if (t == -1 || r > 0) e.$keyChain = ""
5495                    } else e.$keyChain = e.$keyChain.slice(0, -i.length - 1);
5496                return {
5497                    command: o
5498                }
5499            }
5499, this.getStatusText = function(e, t) {
5500                return t.$keyChain || ""
5501            }
5502        }.call(o.prototype), t.HashHandler = o, t.MultiHashHandler = u
5503}), define("ace/commands/command_manager", ["require", "exports", "module", "ace/lib/oop", "ace/keyboard/hash_handler", "ace/lib/event_emitter"], function(e, t, n) {
5504    "use strict";
5505    var r = e("../lib/oop"),
5506        i = e("../keyboard/hash_handler").MultiHashHandler,
5507        s = e("../lib/event_emitter").EventEmitter,
5508        o = function(e, t) {
5509            i.call(this, t, e), this.byName = this.commands, this.setDefaultHandler("exec", function(e) {
5510                return e.command.exec(e.editor, e.args || {})
5511            })
5512        };
5513    r.inherits(o, i),
5514        function() {
5515            r.implement(this, s), this.exec = function(e, t, n) {
5516                if (Array.isArray(e)) {
5517                    for (var r = e.length; r--;)
5518                        if (this.exec(e[r], t, n)) return !0;
5519                    return !1
5520                }
5521                typeof e == "string" && (e = this.commands[e]);
5522                if (!e) return !1;
5523                if (t && t.$readOnly && !e.readOnly) return !1;
5524                var i = {
5525                    editor: t,
5526                    command: e,
5527                    args: n
5528                };
5529                return i.returnValue = this._emit("exec", i), this._signal("afterExec", i), i.returnValue === !1 ? !1 : !0
5530            }, this.toggleRecording = function(e) {
5531                if (this.$inReplay) return;
5532                return e && e._emit("changeStatus"), this.recording ? (this.macro.pop(), this.removeEventListener("exec", this.$addCommandToMacro), this.macro.length || (this.macro = this.oldMacro), this.recording = !1) : (this.$addCommandToMacro || (this.$addCommandToMacro = function(e) {
5533                    this.macro.push([e.command, e.args])
5534                }.bind(this)), this.oldMacro = this.macro, this.macro = [], this.on("exec", this.$addCommandToMacro), this.recording = !0)
5535            }, this.replay = function(e) {
5536                if (this.$inReplay || !this.macro) return;
5537                if (this.recording) return this.toggleRecording(e);
5538                try {
5539                    this.$inReplay = !0, this.macro.forEach(function(t) {
5540                        typeof t == "string" ? this.exec(t, e) : this.exec(t[0], e, t[1])
5541                    }, this)
5542                } finally {
5543                    this.$inReplay = !1
5544                }
5545            }, this.trimMacro = function(e) {
5546                return e.map(function(e) {
5547                    return typeof e[0] != "string" && (e[0] = e[0].name), e[1] || (e = e[0]), e
5548                })
5549            }
5550        }.call(o.prototype), t.CommandManager = o
5551}), define("ace/commands/default_commands", ["require", "exports", "module", "ace/lib/lang", "ace/config", "ace/range"], function(e, t, n) {
5552    "use strict";
5553
5554    function o(e, t) {
5555        return {
5556            win: e,
5557            mac: t
5558        }
5559    }
5560    var r = e("../lib/lang"),
5561        i = e("../config"),
5562        s = e("../range").Range;
5563    t.commands = [{
5564        name: "showSettingsMenu",
5565        bindKey: o("Ctrl-,", "Command-,"),
5566        exec: function(e) {
5567            i.loadModule("ace/ext/settings_menu", function(t) {
5568                t.init(e), e.showSettingsMenu()
5569            })
5570        },
5571        readOnly: !0
5572    }, {
5573        name: "goToNextError",
5574        bindKey: o("Alt-E", "Ctrl-E"),
5575        exec: function(e) {
5576            i.loadModule("ace/ext/error_marker", function(t) {
5577                t.showErrorMarker(e, 1)
5578            })
5579        },
5580        scrollIntoView: "animate",
5581        readOnly: !0
5582    }, {
5583        name: "goToPreviousError",
5584        bindKey: o("Alt-Shift-E", "Ctrl-Shift-E"),
5585        exec: function(e) {
5586            i.loadModule("ace/ext/error_marker", function(t) {
5587                t.showErrorMarker(e, -1)
5588            })
5589        },
5590        scrollIntoView: "animate",
5591        readOnly: !0
5592    }, {
5593        name: "selectall",
5594        bindKey: o("Ctrl-A", "Command-A"),
5595        exec: function(e) {
5596            e.selectAll()
5597        },
5598        readOnly: !0
5599    }, {
vendor: 4,122 bytes, lines 5600-5742
5600        name: "centerselection",
5601        bindKey: o(null, "Ctrl-L"),
5602        exec: function(e) {
5603            e.centerSelection()
5604        },
5605        readOnly: !0
5606    }, {
5607        name: "gotoline",
5608        bindKey: o("Ctrl-L", "Command-L"),
5609        exec: function(e) {
5610            var t = parseInt(prompt("Enter line number:"), 10);
5611            isNaN(t) || e.gotoLine(t)
5612        },
5613        readOnly: !0
5614    }, {
5615        name: "fold",
5616        bindKey: o("Alt-L|Ctrl-F1", "Command-Alt-L|Command-F1"),
5617        exec: function(e) {
5618            e.session.toggleFold(!1)
5619        },
5620        multiSelectAction: "forEach",
5621        scrollIntoView: "center",
5622        readOnly: !0
5623    }, {
5624        name: "unfold",
5625        bindKey: o("Alt-Shift-L|Ctrl-Shift-F1", "Command-Alt-Shift-L|Command-Shift-F1"),
5626        exec: function(e) {
5627            e.session.toggleFold(!0)
5628        },
5629        multiSelectAction: "forEach",
5630        scrollIntoView: "center",
5631        readOnly: !0
5632    }, {
5633        name: "toggleFoldWidget",
5634        bindKey: o("F2", "F2"),
5635        exec: function(e) {
5636            e.session.toggleFoldWidget()
5637        },
5638        multiSelectAction: "forEach",
5639        scrollIntoView: "center",
5640        readOnly: !0
5641    }, {
5642        name: "toggleParentFoldWidget",
5643        bindKey: o("Alt-F2", "Alt-F2"),
5644        exec: function(e) {
5645            e.session.toggleFoldWidget(!0)
5646        },
5647        multiSelectAction: "forEach",
5648        scrollIntoView: "center",
5649        readOnly: !0
5650    }, {
5651        name: "foldall",
5652        bindKey: o(null, "Ctrl-Command-Option-0"),
5653        exec: function(e) {
5654            e.session.foldAll()
5655        },
5656        scrollIntoView: "center",
5657        readOnly: !0
5658    }, {
5659        name: "foldOther",
5660        bindKey: o("Alt-0", "Command-Option-0"),
5661        exec: function(e) {
5662            e.session.foldAll(), e.session.unfold(e.selection.getAllRanges())
5663        },
5664        scrollIntoView: "center",
5665        readOnly: !0
5666    }, {
5667        name: "unfoldall",
5668        bindKey: o("Alt-Shift-0", "Command-Option-Shift-0"),
5669        exec: function(e) {
5670            e.session.unfold()
5671        },
5672        scrollIntoView: "center",
5673        readOnly: !0
5674    }, {
5675        name: "findnext",
5676        bindKey: o("Ctrl-K", "Command-G"),
5677        exec: function(e) {
5678            e.findNext()
5679        },
5680        multiSelectAction: "forEach",
5681        scrollIntoView: "center",
5682        readOnly: !0
5683    }, {
5684        name: "findprevious",
5685        bindKey: o("Ctrl-Shift-K", "Command-Shift-G"),
5686        exec: function(e) {
5687            e.findPrevious()
5688        },
5689        multiSelectAction: "forEach",
5690        scrollIntoView: "center",
5691        readOnly: !0
5692    }, {
5693        name: "selectOrFindNext",
5694        bindKey: o("Alt-K", "Ctrl-G"),
5695        exec: function(e) {
5696            e.selection.isEmpty() ? e.selection.selectWord() : e.findNext()
5697        },
5698        readOnly: !0
5699    }, {
5700        name: "selectOrFindPrevious",
5701        bindKey: o("Alt-Shift-K", "Ctrl-Shift-G"),
5702        exec: function(e) {
5703            e.selection.isEmpty() ? e.selection.selectWord() : e.findPrevious()
5704        },
5705        readOnly: !0
5706    }, {
5707        name: "find",
5708        bindKey: o("Ctrl-F", "Command-F"),
5709        exec: function(e) {
5710            i.loadModule("ace/ext/searchbox", function(t) {
5711                t.Search(e)
5712            })
5713        },
5714        readOnly: !0
5715    }, {
5716        name: "overwrite",
5717        bindKey: "Insert",
5718        exec: function(e) {
5719            e.toggleOverwrite()
5720        },
5721        readOnly: !0
5722    }, {
5723        name: "selecttostart",
5724        bindKey: o("Ctrl-Shift-Home", "Command-Shift-Up"),
5725        exec: function(e) {
5726            e.getSelection().selectFileStart()
5727        },
5728        multiSelectAction: "forEach",
5729        readOnly: !0,
5730        scrollIntoView: "animate",
5731        aceCommandGroup: "fileJump"
5732    }, {
5733        name: "gotostart",
5734        bindKey: o("Ctrl-Home", "Command-Home|Command-Up"),
5735        exec: function(e) {
5736            e.navigateFileStart()
5737        },
5738        multiSelectAction: "forEach",
5739        readOnly: !0,
5740        scrollIntoView: "animate",
5741        aceCommandGroup: "fileJump"
5742    }, {
5743        name: "selectup",
5744        bindKey: o("Shift-Up", "Shift-Up"),
5745        exec: function(e) {
5746            e.getSelection().selectUp()
5747        },
5748        multiSelectAction: "forEach",
5749        scrollIntoView: "cursor",
5750        readOnly: !0
5751    }, {
5752        name: "golineup",
5753        bindKey: o("Up", "Up|Ctrl-P"),
5754        exec: function(e, t) {
5755            e.navigateUp(t.times)
5756        },
5757        multiSelectAction: "forEach",
5758        scrollIntoView: "cursor",
5759        readOnly: !0
5760    }, {
5761        name: "selecttoend",
5762        bindKey: o("Ctrl-Shift-End", "Command-Shift-Down"),
5763        exec: function(e) {
5764            e.getSelection().selectFileEnd()
5765        },
5766        multiSelectAction: "forEach",
5767        readOnly: !0,
5768        scrollIntoView: "animate",
5769        aceCommandGroup: "fileJump"
5770    }, {
5771        name: "gotoend",
5772        bindKey: o("Ctrl-End", "Command-End|Command-Down"),
5773        exec: function(e) {
5774            e.navigateFileEnd()
5775        },
5776        multiSelectAction: "forEach",
5777        readOnly: !0,
5778        scrollIntoView: "animate",
5779        aceCommandGroup: "fileJump"
5780    }, {
5781        name: "selectdown",
5782        bindKey: o("Shift-Down", "Shift-Down"),
5783        exec: function(e) {
5784            e.getSelection().selectDown()
5785        },
5786        multiSelectAction: "forEach",
5787        scrollIntoView: "cursor",
5788        readOnly: !0
5789    }, {
5790        name: "golinedown",
5791        bindKey: o("Down", "Down|Ctrl-N"),
5792        exec: function(e, t) {
5793            e.navigateDown(t.times)
5794        },
5795        multiSelectAction: "forEach",
5796        scrollIntoView: "cursor",
5797        readOnly: !0
5798    }, {
5799        name: "selectwordleft",
5800        bindKey: o("Ctrl-Shift-Left", "Option-Shift-Left"),
5801        exec: function(e) {
5802            e.getSelection().selectWordLeft()
5803        },
5804        multiSelectAction: "forEach",
5805        scrollIntoView: "cursor",
5806        readOnly: !0
5807    }, {
5808        name: "gotowordleft",
5809        bindKey: o("Ctrl-Left", "Option-Left"),
5810        exec: function(e) {
5811            e.navigateWordLeft()
5812        },
5813        multiSelectAction: "forEach",
5814        scrollIntoView: "cursor",
5815        readOnly: !0
5816    }, {
5817        name: "selecttolinestart",
5818        bindKey: o("Alt-Shift-Left", "Command-Shift-Left"),
5819        exec: function(e) {
5820            e.getSelection().selectLineStart()
5821        },
5822        multiSelectAction: "forEach",
5823        scrollIntoView: "cursor",
5824        readOnly: !0
5825    }, {
5826        name: "gotolinestart",
5827        bindKey: o("Alt-Left|Home", "Command-Left|Home|Ctrl-A"),
5828        exec: function(e) {
5829            e.navigateLineStart()
5830        },
5831        multiSelectAction: "forEach",
5832        scrollIntoView: "cursor",
5833        readOnly: !0
5834    }, {
5835        name: "selectleft",
5836        bindKey: o("Shift-Left", "Shift-Left"),
5837        exec: function(e) {
5838            e.getSelection().selectLeft()
5839        },
5840        multiSelectAction: "forEach",
5841        scrollIntoView: "cursor",
5842        readOnly: !0
5843    }, {
5844        name: "gotoleft",
5845        bindKey: o("Left", "Left|Ctrl-B"),
5846        exec: function(e, t) {
5847            e.navigateLeft(t.times)
5848        },
5849        multiSelectAction: "forEach",
5850        scrollIntoView: "cursor",
5851        readOnly: !0
5852    }, {
5853        name: "selectwordright",
5854        bindKey: o("Ctrl-Shift-Right", "Option-Shift-Right"),
5855        exec: function(e) {
5856            e.getSelection().selectWordRight()
5857        },
5858        multiSelectAction: "forEach",
5859        scrollIntoView: "cursor",
5860        readOnly: !0
5861    }, {
5862        name: "gotowordright",
5863        bindKey: o("Ctrl-Right", "Option-Right"),
5864        exec: function(e) {
5865            e.navigateWordRight()
5866        },
5867        multiSelectAction: "forEach",
5868        scrollIntoView: "cursor",
5869        readOnly: !0
5870    }, {
5871        name: "selecttolineend",
5872        bindKey: o("Alt-Shift-Right", "Command-Shift-Right"),
5873        exec: function(e) {
5874            e.getSelection().selectLineEnd()
5875        },
5876        multiSelectAction: "forEach",
5877        scrollIntoView: "cursor",
5878        readOnly: !0
5879    }, {
5880        name: "gotolineend",
5881        bindKey: o("Alt-Right|End", "Command-Right|End|Ctrl-E"),
vendor: 4,266 bytes, lines 5882-6039
5882        exec: function(e) {
5883            e.navigateLineEnd()
5884        },
5885        multiSelectAction: "forEach",
5886        scrollIntoView: "cursor",
5887        readOnly: !0
5888    }, {
5889        name: "selectright",
5890        bindKey: o("Shift-Right", "Shift-Right"),
5891        exec: function(e) {
5892            e.getSelection().selectRight()
5893        },
5894        multiSelectAction: "forEach",
5895        scrollIntoView: "cursor",
5896        readOnly: !0
5897    }, {
5898        name: "gotoright",
5899        bindKey: o("Right", "Right|Ctrl-F"),
5900        exec: function(e, t) {
5901            e.navigateRight(t.times)
5902        },
5903        multiSelectAction: "forEach",
5904        scrollIntoView: "cursor",
5905        readOnly: !0
5906    }, {
5907        name: "selectpagedown",
5908        bindKey: "Shift-PageDown",
5909        exec: function(e) {
5910            e.selectPageDown()
5911        },
5912        readOnly: !0
5913    }, {
5914        name: "pagedown",
5915        bindKey: o(null, "Option-PageDown"),
5916        exec: function(e) {
5917            e.scrollPageDown()
5918        },
5919        readOnly: !0
5920    }, {
5921        name: "gotopagedown",
5922        bindKey: o("PageDown", "PageDown|Ctrl-V"),
5923        exec: function(e) {
5924            e.gotoPageDown()
5925        },
5926        readOnly: !0
5927    }, {
5928        name: "selectpageup",
5929        bindKey: "Shift-PageUp",
5930        exec: function(e) {
5931            e.selectPageUp()
5932        },
5933        readOnly: !0
5934    }, {
5935        name: "pageup",
5936        bindKey: o(null, "Option-PageUp"),
5937        exec: function(e) {
5938            e.scrollPageUp()
5939        },
5940        readOnly: !0
5941    }, {
5942        name: "gotopageup",
5943        bindKey: "PageUp",
5944        exec: function(e) {
5945            e.gotoPageUp()
5946        },
5947        readOnly: !0
5948    }, {
5949        name: "scrollup",
5950        bindKey: o("Ctrl-Up", null),
5951        exec: function(e) {
5952            e.renderer.scrollBy(0, -2 * e.renderer.layerConfig.lineHeight)
5953        },
5954        readOnly: !0
5955    }, {
5956        name: "scrolldown",
5957        bindKey: o("Ctrl-Down", null),
5958        exec: function(e) {
5959            e.renderer.scrollBy(0, 2 * e.renderer.layerConfig.lineHeight)
5960        },
5961        readOnly: !0
5962    }, {
5963        name: "selectlinestart",
5964        bindKey: "Shift-Home",
5965        exec: function(e) {
5966            e.getSelection().selectLineStart()
5967        },
5968        multiSelectAction: "forEach",
5969        scrollIntoView: "cursor",
5970        readOnly: !0
5971    }, {
5972        name: "selectlineend",
5973        bindKey: "Shift-End",
5974        exec: function(e) {
5975            e.getSelection().selectLineEnd()
5976        },
5977        multiSelectAction: "forEach",
5978        scrollIntoView: "cursor",
5979        readOnly: !0
5980    }, {
5981        name: "togglerecording",
5982        bindKey: o("Ctrl-Alt-E", "Command-Option-E"),
5983        exec: function(e) {
5984            e.commands.toggleRecording(e)
5985        },
5986        readOnly: !0
5987    }, {
5988        name: "replaymacro",
5989        bindKey: o("Ctrl-Shift-E", "Command-Shift-E"),
5990        exec: function(e) {
5991            e.commands.replay(e)
5992        },
5993        readOnly: !0
5994    }, {
5995        name: "jumptomatching",
5996        bindKey: o("Ctrl-P", "Ctrl-P"),
5997        exec: function(e) {
5998            e.jumpToMatching()
5999        },
6000        multiSelectAction: "forEach",
6001        scrollIntoView: "animate",
6002        readOnly: !0
6003    }, {
6004        name: "selecttomatching",
6005        bindKey: o("Ctrl-Shift-P", "Ctrl-Shift-P"),
6006        exec: function(e) {
6007            e.jumpToMatching(!0)
6008        },
6009        multiSelectAction: "forEach",
6010        scrollIntoView: "animate",
6011        readOnly: !0
6012    }, {
6013        name: "expandToMatching",
6014        bindKey: o("Ctrl-Shift-M", "Ctrl-Shift-M"),
6015        exec: function(e) {
6016            e.jumpToMatching(!0, !0)
6017        },
6018        multiSelectAction: "forEach",
6019        scrollIntoView: "animate",
6020        readOnly: !0
6021    }, {
6022        name: "passKeysToBrowser",
6023        bindKey: o(null, null),
6024        exec: function() {},
6025        passEvent: !0,
6026        readOnly: !0
6027    }, {
6028        name: "copy",
6029        exec: function(e) {},
6030        readOnly: !0
6031    }, {
6032        name: "cut",
6033        exec: function(e) {
6034            var t = e.getSelectionRange();
6035            e._emit("cut", t), e.selection.isEmpty() || (e.session.remove(t), e.clearSelection())
6036        },
6037        scrollIntoView: "cursor",
6038        multiSelectAction: "forEach"
6039    }, {
vendor: 8,610 bytes, lines 6040-6315
6040        name: "paste",
6041        exec: function(e, t) {
6042            e.$handlePaste(t)
6043        },
6044        scrollIntoView: "cursor"
6045    }, {
6046        name: "removeline",
6047        bindKey: o("Ctrl-D", "Command-D"),
6048        exec: function(e) {
6049            e.removeLines()
6050        },
6051        scrollIntoView: "cursor",
6052        multiSelectAction: "forEachLine"
6053    }, {
6054        name: "duplicateSelection",
6055        bindKey: o("Ctrl-Shift-D", "Command-Shift-D"),
6056        exec: function(e) {
6057            e.duplicateSelection()
6058        },
6059        scrollIntoView: "cursor",
6060        multiSelectAction: "forEach"
6061    }, {
6062        name: "sortlines",
6063        bindKey: o("Ctrl-Alt-S", "Command-Alt-S"),
6064        exec: function(e) {
6065            e.sortLines()
6066        },
6067        scrollIntoView: "selection",
6068        multiSelectAction: "forEachLine"
6069    }, {
6070        name: "togglecomment",
6071        bindKey: o("Ctrl-/", "Command-/"),
6072        exec: function(e) {
6073            e.toggleCommentLines()
6074        },
6075        multiSelectAction: "forEachLine",
6076        scrollIntoView: "selectionPart"
6077    }, {
6078        name: "toggleBlockComment",
6079        bindKey: o("Ctrl-Shift-/", "Command-Shift-/"),
6080        exec: function(e) {
6081            e.toggleBlockComment()
6082        },
6083        multiSelectAction: "forEach",
6084        scrollIntoView: "selectionPart"
6085    }, {
6086        name: "modifyNumberUp",
6087        bindKey: o("Ctrl-Shift-Up", "Alt-Shift-Up"),
6088        exec: function(e) {
6089            e.modifyNumber(1)
6090        },
6091        scrollIntoView: "cursor",
6092        multiSelectAction: "forEach"
6093    }, {
6094        name: "modifyNumberDown",
6095        bindKey: o("Ctrl-Shift-Down", "Alt-Shift-Down"),
6096        exec: function(e) {
6097            e.modifyNumber(-1)
6098        },
6099        scrollIntoView: "cursor",
6100        multiSelectAction: "forEach"
6101    }, {
6102        name: "replace",
6103        bindKey: o("Ctrl-H", "Command-Option-F"),
6104        exec: function(e) {
6105            i.loadModule("ace/ext/searchbox", function(t) {
6106                t.Search(e, !0)
6107            })
6108        }
6109    }, {
6110        name: "undo",
6111        bindKey: o("Ctrl-Z", "Command-Z"),
6112        exec: function(e) {
6113            e.undo()
6114        }
6115    }, {
6116        name: "redo",
6117        bindKey: o("Ctrl-Shift-Z|Ctrl-Y", "Command-Shift-Z|Command-Y"),
6118        exec: function(e) {
6119            e.redo()
6120        }
6121    }, {
6122        name: "copylinesup",
6123        bindKey: o("Alt-Shift-Up", "Command-Option-Up"),
6124        exec: function(e) {
6125            e.copyLinesUp()
6126        },
6127        scrollIntoView: "cursor"
6128    }, {
6129        name: "movelinesup",
6130        bindKey: o("Alt-Up", "Option-Up"),
6131        exec: function(e) {
6132            e.moveLinesUp()
6133        },
6134        scrollIntoView: "cursor"
6135    }, {
6136        name: "copylinesdown",
6137        bindKey: o("Alt-Shift-Down", "Command-Option-Down"),
6138        exec: function(e) {
6139            e.copyLinesDown()
6140        },
6141        scrollIntoView: "cursor"
6142    }, {
6143        name: "movelinesdown",
6144        bindKey: o("Alt-Down", "Option-Down"),
6145        exec: function(e) {
6146            e.moveLinesDown()
6147        },
6148        scrollIntoView: "cursor"
6149    }, {
6150        name: "del",
6151        bindKey: o("Delete", "Delete|Ctrl-D|Shift-Delete"),
6152        exec: function(e) {
6153            e.remove("right")
6154        },
6155        multiSelectAction: "forEach",
6156        scrollIntoView: "cursor"
6157    }, {
6158        name: "backspace",
6159        bindKey: o("Shift-Backspace|Backspace", "Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),
6160        exec: function(e) {
6161            e.remove("left")
6162        },
6163        multiSelectAction: "forEach",
6164        scrollIntoView: "cursor"
6165    }, {
6166        name: "cut_or_delete",
6167        bindKey: o("Shift-Delete", null),
6168        exec: function(e) {
6169            if (!e.selection.isEmpty()) return !1;
6170            e.remove("left")
6171        },
6172        multiSelectAction: "forEach",
6173        scrollIntoView: "cursor"
6174    }, {
6175        name: "removetolinestart",
6176        bindKey: o("Alt-Backspace", "Command-Backspace"),
6177        exec: function(e) {
6178            e.removeToLineStart()
6179        },
6180        multiSelectAction: "forEach",
6181        scrollIntoView: "cursor"
6182    }, {
6183        name: "removetolineend",
6184        bindKey: o("Alt-Delete", "Ctrl-K"),
6185        exec: function(e) {
6186            e.removeToLineEnd()
6187        },
6188        multiSelectAction: "forEach",
6189        scrollIntoView: "cursor"
6190    }, {
6191        name: "removewordleft",
6192        bindKey: o("Ctrl-Backspace", "Alt-Backspace|Ctrl-Alt-Backspace"),
6193        exec: function(e) {
6194            e.removeWordLeft()
6195        },
6196        multiSelectAction: "forEach",
6197        scrollIntoView: "cursor"
6198    }, {
6199        name: "removewordright",
6200        bindKey: o("Ctrl-Delete", "Alt-Delete"),
6201        exec: function(e) {
6202            e.removeWordRight()
6203        },
6204        multiSelectAction: "forEach",
6205        scrollIntoView: "cursor"
6206    }, {
6207        name: "outdent",
6208        bindKey: o("Shift-Tab", "Shift-Tab"),
6209        exec: function(e) {
6210            e.blockOutdent()
6211        },
6212        multiSelectAction: "forEach",
6213        scrollIntoView: "selectionPart"
6214    }, {
6215        name: "indent",
6216        bindKey: o("Tab", "Tab"),
6217        exec: function(e) {
6218            e.indent()
6219        },
6220        multiSelectAction: "forEach",
6221        scrollIntoView: "selectionPart"
6222    }, {
6223        name: "blockoutdent",
6224        bindKey: o("Ctrl-[", "Ctrl-["),
6225        exec: function(e) {
6226            e.blockOutdent()
6227        },
6228        multiSelectAction: "forEachLine",
6229        scrollIntoView: "selectionPart"
6230    }, {
6231        name: "blockindent",
6232        bindKey: o("Ctrl-]", "Ctrl-]"),
6233        exec: function(e) {
6234            e.blockIndent()
6235        },
6236        multiSelectAction: "forEachLine",
6237        scrollIntoView: "selectionPart"
6238    }, {
6239        name: "insertstring",
6240        exec: function(e, t) {
6241            e.insert(t)
6242        },
6243        multiSelectAction: "forEach",
6244        scrollIntoView: "cursor"
6245    }, {
6246        name: "inserttext",
6247        exec: function(e, t) {
6248            e.insert(r.stringRepeat(t.text || "", t.times || 1))
6249        },
6250        multiSelectAction: "forEach",
6251        scrollIntoView: "cursor"
6252    }, {
6253        name: "splitline",
6254        bindKey: o(null, "Ctrl-O"),
6255        exec: function(e) {
6256            e.splitLine()
6257        },
6258        multiSelectAction: "forEach",
6259        scrollIntoView: "cursor"
6260    }, {
6261        name: "transposeletters",
6262        bindKey: o("Ctrl-T", "Ctrl-T"),
6263        exec: function(e) {
6264            e.transposeLetters()
6265        },
6266        multiSelectAction: function(e) {
6267            e.transposeSelections(1)
6268        },
6269        scrollIntoView: "cursor"
6270    }, {
6271        name: "touppercase",
6272        bindKey: o("Ctrl-U", "Ctrl-U"),
6273        exec: function(e) {
6274            e.toUpperCase()
6275        },
6276        multiSelectAction: "forEach",
6277        scrollIntoView: "cursor"
6278    }, {
6279        name: "tolowercase",
6280        bindKey: o("Ctrl-Shift-U", "Ctrl-Shift-U"),
6281        exec: function(e) {
6282            e.toLowerCase()
6283        },
6284        multiSelectAction: "forEach",
6285        scrollIntoView: "cursor"
6286    }, {
6287        name: "expandtoline",
6288        bindKey: o("Ctrl-Shift-L", "Command-Shift-L"),
6289        exec: function(e) {
6290            var t = e.selection.getRange();
6291            t.start.column = t.end.column = 0, t.end.row++, e.selection.setRange(t, !1)
6292        },
6293        multiSelectAction: "forEach",
6294        scrollIntoView: "cursor",
6295        readOnly: !0
6296    }, {
6297        name: "joinlines",
6298        bindKey: o(null, null),
6299        exec: function(e) {
6300            var t = e.selection.isBackwards(),
6301                n = t ? e.selection.getSelectionLead() : e.selection.getSelectionAnchor(),
6302                i = t ? e.selection.getSelectionAnchor() : e.selection.getSelectionLead(),
6303                o = e.session.doc.getLine(n.row).length,
6304                u = e.session.doc.getTextRange(e.selection.getRange()),
6305                a = u.replace(/\n\s*/, " ").length,
6306                f = e.session.doc.getLine(n.row);
6307            for (var l = n.row + 1; l <= i.row + 1; l++) {
6308                var c = r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(l)));
6309                c.length !== 0 && (c = " " + c), f += c
6310            }
6311            i.row + 1 < e.session.doc.getLength() - 1 && (f += e.session.doc.getNewLineCharacter()), e.clearSelection(), e.session.doc.replace(new s(n.row, 0, i.row + 2, 0), f), a > 0 ? (e.selection.moveCursorTo(n.row, n.column), e.selection.selectTo(n.row, n.column + a)) : (o = e.session.doc.getLine(n.row).length > o ? o + 1 : o, e.selection.moveCursorTo(n.row, o))
6312        },
6313        multiSelectAction: "forEach",
6314        readOnly: !0
6315    }, {
6316        name: "invertSelection",
6317        bindKey: o(null, null),
6318        exec: function(e) {
6319            var t = e.session.doc.getLength() - 1,
6320                n = e.session.doc.getLine(t).length,
6321                r = e.selection.rangeList.ranges,
6322                i = [];
6323            r.length < 1 && (r = [e.selection.getRange()]);
6324            for (var o = 0; o < r.length; o++) o == r.length - 1 && (r[o].end.row !== t || r[o].end.column !== n) && i.push(new s(r[o].end.row, r[o].end.column, t, n)), o === 0 ? (r[o].start.row !== 0 || r[o].start.column !== 0) && i.push(new s(0, 0, r[o].start.row, r[o].start.column)) : i.push(new s(r[o - 1].end.row, r[o - 1].end.column, r[o].start.row, r[o].start.column));
6325            e.exitMultiSelectMode(), e.clearSelection();
6326            for (var o = 0; o < i.length; o++) e.selection.addRange(i[o], !1)
6327        },
6328        readOnly: !0,
6329        scrollIntoView: "none"
6330    }]
6331}), define("ace/editor", ["require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/lib/useragent", "ace/keyboard/textinput", "ace/mouse/mouse_handler", "ace/mouse/fold_handler", "ace/keyboard/keybinding", "ace/edit_session", "ace/search", "ace/range", "ace/lib/event_emitter", "ace/commands/command_manager", "ace/commands/default_commands", "ace/config", "ace/token_iterator"], function(e, t, n) {
6332    "use strict";
6333    e("./lib/fixoldbrowsers");
6334    var r = e("./lib/oop"),
6335        i = e("./lib/dom"),
6336        s = e("./lib/lang"),
6337        o = e("./lib/useragent"),
6338        u = e("./keyboard/textinput").TextInput,
6339        a = e("./mouse/mouse_handler").MouseHandler,
6340        f = e("./mouse/fold_handler").FoldHandler,
6341        l = e("./keyboard/keybinding").KeyBinding,
6342        c = e("./edit_session").EditSession,
6343        h = e("./search").Search,
6344        p = e("./range").Range,
6345        d = e("./lib/event_emitter").EventEmitter,
6346        v = e("./commands/command_manager").CommandManager,
6347        m = e("./commands/default_commands").commands,
6348        g = e("./config"),
6349        y = e("./token_iterator").TokenIterator,
6350        b = function(e, t) {
6351            var n = e.getContainerElement();
6352            this.container = n, this.renderer = e, this.commands = new v(o.isMac ? "mac" : "win", m), this.textInput = new u(e.getTextAreaContainer(), this), this.renderer.textarea = this.textInput.getElement(), this.keyBinding = new l(this), this.$mouseHandler = new a(this), new f(this), this.$blockScrolling = 0, this.$search = (new h).set({
6353                wrap: !0
6354            }), this.$historyTracker = this.$historyTracker.bind(this), this.commands.on("exec", this.$historyTracker), this.$initOperationListeners(), this._$emitInputEvent = s.delayedCall(function() {
6355                this._signal("input", {}), this.session && this.session.bgTokenizer && this.session.bgTokenizer.scheduleStart()
6356            }.bind(this)), this.on("change", function(e, t) {
6357                t._$emitInputEvent.schedule(31)
6358            }), this.setSession(t || new c("")), g.resetOptions(this), g._signal("editor", this)
6359        };
6360    (function() {
6361        r.implement(this, d), this.$initOperationListeners = function() {
6362            function e(e) {
6363                return e[e.length - 1]
6364            }
6365            this.selections = [], this.commands.on("exec", this.startOperation.bind(this), !0), this.commands.on("afterExec", this.endOperation.bind(this), !0), this.$opResetTimer = s.delayedCall(this.endOperation.bind(this)), this.on("change", function() {
6366                this.curOp || this.startOperation(), this.curOp.docChanged = !0
6367            }.bind(this), !0), this.on("changeSelection", function() {
6368                this.curOp || this.startOperation(), this.curOp.selectionChanged = !0
6369            }.bind(this), !0)
6370        }, this.curOp = null, this.prevOp = {}, this.startOperation = function(e) {
6371            if (this.curOp) {
6372                if (!e || this.curOp.command) return;
6373                this.prevOp = this.curOp
6374            }
6375            e || (this.previousCommand = null, e = {}), this.$opResetTimer.schedule(), this.curOp = {
6376                command: e.command || {},
6377                args: e.args,
6378                scrollTop: this.renderer.scrollTop
6379            }, this.curOp.command.name && this.curOp.command.scrollIntoView !== undefined && this.$blockScrolling++
6380        }, this.endOperation = function(e) {
6381            if (this.curOp) {
6382                if (e && e.returnValue === !1) return this.curOp = null;
6383                this._signal("beforeEndOperation");
6384                var t = this.curOp.command;
6385                t.name && this.$blockScrolling > 0 && this.$blockScrolling--;
6386                var n = t && t.scrollIntoView;
6387                if (n) {
6388                    switch (n) {
6389                        case "center-animate":
6390                            n = "animate";
6391                        case "center":
6392                            this.renderer.scrollCursorIntoView(null, .5);
6393                            break;
6394                        case "animate":
6395                        case "cursor":
6396                            this.renderer.scrollCursorIntoView();
6397                            break;
6398                        case "selectionPart":
6399                            var r = this.selection.getRange(),
6400                                i = this.renderer.layerConfig;
6401                            (r.start.row >= i.lastRow || r.end.row <= i.firstRow) && this.renderer.scrollSelectionIntoView(this.selection.anchor, this.selection.lead);
6402                            break;
6403                        default:
6404                    }
6405                    n == "animate" && this.renderer.animateScrolling(this.curOp.scrollTop)
6406                }
6407                this.prevOp = this.curOp, this.curOp = null
6408            }
6409        }, this.$mergeableCommands = ["backspace", "del", "insertstring"], this.$historyTracker = function(e) {
6410            if (!this.$mergeUndoDeltas) return;
6411            var t = this.prevOp,
6412                n = this.$mergeableCommands,
6413                r = t.command && e.command.name == t.command.name;
6414            if (e.command.name == "insertstring") {
6415                var i = e.args;
6416                this.mergeNextCommand === undefined && (this.mergeNextCommand = !0), r = r && this.mergeNextCommand && (!/\s/.test(i) || /\s/.test(t.args)), this.mergeNextCommand = !0
6417            } else r = r && n.indexOf(e.command.name) !== -1;
6418            this.$mergeUndoDeltas != "always" && Date.now() - this.sequenceStartTime > 2e3 && (r = !1), r ? this.session.mergeUndoDeltas = !0 : n.indexOf(e.command.name) !== -1 && (this.sequenceStartTime = Date.now())
6419        }, this.setKeyboardHandler = function(e, t) {
6420            if (e && typeof e == "string") {
6421                this.$keybindingId = e;
6422                var n = this;
6423                g.loadModule(["keybinding", e], function(r) {
6424                    n.$keybindingId == e && n.keyBinding.setKeyboardHandler(r && r.handler), t && t()
6425                })
6426            } else this.$keybindingId = null, this.keyBinding.setKeyboardHandler(e), t && t()
6427        }, this.getKeyboardHandler = function() {
6428            return this.keyBinding.getKeyboardHandler()
6429        }, this.setSession = function(e) {
6430            if (this.session == e) return;
6431            this.curOp && this.endOperation(), this.curOp = {};
6432            var t = this.session;
6433            if (t) {
6434                this.session.removeEventListener("change", this.$onDocumentChange), this.session.removeEventListener("changeMode", this.$onChangeMode), this.session.removeEventListener("tokenizerUpdate", this.$onTokenizerUpdate), this.session.removeEventListener("changeTabSize", this.$onChangeTabSize), this.session.removeEventListener("changeWrapLimit", this.$onChangeWrapLimit), this.session.removeEventListener("changeWrapMode", this.$onChangeWrapMode), this.session.removeEventListener("onChangeFold", this.$onChangeFold), this.session.removeEventListener("changeFrontMarker", this.$onChangeFrontMarker), this.session.removeEventListener("changeBackMarker", this.$onChangeBackMarker), this.session.removeEventListener("changeBreakpoint", this.$onChangeBreakpoint), this.session.removeEventListener("changeAnnotation", this.$onChangeAnnotation), this.session.removeEventListener("changeOverwrite", this.$onCursorChange), this.session.removeEventListener("changeScrollTop", this.$onScrollTopChange), this.session.removeEventListener("changeScrollLeft", this.$onScrollLeftChange);
6435                var n = this.session.getSelection();
6436                n.removeEventListener("changeCursor", this.$onCursorChange), n.removeEventListener("changeSelection", this.$onSelectionChange)
6437            }
6438            this.session = e, e ? (this.$onDocumentChange = this.onDocumentChange.bind(this), e.addEventListener("change", this.$onDocumentChange), this.renderer.setSession(e), this.$onChangeMode = this.onChangeMode.bind(this), e.addEventListener("changeMode", this.$onChangeMode), this.$onTokenizerUpdate = this.onTokenizerUpdate.bind(this), e.addEventListener("tokenizerUpdate", this.$onTokenizerUpdate), this.$onChangeTabSize = this.renderer.onCh
6438angeTabSize.bind(this.renderer), e.addEventListener("changeTabSize", this.$onChangeTabSize), this.$onChangeWrapLimit = this.onChangeWrapLimit.bind(this), e.addEventListener("changeWrapLimit", this.$onChangeWrapLimit), this.$onChangeWrapMode = this.onChangeWrapMode.bind(this), e.addEventListener("changeWrapMode", this.$onChangeWrapMode), this.$onChangeFold = this.onChangeFold.bind(this), e.addEventListener("changeFold", this.$onChangeFold), this.$onChangeFrontMarker = this.onChangeFrontMarker.bind(this), this.session.addEventListener("changeFrontMarker", this.$onChangeFrontMarker), this.$onChangeBackMarker = this.onChangeBackMarker.bind(this), this.session.addEventListener("changeBackMarker", this.$onChangeBackMarker), this.$onChangeBreakpoint = this.onChangeBreakpoint.bind(this), this.session.addEventListener("changeBreakpoint", this.$onChangeBreakpoint), this.$onChangeAnnotation = this.onChangeAnnotation.bind(this), this.session.addEventListener("changeAnnotation", this.$onChangeAnnotation), this.$onCursorChange = this.onCursorChange.bind(this), this.session.addEventListener("changeOverwrite", this.$onCursorChange), this.$onScrollTopChange = this.onScrollTopChange.bind(this), this.session.addEventListener("changeScrollTop", this.$onScrollTopChange), this.$onScrollLeftChange = this.onScrollLeftChange.bind(this), this.session.addEventListener("changeScrollLeft", this.$onScrollLeftChange), this.selection = e.getSelection(), this.selection.addEventListener("changeCursor", this.$onCursorChange), this.$onSelectionChange = this.onSelectionChange.bind(this), this.selection.addEventListener("changeSelection", this.$onSelectionChange), this.onChangeMode(), this.$blockScrolling += 1, this.onCursorChange(), this.$blockScrolling -= 1, this.onScrollTopChange(), this.onScrollLeftChange(), this.onSelectionChange(), this.onChangeFrontMarker(), this.onChangeBackMarker(), this.onChangeBreakpoint(), this.onChangeAnnotation(), this.session.getUseWrapMode() && this.renderer.adjustWrapLimit(), this.renderer.updateFull()) : (this.selection = null, this.renderer.setSession(e)), this._signal("changeSession", {
6439                session: e,
6440                oldSession: t
6441            }), this.curOp = null, t && t._signal("changeEditor", {
6442                oldEditor: this
6443            }), e && e._signal("changeEditor", {
6444                editor: this
6445            })
6446        }, this.getSession = function() {
6447            return this.session
6448        }, this.setValue = function(e, t) {
6449            return this.session.doc.setValue(e), t ? t == 1 ? this.navigateFileEnd() : t == -1 && this.navigateFileStart() : this.selectAll(), e
6450        }, this.getValue = function() {
6451            return this.session.getValue()
6452        }, this.getSelection = function() {
6453            return this.selection
6454        }, this.resize = function(e) {
6455            this.renderer.onResize(e)
6456        }, this.setTheme = function(e, t) {
6457            this.renderer.setTheme(e, t)
6458        }, this.getTheme = function() {
6459            return this.renderer.getTheme()
6460        }, this.setStyle = function(e) {
6461            this.renderer.setStyle(e)
6462        }, this.unsetStyle = function(e) {
6463            this.renderer.unsetStyle(e)
6464        }, this.getFontSize = function() {
6465            return this.getOption("fontSize") || i.computedStyle(this.container, "fontSize")
6466        }, this.setFontSize = function(e) {
6467            this.setOption("fontSize", e)
6468        }, this.$highlightBrackets = function() {
6469            this.session.$bracketHighlight && (this.session.removeMarker(this.session.$bracketHighlight), this.session.$bracketHighlight = null);
6470            if (this.$highlightPending) return;
6471            var e = this;
6472            this.$highlightPending = !0, setTimeout(function() {
6473                e.$highlightPending = !1;
6474                var t = e.session;
6475                if (!t || !t.bgTokenizer) return;
6476                var n = t.findMatchingBracket(e.getCursorPosition());
6477                if (n) var r = new p(n.row, n.column, n.row, n.column + 1);
6478                else if (t.$mode.getMatching) var r = t.$mode.getMatching(e.session);
6479                r && (t.$bracketHighlight = t.addMarker(r, "ace_bracket", "text"))
6480            }, 50)
6481        }, this.$highlightTags = function() {
6482            if (this.$highlightTagPending) return;
6483            var e = this;
6484            this.$highlightTagPending = !0, setTimeout(function() {
6485                e.$highlightTagPending = !1;
6486                var t = e.session;
6487                if (!t || !t.bgTokenizer) return;
6488                var n = e.getCursorPosition(),
6489                    r = new y(e.session, n.row, n.column),
6490                    i = r.getCurrentToken();
6491                if (!i || !/\b(?:tag-open|tag-name)/.test(i.type)) {
6492                    t.removeMarker(t.$tagHighlight), t.$tagHighlight = null;
6493                    return
6494                }
6495                if (i.type.indexOf("tag-open") != -1) {
6496                    i = r.stepForward();
6497                    if (!i) return
6498                }
6499                var s = i.value,
6500                    o = 0,
6501                    u = r.stepBackward();
6502                if (u.value == "<") {
6503                    do u = i, i = r.stepForward(), i && i.value === s && i.type.indexOf("tag-name") !== -1 && (u.value === "<" ? o++ : u.value === "</" && o--); while (i && o >= 0)
6504                } else {
6505                    do i = u, u = r.stepBackward(), i && i.value === s && i.type.indexOf("tag-name") !== -1 && (u.value === "<" ? o++ : u.value === "</" && o--); while (u && o <= 0);
6506                    r.stepForward()
6507                }
6508                if (!i) {
6509                    t.removeMarker(t.$tagHighlight), t.$tagHighlight = null;
6510                    return
6511                }
6512                var a = r.getCurrentTokenRow(),
6513                    f = r.getCurrentTokenColumn(),
6514                    l = new p(a, f, a, f + i.value.length);
6515                t.$tagHighlight && l.compareRange(t.$backMarkers[t.$tagHighlight].range) !== 0 && (t.removeMarker(t.$tagHighlight), t.$tagHighlight = null), l && !t.$tagHighlight && (t.$tagHighlight = t.addMarker(l, "ace_bracket", "text"))
6516            }, 50)
6517        }, this.focus = function() {
6518            var e = this;
6519            setTimeout(function() {
6520                e.textInput.focus()
6521            }), this.textInput.focus()
6522        }, this.isFocused = function() {
6523            return this.textInput.isFocused()
6524        }, this.blur = function() {
6525            this.textInput.blur()
6526        }, this.onFocus = function(e) {
6527            if (this.$isFocused) return;
6528            this.$isFocused = !0, this.renderer.showCursor(), this.renderer.visualizeFocus(), this._emit("focus", e)
6529        }, this.onBlur = function(e) {
6530            if (!this.$isFocused) return;
6531            this.$isFocused = !1, this.renderer.hideCursor(), this.renderer.visualizeBlur(), this._emit("blur", e)
6532        }
6532, this.$cursorChange = function() {
6533            this.renderer.updateCursor()
6534        }, this.onDocumentChange = function(e) {
6535            var t = this.session.$useWrapMode,
6536                n = e.start.row == e.end.row ? e.end.row : Infinity;
6537            this.renderer.updateLines(e.start.row, n, t), this._signal("change", e), this.$cursorChange(), this.$updateHighlightActiveLine()
6538        }, this.onTokenizerUpdate = function(e) {
6539            var t = e.data;
6540            this.renderer.updateLines(t.first, t.last)
6541        }, this.onScrollTopChange = function() {
6542            this.renderer.scrollToY(this.session.getScrollTop())
6543        }, this.onScrollLeftChange = function() {
6544            this.renderer.scrollToX(this.session.getScrollLeft())
6545        }, this.onCursorChange = function() {
6546            this.$cursorChange(), this.$blockScrolling || (g.warn("Automatically scrolling cursor into view after selection change", "this will be disabled in the next version", "set editor.$blockScrolling = Infinity to disable this message"), this.renderer.scrollCursorIntoView()), this.$highlightBrackets(), this.$highlightTags(), this.$updateHighlightActiveLine(), this._signal("changeSelection")
6547        }, this.$updateHighlightActiveLine = function() {
6548            var e = this.getSession(),
6549                t;
6550            if (this.$highlightActiveLine) {
6551                if (this.$selectionStyle != "line" || !this.selection.isMultiLine()) t = this.getCursorPosition();
6552                this.renderer.$maxLines && this.session.getLength() === 1 && !(this.renderer.$minLines > 1) && (t = !1)
6553            }
6554            if (e.$highlightLineMarker && !t) e.removeMarker(e.$highlightLineMarker.id), e.$highlightLineMarker = null;
6555            else if (!e.$highlightLineMarker && t) {
6556                var n = new p(t.row, t.column, t.row, Infinity);
6557                n.id = e.addMarker(n, "ace_active-line", "screenLine"), e.$highlightLineMarker = n
6558            } else t && (e.$highlightLineMarker.start.row = t.row, e.$highlightLineMarker.end.row = t.row, e.$highlightLineMarker.start.column = t.column, e._signal("changeBackMarker"))
6559        }, this.onSelectionChange = function(e) {
6560            var t = this.session;
6561            t.$selectionMarker && t.removeMarker(t.$selectionMarker), t.$selectionMarker = null;
6562            if (!this.selection.isEmpty()) {
6563                var n = this.selection.getRange(),
6564                    r = this.getSelectionStyle();
6565                t.$selectionMarker = t.addMarker(n, "ace_selection", r)
6566            } else this.$updateHighlightActiveLine();
6567            var i = this.$highlightSelectedWord && this.$getSelectionHighLightRegexp();
6568            this.session.highlight(i), this._signal("changeSelection")
6569        }, this.$getSelectionHighLightRegexp = function() {
6570            var e = this.session,
6571                t = this.getSelectionRange();
6572            if (t.isEmpty() || t.isMultiLine()) return;
6573            var n = t.start.column - 1,
6574                r = t.end.column + 1,
6575                i = e.getLine(t.start.row),
6576                s = i.length,
6577                o = i.substring(Math.max(n, 0), Math.min(r, s));
6578            if (n >= 0 && /^[\w\d]/.test(o) || r <= s && /[\w\d]$/.test(o)) return;
6579            o = i.substring(t.start.column, t.end.column);
6580            if (!/^[\w\d]+$/.test(o)) return;
6581            var u = this.$search.$assembleRegExp({
6582                wholeWord: !0,
6583                caseSensitive: !0,
6584                needle: o
6585            });
6586            return u
6587        }, this.onChangeFrontMarker = function() {
6588            this.renderer.updateFrontMarkers()
6589        }, this.onChangeBackMarker = function() {
6590            this.renderer.updateBackMarkers()
6591        }, this.onChangeBreakpoint = function() {
6592            this.renderer.updateBreakpoints()
6593        }, this.onChangeAnnotation = function() {
6594            this.renderer.setAnnotations(this.session.getAnnotations())
6595        }, this.onChangeMode = function(e) {
6596            this.renderer.updateText(), this._emit("changeMode", e)
6597        }, this.onChangeWrapLimit = function() {
6598            this.renderer.updateFull()
6599        }, this.onChangeWrapMode = function() {
6600            this.renderer.onResize(!0)
6601        }, this.onChangeFold = function() {
6602            this.$updateHighlightActiveLine(), this.renderer.updateFull()
6603        }
6603, this.getSelectedText = function() {
6604            return this.session.getTextRange(this.getSelectionRange())
6605        }, this.getCopyText = function() {
6606            var e = this.getSelectedText();
6607            return this._signal("copy", e), e
6608        }, this.onCopy = function() {
6609            this.commands.exec("copy", this)
6610        }, this.onCut = function() {
6611            this.commands.exec("cut", this)
6612        }, this.onPaste = function(e, t) {
6613            var n = {
6614                text: e,
6615                event: t
6616            };
6617            this.commands.exec("paste", this, n)
6618        }, this.$handlePaste = function(e) {
6619            typeof e == "string" && (e = {
6620                text: e
6621            }), this._signal("paste", e);
6622            var t = e.text;
6623            if (!this.inMultiSelectMode || this.inVirtualSelectionMode) this.insert(t);
6624            else {
6625                var n = t.split(/\r\n|\r|\n/),
6626                    r = this.selection.rangeList.ranges;
6627                if (n.length > r.length || n.length < 2 || !n[1]) return this.commands.exec("insertstring", this, t);
6628                for (var i = r.length; i--;) {
6629                    var s = r[i];
6630                    s.isEmpty() || this.session.remove(s), this.session.insert(s.start, n[i])
6631                }
6632            }
6633        }, this.execCommand = function(e, t) {
6634            return this.commands.exec(e, this, t)
6635        }, this.insert = function(e, t) {
6636            var n = this.session,
6637                r = n.getMode(),
6638                i = this.getCursorPosition();
6639            if (this.getBehavioursEnabled() && !t) {
6640                var s = r.transformAction(n.getState(i.row), "insertion", this, n, e);
6641                s && (e !== s.text && (this.session.mergeUndoDeltas = !1, this.$mergeNextCommand = !1), e = s.text)
6642            }
6643            e == "  " && (e = this.session.getTabString());
6644            if (!this.selection.isEmpty()) {
6645                var o = this.getSelectionRange();
6646                i = this.session.remove(o), this.clearSelection()
6647            } else if (this.session.getOverwrite()) {
6648                var o = new p.fromPoints(i, i);
6649                o.end.column += e.length, this.session.remove(o)
6650            }
6651            if (e == "\n" || e == "\r\n") {
6652                var u = n.getLine(i.row);
6653                if (i.column > u.search(/\S|$/)) {
6654                    var a = u.substr(i.column).search(/\S|$/);
6655                    n.doc.removeInLine(i.row, i.column, i.column + a)
6656                }
6657            }
6658            this.clearSelection();
6659            var f = i.column,
6660                l = n.getState(i.row),
6661                u = n.getLine(i.row),
6662                c = r.checkOutdent(l, u, e),
6663                h = n.insert(i, e);
6664            s && s.selection && (s.selection.length == 2 ? this.selection.setSelectionRange(new p(i.row, f + s.selection[0], i.row, f + s.selection[1])) : this.selection.setSelectionRange(new p(i.row + s.selection[0], s.selection[1], i.row + s.selection[2], s.selection[3])));
6665            if (n.getDocument().isNewLine(e)) {
6666                var d = r.getNextLineIndent(l, u.slice(0, i.column), n.getTabString());
6667                n.insert({
6668                    row: i.row + 1,
6669                    column: 0
6670                }, d)
6671            }
6672            c && r.autoOutdent(l, n, i.row)
6673        }, this.onTextInput = function(e) {
6674            this.keyBinding.onTextInput(e)
6675        }, this.onCommandKey = function(e, t, n) {
6676            this.keyBinding.onCommandKey(e, t, n)
6677        }, this.setOverwrite = function(e) {
6678            this.session.setOverwrite(e)
6679        }, this.getOverwrite = function() {
6680            return this.session.getOverwrite()
6681        }, this.toggleOverwrite = function() {
6682            this.session.toggleOverwrite()
6683        }, this.setScrollSpeed = function(e) {
6684            this.setOption("scrollSpeed", e)
6685        }, this.getScrollSpeed = function() {
6686            return this.getOption("scrollSpeed")
6687        }, this.setDragDelay = function(e) {
6688            this.setOption("dragDelay", e)
6689        }, this.getDragDelay = function() {
6690            return this.getOption("dragDelay")
6691        }, this.setSelectionStyle = function(e) {
6692            this.setOption("selectionStyle", e)
6693        }
6693, this.getSelectionStyle = function() {
6694            return this.getOption("selectionStyle")
6695        }, this.setHighlightActiveLine = function(e) {
6696            this.setOption("highlightActiveLine", e)
6697        }, this.getHighlightActiveLine = function() {
6698            return this.getOption("highlightActiveLine")
6699        }, this.setHighlightGutterLine = function(e) {
6700            this.setOption("highlightGutterLine", e)
6701        }, this.getHighlightGutterLine = function() {
6702            return this.getOption("highlightGutterLine")
6703        }, this.setHighlightSelectedWord = function(e) {
6704            this.setOption("highlightSelectedWord", e)
6705        }, this.getHighlightSelectedWord = function() {
6706            return this.$highlightSelectedWord
6707        }, this.setAnimatedScroll = function(e) {
6708            this.renderer.setAnimatedScroll(e)
6709        }, this.getAnimatedScroll = function() {
6710            return this.renderer.getAnimatedScroll()
6711        }, this.setShowInvisibles = function(e) {
6712            this.renderer.setShowInvisibles(e)
6713        }, this.getShowInvisibles = function() {
6714            return this.renderer.getShowInvisibles()
6715        }, this.setDisplayIndentGuides = function(e) {
6716            this.renderer.setDisplayIndentGuides(e)
6717        }, this.getDisplayIndentGuides = function() {
6718            return this.renderer.getDisplayIndentGuides()
6719        }, this.setShowPrintMargin = function(e) {
6720            this.renderer.setShowPrintMargin(e)
6721        }, this.getShowPrintMargin = function() {
6722            return this.renderer.getShowPrintMargin()
6723        }, this.setPrintMarginColumn = function(e) {
6724            this.renderer.setPrintMarginColumn(e)
6725        }, this.getPrintMarginColumn = function() {
6726            return this.renderer.getPrintMarginColumn()
6727        }, this.setReadOnly = function(e) {
6728            this.setOption("readOnly", e)
6729        }, this.getReadOnly = function() {
6730            return this.getOption("readOnly")
6731        }, this.setBehavioursEnabled = function(e) {
6732            this.setOption("behavioursEnabled", e)
6733        }, this.getBehavioursEnabled = function() {
6734            return this.getOption("behavioursEnabled")
6735        }, this.setWrapBehavioursEnabled = function(e) {
6736            this.setOption("wrapBehavioursEnabled", e)
6737        }, this.getWrapBehavioursEnabled = function() {
6738            return this.getOption("wrapBehavioursEnabled")
6739        }, this.setShowFoldWidgets = function(e) {
6740            this.setOption("showFoldWidgets", e)
6741        }, this.getShowFoldWidgets = function() {
6742            return this.getOption("showFoldWidgets")
6743        }, this.setFadeFoldWidgets = function(e) {
6744            this.setOption("fadeFoldWidgets", e)
6745        }, this.getFadeFoldWidgets = function() {
6746            return this.getOption("fadeFoldWidgets")
6747        }, this.remove = function(e) {
6748            this.selection.isEmpty() && (e == "left" ? this.selection.selectLeft() : this.selection.selectRight());
6749            var t = this.getSelectionRange();
6750            if (this.getBehavioursEnabled()) {
6751                var n = this.session,
6752                    r = n.getState(t.start.row),
6753                    i = n.getMode().transformAction(r, "deletion", this, n, t);
6754                if (t.end.column === 0) {
6755                    var s = n.getTextRange(t);
6756                    if (s[s.length - 1] == "\n") {
6757                        var o = n.getLine(t.end.row);
6758                        /^\s+$/.test(o) && (t.end.column = o.length)
6759                    }
6760                }
6761                i && (t = i)
6762            }
6763            this.session.remove(t), this.clearSelection()
6764        }, this.removeWordRight = function() {
6765            this.selection.isEmpty() && this.selection.selectWordRight(), this.session.remove(this.getSelectionRange()), this.clearSelection()
6766        }, this.removeWordLeft = function() {
6767            this.selection.isEmpty() && this.selection.selectWordLeft(), this.session.remove(this.getSelectionRange()), this.clearSelection()
6768        }, this.removeToLineStart = function() {
6769            this.selection.isEmpty() && this.selection.selectLineStart(), this.session.remove(this.getSelectionRange()), this.clearSelection()
6770        }, this.removeToLineEnd = function() {
6771            this.selection.isEmpty() && this.selection.selectLineEnd();
6772            var e = this.getSelectionRange();
6773            e.start.column == e.end.column && e.start.row == e.end.row && (e.end.column = 0, e.end.row++), this.session.remove(e), this.clearSelection()
6774        }, this.splitLine = function() {
6775            this.selection.isEmpty() || (this.session.remove(this.getSelectionRange()), this.clearSelection());
6776            var e = this.getCursorPosition();
6777            this.insert("\n"), this.moveCursorToPosition(e)
6778        }, this.transposeLetters = function() {
6779            if (!this.selection.isEmpty()) return;
6780            var e = this.getCursorPosition(),
6781                t = e.column;
6782            if (t === 0) return;
6783            var n = this.session.getLine(e.row),
6784                r, i;
6785            t < n.length ? (r = n.charAt(t) + n.charAt(t - 1), i = new p(e.row, t - 1, e.row, t + 1)) : (r = n.charAt(t - 1) + n.charAt(t - 2), i = new p(e.row, t - 2, e.row, t)), this.session.replace(i, r)
6786        }, this.toLowerCase = function() {
6787            var e = this.getSelectionRange();
6788            this.selection.isEmpty() && this.selection.selectWord();
6789            var t = this.getSelectionRange(),
6790                n = this.session.getTextRange(t);
6791            this.session.replace(t, n.toLowerCase()), this.selection.setSelectionRange(e)
6792        }, this.toUpperCase = function() {
6793            var e = this.getSelectionRange();
6794            this.selection.isEmpty() && this.selection.selectWord();
6795            var t = this.getSelectionRange(),
6796                n = this.session.getTextRange(t);
6797            this.session.replace(t, n.toUpperCase()), this.selection.setSelectionRange(e)
6798        }, this.indent = function() {
6799            var e = this.session,
6800                t = this.getSelectionRange();
6801            if (t.start.row < t.end.row) {
6802                var n = this.$getSelectedRows();
6803                e.indentRows(n.first, n.last, " ");
6804                return
6805            }
6806            if (t.start.column < t.end.column) {
6807                var r = e.getTextRange(t);
6808                if (!/^\s+$/.test(r)) {
6809                    var n = this.$getSelectedRows();
6810                    e.indentRows(n.first, n.last, " ");
6811                    return
6812                }
6813            }
6814            var i = e.getLine(t.start.row),
6815                o = t.start,
6816                u = e.getTabSize(),
6817                a = e.documentToScreenColumn(o.row, o.column);
6818            if (this.session.getUseSoftTabs()) var f = u - a % u,
6819                l = s.stringRepeat(" ", f);
6820            else {
6821                var f = a % u;
6822                while (i[t.start.column] == " " && f) t.start.column--, f--;
6823                this.selection.setSelectionRange(t), l = "  "
6824            }
6825            return this.insert(l)
6826        }, this.blockIndent = function() {
6827            var e = this.$getSelectedRows();
6828            this.session.indentRows(e.first, e.last, "  ")
6829        }, this.blockOutdent = function() {
6830            var e = this.session.getSelection();
6831            this.session.outdentRows(e.getRange())
6832        }, this.sortLines = function() {
6833            var e = this.$getSelectedRows(),
6834                t = this.session,
6835                n = [];
6836            for (i = e.first; i <= e.last; i++) n.push(t.getLine(i));
6837            n.sort(function(e, t) {
6838                return e.toLowerCase() < t.toLowerCase() ? -1 : e.toLowerCase() > t.toLowerCase() ? 1 : 0
6839            });
6840            var r = new p(0, 0, 0, 0);
6841            for (var i = e.first; i <= e.last; i++) {
6842                var s = t.getLine(i);
6843                r.start.row = i, r.end.row = i, r.end.column = s.length, t.replace(r, n[i - e.first])
6844            }
6845        }, this.toggleCommentLines = function() {
6846            var e = this.session.getState(this.getCursorPosition().row),
6847                t = this.$getSelectedRows();
6848            this.session.getMode().toggleCommentLines(e, this.session, t.first, t.last)
6849        }, this.toggleBlockComment = function() {
6850            var e = this.getCursorPosition(),
6851                t = this.session.getState(e.row),
6852                n = this.getSelectionRange();
6853            this.session.getMode().toggleBlockComment(t, this.session, n, e)
6854        }, this.getNumberAt = function(e, t) {
6855            var n = /[\-]?[0-9]+(?:\.[0-9]+)?/g;
6856            n.lastIndex = 0;
6857            var r = this.session.getLine(e);
6858            while (n.lastIndex < t) {
6859                var i = n.exec(r);
6860                if (i.index <= t && i.index + i[0].length >= t) {
6861                    var s = {
6862                        value: i[0],
6863                        start: i.index,
6864                        end: i.index + i[0].length
6865                    };
6866                    return s
6867                }
6868            }
6869            return null
6870        }, this.modifyNumber = function(e) {
6871            var t = this.selection.getCursor().row,
6872                n = this.selection.getCursor().column,
6873                r = new p(t, n - 1, t, n),
6874                i = this.session.getTextRange(r);
6875            if (!isNaN(parseFloat(i)) && isFinite(i)) {
6876                var s = this.getNumberAt(t, n);
6877                if (s) {
6878                    var o = s.value.indexOf(".") >= 0 ? s.start + s.value.indexOf(".") + 1 : s.end,
6879                        u = s.start + s.value.length - o,
6880                        a = parseFloat(s.value);
6881                    a *= Math.pow(10, u), o !== s.end && n < o ? e *= Math.pow(10, s.end - n - 1) : e *= Math.pow(10, s.end - n), a += e, a /= Math.pow(10, u);
6882                    var f = a.toFixed(u),
6883                        l = new p(t, s.start, t, s.end);
6884                    this.session.replace(l, f), this.moveCursorTo(t, Math.max(s.start + 1, n + f.length - s.value.length))
6885                }
6886            }
6887        }, this.removeLines = function() {
6888            var e = this.$getSelectedRows();
6889            this.session.removeFullLines(e.first, e.last), this.clearSelection()
6890        }, this.duplicateSelection = function() {
6891            var e = this.selection,
6892                t = this.session,
6893                n = e.getRange(),
6894                r = e.isBackwards();
6895            if (n.isEmpty()) {
6896                var i = n.start.row;
6897                t.duplicateLines(i, i)
6898            } else {
6899                var s = r ? n.start : n.end,
6900                    o = t.insert(s, t.getTextRange(n), !1);
6901                n.start = s, n.end = o, e.setSelectionRange(n, r)
6902            }
6903        }, this.moveLinesDown = function() {
6904            this.$moveLines(1, !1)
6905        }, this.moveLinesUp = function() {
6906            this.$moveLines(-1, !1)
6907        }, this.moveText = function(e, t, n) {
6908            return this.session.moveText(e, t, n)
6909        }
6909, this.copyLinesUp = function() {
6910            this.$moveLines(-1, !0)
6911        }, this.copyLinesDown = function() {
6912            this.$moveLines(1, !0)
6913        }, this.$moveLines = function(e, t) {
6914            var n, r, i = this.selection;
6915            if (!i.inMultiSelectMode || this.inVirtualSelectionMode) {
6916                var s = i.toOrientedRange();
6917                n = this.$getSelectedRows(s), r = this.session.$moveLines(n.first, n.last, t ? 0 : e), t && e == -1 && (r = 0), s.moveBy(r, 0), i.fromOrientedRange(s)
6918            } else {
6919                var o = i.rangeList.ranges;
6920                i.rangeList.detach(this.session), this.inVirtualSelectionMode = !0;
6921                var u = 0,
6922                    a = 0,
6923                    f = o.length;
6924                for (var l = 0; l < f; l++) {
6925                    var c = l;
6926                    o[l].moveBy(u, 0), n = this.$getSelectedRows(o[l]);
6927                    var h = n.first,
6928                        p = n.last;
6929                    while (++l < f) {
6930                        a && o[l].moveBy(a, 0);
6931                        var d = this.$getSelectedRows(o[l]);
6932                        if (t && d.first != p) break;
6933                        if (!t && d.first > p + 1) break;
6934                        p = d.last
6935                    }
6936                    l--, u = this.session.$moveLines(h, p, t ? 0 : e), t && e == -1 && (c = l + 1);
6937                    while (c <= l) o[c].moveBy(u, 0), c++;
6938                    t || (u = 0), a += u
6939                }
6940                i.fromOrientedRange(i.ranges[0]), i.rangeList.attach(this.session), this.inVirtualSelectionMode = !1
6941            }
6942        }, this.$getSelectedRows = function(e) {
6943            return e = (e || this.getSelectionRange()).collapseRows(), {
6944                first: this.session.getRowFoldStart(e.start.row),
6945                last: this.session.getRowFoldEnd(e.end.row)
6946            }
6947        }, this.onCompositionStart = function(e) {
6948            this.renderer.showComposition(this.getCursorPosition())
6949        }, this.onCompositionUpdate = function(e) {
6950            this.renderer.setCompositionText(e)
6951        }, this.onCompositionEnd = function() {
6952            this.renderer.hideComposition()
6953        }, this.getFirstVisibleRow = function() {
6954            return this.renderer.getFirstVisibleRow()
6955        }, this.getLastVisibleRow = function() {
6956            return this.renderer.getLastVisibleRow()
6957        }, this.isRowVisible = function(e) {
6958            return e >= this.getFirstVisibleRow() && e <= this.getLastVisibleRow()
6959        }, this.isRowFullyVisible = function(e) {
6960            return e >= this.renderer.getFirstFullyVisibleRow() && e <= this.renderer.getLastFullyVisibleRow()
6961        }, this.$getVisibleRowCount = function() {
6962            return this.renderer.getScrollBottomRow() - this.renderer.getScrollTopRow() + 1
6963        }, this.$moveByPage = function(e, t) {
6964            var n = this.renderer,
6965                r = this.renderer.layerConfig,
6966                i = e * Math.floor(r.height / r.lineHeight);
6967            this.$blockScrolling++, t === !0 ? this.selection.$moveSelection(function() {
6968                this.moveCursorBy(i, 0)
6969            }) : t === !1 && (this.selection.moveCursorBy(i, 0), this.selection.clearSelection()), this.$blockScrolling--;
6970            var s = n.scrollTop;
6971            n.scrollBy(0, i * r.lineHeight), t != null && n.scrollCursorIntoView(null, .5), n.animateScrolling(s)
6972        }, this.selectPageDown = function() {
6973            this.$moveByPage(1, !0)
6974        }, this.selectPageUp = function() {
6975            this.$moveByPage(-1, !0)
6976        }, this.gotoPageDown = function() {
6977            this.$moveByPage(1, !1)
6978        }, this.gotoPageUp = function() {
6979            this.$moveByPage(-1, !1)
6980        }, this.scrollPageDown = function() {
6981            this.$moveByPage(1)
6982        }, this.scrollPageUp = function() {
6983            this.$moveByPage(-1)
6984        }, this.scrollToRow = function(e) {
6985            this.renderer.scrollToRow(e)
6986        }, this.scrollToLine = function(e, t, n, r) {
6987            this.renderer.scrollToLine(e, t, n, r)
6988        }, this.centerSelection = function() {
6989            var e = this.getSelectionRange(),
6990                t = {
6991                    row: Math.floor(e.start.row + (e.end.row - e.start.row) / 2),
6992                    column: Math.floor(e.start.column + (e.end.column - e.start.column) / 2)
6993                };
6994            this.renderer.alignCursor(t, .5)
6995        }, this.getCursorPosition = function() {
6996            return this.selection.getCursor()
6997        }, this.getCursorPositionScreen = function() {
6998            return this.session.documentToScreenPosition(this.getCursorPosition())
6999        }, this.getSelectionRange = function() {
7000            return this.selection.getRange()
7001        }, this.selectAll = function() {
7002            this.$blockScrolling += 1, this.selection.selectAll(), this.$blockScrolling -= 1
7003        }, this.clearSelection = function() {
7004            this.selection.clearSelection()
7005        }, this.moveCursorTo = function(e, t) {
7006            this.selection.moveCursorTo(e, t)
7007        }, this.moveCursorToPosition = function(e) {
7008            this.selection.moveCursorToPosition(e)
7009        }, this.jumpToMatching = function(e, t) {
7010            var n = this.getCursorPosition(),
7011                r = new y(this.session, n.row, n.column),
7012                i = r.getCurrentToken(),
7013                s = i || r.stepForward();
7014            if (!s) return;
7015            var o, u = !1,
7016                a = {},
7017                f = n.column - s.start,
7018                l, c = {
7019                    ")": "(",
7020                    "(": "(",
7021                    "]": "[",
7022                    "[": "[",
7023                    "{": "{",
7024                    "}": "{"
7025                };
7026            do {
7027                if (s.value.match(/[{}()\[\]]/g))
7028                    for (; f < s.value.length && !u; f++) {
7029                        if (!c[s.value[f]]) continue;
7030                        l = c[s.value[f]] + "." + s.type.replace("rparen", "lparen"), isNaN(a[l]) && (a[l] = 0);
7031                        switch (s.value[f]) {
7032                            case "(":
7033                            case "[":
7034                            case "{":
7035                                a[l]++;
7036                                break;
7037                            case ")":
7038                            case "]":
7039                            case "}":
7040                                a[l]--, a[l] === -1 && (o = "bracket", u = !0)
7041                        }
7042                    } else s && s.type.indexOf("tag-name") !== -1 && (isNaN(a[s.value]) && (a[s.value] = 0), i.value === "<" ? a[s.value]++ : i.value === "</" && a[s.value]--, a[s.value] === -1 && (o = "tag", u = !0));
7043                u || (i = s, s = r.stepForward(), f = 0)
7044            } while (s && !u);
7045            if (!o) return;
7046            var h, d;
7047            if (o === "bracket") {
7048                h = this.session.getBracketRange(n);
7049                if (!h) {
7050                    h = new p(r.getCurrentTokenRow(), r.getCurrentTokenColumn() + f - 1, r.getCurrentTokenRow(), r.getCurrentTokenColumn() + f - 1), d = h.start;
7051                    if (t || d.row === n.row && Math.abs(d.column - n.column) < 2) h = this.session.getBracketRange(d)
7052                }
7053            } else if (o === "tag") {
7054                if (!s || s.type.indexOf("tag-name") === -1) return;
7055                var v = s.value;
7056                h = new p(r.getCurrentTokenRow(), r.getCurrentTokenColumn() - 2, r.getCurrentTokenRow(), r.getCurrentTokenColumn() - 2);
7057                if (h.compare(n.row, n.column) === 0) {
7058                    u = !1;
7059                    do s = i, i = r.stepBackward(), i && (i.type.indexOf("tag-close") !== -1 && h.setEnd(r.getCurrentTokenRow(), r.getCurrentTokenColumn() + 1), s.value === v && s.type.indexOf("tag-name") !== -1 && (i.value === "<" ? a[v]++ : i.value === "</" && a[v]--, a[v] === 0 && (u = !0))); while (i && !u)
7060                }
7061                s && s.type.indexOf("tag-name") && (d = h.start, d.row == n.row && Math.abs(d.column - n.column) < 2 && (d = h.end))
7062            }
7063            d = h && h.cursor || d, d && (e ? h && t ? this.selection.setRange(h) : h && h.isEqual(this.getSelectionRange()) ? this.clearSelection() : this.selection.selectTo(d.row, d.column) : this.selection.moveTo(d.row, d.column))
7064        }, this.gotoLine = function(e, t, n) {
7065            this.selection.clearSelection(), this.session.unfold({
7066                row: e - 1,
7067                column: t || 0
7068            }), this.$blockScrolling += 1, this.exitMultiSelectMode && this.exitMultiSelectMode(), this.moveCursorTo(e - 1, t || 0), this.$blockScrolling -= 1, this.isRowFullyVisible(e - 1) || this.scrollToLine(e - 1, !0, n)
7069        }, this.navigateTo = function(e, t) {
7070            this.selection.moveTo(e, t)
7071        }, this.navigateUp = function(e) {
7072            if (this.selection.isMultiLine() && !this.selection.isBackwards()) {
7073                var t = this.selection.anchor.getPosition();
7074                return this.moveCursorToPosition(t)
7075            }
7076            this.selection.clearSelection(), this.selection.moveCursorBy(-e || -1, 0)
7077        }, this.navigateDown = function(e) {
7078            if (this.selection.isMultiLine() && this.selection.isBackwards()) {
7079                var t = this.selection.anchor.getPosition();
7080                return this.moveCursorToPosition(t)
7081            }
7082            this.selection.clearSelection(), this.selection.moveCursorBy(e || 1, 0)
7083        }, this.navigateLeft = function(e) {
7084            if (!this.selection.isEmpty()) {
7085                var t = this.getSelectionRange().start;
7086                this.moveCursorToPosition(t)
7087            } else {
7088                e = e || 1;
7089                while (e--) this.selection.moveCursorLeft()
7090            }
7091            this.clearSelection()
7092        }, this.navigateRight = function(e) {
7093            if (!this.selection.isEmpty()) {
7094                var t = this.getSelectionRange().end;
7095                this.moveCursorToPosition(t)
7096            } else {
7097                e = e || 1;
7098                while (e--) this.selection.moveCursorRight()
7099            }
7100            this.clearSelection()
7101        }, this.navigateLineStart = function() {
7102            this.selection.moveCursorLineStart(), this.clearSelection()
7103        }, this.navigateLineEnd = function() {
7104            this.selection.moveCursorLineEnd(), this.clearSelection()
7105        }, this.navigateFileEnd = function() {
7106            this.selection.moveCursorFileEnd(), this.clearSelection()
7107        }, this.navigateFileStart = function() {
7108            this.selection.moveCursorFileStart(), this.clearSelection()
7109        }, this.navigateWordRight = function() {
7110            this.selection.moveCursorWordRight(), this.clearSelection()
7111        }, this.navigateWordLeft = function() {
7112            this.selection.moveCursorWordLeft(), this.clearSelection()
7113        }, this.replace = function(e, t) {
7114            t && this.$search.set(t);
7115            var n = this.$search.find(this.session),
7116                r = 0;
7117            return n ? (this.$tryReplace(n, e) && (r = 1), n !== null && (this.selection.setSelectionRange(n), this.renderer.scrollSelectionIntoView(n.start, n.end)), r) : r
7118        }, this.replaceAll = function(e, t) {
7119            t && this.$search.set(t);
7120            var n = this.$search.findAll(this.session),
7121                r = 0;
7122            if (!n.length) return r;
7123            this.$blockScrolling += 1;
7124            var i = this.getSelectionRange();
7125            this.selection.moveTo(0, 0);
7126            for (var s = n.length - 1; s >= 0; --s) this.$tryReplace(n[s], e) && r++;
7127            return this.selection.setSelectionRange(i), this.$blockScrolling -= 1, r
7128        }, this.$tryReplace = function(e, t) {
7129            var n = this.session.getTextRange(e);
7130            return t = this.$search.replace(n, t), t !== null ? (e.end = this.session.replace(e, t), e) : null
7131        }, this.getLastSearchOptions = function() {
7132            return this.$search.getOptions()
7133        }, this.find = function(e, t, n) {
7134            t || (t = {}), typeof e == "string" || e instanceof RegExp ? t.needle = e : typeof e == "object" && r.mixin(t, e);
7135            var i = this.selection.getRange();
7136            t.needle == null && (e = this.session.getTextRange(i) || this.$search.$options.needle, e || (i = this.session.getWordRange(i.start.row, i.start.column), e = this.session.getTextRange(i)), this.$search.set({
7137                needle: e
7138            })), this.$search.set(t), t.start || this.$search.set({
7139                start: i
7140            });
7141            var s = this.$search.find(this.session);
7142            if (t.preventScroll) return s;
7143            if (s) return this.revealRange(s, n), s;
7144            t.backwards ? i.start = i.end : i.end = i.start, this.selection.setRange(i)
7145        }, this.findNext = function(e, t) {
7146            this.find({
7147                skipCurrent: !0,
7148                backwards: !1
7149            }, e, t)
7150        }, this.findPrevious = function(e, t) {
7151            this.find(e, {
7152                skipCurrent: !0,
7153                backwards: !0
7154            }, t)
7155        }, this.revealRange = function(e, t) {
7156            this.$blockScrolling += 1, this.session.unfold(e), this.selection.setSelectionRange(e), this.$blockScrolling -= 1;
7157            var n = this.renderer.scrollTop;
7158            this.renderer.scrollSelectionIntoView(e.start, e.end, .5), t !== !1 && this.renderer.animateScrolling(n)
7159        }, this.undo = function() {
7160            this.$blockScrolling++, this.session.getUndoManager().undo(), this.$blockScrolling--, this.renderer.scrollCursorIntoView(null, .5)
7161        }, this.redo = function() {
7162            this.$blockScrolling++, this.session.getUndoManager().redo(), this.$blockScrolling--, this.renderer.scrollCursorIntoView(null, .5)
7163        }, this.destroy = function() {
7164            this.renderer.destroy(), this._signal("destroy", this), this.session && this.session.destroy()
7165        }, this.setAutoScrollEditorIntoView = function(e) {
7166            if (!e) return;
7167            var t, n = this,
7168                r = !1;
7169            this.$scrollAnchor || (this.$scrollAnchor = document.createElement("div"));
7170            var i = this.$scrollAnchor;
7171            i.style.cssText = "position:absolute", this.container.insertBefore(i, this.container.firstChild);
7172            var s = this.on("changeSelection", function() {
7173                    r = !0
7174                }),
7175                o = this.renderer.on("beforeRender", function() {
7176                    r && (t = n.renderer.container.getBoundingClientRect())
7177                }),
7178                u = this.renderer.on("afterRender", function() {
7179                    if (r && t && (n.isFocused() || n.searchBox && n.searchBox.isFocused())) {
7180                        var e = n.renderer,
7181                            s = e.$cursorLayer.$pixelPos,
7182                            o = e.layerConfig,
7183                            u = s.top - o.offset;
7184                        s.top >= 0 && u + t.top < 0 ? r = !0 : s.top < o.height && s.top + t.top + o.lineHeight > window.innerHeight ? r = !1 : r = null, r != null && (i.style.top = u + "px", i.style.left = s.left + "px", i.style.height = o.lineHeight + "px", i.scrollIntoView(r)), r = t = null
7185                    }
7186                });
7187            this.setAutoScrollEditorIntoView = function(e) {
7188                if (e) return;
7189                delete this.setAutoScrollEditorIntoView, this.removeEventListener("changeSelection", s), this.renderer.removeEventListener("afterRender", u), this.renderer.removeEventListener("beforeRender", o)
7190            }
7191        }, this.$resetCursorStyle = function() {
7192            var e = this.$cursorStyle || "ace",
7193                t = this.renderer.$cursorLayer;
7194            if (!t) return;
7195            t.setSmoothBlinking(/smooth/.test(e)), t.isBlinking = !this.$readOnly && e != "wide", i.setCssClass(t.element, "ace_slim-cursors", /slim/.test(e))
7196        }
7197    }).call(b.prototype), g.defineOptions(b.prototype, "editor", {
7198        selectionStyle: {
7199            set: function(e) {
7200                this.onSelectionChange(), this._signal("changeSelectionStyle", {
7201                    data: e
7202                })
7203            },
7204            initialValue: "line"
7205        },
7206        highlightActiveLine: {
7207            set: function() {
7208                this.$updateHighlightActiveLine()
7209            },
7210            initialValue: !0
7211        },
7212        highlightSelectedWord: {
7213            set: function(e) {
7214                this.$onSelectionChange()
7215            },
7216            initialValue: !0
7217        },
7218        readOnly: {
7219            set: function(e) {
7220                this.$resetCursorStyle()
7221            },
7222            initialValue: !1
7223        },
7224        cursorStyle: {
7225            set: function(e) {
7226                this.$resetCursorStyle()
7227            },
7228            values: ["ace", "slim", "smooth", "wide"],
7229            initialValue: "ace"
7230        },
7231        mergeUndoDeltas: {
7232            values: [!1, !0, "always"],
7233            initialValue: !0
7234        },
7235        behavioursEnabled: {
7236            initialValue: !0
7237        },
7238        wrapBehavioursEnabled: {
7239            initialValue: !0
7240        },
7241        autoScrollEditorIntoView: {
7242            set: function(e) {
7243                this.setAutoScrollEditorIntoView(e)
7244            }
7245        },
7246        hScrollBarAlwaysVisible: "renderer",
7247        vScrollBarAlwaysVisible: "renderer",
7248        highlightGutterLine: "renderer",
7249        animatedScroll: "renderer",
7250        showInvisibles: "renderer",
7251        showPrintMargin: "renderer",
7252        printMarginColumn: "renderer",
7253        printMargin: "renderer",
7254        fadeFoldWidgets: "renderer",
7255        showFoldWidgets: "renderer",
7256        showLineNumbers: "renderer",
7257        showGutter: "renderer",
7258        displayIndentGuides: "renderer",
7259        fontSize: "renderer",
7260        fontFamily: "renderer",
7261        maxLines: "renderer",
7262        minLines: "renderer",
7263        scrollPastEnd: "renderer",
7264        fixedWidthGutter: "renderer",
7265        theme: "renderer",
7266        scrollSpeed: "$mouseHandler",
7267        dragDelay: "$mouseHandler",
7268        dragEnabled: "$mouseHandler",
7269        focusTimout: "$mouseHandler",
7270        tooltipFollowsMouse: "$mouseHandler",
7271        firstLineNumber: "session",
7272        overwrite: "session",
7273        newLineMode: "session",
7274        useWorker: "session",
7275        useSoftTabs: "session",
7276        tabSize: "session",
7277        wrap: "session",
7278        indentedSoftWrap: "session",
7279        foldStyle: "session",
7280        mode: "session"
7281    }), t.Editor = b
7282}), define("ace/undomanager", ["require", "exports", "module"], function(e, t, n) {
7283    "use strict";
7284    var r = function() {
7285        this.reset()
7286    };
7287    (function() {
7288        function e(e) {
7289            return {
7290                action: e.action,
7291                start: e.start,
7292                end: e.end,
7293                lines: e.lines.length == 1 ? null : e.lines,
7294                text: e.lines.length == 1 ? e.lines[0] : null
7295            }
7296        }
7297
7298        function t(e) {
7299            return {
7300                action: e.action,
7301                start: e.start,
7302                end: e.end,
7303                lines: e.lines || [e.text]
7304            }
7305        }
7306
7307        function n(e, t) {
7308            var n = new Array(e.length);
7309            for (var r = 0; r < e.length; r++) {
7310                var i = e[r],
7311                    s = {
7312                        group: i.group,
7313                        deltas: new Array(i.length)
7314                    };
7315                for (var o = 0; o < i.deltas.length; o++) {
7316                    var u = i.deltas[o];
7317                    s.deltas[o] = t(u)
7318                }
7319                n[r] = s
7320            }
7321            return n
7322        }
7323        this.execute = function(e) {
7324            var t = e.args[0];
7325            this.$doc = e.args[1], e.merge && this.hasUndo() && (this.dirtyCounter--, t = this.$undoStack.pop().concat(t)), this.$undoStack.push(t), this.$redoStack = [], this.dirtyCounter < 0 && (this.dirtyCounter = NaN), this.dirtyCounter++
7326        }, this.undo = function(e) {
7327            var t = this.$undoStack.pop(),
7328                n = null;
7329            return t && (n = this.$doc.undoChanges(this.$deserializeDeltas(t), e), this.$redoStack.push(t), this.dirtyCounter--), n
7330        }, this.redo = function(e) {
7331            var t = this.$redoStack.pop(),
7332                n = null;
7333            return t && (n = this.$doc.redoChanges(this.$deserializeDeltas(t), e), this.$undoStack.push(t), this.dirtyCounter++), n
7334        }, this.reset = function() {
7335            this.$undoStack = [], this.$redoStack = [], this.dirtyCounter = 0
7336        }, this.hasUndo = function() {
7337            return this.$undoStack.length > 0
7338        }, this.hasRedo = function() {
7339            return this.$redoStack.length > 0
7340        }, this.markClean = function() {
7341            this.dirtyCounter = 0
7342        }, this.isClean = function() {
7343            return this.dirtyCounter === 0
7344        }, this.$serializeDeltas = function(t) {
7345            return n(t, e)
7346        }, this.$deserializeDeltas = function(e) {
7347            return n(e, t)
7348        }
7349    }).call(r.prototype), t.UndoManager = r
7350}), define("ace/layer/gutter", ["require", "exports", "module", "ace/lib/dom", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter"], function(e, t, n) {
7351    "use strict";
7352    var r = e("../lib/dom"),
7353        i = e("../lib/oop"),
7354        s = e("../lib/lang"),
7355        o = e("../lib/event_emitter").EventEmitter,
7356        u = function(e) {
7357            this.element = r.createElement("div"), this.element.className = "ace_layer ace_gutter-layer", e.appendChild(this.element), this.setShowFoldWidgets(this.$showFoldWidgets), this.gutterWidth = 0, this.$annotations = [], this.$updateAnnotations = this.$updateAnnotations.bind(this), this.$cells = []
7358        };
7359    (function() {
7360        i.implement(this, o), this.setSession = function(e) {
7361            this.session && this.session.removeEventListener("change", this.$updateAnnotations), this.session = e, e && e.on("change", this.$updateAnnotations)
7362        }, this.addGutterDecoration = function(e, t) {
7363            window.console && console.warn && console.warn("deprecated use session.addGutterDecoration"), this.session.addGutterDecoration(e, t)
7364        }, this.removeGutterDecoration = function(e, t) {
7365            window.console && console.warn && console.warn("deprecated use session.removeGutterDecoration"), this.session.removeGutterDecoration(e, t)
7366        }, this.setAnnotations = function(e) {
7367            this.$annotations = [];
7368            for (var t = 0; t < e.length; t++) {
7369                var n = e[t],
7370                    r = n.row,
7371                    i = this.$annotations[r];
7372                i || (i = this.$annotations[r] = {
7373                    text: []
7374                });
7375                var o = n.text;
7376                o = o ? s.escapeHTML(o) : n.html || "", i.text.indexOf(o) === -1 && i.text.push(o);
7377                var u = n.type;
7378                u == "error" ? i.className = " ace_error" : u == "warning" && i.className != " ace_error" ? i.className = " ace_warning" : u == "info" && !i.className && (i.className = " ace_info")
7379            }
7380        }, this.$updateAnnotations = function(e) {
7381            if (!this.$annotations.length) return;
7382            var t = e.start.row,
7383                n = e.end.row - t;
7384            if (n !== 0)
7385                if (e.action == "remove") this.$annotations.splice(t, n + 1, null);
7386                else {
7387                    var r = new Array(n + 1);
7388                    r.unshift(t, 1), this.$annotations.splice.apply(this.$annotations, r)
7389                }
7390        }, this.update = function(e) {
7391            var t = this.session,
7392                n = e.firstRow,
7393                i = Math.min(e.lastRow + e.gutterOffset, t.getLength() - 1),
7394                s = t.getNextFoldLine(n),
7395                o = s ? s.start.row : Infinity,
7396                u = this.$showFoldWidgets && t.foldWidgets,
7397                a = t.$breakpoints,
7398                f = t.$decorations,
7399                l = t.$firstLineNumber,
7400                c = 0,
7401                h = t.gutterRenderer || this.$renderer,
7402                p = null,
7403                d = -1,
7404                v = n;
7405            for (;;) {
7406                v > o && (v = s.end.row + 1, s = t.getNextFoldLine(v, s), o = s ? s.start.row : Infinity);
7407                if (v > i) {
7408                    while (this.$cells.length > d + 1) p = this.$cells.pop(), this.element.removeChild(p.element);
7409                    break
7410                }
7411                p = this.$cells[++d], p || (p = {
7412                    element: null,
7413                    textNode: null,
7414                    foldWidget: null
7415                }, p.element = r.createElement("div"), p.textNode = document.createTextNode(""), p.element.appendChild(p.textNode), this.element.appendChild(p.element), this.$cells[d] = p);
7416                var m = "ace_gutter-cell ";
7417                a[v] && (m += a[v]), f[v] && (m += f[v]), this.$annotations[v] && (m += this.$annotations[v].className), p.element.className != m && (p.element.className = m);
7418                var g = t.getRowLength(v) * e.lineHeight + "px";
7419                g != p.element.style.height && (p.element.style.height = g);
7420                if (u) {
7421                    var y = u[v];
7422                    y == null && (y = u[v] = t.getFoldWidget(v))
7423                }
7424                if (y) {
7425                    p.foldWidget || (p.foldWidget = r.createElement("span"), p.element.appendChild(p.foldWidget));
7426                    var m = "ace_fold-widget ace_" + y;
7427                    y == "start" && v == o && v < s.end.row ? m += " ace_closed" : m += " ace_open", p.foldWidget.className != m && (p.foldWidget.className = m);
7428                    var g = e.lineHeight + "px";
7429                    p.foldWidget.style.height != g && (p.foldWidget.style.height = g)
7430                } else p.foldWidget && (p.element.removeChild(p.foldWidget), p.foldWidget = null);
7431                var b = c = h ? h.getText(t, v) : v + l;
7432                b != p.textNode.data && (p.textNode.data = b), v++
7433            }
7434            this.element.style.height = e.minHeight + "px";
7435            if (this.$fixedWidth || t.$useWrapMode) c = t.getLength() + l;
7436            var w = h ? h.getWidth(t, c, e) : c.toString().length * e.characterWidth,
7437                E = this.$padding || this.$computePadding();
7438            w += E.left + E.right, w !== this.gutterWidth && !isNaN(w) && (this.gutterWidth = w, this.element.style.width = Math.ceil(this.gutterWidth) + "px", this._emit("changeGutterWidth", w))
7439        }, this.$fixedWidth = !1, this.$showLineNumbers = !0, this.$renderer = "", this.setShowLineNumbers = function(e) {
7440            this.$renderer = !e && {
7441                getWidth: function() {
7442                    return ""
7443                },
7444                getText: function() {
7445                    return ""
7446                }
7447            }
7448        }
7448, this.getShowLineNumbers = function() {
7449            return this.$showLineNumbers
7450        }, this.$showFoldWidgets = !0, this.setShowFoldWidgets = function(e) {
7451            e ? r.addCssClass(this.element, "ace_folding-enabled") : r.removeCssClass(this.element, "ace_folding-enabled"), this.$showFoldWidgets = e, this.$padding = null
7452        }, this.getShowFoldWidgets = function() {
7453            return this.$showFoldWidgets
7454        }, this.$computePadding = function() {
7455            if (!this.element.firstChild) return {
7456                left: 0,
7457                right: 0
7458            };
7459            var e = r.computedStyle(this.element.firstChild);
7460            return this.$padding = {}, this.$padding.left = parseInt(e.paddingLeft) + 1 || 0, this.$padding.right = parseInt(e.paddingRight) || 0, this.$padding
7461        }, this.getRegion = function(e) {
7462            var t = this.$padding || this.$computePadding(),
7463                n = this.element.getBoundingClientRect();
7464            if (e.x < t.left + n.left) return "markers";
7465            if (this.$showFoldWidgets && e.x > n.right - t.right) return "foldWidgets"
7466        }
7467    }).call(u.prototype), t.Gutter = u
7468}), define("ace/layer/marker", ["require", "exports", "module", "ace/range", "ace/lib/dom"], function(e, t, n) {
7469    "use strict";
7470    var r = e("../range").Range,
7471        i = e("../lib/dom"),
7472        s = function(e) {
7473            this.element = i.createElement("div"), this.element.className = "ace_layer ace_marker-layer", e.appendChild(this.element)
7474        };
7475    (function() {
7476        function e(e, t, n, r) {
7477            return (e ? 1 : 0) | (t ? 2 : 0) | (n ? 4 : 0) | (r ? 8 : 0)
7478        }
7479        this.$padding = 0, this.setPadding = function(e) {
7480            this.$padding = e
7481        }, this.setSession = function(e) {
7482            this.session = e
7483        }, this.setMarkers = function(e) {
7484            this.markers = e
7485        }, this.update = function(e) {
7486            var e = e || this.config;
7487            if (!e) return;
7488            this.config = e;
7489            var t = [];
7490            for (var n in this.markers) {
7491                var r = this.markers[n];
7492                if (!r.range) {
7493                    r.update(t, this, this.session, e);
7494                    continue
7495                }
7496                var i = r.range.clipRows(e.firstRow, e.lastRow);
7497                if (i.isEmpty()) continue;
7498                i = i.toScreenRange(this.session);
7499                if (r.renderer) {
7500                    var s = this.$getTop(i.start.row, e),
7501                        o = this.$padding + i.start.column * e.characterWidth;
7502                    r.renderer(t, i, o, s, e)
7503                } else r.type == "fullLine" ? this.drawFullLineMarker(t, i, r.clazz, e) : r.type == "screenLine" ? this.drawScreenLineMarker(t, i, r.clazz, e) : i.isMultiLine() ? r.type == "text" ? this.drawTextMarker(t, i, r.clazz, e) : this.drawMultiLineMarker(t, i, r.clazz, e) : this.drawSingleLineMarker(t, i, r.clazz + " ace_start" + " ace_br15", e)
7504            }
7505            this.element.innerHTML = t.join("")
7506        }, this.$getTop = function(e, t) {
7507            return (e - t.firstRowScreen) * t.lineHeight
7508        }, this.drawTextMarker = function(t, n, i, s, o) {
7509            var u = this.session,
7510                a = n.start.row,
7511                f = n.end.row,
7512                l = a,
7513                c = 0,
7514                h = 0,
7515                p = u.getScreenLastRowColumn(l),
7516                d = new r(l, n.start.column, l, h);
7517            for (; l <= f; l++) d.start.row = d.end.row = l, d.start.column = l == a ? n.start.column : u.getRowWrapIndent(l), d.end.column = p, c = h, h = p, p = l + 1 < f ? u.getScreenLastRowColumn(l + 1) : l == f ? 0 : n.end.column, this.drawSingleLineMarker(t, d, i + (l == a ? " ace_start" : "") + " ace_br" + e(l == a || l == a + 1 && n.start.column, c < h, h > p, l == f), s, l == f ? 0 : 1, o)
7518        }, this.drawMultiLineMarker = function(e, t, n, r, i) {
7519            var s = this.$padding,
7520                o = r.lineHeight,
7521                u = this.$getTop(t.start.row, r),
7522                a = s + t.start.column * r.characterWidth;
7523            i = i || "", e.push("<div class='", n, " ace_br1 ace_start' style='", "height:", o, "px;", "right:0;", "top:", u, "px;", "left:", a, "px;", i, "'></div>"), u = this.$getTop(t.end.row, r);
7524            var f = t.end.column * r.characterWidth;
7525            e.push("<div class='", n, " ace_br12' style='", "height:", o, "px;", "width:", f, "px;", "top:", u, "px;", "left:", s, "px;", i, "'></div>"), o = (t.end.row - t.start.row - 1) * r.lineHeight;
7526            if (o <= 0) return;
7527            u = this.$getTop(t.start.row + 1, r);
7528            var l = (t.start.column ? 1 : 0) | (t.end.column ? 0 : 8);
7529            e.push("<div class='", n, l ? " ace_br" + l : "", "' style='", "height:", o, "px;", "right:0;", "top:", u, "px;", "left:", s, "px;", i, "'></div>")
7530        }, this.drawSingleLineMarker = function(e, t, n, r, i, s) {
7531            var o = r.lineHeight,
7532                u = (t.end.column + (i || 0) - t.start.column) * r.characterWidth,
7533                a = this.$getTop(t.start.row, r),
7534                f = this.$padding + t.start.column * r.characterWidth;
7535            e.push("<div class='", n, "' style='", "height:", o, "px;", "width:", u, "px;", "top:", a, "px;", "left:", f, "px;", s || "", "'></div>")
7536        }, this.drawFullLineMarker = function(e, t, n, r, i) {
7537            var s = this.$getTop(t.start.row, r),
7538                o = r.lineHeight;
7539            t.start.row != t.end.row && (o += this.$getTop(t.end.row, r) - s), e.push("<div class='", n, "' style='", "height:", o, "px;", "top:", s, "px;", "left:0;right:0;", i || "", "'></div>")
7540        }, this.drawScreenLineMarker = function(e, t, n, r, i) {
7541            var s = this.$getTop(t.start.row, r),
7542                o = r.lineHeight;
7543            e.push("<div class='", n, "' style='", "height:", o, "px;", "top:", s, "px;", "left:0;right:0;", i || "", "'></div>")
7544        }
7545    }).call(s.prototype), t.Marker = s
7546}), define("ace/layer/text", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/lib/useragent", "ace/lib/event_emitter"], function(e, t, n) {
7547    "use strict";
7548    var r = e("../lib/oop"),
7549        i = e("../lib/dom"),
7550        s = e("../lib/lang"),
7551        o = e("../lib/useragent"),
7552        u = e("../lib/event_emitter").EventEmitter,
7553        a = function(e) {
7554            this.element = i.createElement("div"), this.element.className = "ace_layer ace_text-layer", e.appendChild(this.element), this.$updateEolChar = this.$updateEolChar.bind(this)
7555        };
7556    (function() {
7557        r.implement(this, u), this.EOF_CHAR = "\u00b6", this.EOL_CHAR_LF = "\u00ac", this.EOL_CHAR_CRLF = "\u00a4", this.EOL_CHAR = this.EOL_CHAR_LF, this.TAB_CHAR = "\u2014", this.SPACE_CHAR = "\u00b7", this.$padding = 0, this.$updateEolChar = function() {
7558            var e = this.session.doc.getNewLineCharacter() == "\n" ? this.EOL_CHAR_LF : this.EOL_CHAR_CRLF;
7559            if (this.EOL_CHAR != e) return this.EOL_CHAR = e, !0
7560        }, this.setPadding = function(e) {
7561            this.$padding = e, this.element.style.padding = "0 " + e + "px"
7562        }, this.getLineHeight = function() {
7563            return this.$fontMetrics.$characterSize.height || 0
7564        }, this.getCharacterWidth = function() {
7565            return this.$fontMetrics.$characterSize.width || 0
7566        }, this.$setFontMetrics = function(e) {
7567            this.$fontMetrics = e, this.$fontMetrics.on("changeCharacterSize", function(e) {
7568                this._signal("changeCharacterSize", e)
7569            }.bind(this)), this.$pollSizeChanges()
7570        }, this.checkForSizeChanges = function() {
7571            this.$fontMetrics.checkForSizeChanges()
7572        }, this.$pollSizeChanges = function() {
7573            return this.$pollSizeChangesTimer = this.$fontMetrics.$pollSizeChanges()
7574        }, this.setSession = function(e) {
7575            this.session = e, e && this.$computeTabString()
7576        }, this.showInvisibles = !1, this.setShowInvisibles = function(e) {
7577            return this.showInvisibles == e ? !1 : (this.showInvisibles = e, this.$computeTabString(), !0)
7578        }, this.displayIndentGuides = !0, this.setDisplayIndentGuides = function(e) {
7579            return this.displayIndentGuides == e ? !1 : (this.displayIndentGuides = e, this.$computeTabString(), !0)
7580        }, this.$tabStrings = [], this.onChangeTabSize = this.$computeTabString = function() {
7581            var e = this.session.getTabSize();
7582            this.tabSize = e;
7583            var t = this.$tabStrings = [0];
7584            for (var n = 1; n < e + 1; n++) this.showInvisibles ? t.push("<span class='ace_invisible ace_invisible_tab'>" + s.stringRepeat(this.TAB_CHAR, n) + "</span>") : t.push(s.stringRepeat(" ", n));
7585            if (this.displayIndentGuides) {
7586                this.$indentGuideRe = /\s\S| \t|\t |\s$/;
7587                var r = "ace_indent-guide",
7588                    i = "",
7589                    o = "";
7590                if (this.showInvisibles) {
7591                    r += " ace_invisible", i = " ace_invisible_space", o = " ace_invisible_tab";
7592                    var u = s.stringRepeat(this.SPACE_CHAR, this.tabSize),
7593                        a = s.stringRepeat(this.TAB_CHAR, this.tabSize)
7594                } else var u = s.stringRepeat(" ", this.tabSize),
7595                    a = u;
7596                this.$tabStrings[" "] = "<span class='" + r + i + "'>" + u + "</span>", this.$tabStrings["  "] = "<span class='" + r + o + "'>" + a + "</span>"
7597            }
7598        }, this.updateLines = function(e, t, n) {
7599            (this.config.lastRow != e.lastRow || this.config.firstRow != e.firstRow) && this.scrollLines(e), this.config = e;
7600            var r = Math.max(t, e.firstRow),
7601                i = Math.min(n, e.lastRow),
7602                s = this.element.childNodes,
7603                o = 0;
7604            for (var u = e.firstRow; u < r; u++) {
7605                var a = this.session.getFoldLine(u);
7606                if (a) {
7607                    if (a.containsRow(r)) {
7608                        r = a.start.row;
7609                        break
7610                    }
7611                    u = a.end.row
7612                }
7613                o++
7614            }
7615            var u = r,
7616                a = this.session.getNextFoldLine(u),
7617                f = a ? a.start.row : Infinity;
7618            for (;;) {
7619                u > f && (u = a.end.row + 1, a = this.session.getNextFoldLine(u, a), f = a ? a.start.row : Infinity);
7620                if (u > i) break;
7621                var l = s[o++];
7622                if (l) {
7623                    var c = [];
7624                    this.$renderLine(c, u, !this.$useLineGroups(), u == f ? a : !1), l.style.height = e.lineHeight * this.session.getRowLength(u) + "px", l.innerHTML = c.join("")
7625                }
7626                u++
7627            }
7628        }, this.scrollLines = function(e) {
7629            var t = this.config;
7630            this.config = e;
7631            if (!t || t.lastRow < e.firstRow) return this.update(e);
7632            if (e.lastRow < t.firstRow) return this.update(e);
7633            var n = this.element;
7634            if (t.firstRow < e.firstRow)
7635                for (var r = this.session.getFoldedRowCount(t.firstRow, e.firstRow - 1); r > 0; r--) n.removeChild(n.firstChild);
7636            if (t.lastRow > e.lastRow)
7637                for (var r = this.session.getFoldedRowCount(e.lastRow + 1, t.lastRow); r > 0; r--) n.removeChild(n.lastChild);
7638            if (e.firstRow < t.firstRow) {
7639                var i = this.$renderLinesFragment(e, e.firstRow, t.firstRow - 1);
7640                n.firstChild ? n.insertBefore(i, n.firstChild) : n.appendChild(i)
7641            }
7642            if (e.lastRow > t.lastRow) {
7643                var i = this.$renderLinesFragment(e, t.lastRow + 1, e.lastRow);
7644                n.appendChild(i)
7645            }
7646        }, this.$renderLinesFragment = function(e, t, n) {
7647            var r = this.element.ownerDocument.createDocumentFragment(),
7648                s = t,
7649                o = this.session.getNextFoldLine(s),
7650                u = o ? o.start.row : Infinity;
7651            for (;;) {
7652                s > u && (s = o.end.row + 1, o = this.session.getNextFoldLine(s, o), u = o ? o.start.row : Infinity);
7653                if (s > n) break;
7654                var a = i.createElement("div"),
7655                    f = [];
7656                this.$renderLine(f, s, !1, s == u ? o : !1), a.innerHTML = f.join("");
7657                if (this.$useLineGroups()) a.className = "ace_line_group", r.appendChild(a), a.style.height = e.lineHeight * this.session.getRowLength(s) + "px";
7658                else
7659                    while (a.firstChild) r.appendChild(a.firstChild);
7660                s++
7661            }
7662            return r
7663        }, this.update = function(e) {
7664            this.config = e;
7665            var t = [],
7666                n = e.firstRow,
7667                r = e.lastRow,
7668                i = n,
7669                s = this.session.getNextFoldLine(i),
7670                o = s ? s.start.row : Infinity;
7671            for (;;) {
7672                i > o && (i = s.end.row + 1, s = this.session.getNextFoldLine(i, s), o = s ? s.start.row : Infinity);
7673                if (i > r) break;
7674                this.$useLineGroups() && t.push("<div class='ace_line_group' style='height:", e.lineHeight * this.session.getRowLength(i), "px'>"), this.$renderLine(t, i, !1, i == o ? s : !1), this.$useLineGroups() && t.push("</div>"), i++
7675            }
7676            this.element.innerHTML = t.join("")
7677        }, this.$textToken = {
7678            text: !0,
7679            rparen: !0,
7680            lparen: !0
7681        }, this.$renderToken = function(e, t, n, r) {
7682            var i = this,
7683                o = /\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,
7684                u = function(e, n, r, o, u) {
7685                    if (n) return i.showInvisibles ? "<span class='ace_invisible ace_invisible_space'>" + s.stringRepeat(i.SPACE_CHAR, e.length) + "</span>" : e;
7686                    if (e == "&") return "&#38;";
7687                    if (e == "<") return "&#60;";
7688                    if (e == ">") return "&#62;";
7689                    if (e == "  ") {
7690                        var a = i.session.getScreenTabSize(t + o);
7691                        return t += a - 1, i.$tabStrings[a]
7692                    }
7693                    if (e == "\u3000") {
7694                        var f = i.showInvisibles ? "ace_cjk ace_invisible ace_invisible_space" : "ace_cjk",
7695                            l = i.showInvisibles ? i.SPACE_CHAR : "";
7696                        return t += 1, "<span class='" + f + "' style='width:" 
7696+ i.config.characterWidth * 2 + "px'>" + l + "</span>"
7697                    }
7698                    return r ? "<span class='ace_invisible ace_invisible_space ace_invalid'>" + i.SPACE_CHAR + "</span>" : (t += 1, "<span class='ace_cjk' style='width:" + i.config.characterWidth * 2 + "px'>" + e + "</span>")
7699                },
7700                a = r.replace(o, u);
7701            if (!this.$textToken[n.type]) {
7702                var f = "ace_" + n.type.replace(/\./g, " ace_"),
7703                    l = "";
7704                n.type == "fold" && (l = " style='width:" + n.value.length * this.config.characterWidth + "px;' "), e.push("<span class='", f, "'", l, ">", a, "</span>")
7705            } else e.push(a);
7706            return t + r.length
7707        }, this.renderIndentGuide = function(e, t, n) {
7708            var r = t.search(this.$indentGuideRe);
7709            return r <= 0 || r >= n ? t : t[0] == " " ? (r -= r % this.tabSize, e.push(s.stringRepeat(this.$tabStrings[" "], r / this.tabSize)), t.substr(r)) : t[0] == "   " ? (e.push(s.stringRepeat(this.$tabStrings["   "], r)), t.substr(r)) : t
7710        }, this.$renderWrappedLine = function(e, t, n, r) {
7711            var i = 0,
7712                o = 0,
7713                u = n[0],
7714                a = 0;
7715            for (var f = 0; f < t.length; f++) {
7716                var l = t[f],
7717                    c = l.value;
7718                if (f == 0 && this.displayIndentGuides) {
7719                    i = c.length, c = this.renderIndentGuide(e, c, u);
7720                    if (!c) continue;
7721                    i -= c.length
7722                }
7723                if (i + c.length < u) a = this.$renderToken(e, a, l, c), i += c.length;
7724                else {
7725                    while (i + c.length >= u) a = this.$renderToken(e, a, l, c.substring(0, u - i)), c = c.substring(u - i), i = u, r || e.push("</div>", "<div class='ace_line' style='height:", this.config.lineHeight, "px'>"), e.push(s.stringRepeat("\u00a0", n.indent)), o++, a = 0, u = n[o] || Number.MAX_VALUE;
7726                    c.length != 0 && (i += c.length, a = this.$renderToken(e, a, l, c))
7727                }
7728            }
7729        }, this.$renderSimpleLine = function(e, t) {
7730            var n = 0,
7731                r = t[0],
7732                i = r.value;
7733            this.displayIndentGuides && (i = this.renderIndentGuide(e, i)), i && (n = this.$renderToken(e, n, r, i));
7734            for (var s = 1; s < t.length; s++) r = t[s], i = r.value, n = this.$renderToken(e, n, r, i)
7735        }, this.$renderLine = function(e, t, n, r) {
7736            !r && r != 0 && (r = this.session.getFoldLine(t));
7737            if (r) var i = this.$getFoldLineTokens(t, r);
7738            else var i = this.session.getTokens(t);
7739            n || e.push("<div class='ace_line' style='height:", this.config.lineHeight * (this.$useLineGroups() ? 1 : this.session.getRowLength(t)), "px'>");
7740            if (i.length) {
7741                var s = this.session.getRowSplitData(t);
7742                s && s.length ? this.$renderWrappedLine(e, i, s, n) : this.$renderSimpleLine(e, i)
7743            }
7744            this.showInvisibles && (r && (t = r.end.row), e.push("<span class='ace_invisible ace_invisible_eol'>", t == this.session.getLength() - 1 ? this.EOF_CHAR : this.EOL_CHAR, "</span>")), n || e.push("</div>")
7745        }, this.$getFoldLineTokens = function(e, t) {
7746            function i(e, t, n) {
7747                var i = 0,
7748                    s = 0;
7749                while (s + e[i].value.length < t) {
7750                    s += e[i].value.length, i++;
7751                    if (i == e.length) return
7752                }
7753                if (s != t) {
7754                    var o = e[i].value.substring(t - s);
7755                    o.length > n - t && (o = o.substring(0, n - t)), r.push({
7756                        type: e[i].type,
7757                        value: o
7758                    }), s = t + o.length, i += 1
7759                }
7760                while (s < n && i < e.length) {
7761                    var o = e[i].value;
7762                    o.length + s > n ? r.push({
7763                        type: e[i].type,
7764                        value: o.substring(0, n - s)
7765                    }) : r.push(e[i]), s += o.length, i += 1
7766                }
7767            }
7768            var n = this.session,
7769                r = [],
7770                s = n.getTokens(e);
7771            return t.walk(function(e, t, o, u, a) {
7772                e != null ? r.push({
7773                    type: "fold",
7774                    value: e
7775                }) : (a && (s = n.getTokens(t)), s.length && i(s, u, o))
7776            }, t.end.row, this.session.getLine(t.end.row).length), r
7777        }, this.$useLineGroups = function() {
7778            return this.session.getUseWrapMode()
7779        }, this.destroy = function() {
7780            clearInterval(this.$pollSizeChangesTimer), this.$measureNode && this.$measureNode.parentNode.removeChild(this.$measureNode), delete this.$measureNode
7781        }
7782    }).call(a.prototype), t.Text = a
7783}), define("ace/layer/cursor", ["require", "exports", "module", "ace/lib/dom"], function(e, t, n) {
7784    "use strict";
7785    var r = e("../lib/dom"),
7786        i, s = function(e) {
7787            this.element = r.createElement("div"), this.element.className = "ace_layer ace_cursor-layer", e.appendChild(this.element), i === undefined && (i = !("opacity" in this.element.style)), this.isVisible = !1, this.isBlinking = !0, this.blinkInterval = 1e3, this.smoothBlinking = !1, this.cursors = [], this.cursor = this.addCursor(), r.addCssClass(this.element, "ace_hidden-cursors"), this.$updateCursors = (i ? this.$updateVisibility : this.$updateOpacity).bind(this)
7788        };
7789    (function() {
7790        this.$updateVisibility = function(e) {
7791            var t = this.cursors;
7792            for (var n = t.length; n--;) t[n].style.visibility = e ? "" : "hidden"
7793        }, this.$updateOpacity = function(e) {
7794            var t = this.cursors;
7795            for (var n = t.length; n--;) t[n].style.opacity = e ? "" : "0"
7796        }, this.$padding = 0, this.setPadding = function(e) {
7797            this.$padding = e
7798        }, this.setSession = function(e) {
7799            this.session = e
7800        }, this.setBlinking = function(e) {
7801            e != this.isBlinking && (this.isBlinking = e, this.restartTimer())
7802        }, this.setBlinkInterval = function(e) {
7803            e != this.blinkInterval && (this.blinkInterval = e, this.restartTimer())
7804        }, this.setSmoothBlinking = function(e) {
7805            e != this.smoothBlinking && !i && (this.smoothBlinking = e, r.setCssClass(this.element, "ace_smooth-blinking", e), this.$updateCursors(!0), this.$updateCursors = this.$updateOpacity.bind(this), this.restartTimer())
7806        }, this.addCursor = function() {
7807            var e = r.createElement("div");
7808            return e.className = "ace_cursor", this.element.appendChild(e), this.cursors.push(e), e
7809        }, this.removeCursor = function() {
7810            if (this.cursors.length > 1) {
7811                var e = this.cursors.pop();
7812                return e.parentNode.removeChild(e), e
7813            }
7814        }, this.hideCursor = function() {
7815            this.isVisible = !1, r.addCssClass(this.element, "ace_hidden-cursors"), this.restartTimer()
7816        }, this.showCursor = function() {
7817            this.isVisible = !0, r.removeCssClass(this.element, "ace_hidden-cursors"), this.restartTimer()
7818        }, this.restartTimer = function() {
7819            var e = this.$updateCursors;
7820            clearInterval(this.intervalId), clearTimeout(this.timeoutId), this.smoothBlinking && r.removeCssClass(this.element, "ace_smooth-blinking"), e(!0);
7821            if (!this.isBlinking || !this.blinkInterval || !this.isVisible) return;
7822            this.smoothBlinking && setTimeout(function() {
7823                r.addCssClass(this.element, "ace_smooth-blinking")
7824            }.bind(this));
7825            var t = function() {
7826                this.timeoutId = setTimeout(function() {
7827                    e(!1)
7828                }, .6 * this.blinkInterval)
7829            }.bind(this);
7830            this.intervalId = setInterval(function() {
7831                e(!0), t()
7832            }, this.blinkInterval), t()
7833        }, this.getPixelPosition = function(e, t) {
7834            if (!this.config || !this.session) return {
7835                left: 0,
7836                top: 0
7837            };
7838            e || (e = this.session.selection.getCursor());
7839            var n = this.session.documentToScreenPosition(e),
7840                r = this.$padding + n.column * this.config.characterWidth,
7841                i = (n.row - (t ? this.config.firstRowScreen : 0)) * this.config.lineHeight;
7842            return {
7843                left: r,
7844                top: i
7845            }
7846        }, this.update = function(e) {
7847            this.config = e;
7848            var t = this.session.$selectionMarkers,
7849                n = 0,
7850                r = 0;
7851            if (t === undefined || t.length === 0) t = [{
7852                cursor: null
7853            }];
7854            for (var n = 0, i = t.length; n < i; n++) {
7855                var s = this.getPixelPosition(t[n].cursor, !0);
7856                if ((s.top > e.height + e.offset || s.top < 0) && n > 1) continue;
7857                var o = (this.cursors[r++] || this.addCursor()).style;
7858                this.drawCursor ? this.drawCursor(o, s, e, t[n], this.session) : (o.left = s.left + "px", o.top = s.top + "px", o.width = e.characterWidth + "px", o.height = e.lineHeight + "px")
7859            }
7860            while (this.cursors.length >
7860 r) this.removeCursor();
7861            var u = this.session.getOverwrite();
7862            this.$setOverwrite(u), this.$pixelPos = s, this.restartTimer()
7863        }, this.drawCursor = null, this.$setOverwrite = function(e) {
7864            e != this.overwrite && (this.overwrite = e, e ? r.addCssClass(this.element, "ace_overwrite-cursors") : r.removeCssClass(this.element, "ace_overwrite-cursors"))
7865        }, this.destroy = function() {
7866            clearInterval(this.intervalId), clearTimeout(this.timeoutId)
7867        }
7868    }).call(s.prototype), t.Cursor = s
7869}), define("ace/scrollbar", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/event", "ace/lib/event_emitter"], function(e, t, n) {
7870    "use strict";
7871    var r = e("./lib/oop"),
7872        i = e("./lib/dom"),
7873        s = e("./lib/event"),
7874        o = e("./lib/event_emitter").EventEmitter,
7875        u = function(e) {
7876            this.element = i.createElement("div"), this.element.className = "ace_scrollbar ace_scrollbar" + this.classSuffix, this.inner = i.createElement("div"), this.inner.className = "ace_scrollbar-inner", this.element.appendChild(this.inner), e.appendChild(this.element), this.setVisible(!1), this.skipEvent = !1, s.addListener(this.element, "scroll", this.onScroll.bind(this)), s.addListener(this.element, "mousedown", s.preventDefault)
7877        };
7878    (function() {
7879        r.implement(this, o), this.setVisible = function(e) {
7880            this.element.style.display = e ? "" : "none", this.isVisible = e
7881        }
7882    }).call(u.prototype);
7883    var a = function(e, t) {
7884        u.call(this, e), this.scrollTop = 0, t.$scrollbarWidth = this.width = i.scrollbarWidth(e.ownerDocument), this.inner.style.width = this.element.style.width = (this.width || 15) + 5 + "px"
7885    };
7886    r.inherits(a, u),
7887        function() {
7888            this.classSuffix = "-v", this.onScroll = function() {
7889                this.skipEvent || (this.scrollTop = this.element.scrollTop, this._emit("scroll", {
7890                    data: this.scrollTop
7891                })), this.skipEvent = !1
7892            }, this.getWidth = function() {
7893                return this.isVisible ? this.width : 0
7894            }, this.setHeight = function(e) {
7895                this.element.style.height = e + "px"
7896            }, this.setInnerHeight = function(e) {
7897                this.inner.style.height = e + "px"
7898            }, this.setScrollHeight = function(e) {
7899                this.inner.style.height = e + "px"
7900            }, this.setScrollTop = function(e) {
7901                this.scrollTop != e && (this.skipEvent = !0, this.scrollTop = this.element.scrollTop = e)
7902            }
7903        }.call(a.prototype);
7904    var f = function(e, t) {
7905        u.call(this, e), this.scrollLeft = 0, this.height = t.$scrollbarWidth, this.inner.style.height = this.element.style.height = (this.height || 15) + 5 + "px"
7906    };
7907    r.inherits(f, u),
7908        function() {
7909            this.classSuffix = "-h", this.onScroll = function() {
7910                this.skipEvent || (this.scrollLeft = this.element.scrollLeft, this._emit("scroll", {
7911                    data: this.scrollLeft
7912                })), this.skipEvent = !1
7913            }, this.getHeight = function() {
7914                return this.isVisible ? this.height : 0
7915            }, this.setWidth = function(e) {
7916                this.element.style.width = e + "px"
7917            }, this.setInnerWidth = function(e) {
7918                this.inner.style.width = e + "px"
7919            }, this.setScrollWidth = function(e) {
7920                this.inner.style.width = e + "px"
7921            }, this.setScrollLeft = function(e) {
7922                this.scrollLeft != e && (this.skipEvent = !0, this.scrollLeft = this.element.scrollLeft = e)
7923            }
7924        }.call(f.prototype), t.ScrollBar = a, t.ScrollBarV = a, t.ScrollBarH = f, t.VScrollBar = a, t.HScrollBar = f
7925}), define("ace/renderloop", ["require", "exports", "module", "ace/lib/event"], function(e, t, n) {
7926    "use strict";
7927    var r = e("./lib/event"),
7928        i = function(e, t) {
7929            this.onRender = e, this.pending = !1, this.changes = 0, this.window = t || window
7930        };
7931    (function() {
7932        this.schedule = function(e) {
7933            this.changes = this.changes | e;
7934            if (!this.pending && this.changes) {
7935                this.pending = !0;
7936                var t = this;
7937                r.nextFrame(function() {
7938                    t.pending = !1;
7939                    var e;
7940                    while (e = t.changes) t.changes = 0, t.onRender(e)
7941                }, this.window)
7942            }
7943        }
7944    }).call(i.prototype), t.RenderLoop = i
7945}), define("ace/layer/font_metrics", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/lib/useragent", "ace/lib/event_emitter"], function(e, t, n) {
7946    var r = e("../lib/oop"),
7947        i = e("../lib/dom"),
7948        s = e("../lib/lang"),
7949        o = e("../lib/useragent"),
7950        u = e("../lib/event_emitter").EventEmitter,
7951        a = 0,
7952        f = t.FontMetrics = function(e, t) {
7953            this.el = i.createElement("div"), this.$setMeasureNodeStyles(this.el.style, !0), this.$main = i.createElement("div"), this.$setMeasureNodeStyles(this.$main.style), this.$measureNode = i.createElement("div"), this.$setMeasureNodeStyles(this.$measureNode.style), this.el.appendChild(this.$main), this.el.appendChild(this.$measureNode), e.appendChild(this.el), a || this.$testFractionalRect(), this.$measureNode.innerHTML = s.stringRepeat("X", a), this.$characterSize = {
7954                width: 0,
7955                height: 0
7956            }, this.checkForSizeChanges()
7957        };
7958    (function() {
7959        r.implement(this, u), this.$characterSize = {
7960            width: 0,
7961            height: 0
7962        }, this.$testFractionalRect = function() {
7963            var e = i.createElement("div");
7964            this.$setMeasureNodeStyles(e.style), e.style.width = "0.2px", document.documentElement.appendChild(e);
7965            var t = e.getBoundingClientRect().width;
7966            t > 0 && t < 1 ? a = 50 : a = 100, e.parentNode.removeChild(e)
7967        }, this.$setMeasureNodeStyles = function(e, t) {
7968            e.width = e.height = "auto", e.left = e.top = "0px", e.visibility = "hidden", e.position = "absolute", e.whiteSpace = "pre", o.isIE < 8 ? e["font-family"] = "inherit" : e.font = "inherit", e.overflow = t ? "hidden" : "visible"
7969        }, this.checkForSizeChanges = function() {
7970            var e = this.$measureSizes();
7971            if (e && (this.$characterSize.width !== e.width || this.$characterSize.height !== e.height)) {
7972                this.$measureNode.style.fontWeight = "bold";
7973                var t = this.$measureSizes();
7974                this.$measureNode.style.fontWeight = "", this.$characterSize = e, this.charSizes = Object.create(null), this.allowBoldFonts = t && t.width === e.width && t.height === e.height, this._emit("changeCharacterSize", {
7975                    data: e
7976                })
7977            }
7978        }, this.$pollSizeChanges = function() {
7979            if (this.$pollSizeChangesTimer) return this.$pollSizeChangesTimer;
7980            var e = this;
7981            return this.$pollSizeChangesTimer = setInterval(function() {
7982                e.checkForSizeChanges()
7983            }, 500)
7984        }, this.setPolling = function(e) {
7985            e ? this.$pollSizeChanges() : this.$pollSizeChangesTimer && (clearInterval(this.$pollSizeChangesTimer), this.$pollSizeChangesTimer = 0)
7986        }, this.$measureSizes = function() {
7987            if (a === 50) {
7988                var e = null;
7989                try {
7990                    e = this.$measureNode.getBoundingClientRect()
7991                } catch (t) {
7992                    e = {
7993                        width: 0,
7994                        height: 0
7995                    }
7996                }
7997                var n = {
7998                    height: e.height,
7999                    width: e.width / a
8000                }
8001            } else var n = {
8002                height: this.$measureNode.clientHeight,
8003                width: this.$measureNode.clientWidth / a
8004            };
8005            return n.width === 0 || n.height === 0 ? null : n
8006        }, this.$measureCharWidth = function(e) {
8007            this.$main.innerHTML = s.stringRepeat(e, a);
8008            var t = this.$main.getBoundingClientRect();
8009            return t.width / a
8010        }, this.getCharacterWidth = function(e) {
8011            var t = this.charSizes[e];
8012            return t === undefined && (this.charSizes[e] = this.$measureCharWidth(e) / this.$characterSize.width), t
8013        }, this.destroy = function() {
8014            clearInterval(this.$pollSizeChangesTimer), this.el && this.el.parentNode && this.el.parentNode.removeChild(this.el)
8015        }
8016    }).call(f.prototype)
8017}), define("ace/virtual_renderer", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/config", "ace/lib/useragent", "ace/layer/gutter", "ace/layer/marker", "ace/layer/text", "ace/layer/cursor", "ace/scrollbar", "ace/scrollbar", "ace/renderloop", "ace/layer/font_metrics", "ace/lib/event_emitter"], function(e, t, n) {
8018    "use strict";
8019    var r = e("./lib/oop"),
8020        i = e("./lib/dom"),
8021        s = e("./config"),
8022        o = e("./lib/useragent"),
8023        u = e("./layer/gutter").Gutter,
8024        a = e("./layer/marker").Marker,
8025        f = e("./layer/text").Text,
8026        l = e("./layer/cursor").Cursor,
8027        c = e("./scrollbar").HScrollBar,
8028        h = e("./scrollbar").VScrollBar,
8029        p = e("./renderloop").RenderLoop,
8030        d = e("./layer/font_metrics").FontMetrics,
8031        v = e("./lib/event_emitter").EventEmitter,
8032        m = '.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;}.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;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.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_selecting, .ace_selecting * {cursor: text !important;}.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;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {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/XDsFgGIBhtDrshlitm
8032k2IrbHFqL2pvXf/+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 {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;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.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_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.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_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;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;
8032cursor: 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: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));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;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;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_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;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);}.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_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;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_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;}';
8033    i.importCssString(m, "ace_editor.css");
8034    var g = function(e, t) {
8035        var n = this;
8036        this.container = e || i.createElement("div"), this.$keepTextAreaAtCurs
vendor: 1,235 bytes, lines 8036-8042
8036or = !o.isOldIE, i.addCssClass(this.container, "ace_editor"), this.setTheme(t), this.$gutter = i.createElement("div"), this.$gutter.className = "ace_gutter", this.container.appendChild(this.$gutter), this.scroller = i.createElement("div"), this.scroller.className = "ace_scroller", this.container.appendChild(this.scroller), this.content = i.createElement("div"), this.content.className = "ace_content", this.scroller.appendChild(this.content), this.$gutterLayer = new u(this.$gutter), this.$gutterLayer.on("changeGutterWidth", this.onGutterResize.bind(this)), this.$markerBack = new a(this.content);
8037        var r = this.$textLayer = new f(this.content);
8038        this.canvas = r.element, this.$markerFront = new a(this.content), this.$cursorLayer = new l(this.content), this.$horizScroll = !1, this.$vScroll = !1, this.scrollBar = this.scrollBarV = new h(this.container, this), this.scrollBarH = new c(this.container, this), this.scrollBarV.addEventListener("scroll", function(e) {
8039            n.$scrollAnimation || n.session.setScrollTop(e.data - n.scrollMargin.top)
8040        }), this.scrollBarH.addEventListener("scroll", function(e) {
8041            n.$scrollAnimation || n.session.setScrollLeft(e.data - n.scrollMargin.left)
8042        }
8042), this.scrollTop = 0, this.scrollLeft = 0, this.cursorPos = {
8043            row: 0,
8044            column: 0
8045        }, this.$fontMetrics = new d(this.container, 500), this.$textLayer.$setFontMetrics(this.$fontMetrics), this.$textLayer.addEventListener("changeCharacterSize", function(e) {
8046            n.updateCharacterSize(), n.onResize(!0, n.gutterWidth, n.$size.width, n.$size.height), n._signal("changeCharacterSize", e)
8047        }), this.$size = {
8048            width: 0,
8049            height: 0,
8050            scrollerHeight: 0,
8051            scrollerWidth: 0,
8052            $dirty: !0
8053        }, this.layerConfig = {
8054            width: 1,
8055            padding: 0,
8056            firstRow: 0,
8057            firstRowScreen: 0,
8058            lastRow: 0,
8059            lineHeight: 0,
8060            characterWidth: 0,
8061            minHeight: 1,
8062            maxHeight: 1,
8063            offset: 0,
8064            height: 1,
8065            gutterOffset: 1
8066        }, this.scrollMargin = {
8067            left: 0,
8068            right: 0,
8069            top: 0,
8070            bottom: 0,
8071            v: 0,
8072            h: 0
8073        }, this.$loop = new p(this.$renderChanges.bind(this), this.container.ownerDocument.defaultView), this.$loop.schedule(this.CHANGE_FULL), this.updateCharacterSize(), this.setPadding(4), s.resetOptions(this), s._emit("renderer", this)
8074    };
8075    (function() {
8076        this.CHANGE_CURSOR = 1, this.CHANGE_MARKER = 2, this.CHANGE_GUTTER = 4, this.CHANGE_SCROLL = 8, this.CHANGE_LINES = 16, this.CHANGE_TEXT = 32, this.CHANGE_SIZE = 64, this.CHANGE_MARKER_BACK = 128, this.CHANGE_MARKER_FRONT = 256, this.CHANGE_FULL = 512, this.CHANGE_H_SCROLL = 1024, r.implement(this, v), this.updateCharacterSize = function() {
8077            this.$textLayer.allowBoldFonts != this.$allowBoldFonts && (this.$allowBoldFonts = this.$textLayer.allowBoldFonts, this.setStyle("ace_nobold", !this.$allowBoldFonts)), this.layerConfig.characterWidth = this.characterWidth = this.$textLayer.getCharacterWidth(), this.layerConfig.lineHeight = this.lineHeight = this.$textLayer.getLineHeight(), this.$updatePrintMargin()
8078        }, this.setSession = function(e) {
8079            this.session && this.session.doc.off("changeNewLineMode", this.onChangeNewLineMode), this.session = e, e && this.scrollMargin.top && e.getScrollTop() <= 0 && e.setScrollTop(-this.scrollMargin.top), this.$cursorLayer.setSession(e), this.$markerBack.setSession(e), this.$markerFront.setSession(e), this.$gutterLayer.setSession(e), this.$textLayer.setSession(e);
8080            if (!e) return;
8081            this.$loop.schedule(this.CHANGE_FULL), this.session.$setFontMetrics(this.$fontMetrics), this.onChangeNewLineMode = this.onChangeNewLineMode.bind(this), this.onChangeNewLineMode(), this.session.doc.on("changeNewLineMode", this.onChangeNewLineMode)
8082        }, this.updateLines = function(e, t, n) {
8083            t === undefined && (t = Infinity), this.$changedLines ? (this.$changedLines.firstRow > e && (this.$changedLines.firstRow = e), this.$changedLines.lastRow < t && (this.$changedLines.lastRow = t)) : this.$changedLines = {
8084                firstRow: e,
8085                lastRow: t
8086            };
8087            if (this.$changedLines.lastRow < this.layerConfig.firstRow) {
8088                if (!n) return;
8089                this.$changedLines.lastRow = this.layerConfig.lastRow
8090            }
8091            if (this.$changedLines.firstRow > this.layerConfig.lastRow) return;
8092            this.$loop.schedule(this.CHANGE_LINES)
8093        }, this.onChangeNewLineMode = function() {
8094            this.$loop.schedule(this.CHANGE_TEXT), this.$textLayer.$updateEolChar()
8095        }, this.onChangeTabSize = function() {
8096            this.$loop.schedule(this.CHANGE_TEXT | this.CHANGE_MARKER), this.$textLayer.onChangeTabSize()
8097        }, this.updateText = function() {
8098            this.$loop.schedule(this.CHANGE_TEXT)
8099        }, this.updateFull = function(e) {
8100            e ? this.$renderChanges(this.CHANGE_FULL, !0) : this.$loop.schedule(this.CHANGE_FULL)
8101        }, this.updateFontSize = function() {
8102            this.$textLayer.checkForSizeChanges()
8103        }, this.$changes = 0, this.$updateSizeAsync = function() {
8104            this.$loop.pending ? this.$size.$dirty = !0 : this.onResize()
8105        }, this.onResize = function(e, t, n, r) {
8106            if (this.resizing > 2) return;
8107            this.resizing > 0 ? this.resizing++ : this.resizing = e ? 1 : 0;
8108            var i = this.container;
8109            r || (r = i.clientHeight || i.scrollHeight), n || (n = i.clientWidth || i.scrollWidth);
8110            var s = this.$updateCachedSize(e, t, n, r);
8111            if (!this.$size.scrollerHeight || !n && !r) return this.resizing = 0;
8112            e && (this.$gutterLayer.$padding = null), e ? this.$renderChanges(s | this.$changes, !0) : this.$loop.schedule(s | this.$changes), this.resizing && (this.resizing = 0), this.scrollBarV.scrollLeft = this.scrollBarV.scrollTop = null
8113        }, this.$updateCachedSize = function(e, t, n, r) {
8114            r -= this.$extraHeight || 0;
8115            var i = 0,
8116                s = this.$size,
8117                o = {
8118                    width: s.width,
8119                    height: s.height,
8120                    scrollerHeight: s.scrollerHeight,
8121                    scrollerWidth: s.scrollerWidth
8122                };
8123            r && (e || s.height != r) && (s.height = r, i |= this.CHANGE_SIZE, s.scrollerHeight = s.height, this.$horizScroll && (s.scrollerHeight -= this.scrollBarH.getHeight()), this.scrollBarV.element.style.bottom = this.scrollBarH.getHeight() + "px", i |= this.CHANGE_SCROLL);
8124            if (n && (e || s.width != n)) {
8125                i |= this.CHANGE_SIZE, s.width = n, t == null && (t = this.$showGutter ? this.$gutter.offsetWidth : 0), this.gutterWidth = t, this.scrollBarH.element.style.left = this.scroller.style.left = t + "px", s.scrollerWidth = Math.max(0, n - t - this.scrollBarV.getWidth()), this.scrollBarH.element.style.right = this.scroller.style.right = this.scrollBarV.getWidth() + "px", this.scroller.style.bottom = this.scrollBarH.getHeight() + "px";
8126                if (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || e) i |= this.CHANGE_FULL
8127            }
8128            return s.$dirty = !n || !r, i && this._signal("resize", o), i
8129        }, this.onGutterResize = function() {
8130            var e = this.$showGutter ? this.$gutter.offsetWidth : 0;
8131            e != this.gutterWidth && (this.$changes |= this.$updateCachedSize(!0, e, this.$size.width, this.$size.height)), this.session.getUseWrapMode() && this.adjustWrapLimit() ? this.$loop.schedule(this.CHANGE_FULL) : this.$size.$dirty ? this.$loop.schedule(this.CHANGE_FULL) : (this.$computeLayerConfig(), this.$loop.schedule(this.CHANGE_MARKER))
8132        }, this.adjustWrapLimit = function() {
8133            var e = this.$size.scrollerWidth - this.$padding * 2,
8134                t = Math.floor(e / this.characterWidth);
8135            return this.session.adjustWrapLimit(t, this.$showPrintMargin && this.$printMarginColumn)
8136        }, this.setAnimatedScroll = function(e) {
8137            this.setOption("animatedScroll", e)
8138        }, this.getAnimatedScroll = function() {
8139            return this.$animatedScroll
8140        }, this.setShowInvisibles = function(e) {
8141            this.setOption("showInvisibles", e)
8142        }, this.getShowInvisibles = function() {
8143            return this.getOption("showInvisibles")
8144        }, this.getDisplayIndentGuides = function() {
8145            return this.getOption("displayIndentGuides")
8146        }, this.setDisplayIndentGuides = function(e) {
8147            this.setOption("displayIndentGuides", e)
8148        }, this.setShowPrintMargin = function(e) {
8149            this.setOption("showPrintMargin", e)
8150        }, this.getShowPrintMargin = function() {
8151            return this.getOption("showPrintMargin")
8152        }, this.setPrintMarginColumn = function(e) {
8153            this.setOption("printMarginColumn", e)
8154        }, this.getPrintMarginColumn = function() {
8155            return this.getOption("printMarginColumn")
8156        }, this.getShowGutter = function() {
8157            return this.getOption("showGutter")
8158        }, this.setShowGutter = function(e) {
8159            return this.setOption("showGutter", e)
8160        }, this.getFadeFoldWidgets = function() {
8161            return this.getOption("fadeFoldWidgets")
8162        }, this.setFadeFoldWidgets = function(e) {
8163            this.setOption("fadeFoldWidgets", e)
8164        }, this.setHighlightGutterLine = function(e) {
8165            this.setOption("highlightGutterLine", e)
8166        }, this.getHighlightGutterLine = function() {
8167            return this.getOption("highlightGutterLine")
8168        }, this.$updateGutterLineHighlight = function() {
8169            var e = this.$cursorLayer.$pixelPos,
8170                t = this.layerConfig.lineHeight;
8171            if (this.session.getUseWrapMode()) {
8172                var n = this.session.selection.getCursor();
8173                n.column = 0, e = this.$cursorLayer.getPixelPosition(n, !0), t *= this.session.getRowLength(n.row)
8174            }
8175            this.$gutterLineHighlight.style.top = e.top - this.layerConfig.offset + "px", this.$gutterLineHighlight.style.height = t + "px"
8176        }, this.$updatePrintMargin = function() {
8177            if (!this.$showPrintMargin && !this.$printMarginEl) return;
8178            if (!this.$printMarginEl) {
8179                var e = i.createElement("div");
8180                e.className = "ace_layer ace_print-margin-layer", this.$printMarginEl = i.createElement("div"), this.$printMarginEl.className = "ace_print-margin", e.appendChild(this.$printMarginEl), this.content.insertBefore(e, this.content.firstChild)
8181            }
8182            var t = this.$printMarginEl.style;
8183            t.left = this.characterWidth * this.$printMarginColumn + this.$padding + "px", t.visibility = this.$showPrintMargin ? "visible" : "hidden", this.session && this.session.$wrap == -1 && this.adjustWrapLimit()
8184        }, this.getContainerElement = function() {
8185            return this.container
8186        }, this.getMouseEventTarget = function() {
8187            return this.scroller
8188        }, this.getTextAreaContainer = function() {
8189            return this.container
8190        }, this.$moveTextAreaToCursor = function() {
8191            if (!this.$keepTextAreaAtCursor) return;
8192            var e = this.layerConfig,
8193                t = this.$cursorLayer.$pixelPos.top,
8194                n = this.$cursorLayer.$pixelPos.left;
8195            t -= e.offset;
8196            var r = this.textarea.style,
8197                i = this.lineHeight;
8198            if (t < 0 || t > e.height - i) {
8199                r.top = r.left = "0";
8200                return
8201            }
8202            var s = this.characterWidth;
8203            if (this.$composition) {
8204                var o = this.textarea.value.replace(/^\x01+/, "");
8205                s *= this.session.$getStringScreenWidth(o)[0] + 2, i += 2
8206            }
8207            n -= this.scrollLeft, n > this.$size.scrollerWidth - s && (n = this.$size.scrollerWidth - s), n += this.gutterWidth, r.height = i + "px", r.width = s + "px", r.left = Math.min(n, this.$size.scrollerWidth - s) + "px", r.top = Math.min(t, this.$size.height - i) + "px"
8208        // ODOO monkeypatch: When we use firefox top or bottom arrow the ace container does not scroll automatically if the cursor is not visible.
8209            this.$scrollViewToTextArea();
8210        }, this.$scrollViewToTextArea = function() {
8211            // scroll the page/container to the cursor
8212            var node = this.$cursorLayer.cursor;
8213            setTimeout(function () {
8214                if (node.scrollIntoViewIfNeeded) {
8215                    node.scrollIntoViewIfNeeded(false);
8216                } else if (node.scrollIntoView) {
8217                    var rect = node.getBoundingClientRect();
8218                    var parent = node.parentNode;
8219
8220                    while (parent && parent.getBoundingClientRect) {
8221                        var parentRect = parent.getBoundingClientRect();
8222                        if (parentRect.bottom < rect.top) {
8223                            node.scrollIntoView(false);
8224                            return;
8225                        }
8226                        if (parentRect.top > rect.bottom-rect.height) {
8227                            node.scrollIntoView(true);
8228                            return;
8229                        }
8230                        if (parentRect.left > rect.right) {
8231                            node.scrollIntoView();
8232                            return;
8233                        }
8234                        if (parentRect.right < rect.left) {
8235                            node.scrollIntoView();
8236                            return;
8237                        }
8238                        parent = parent.parentNode;
8239                    }
8240                }
8241            });
8242        // ODOO end monkeypatch
8243        }, this.getFirstVisibleRow = function() {
8244            return this.layerConfig.firstRow
8245        }, this.getFirstFullyVisibleRow = function() {
8246            return this.layerConfig.firstRow + (this.layerConfig.offset === 0 ? 0 : 1)
8247        }, this.getLastFullyVisibleRow = function() {
8248            var e = Math.floor((this.layerConfig.height + this.layerConfig.offset) / this.layerConfig.lineHeight);
8249            return this.layerConfig.firstRow - 1 + e
8250        }, this.getLastVisibleRow = function() {
8251            return this.layerConfig.lastRow
8252        }, this.$padding = null, this.setPadding = function(e) {
8253            this.$padding = e, this.$textLayer.setPadding(e), this.$curs
8253orLayer.setPadding(e), this.$markerFront.setPadding(e), this.$markerBack.setPadding(e), this.$loop.schedule(this.CHANGE_FULL), this.$updatePrintMargin()
8254        }, this.setScrollMargin = function(e, t, n, r) {
8255            var i = this.scrollMargin;
8256            i.top = e | 0, i.bottom = t | 0, i.right = r | 0, i.left = n | 0, i.v = i.top + i.bottom, i.h = i.left + i.right, i.top && this.scrollTop <= 0 && this.session && this.session.setScrollTop(-i.top), this.updateFull()
8257        }, this.getHScrollBarAlwaysVisible = function() {
8258            return this.$hScrollBarAlwaysVisible
8259        }, this.setHScrollBarAlwaysVisible = function(e) {
8260            this.setOption("hScrollBarAlwaysVisible", e)
8261        }, this.getVScrollBarAlwaysVisible = function() {
8262            return this.$vScrollBarAlwaysVisible
8263        }, this.setVScrollBarAlwaysVisible = function(e) {
8264            this.setOption("vScrollBarAlwaysVisible", e)
8265        }, this.$updateScrollBarV = function() {
8266            var e = this.layerConfig.maxHeight,
8267                t = this.$size.scrollerHeight;
8268            !this.$maxLines && this.$scrollPastEnd && (e -= (t - this.lineHeight) * this.$scrollPastEnd, this.scrollTop > e - t && (e = this.scrollTop + t, this.scrollBarV.scrollTop = null)), this.scrollBarV.setScrollHeight(e + this.scrollMargin.v), this.scrollBarV.setScrollTop(this.scrollTop + this.scrollMargin.top)
8269        }, this.$updateScrollBarH = function() {
8270            this.scrollBarH.setScrollWidth(this.layerConfig.width + 2 * this.$padding + this.scrollMargin.h), this.scrollBarH.setScrollLeft(this.scrollLeft + this.scrollMargin.left)
8271        }, this.$frozen = !1, this.freeze = function() {
8272            this.$frozen = !0
8273        }, this.unfreeze = function() {
8274            this.$frozen = !1
8275        }, this.$renderChanges = function(e, t) {
8276            this.$changes && (e |= this.$changes, this.$changes = 0);
8277            if (!this.session || !this.container.offsetWidth || this.$frozen || !e && !t) {
8278                this.$changes |= e;
8279                return
8280            }
8281            if (this.$size.$dirty) return this.$changes |= e, this.onResize(!0);
8282            this.lineHeight || this.$textLayer.checkForSizeChanges(), this._signal("beforeRender");
8283            var n = this.layerConfig;
8284            if (e & this.CHANGE_FULL || e & this.CHANGE_SIZE || e & this.CHANGE_TEXT || e & this.CHANGE_LINES || e & this.CHANGE_SCROLL || e & this.CHANGE_H_SCROLL) {
8285                e |= this.$computeLayerConfig();
8286                if (n.firstRow != this.layerConfig.firstRow && n.firstRowScreen == this.layerConfig.firstRowScreen) {
8287                    var r = this.scrollTop + (n.firstRow - this.layerConfig.firstRow) * this.lineHeight;
8288                    r > 0 && (this.scrollTop = r, e |= this.CHANGE_SCROLL, e |= this.$computeLayerConfig())
8289                }
8290                n = this.layerConfig, this.$updateScrollBarV(), e & this.CHANGE_H_SCROLL && this.$updateScrollBarH(), this.$gutterLayer.element.style.marginTop = -n.offset + "px", this.content.style.marginTop = -n.offset + "px", this.content.style.width = n.width + 2 * this.$padding + "px", this.content.style.height = n.minHeight + "px"
8291            }
8292            e & this.CHANGE_H_SCROLL && (this.content.style.marginLeft = -this.scrollLeft + "px", this.scroller.className = this.scrollLeft <= 0 ? "ace_scroller" : "ace_scroller ace_scroll-left");
8293            if (e & this.CHANGE_FULL) {
8294                this.$textLayer.update(n), this.$showGutter && this.$gutterLayer.update(n), this.$markerBack.update(n), this.$markerFront.update(n), this.$cursorLayer.update(n), this.$moveTextAreaToCursor(), this.$highlightGutterLine && this.$updateGutterLineHighlight(), this._signal("afterRender");
8295                return
8296            }
8297            if (e & this.CHANGE_SCROLL) {
8298                e & this.CHANGE_TEXT || e & this.CHANGE_LINES ? this.$textLayer.update(n) : this.$textLayer.scrollLines(n), this.$showGutter && this.$gutterLayer.update(n), this.$markerBack.update(n), this.$markerFront.update(n), this.$cursorLayer.update(n), this.$highlightGutterLine && this.$updateGutterLineHighlight(), this.$moveTextAreaToCursor(), this._signal("afterRender");
8299                return
8300            }
8301            e & this.CHANGE_TEXT ? (this.$textLayer.update(n), this.$showGutter && this.$gutterLayer.update(n)) : e & this.CHANGE_LINES ? (this.$updateLines() || e & this.CHANGE_GUTTER && this.$showGutter) && this.$gutterLayer.update(n) : (e & this.CHANGE_TEXT || e & this.CHANGE_GUTTER) && this.$showGutter && this.$gutterLayer.update(n), e & this.CHANGE_CURSOR && (this.$curs
8301orLayer.update(n), this.$moveTextAreaToCursor(), this.$highlightGutterLine && this.$updateGutterLineHighlight()), e & (this.CHANGE_MARKER | this.CHANGE_MARKER_FRONT) && this.$markerFront.update(n), e & (this.CHANGE_MARKER | this.CHANGE_MARKER_BACK) && this.$markerBack.update(n), this._signal("afterRender")
8302        }, this.$autosize = function() {
8303            var e = this.session.getScreenLength() * this.lineHeight,
8304                t = this.$maxLines * this.lineHeight,
8305                n = Math.max((this.$minLines || 1) * this.lineHeight, Math.min(t, e)) + this.scrollMargin.v + (this.$extraHeight || 0);
8306            this.$horizScroll && (n += this.scrollBarH.getHeight());
8307            var r = e > t;
8308            if (n != this.desiredHeight || this.$size.height != this.desiredHeight || r != this.$vScroll) {
8309                r != this.$vScroll && (this.$vScroll = r, this.scrollBarV.setVisible(r));
8310                var i = this.container.clientWidth;
8311                this.container.style.height = n + "px", this.$updateCachedSize(!0, this.$gutterWidth, i, n), this.desiredHeight = n, this._signal("autosize")
8312            }
8313        }, this.$computeLayerConfig = function() {
8314            var e = this.session,
8315                t = this.$size,
8316                n = t.height <= 2 * this.lineHeight,
8317                r = this.session.getScreenLength(),
8318                i = r * this.lineHeight,
8319                s = this.$getLongestLine(),
8320                o = !n && (this.$hScrollBarAlwaysVisible || t.scrollerWidth - s - 2 * this.$padding < 0),
8321                u = this.$horizScroll !== o;
8322            u && (this.$horizScroll = o, this.scrollBarH.setVisible(o));
8323            var a = this.$vScroll;
8324            this.$maxLines && this.lineHeight > 1 && this.$autosize();
8325            var f = this.scrollTop % this.lineHeight,
8326                l = t.scrollerHeight + this.lineHeight,
8327                c = !this.$maxLines && this.$scrollPastEnd ? (t.scrollerHeight - this.lineHeight) * this.$scrollPastEnd : 0;
8328            i += c;
8329            var h = this.scrollMargin;
8330            this.session.setScrollTop(Math.max(-h.top, Math.min(this.scrollTop, i - t.scrollerHeight + h.bottom))), this.session.setScrollLeft(Math.max(-h.left, Math.min(this.scrollLeft, s + 2 * this.$padding - t.scrollerWidth + h.right)));
8331            var p = !n && (this.$vScrollBarAlwaysVisible || t.scrollerHeight - i + c < 0 || this.scrollTop > h.top),
8332                d = a !== p;
8333            d && (this.$vScroll = p, this.scrollBarV.setVisible(p));
8334            var v = Math.ceil(l / this.lineHeight) - 1,
8335                m = Math.max(0, Math.round((this.scrollTop - f) / this.lineHeight)),
8336                g = m + v,
8337                y, b, w = this.lineHeight;
8338            m = e.screenToDocumentRow(m, 0);
8339            var E = e.getFoldLine(m);
8340            E && (m = E.start.row), y = e.documentToScreenRow(m, 0), b = e.getRowLength(m) * w, g = Math.min(e.screenToDocumentRow(g, 0), e.getLength() - 1), l = t.scrollerHeight + e.getRowLength(g) * w + b, f = this.scrollTop - y * w;
8341            var S = 0;
8342            this.layerConfig.width != s && (S = this.CHANGE_H_SCROLL);
8343            if (u || d) S = this.$updateCachedSize(!0, this.gutterWidth, t.width, t.height), this._signal("scrollbarVisibilityChanged"), d && (s = this.$getLongestLine());
8344            return this.layerConfig = {
8345                width: s,
8346                padding: this.$padding,
8347                firstRow: m,
8348                firstRowScreen: y,
8349                lastRow: g,
8350                lineHeight: w,
8351                characterWidth: this.characterWidth,
8352                minHeight: l,
8353                maxHeight: i,
8354                offset: f,
8355                gutterOffset: Math.max(0, Math.ceil((f + t.height - t.scrollerHeight) / w)),
8356                height: this.$size.scrollerHeight
8357            }, S
8358        }, this.$updateLines = function() {
8359            var e = this.$changedLines.firstRow,
8360                t = this.$changedLines.lastRow;
8361            this.$changedLines = null;
8362            var n = this.layerConfig;
8363            if (e > n.lastRow + 1) return;
8364            if (t < n.firstRow) return;
8365            if (t === Infinity) {
8366                this.$showGutter && this.$gutterLayer.update(n), this.$textLayer.update(n);
8367                return
8368            }
8369            return this.$textLayer.updateLines(n, e, t), !0
8370        }, this.$getLongestLine = function() {
8371            var e = this.session.getScreenWidth();
8372            return this.showInvisibles && !this.session.$useWrapMode && (e += 1), Math.max(this.$size.scrollerWidth - 2 * this.$padding, Math.round(e * this.characterWidth))
8373        }, this.updateFrontMarkers = function() {
8374            this.$markerFront.setMarkers(this.session.getMarkers(!0)), this.$loop.schedule(this.CHANGE_MARKER_FRONT)
8375        }, this.updateBackMarkers = function() {
8376            this.$markerBack.setMarkers(this.session.getMarkers()), this.$loop.schedule(this.CHANGE_MARKER_BACK)
8377        }, this.addGutterDecoration = function(e, t) {
8378            this.$gutterLayer.addGutterDecoration(e, t)
8379        }, this.removeGutterDecoration = function(e, t) {
8380            this.$gutterLayer.removeGutterDecoration(e, t)
8381        }, this.updateBreakpoints = function(e) {
8382            this.$loop.schedule(this.CHANGE_GUTTER)
8383        }, this.setAnnotations = function(e) {
8384            this.$gutterLayer.setAnnotations(e), this.$loop.schedule(this.CHANGE_GUTTER)
8385        }, this.updateCursor = function() {
8386            this.$loop.schedule(this.CHANGE_CURSOR)
8387        }, this.hideCursor = function() {
8388            this.$cursorLayer.hideCursor()
8389        }, this.showCursor = function() {
8390            this.$cursorLayer.showCursor()
8391        }, this.scrollSelectionIntoView = function(e, t, n) {
8392            this.scrollCursorIntoView(e, n), this.scrollCursorIntoView(t, n)
8393        }, this.scrollCursorIntoView = function(e, t, n) {
8394            if (this.$size.scrollerHeight === 0) return;
8395            var r = this.$cursorLayer.getPixelPosition(e),
8396                i = r.left,
8397                s = r.top,
8398                o = n && n.top || 0,
8399                u = n && n.bottom || 0,
8400                a = this.$scrollAnimation ? this.session.getScrollTop() : this.scrollTop;
8401            a + o > s ? (t && (s -= t * this.$size.scrollerHeight), s === 0 && (s = -this.scrollMargin.top), this.session.setScrollTop(s)) : a + this.$size.scrollerHeight - u < s + this.lineHeight && (t && (s += t * this.$size.scrollerHeight), this.session.setScrollTop(s + this.lineHeight - this.$size.scrollerHeight));
8402            var f = this.scrollLeft;
8403            f > i ? (i < this.$padding + 2 * this.layerConfig.characterWidth && (i = -this.scrollMargin.left), this.session.setScrollLeft(i)) : f + this.$size.scrollerWidth < i + this.characterWidth ? this.session.setScrollLeft(Math.round(i + this.characterWidth - this.$size.scrollerWidth)) : f <= this.$padding && i - f < this.characterWidth && this.session.setScrollLeft(0)
8404        }, this.getScrollTop = function() {
8405            return this.session.getScrollTop()
8406        }, this.getScrollLeft = function() {
8407            return this.session.getScrollLeft()
8408        }, this.getScrollTopRow = function() {
8409            return this.scrollTop / this.lineHeight
8410        }, this.getScrollBottomRow = function() {
8411            return Math.max(0, Math.floor((this.scrollTop + this.$size.scrollerHeight) / this.lineHeight) - 1)
8412        }, this.scrollToRow = function(e) {
8413            this.session.setScrollTop(e * this.lineHeight)
8414        }, this.alignCursor = function(e, t) {
8415            typeof e == "number" && (e = {
8416                row: e,
8417                column: 0
8418            });
8419            var n = this.$cursorLayer.getPixelPosition(e),
8420                r = this.$size.scrollerHeight - this.lineHeight,
8421                i = n.top - r * (t || 0);
8422            return this.session.setScrollTop(i), i
8423        }, this.STEPS = 8, this.$calcSteps = function(e, t) {
8424            var n = 0,
8425                r = this.STEPS,
8426                i = [],
8427                s = function(e, t, n) {
8428                    return n * (Math.pow(e - 1, 3) + 1) + t
8429                };
8430            for (n = 0; n < r; ++n) i.push(s(n / this.STEPS, e, t - e));
8431            return i
8432        }, this.scrollToLine = function(e, t, n, r) {
8433            var i = this.$cursorLayer.getPixelPosition({
8434                    row: e,
8435                    column: 0
8436                }),
8437                s = i.top;
8438            t && (s -= this.$size.scrollerHeight / 2);
8439            var o = this.scrollTop;
8440            this.session.setScrollTop(s), n !== !1 && this.animateScrolling(o, r)
8441        }, this.animateScrolling = function(e, t) {
8442            var n = this.scrollTop;
8443            if (!this.$animatedScroll) return;
8444            var r = this;
8445            if (e == n) return;
8446            if (this.$scrollAnimation) {
8447                var i = this.$scrollAnimation.steps;
8448                if (i.length) {
8449                    e = i[0];
8450                    if (e == n) return
8451                }
8452            }
8453            var s = r.$calcSteps(e, n);
8454            this.$scrollAnimation = {
8455                from: e,
8456                to: n,
8457                steps: s
8458            }, clearInterval(this.$timer), r.session.setScrollTop(s.shift()), r.session.$scrollTop = n, this.$timer = setInterval(function() {
8459                s.length ? (r.session.setScrollTop(s.shift()), r.session.$scrollTop = n) : n != null ? (r.session.$scrollTop = -1, r.session.setScrollTop(n), n = null) : (r.$timer = clearInterval(r.$timer), r.$scrollAnimation = null, t && t())
8460            }, 10)
8461        }, this.scrollToY = function(e) {
8462            this.scrollTop !== e && (this.$loop.schedule(this.CHANGE_SCROLL), this.scrollTop = e)
8463        }, this.scrollToX = function(e) {
8464            this.scrollLeft !== e && (this.scrollLeft = e), this.$loop.schedule(this.CHANGE_H_SCROLL)
8465        }, this.scrollTo = function(e, t) {
8466            this.session.setScrollTop(t), this.session.setScrollLeft(t)
8467        }, this.scrollBy = function(e, t) {
8468            t && this.session.setScrollTop(this.session.getScrollTop() + t), e && this.session.setScrollLeft(this.session.getScrollLeft() + e)
8469        }, this.isScrollableBy = function(e, t) {
8470            if (t < 0 && this.session.getScrollTop() >= 1 - this.scrollMargin.top) return !0;
8471            if (t > 0 && this.session.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom) return !0;
8472            if (e < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left) return !0;
8473            if (e > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth - this.layerConfig.width < -1 + this.scrollMargin.right) return !0
8474        }, this.pixelToScreenCoordinates = function(e, t) {
8475            var n = this.scroller.getBoundingClientRect(),
8476                r = (e + this.scrollLeft - n.left - this.$padding) / this.characterWidth,
8477                i = Math.floor((t + this.scrollTop - n.top) / this.lineHeight),
8478                s = Math.round(r);
8479            return {
8480                row: i,
8481                column: s,
8482                side: r - s > 0 ? 1 : -1
8483            }
8484        }, this.screenToTextCoordinates = function(e, t) {
8485            var n = this.scroller.getBoundingClientRect(),
8486                r = Math.round((e + this.scrollLeft - n.left - this.$padding) / this.characterWidth),
8487                i = (t + this.scrollTop - n.top) / this.lineHeight;
8488            return this.session.screenToDocumentPosition(i, Math.max(r, 0))
8489        }, this.textToScreenCoordinates = function(e, t) {
8490            var n = this.scroller.getBoundingClientRect(),
8491                r = this.session.documentToScreenPosition(e, t),
8492                i = this.$padding + Math.round(r.column * this.characterWidth),
8493                s = r.row * this.lineHeight;
8494            return {
8495                pageX: n.left + i - this.scrollLeft,
8496                pageY: n.top + s - this.scrollTop
8497            }
8498        }, this.visualizeFocus = function() {
8499            i.addCssClass(this.container, "ace_focus")
8500        }, this.visualizeBlur = function() {
8501            i.removeCssClass(this.container, "ace_focus")
8502        }, this.showComposition = function(e) {
8503            this.$composition || (this.$composition = {
8504                keepTextAreaAtCursor: this.$keepTextAreaAtCursor,
8505                cssText: this.textarea.style.cssText
8506            }), this.$keepTextAreaAtCursor = !0, i.addCssClass(this.textarea, "ace_composition"), this.textarea.style.cssText = "", this.$moveTextAreaToCursor()
8507        }, this.setCompositionText = function(e) {
8508            this.$moveTextAreaToCursor()
8509        }, this.hideComposition = function() {
8510            if (!this.$composition) return;
8511            i.removeCssClass(this.textarea, "ace_composition"), this.$keepTextAreaAtCursor = this.$composition.keepTextAreaAtCursor, this.textarea.style.cssText = this.$composition.cssText, this.$composition = null
8512        }, this.setTheme = function(e, t) {
8513            function o(r) {
8514                if (n.$themeId != e) return t && t();
8515                if (!r.cssClass) return;
8516                i.importCssString(r.cssText, r.cssClass, n.container.ownerDocument), n.theme && i.removeCssClass(n.container, n.theme.cssClass);
8517                var s = "padding" in r ? r.padding : "padding" in (n.theme || {}) ? 4 : n.$padding;
8518                n.$padding && s != n.$padding && n.setPadding(s), n.$theme = r.cssClass, n.theme = r, i.addCssClass(n.container, r.cssClass), i.setCssClass(n.container, "ace_dark", r.isDark), n.$size && (n.$size.width = 0, n.$updateSizeAsync()), n._dispatchEvent("themeLoaded", {
8519                    theme: r
8520                }), t && t()
8521            }
8522            var n = this;
8523            this.$themeId = e, n._dispatchEvent("themeChange", {
8524                theme: e
8525            });
8526            if (!e || typeof e == "string") {
8527                var r = e || this.$options.theme.initialValue;
8528                s.loadModule(["theme", r], o)
8529            } else o(e)
8530        }, this.getTheme = function() {
8531            return this.$themeId
8532        }, this.setStyle = function(e, t) {
8533            i.setCssClass(this.container, e, t !== !1)
8534        }, this.unsetStyle = function(e) {
8535            i.removeCssClass(this.container, e)
8536        }, this.setCursorStyle = function(e) {
8537            this.scroller.style.cursor != e && (this.scroller.style.cursor = e)
8538        }, this.setMouseCursor = function(e) {
8539            this.scroller.style.cursor = e
8540        }, this.destroy = function() {
8541            this.$textLayer.destroy(), this.$cursorLayer.destroy()
8542        }
8543    }).call(g.prototype), s.defineOptions(g.prototype, "renderer", {
8544        animatedScroll: {
8545            initialValue: !1
8546        },
8547        showInvisibles: {
8548            set: function(e) {
8549                this.$textLayer.setShowInvisibles(e) && this.$loop.schedule(this.CHANGE_TEXT)
8550            },
8551            initialValue: !1
8552        },
8553        showPrintMargin: {
8554            set: function() {
8555                this.$updatePrintMargin()
8556            },
8557            initialValue: !0
8558        },
8559        printMarginColumn: {
8560            set: function() {
8561                this.$updatePrintMargin()
8562            },
8563            initialValue: 80
8564        },
8565        printMargin: {
8566            set: function(e) {
8567                typeof e == "number" && (this.$printMarginColumn = e), this.$showPrintMargin = !!e, this.$updatePrintMargin()
8568            },
8569            get: function() {
8570                return this.$showPrintMargin && this.$printMarginColumn
8571            }
8572        },
8573        showGutter: {
8574            set: function(e) {
8575                this.$gutter.style.display = e ? "block" : "none", this.$loop.schedule(this.CHANGE_FULL), this.onGutterResize()
8576            },
8577            initialValue: !0
8578        },
8579        fadeFoldWidgets: {
8580            set: function(e) {
8581                i.setCssClass(this.$gutter, "ace_fade-fold-widgets", e)
8582            },
8583            initialValue: !1
8584        },
8585        showFoldWidgets: {
8586            set: function(e) {
8587                this.$gutterLayer.setShowFoldWidgets(e)
8588            },
8589            initialValue: !0
8590        },
8591        showLineNumbers: {
8592            set: function(e) {
8593                this.$gutterLayer.setShowLineNumbers(e), this.$loop.schedule(this.CHANGE_GUTTER)
8594            },
8595            initialValue: !0
8596        },
8597        displayIndentGuides: {
8598            set: function(e) {
8599                this.$textLayer.setDisplayIndentGuides(e) && this.$loop.schedule(this.CHANGE_TEXT)
8600            },
8601            initialValue: !0
8602        },
8603        highlightGutterLine: {
8604            set: function(e) {
8605                if (!this.$gutterLineHighlight) {
8606                    this.$gutterLineHighlight = i.createElement("div"), this.$gutterLineHighlight.className = "ace_gutter-active-line", this.$gutter.appendChild(this.$gutterLineHighlight);
8607                    return
8608                }
8609                this.$gutterLineHighlight.style.display = e ? "" : "none", this.$curs
8609orLayer.$pixelPos && this.$updateGutterLineHighlight()
8610            },
8611            initialValue: !1,
8612            value: !0
8613        },
8614        hScrollBarAlwaysVisible: {
8615            set: function(e) {
8616                (!this.$hScrollBarAlwaysVisible || !this.$horizScroll) && this.$loop.schedule(this.CHANGE_SCROLL)
8617            },
8618            initialValue: !1
8619        },
8620        vScrollBarAlwaysVisible: {
8621            set: function(e) {
8622                (!this.$vScrollBarAlwaysVisible || !this.$vScroll) && this.$loop.schedule(this.CHANGE_SCROLL)
8623            },
8624            initialValue: !1
8625        },
8626        fontSize: {
8627            set: function(e) {
8628                typeof e == "number" && (e += "px"), this.container.style.fontSize = e, this.updateFontSize()
8629            },
8630            initialValue: 12
8631        },
8632        fontFamily: {
8633            set: function(e) {
8634                this.container.style.fontFamily = e, this.updateFontSize()
8635            }
8636        },
8637        maxLines: {
8638            set: function(e) {
8639                this.updateFull()
8640            }
8641        },
8642        minLines: {
8643            set: function(e) {
8644                this.updateFull()
8645            }
8646        },
8647        scrollPastEnd: {
8648            set: function(e) {
8649                e = +e || 0;
8650                if (this.$scrollPastEnd == e) return;
8651                this.$scrollPastEnd = e, this.$loop.schedule(this.CHANGE_SCROLL)
8652            },
8653            initialValue: 0,
8654            handlesSet: !0
8655        },
8656        fixedWidthGutter: {
8657            set: function(e) {
8658                this.$gutterLayer.$fixedWidth = !!e, this.$loop.schedule(this.CHANGE_GUTTER)
8659            }
8660        },
8661        theme: {
8662            set: function(e) {
8663                this.setTheme(e)
8664            },
8665            get: function() {
8666                return this.$themeId || this.theme
8667            },
8668            initialValue: "./theme/textmate",
8669            handlesSet: !0
8670        }
8671    }), t.VirtualRenderer = g
8672}), define("ace/worker/worker_client", ["require", "exports", "module", "ace/lib/oop", "ace/lib/net", "ace/lib/event_emitter", "ace/config"], function(e, t, n) {
8673    "use strict";
8674    var r = e("../lib/oop"),
8675        i = e("../lib/net"),
8676        s = e("../lib/event_emitter").EventEmitter,
8677        o = e("../config"),
8678        u = function(t, n, r, i) {
8679            this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this), this.changeListener = this.changeListener.bind(this), this.onMessage = this.onMessage.bind(this), e.nameToUrl && !e.toUrl && (e.toUrl = e.nameToUrl);
8680            if (o.get("packaged") || !e.toUrl) i = i || o.moduleUrl(n, "worker");
8681            else {
8682                var s = this.$normalizePath;
8683                i = i || s(e.toUrl("ace/worker/worker.js", null, "_"));
8684                var u = {};
8685                t.forEach(function(t) {
8686                    u[t] = s(e.toUrl(t, null, "_").replace(/(\.js)?(\?.*)?$/, ""))
8687                })
8688            }
8689            try {
8690                this.$worker = new Worker(i)
8691            } catch (a) {
8692                if (!(a instanceof window.DOMException)) throw a;
8693                var f = this.$workerBlob(i),
8694                    l = window.URL || window.webkitURL,
8695                    c = l.createObjectURL(f);
8696                this.$worker = new Worker(c), l.revokeObjectURL(c)
8697            }
8698            this.$worker.postMessage({
8699                init: !0,
8700                tlns: u,
8701                module: n,
8702                classname: r
8703            }), this.callbackId = 1, this.callbacks = {}, this.$worker.onmessage = this.onMessage
8704        };
8705    (function() {
8706        r.implement(this, s), this.onMessage = function(e) {
8707            var t = e.data;
8708            switch (t.type) {
8709                case "event":
8710                    this._signal(t.name, {
8711                        data: t.data
8712                    });
8713                    break;
8714                case "call":
8715                    var n = this.callbacks[t.id];
8716                    n && (n(t.data), delete this.callbacks[t.id]);
8717                    break;
8718                case "error":
8719                    this.reportError(t.data);
8720                    break;
8721                case "log":
8722                    window.console && console.log && console.log.apply(console, t.data)
8723            }
8724        }, this.reportError = function(e) {
8725            window.console && console.error && console.error(e)
8726        }
8726, this.$normalizePath = function(e) {
8727            return i.qualifyURL(e)
8728        }, this.terminate = function() {
8729            this._signal("terminate", {}), this.deltaQueue = null, this.$worker.terminate(), this.$worker = null, this.$doc && this.$doc.off("change", this.changeListener), this.$doc = null
8730        }, this.send = function(e, t) {
8731            this.$worker.postMessage({
8732                command: e,
8733                args: t
8734            })
8735        }, this.call = function(e, t, n) {
8736            if (n) {
8737                var r = this.callbackId++;
8738                this.callbacks[r] = n, t.push(r)
8739            }
8740            this.send(e, t)
8741        }, this.emit = function(e, t) {
8742            try {
8743                this.$worker.postMessage({
8744                    event: e,
8745                    data: {
8746                        data: t.data
8747                    }
8748                })
8749            } catch (n) {
8750                console.error(n.stack)
8751            }
8752        }, this.attachToDocument = function(e) {
8753            this.$doc && this.terminate(), this.$doc = e, this.call("setValue", [e.getValue()]), e.on("change", this.changeListener)
8754        }, this.changeListener = function(e) {
8755            this.deltaQueue || (this.deltaQueue = [], setTimeout(this.$sendDeltaQueue, 0)), e.action == "insert" ? this.deltaQueue.push(e.start, e.lines) : this.deltaQueue.push(e.start, e.end)
8756        }, this.$sendDeltaQueue = function() {
8757            var e = this.deltaQueue;
8758            if (!e) return;
8759            this.deltaQueue = null, e.length > 50 && e.length > this.$doc.getLength() >> 1 ? this.call("setValue", [this.$doc.getValue()]) : this.emit("change", {
8760                data: e
8761            })
8762        }, this.$workerBlob = function(e) {
8763            var t = "importScripts('" + i.qualifyURL(e) + "');";
8764            try {
8765                return new Blob([t], {
8766                    type: "application/javascript"
8767                })
8768            } catch (n) {
8769                var r = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder,
8770                    s = new r;
8771                return s.append(t), s.getBlob("application/javascript")
8772            }
8773        }
8774    }).call(u.prototype);
8775    var a = function(e, t, n) {
8776        this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this), this.changeListener = this.changeListener.bind(this), this.callbackId = 1, this.callbacks = {}, this.messageBuffer = [];
8777        var r = null,
8778            i = !1,
8779            u = Object.create(s),
8780            a = this;
8781        this.$worker = {}, this.$worker.terminate = function() {}, this.$worker.postMessage = function(e) {
8782            a.messageBuffer.push(e), r && (i ? setTimeout(f) : f())
8783        }, this.setEmitSync = function(e) {
8784            i = e
8785        };
8786        var f = function() {
8787            var e = a.messageBuffer.shift();
8788            e.command ? r[e.command].apply(r, e.args) : e.event && u._signal(e.event, e.data)
8789        };
8790        u.postMessage = function(e) {
8791            a.onMessage({
8792                data: e
8793            })
8794        }, u.callback = function(e, t) {
8795            this.postMessage({
8796                type: "call",
8797                id: t,
8798                data: e
8799            })
8800        }, u.emit = function(e, t) {
8801            this.postMessage({
8802                type: "event",
8803                name: e,
8804                data: t
8805            })
8806        }, o.loadModule(["worker", t], function(e) {
8807            r = new e[n](u);
8808            while (a.messageBuffer.length) f()
8809        })
8810    };
8811    a.prototype = u.prototype, t.UIWorkerClient = a, t.WorkerClient = u
8812}), define("ace/placeholder", ["require", "exports", "module", "ace/range", "ace/lib/event_emitter", "ace/lib/oop"], function(e, t, n) {
8813    "use strict";
8814    var r = e("./range").Range,
8815        i = e("./lib/event_emitter").EventEmitter,
8816        s = e("./lib/oop"),
8817        o = function(e, t, n, r, i, s) {
8818            var o = this;
8819            this.length = t, this.session = e, this.doc = e.getDocument(), this.mainClass = i, this.othersClass = s, this.$onUpdate = this.onUpdate.bind(this), this.doc.on("change", this.$onUpdate), this.$others = r, this.$onCursorChange = function() {
8820                setTimeout(function() {
8821                    o.onCursorChange()
8822                })
8823            }, this.$pos = n;
8824            var u = e.getUndoManager().$undoStack || e.getUndoManager().$undostack || {
8825                length: -1
8826            };
8827            this.$undoStackDepth = u.length, this.setup(), e.selection.on("changeCursor", this.$onCursorChange)
8828        };
8829    (function() {
8830        s.implement(this, i), this.setup = function() {
8831            var e = this,
8832                t = this.doc,
8833                n = this.session,
8834                i = this.$pos;
8835            this.selectionBefore = n.selection.toJSON(), n.selection.inMultiSelectMode && n.selection.toSingleRange(), this.pos = t.createAnchor(i.row, i.column), this.markerId = n.addMarker(new r(i.row, i.column, i.row, i.column + this.length), this.mainClass, null, !1), this.pos.on("change", function(t) {
8836                n.removeMarker(e.markerId), e.markerId = n.addMarker(new r(t.value.row, t.value.column, t.value.row, t.value.column + e.length), e.mainClass, null, !1)
8837            }
8837), this.others = [], this.$others.forEach(function(n) {
8838                var r = t.createAnchor(n.row, n.column);
8839                e.others.push(r)
8840            }), n.setUndoSelect(!1)
8841        }, this.showOtherMarkers = function() {
8842            if (this.othersActive) return;
8843            var e = this.session,
8844                t = this;
8845            this.othersActive = !0, this.others.forEach(function(n) {
8846                n.markerId = e.addMarker(new r(n.row, n.column, n.row, n.column + t.length), t.othersClass, null, !1), n.on("change", function(i) {
8847                    e.removeMarker(n.markerId), n.markerId = e.addMarker(new r(i.value.row, i.value.column, i.value.row, i.value.column + t.length), t.othersClass, null, !1)
8848                })
8849            })
8850        }, this.hideOtherMarkers = function() {
8851            if (!this.othersActive) return;
8852            this.othersActive = !1;
8853            for (var e = 0; e < this.others.length; e++) this.session.removeMarker(this.others[e].markerId)
8854        }, this.onUpdate = function(e) {
8855            var t = e;
8856            if (t.start.row !== t.end.row) return;
8857            if (t.start.row !== this.pos.row) return;
8858            if (this.$updating) return;
8859            this.$updating = !0;
8860            var n = e.action === "insert" ? t.end.column - t.start.column : t.start.column - t.end.column;
8861            if (t.start.column >= this.pos.column && t.start.column <= this.pos.column + this.length + 1) {
8862                var i = t.start.column - this.pos.column;
8863                this.length += n;
8864                if (!this.session.$fromUndo) {
8865                    if (e.action === "insert")
8866                        for (var s = this.others.length - 1; s >= 0; s--) {
8867                            var o = this.others[s],
8868                                u = {
8869                                    row: o.row,
8870                                    column: o.column + i
8871                                };
8872                            o.row === t.start.row && t.start.column < o.column && (u.column += n), this.doc.insertMergedLines(u, e.lines)
8873                        } else if (e.action === "remove")
8874                            for (var s = this.others.length - 1; s >= 0; s--) {
8875                                var o = this.others[s],
8876                                    u = {
8877                                        row: o.row,
8878                                        column: o.column + i
8879                                    };
8880                                o.row === t.start.row && t.start.column < o.column && (u.column += n), this.doc.remove(new r(u.row, u.column, u.row, u.column - n))
8881                            }
8882                        t.start.column === this.pos.column && e.action === "insert" ? setTimeout(function() {
8883                        this.pos.setPosition(this.pos.row, this.pos.column - n);
8884                        for (var e = 0; e < this.others.length; e++) {
8885                            var r = this.others[e],
8886                                i = {
8887                                    row: r.row,
8888                                    column: r.column - n
8889                                };
8890                            r.row === t.start.row && t.start.column < r.column && (i.column += n), r.setPosition(i.row, i.column)
8891                        }
8892                    }.bind(this), 0) : t.start.column === this.pos.column && e.action === "remove" && setTimeout(function() {
8893                        for (var e = 0; e < this.others.length; e++) {
8894                            var r = this.others[e];
8895                            r.row === t.start.row && t.start.column < r.column && r.setPosition(r.row, r.column - n)
8896                        }
8897                    }.bind(this), 0)
8898                }
8899                this.pos._emit("change", {
8900                    value: this.pos
8901                });
8902                for (var s = 0; s < this.others.length; s++) this.others[s]._emit("change", {
8903                    value: this.others[s]
8904                })
8905            }
8906            this.$updating = !1
8907        }, this.onCursorChange = function(e) {
8908            if (this.$updating || !this.session) return;
8909            var t = this.session.selection.getCursor();
8910            t.row === this.pos.row && t.column >= this.pos.column && t.column <= this.pos.column + this.length ? (this.showOtherMar
8910kers(), this._emit("cursorEnter", e)) : (this.hideOtherMarkers(), this._emit("cursorLeave", e))
8911        }, this.detach = function() {
8912            this.session.removeMarker(this.markerId), this.hideOtherMarkers(), this.doc.removeEventListener("change", this.$onUpdate), this.session.selection.removeEventListener("changeCursor", this.$onCursorChange), this.pos.detach();
8913            for (var e = 0; e < this.others.length; e++) this.others[e].detach();
8914            this.session.setUndoSelect(!0), this.session = null
8915        }, this.cancel = function() {
8916            if (this.$undoStackDepth === -1) throw Error("Canceling placeholders only supported with undo manager attached to session.");
8917            var e = this.session.getUndoManager(),
8918                t = (e.$undoStack || e.$undostack).length - this.$undoStackDepth;
8919            for (var n = 0; n < t; n++) e.undo(!0);
8920            this.selectionBefore && this.session.selection.fromJSON(this.selectionBefore)
8921        }
8922    }).call(o.prototype), t.PlaceHolder = o
8923}), define("ace/mouse/multi_select_handler", ["require", "exports", "module", "ace/lib/event", "ace/lib/useragent"], function(e, t, n) {
8924    function s(e, t) {
8925        return e.row == t.row && e.column == t.column
8926    }
8927
8928    function o(e) {
8929        var t = e.domEvent,
8930            n = t.altKey,
8931            o = t.shiftKey,
8932            u = t.ctrlKey,
8933            a = e.getAccelKey(),
8934            f = e.getButton();
8935        u && i.isMac && (f = t.button);
8936        if (e.editor.inMultiSelectMode && f == 2) {
8937            e.editor.textInput.onContextMenu(e.domEvent);
8938            return
8939        }
8940        if (!u && !n && !a) {
8941            f === 0 && e.editor.inMultiSelectMode && e.editor.exitMultiSelectMode();
8942            return
8943        }
8944        if (f !== 0) return;
8945        var l = e.editor,
8946            c = l.selection,
8947            h = l.inMultiSelectMode,
8948            p = e.getDocumentPosition(),
8949            d = c.getCursor(),
8950            v = e.inSelection() || c.isEmpty() && s(p, d),
8951            m = e.x,
8952            g = e.y,
8953            y = function(e) {
8954                m = e.clientX, g = e.clientY
8955            },
8956            b = l.session,
8957            w = l.renderer.pixelToScreenCoordinates(m, g),
8958            E = w,
8959            S;
8960        if (l.$mouseHandler.$enableJumpToDef) u && n || a && n ? S = o ? "block" : "add" : n && l.$blockSelectEnabled && (S = "block");
8961        else if (a && !n) {
8962            S = "add";
8963            if (!h && o) return
8964        } else n && l.$blockSelectEnabled && (S = "block");
8965        S && i.isMac && t.ctrlKey && l.$mouseHandler.cancelContextMenu();
8966        if (S == "add") {
8967            if (!h && v) return;
8968            if (!h) {
8969                var x = c.toOrientedRange();
8970                l.addSelectionMarker(x)
8971            }
8972            var T = c.rangeList.rangeAtPoint(p);
8973            l.$blockScrolling++, l.inVirtualSelectionMode = !0, o && (T = null, x = c.ranges[0] || x, l.removeSelectionMarker(x)), l.once("mouseup", function() {
8974                var e = c.toOrientedRange();
8975                T && e.isEmpty() && s(T.cursor, e.cursor) ? c.substractPoint(e.cursor) : (o ? c.substractPoint(x.cursor) : x && (l.removeSelectionMarker(x), c.addRange(x)), c.addRange(e)), l.$blockScrolling--, l.inVirtualSelectionMode = !1
8976            })
8977        } else if (S == "block") {
8978            e.stop(), l.inVirtualSelectionMode = !0;
8979            var N, C = [],
8980                k = function() {
8981                    var e = l.renderer.pixelToScreenCoordinates(m, g),
8982                        t = b.screenToDocumentPosition(e.row, e.column);
8983                    if (s(E, e) && s(t, c.lead)) return;
8984                    E = e, l.$blockScrolling++, l.selection.moveToPosition(t), l.renderer.scrollCursorIntoView(), l.removeSelectionMarkers(C), C = c.rectangularRangeBlock(E, w), l.$mouseHandler.$clickSelection && C.length == 1 && C[0].isEmpty() && (C[0] = l.$mouseHandler.$clickSelection.clone()), C.forEach(l.addSelectionMarker, l), l.updateSelectionMarkers(), l.$blockScrolling--
8985                };
8986            l.$blockScrolling++, h && !a ? c.toSingleRange() : !h && a && (N = c.toOrientedRange(), l.addSelectionMarker(N)), o ? w = b.documentToScreenPosition(c.lead) : c.moveToPosition(p), l.$blockScrolling--, E = {
8987                row: -1,
8988                column: -1
8989            };
8990            var L = function(e) {
8991                    clearInterval(O), l.removeSelectionMarkers(C), C.length || (C = [c.toOrientedRange()]), l.$blockScrolling++, N && (l.removeSelectionMarker(N), c.toSingleRange(N));
8992                    for (var t = 0; t < C.length; t++) c.addRange(C[t]);
8993                    l.inVirtualSelectionMode = !1, l.$mouseHandler.$clickSelection = null, l.$blockScrolling--
8994                },
8995                A = k;
8996            r.capture(l.container, y, L);
8997            var O = setInterval(function() {
8998                A()
8999            }, 20);
9000            return e.preventDefault()
9001        }
9002    }
9003    var r = e("../lib/event"),
9004        i = e("../lib/useragent");
9005    t.onMouseDown = o
9006}), define("ace/commands/multi_select_commands", ["require", "exports", "module", "ace/keyboard/hash_handler"], function(e, t, n) {
9007    t.defaultCommands = [{
9008        name: "addCursorAbove",
9009        exec: function(e) {
9010            e.selectMoreLines(-1)
9011        },
9012        bindKey: {
9013            win: "Ctrl-Alt-Up",
9014            mac: "Ctrl-Alt-Up"
9015        },
9016        scrollIntoView: "cursor",
9017        readOnly: !0
9018    }, {
9019        name: "addCursorBelow",
9020        exec: function(e) {
9021            e.selectMoreLines(1)
9022        },
9023        bindKey: {
9024            win: "Ctrl-Alt-Down",
9025            mac: "Ctrl-Alt-Down"
9026        },
9027        scrollIntoView: "cursor",
9028        readOnly: !0
9029    }, {
9030        name: "addCursorAboveSkipCurrent",
9031        exec: function(e) {
9032            e.selectMoreLines(-1, !0)
9033        },
9034        bindKey: {
9035            win: "Ctrl-Alt-Shift-Up",
9036            mac: "Ctrl-Alt-Shift-Up"
9037        },
9038        scrollIntoView: "cursor",
9039        readOnly: !0
9040    }, {
9041        name: "addCursorBelowSkipCurrent",
9042        exec: function(e) {
9043            e.selectMoreLines(1, !0)
9044        },
9045        bindKey: {
9046            win: "Ctrl-Alt-Shift-Down",
9047            mac: "Ctrl-Alt-Shift-Down"
9048        },
9049        scrollIntoView: "cursor",
9050        readOnly: !0
9051    }, {
9052        name: "selectMoreBefore",
9053        exec: function(e) {
9054            e.selectMore(-1)
9055        },
9056        bindKey: {
9057            win: "Ctrl-Alt-Left",
9058            mac: "Ctrl-Alt-Left"
9059        },
9060        scrollIntoView: "cursor",
9061        readOnly: !0
9062    }, {
9063        name: "selectMoreAfter",
9064        exec: function(e) {
9065            e.selectMore(1)
9066        },
9067        bindKey: {
9068            win: "Ctrl-Alt-Right",
9069            mac: "Ctrl-Alt-Right"
9070        },
9071        scrollIntoView: "cursor",
9072        readOnly: !0
9073    }, {
9074        name: "selectNextBefore",
9075        exec: function(e) {
9076            e.selectMore(-1, !0)
9077        },
9078        bindKey: {
9079            win: "Ctrl-Alt-Shift-Left",
9080            mac: "Ctrl-Alt-Shift-Left"
9081        },
9082        scrollIntoView: "cursor",
9083        readOnly: !0
9084    }, {
9085        name: "selectNextAfter",
9086        exec: function(e) {
9087            e.selectMore(1, !0)
9088        },
9089        bindKey: {
9090            win: "Ctrl-Alt-Shift-Right",
9091            mac: "Ctrl-Alt-Shift-Right"
9092        },
9093        scrollIntoView: "cursor",
9094        readOnly: !0
9095    }, {
9096        name: "splitIntoLines",
9097        exec: function(e) {
9098            e.multiSelect.splitIntoLines()
9099        },
9100        bindKey: {
9101            win: "Ctrl-Alt-L",
9102            mac: "Ctrl-Alt-L"
9103        },
9104        readOnly: !0
9105    }, {
9106        name: "alignCursors",
9107        exec: function(e) {
9108            e.alignCursors()
9109        },
9110        bindKey: {
9111            win: "Ctrl-Alt-A",
9112            mac: "Ctrl-Alt-A"
9113        },
9114        scrollIntoView: "cursor"
9115    }, {
9116        name: "findAll",
9117        exec: function(e) {
9118            e.findAll()
9119        },
9120        bindKey: {
9121            win: "Ctrl-Alt-K",
9122            mac: "Ctrl-Alt-G"
9123        },
9124        scrollIntoView: "cursor",
9125        readOnly: !0
9126    }], t.multiSelectCommands = [{
9127        name: "singleSelection",
9128        bindKey: "esc",
9129        exec: function(e) {
9130            e.exitMultiSelectMode()
9131        },
9132        scrollIntoView: "cursor",
9133        readOnly: !0,
9134        isAvailable: function(e) {
9135            return e && e.inMultiSelectMode
9136        }
9137    }];
9138    var r = e("../keyboard/hash_handler").HashHandler;
9139    t.keyboardHandler = new r(t.multiSelectCommands)
9140}), define("ace/multi_select", ["require", "exports", "module", "ace/range_list", "ace/range", "ace/selection", "ace/mouse/multi_select_handler", "ace/lib/event", "ace/lib/lang", "ace/commands/multi_select_commands", "ace/search", "ace/edit_session", "ace/editor", "ace/config"], function(e, t, n) {
9141    function h(e, t, n) {
9142        return c.$options.wrap = !0, c.$options.needle = t, c.$options.backwards = n == -1, c.find(e)
9143    }
9144
9145    function v(e, t) {
9146        return e.row == t.row && e.column == t.column
9147    }
9148
9149    function m(e) {
9150        if (e.$multiselectOnSessionChange) return;
9151        e.$onAddRange = e.$onAddRange.bind(e), e.$onRemoveRange = e.$onRemoveRange.bind(e), e.$onMultiSelect = e.$onMultiSelect.bind(e), e.$onSingleSelect = e.$onSingleSelect.bind(e), e.$multiselectOnSessionChange = t.onSessionChange.bind(e), e.$checkMultiselectChange = e.$checkMultiselectChange.bind(e), e.$multiselectOnSessionChange(e), e.on("changeSession", e.$multiselectOnSessionChange), e.on("mousedown", o), e.commands.addCommands(f.defaultCommands), g(e)
9152    }
9153
9154    function g(e) {
9155        function r(t) {
9156            n && (e.renderer.setMouseCursor(""), n = !1)
9157        }
9158        var t = e.textInput.getElement(),
9159            n = !1;
9160        u.addListener(t, "keydown", function(t) {
9161            var i = t.keyCode == 18 && !(t.ctrlKey || t.shiftKey || t.metaKey);
9162            e.$blockSelectEnabled && i ? n || (e.renderer.setMouseCursor("crosshair"), n = !0) : n && r()
9163        }), u.addListener(t, "keyup", r), u.addListener(t, "blur", r)
9164    }
9165    var r = e("./range_list").RangeList,
9166        i = e("./range").Range,
9167        s = e("./selection").Selection,
9168        o = e("./mouse/multi_select_handler").onMouseDown,
9169        u = e("./lib/event"),
9170        a = e("./lib/lang"),
9171        f = e("./commands/multi_select_commands");
9172    t.commands = f.defaultCommands.concat(f.multiSelectCommands);
9173    var l = e("./search").Search,
9174        c = new l,
9175        p = e("./edit_session").EditSession;
9176    (function() {
9177        this.getSelectionMarkers = function() {
9178            return this.$selectionMarkers
9179        }
9180    }).call(p.prototype),
9181        function() {
9182            this.ranges = null, this.rangeList = null, this.addRange = function(e, t) {
9183                if (!e) return;
9184                if (!this.inMultiSelectMode && this.rangeCount === 0) {
9185                    var n = this.toOrientedRange();
9186                    this.rangeList.add(n), this.rangeList.add(e);
9187                    if (this.rangeList.ranges.length != 2) return this.rangeList.removeAll(), t || this.fromOrientedRange(e);
9188                    this.rangeList.removeAll(), this.rangeList.add(n), this.$onAddRange(n)
9189                }
9190                e.cursor || (e.cursor = e.end);
9191                var r = this.rangeList.add(e);
9192                return this.$onAddRange(e), r.length && this.$onRemoveRange(r), this.rangeCount > 1 && !this.inMultiSelectMode && (this._signal("multiSelect"), this.inMultiSelectMode = !0, this.session.$undoSelect = !1, this.rangeList.attach(this.session)), t || this.fromOrientedRange(e)
9193            }, this.toSingleRange = function(e) {
9194                e = e || this.ranges[0];
9195                var t = this.rangeList.removeAll();
9196                t.length && this.$onRemoveRange(t), e && this.fromOrientedRange(e)
9197            }, this.substractPoint = function(e) {
9198                var t = this.rangeList.substractPoint(e);
9199                if (t) return this.$onRemoveRange(t), t[0]
9200            }, this.mergeOverlappingRanges = function() {
9201                var e = this.rangeList.merge();
9202                e.length ? this.$onRemoveRange(e) : this.ranges[0] && this.fromOrientedRange(this.ranges[0])
9203            }, this.$onAddRange = function(e) {
9204                this.rangeCount = this.rangeList.ranges.length, this.ranges.unshift(e), this._signal("addRange", {
9205                    range: e
9206                })
9207            }, this.$onRemoveRange = function(e) {
9208                this.rangeCount = this.rangeList.ranges.length;
9209                if (this.rangeCount == 1 && this.inMultiSelectMode) {
9210                    var t = this.rangeList.ranges.pop();
9211                    e.push(t), this.rangeCount = 0
9212                }
9213                for (var n = e.length; n--;) {
9214                    var r = this.ranges.indexOf(e[n]);
9215                    this.ranges.splice(r, 1)
9216                }
9217                this._signal("removeRange", {
9218                    ranges: e
9219                }), this.rangeCount === 0 && this.inMultiSelectMode && (this.inMultiSelectMode = !1, this._signal("singleSelect"), this.session.$undoSelect = !0, this.rangeList.detach(this.session)), t = t || this.ranges[0], t && !t.isEqual(this.getRange()) && this.fromOrientedRange(t)
9220            }, this.$initRangeList = function() {
9221                if (this.rangeList) return;
9222                this.rangeList = new r, this.ranges = [], this.rangeCount = 0
9223            }, this.getAllRanges = function() {
9224                return this.rangeCount ? this.rangeList.ranges.concat() : [this.getRange()]
9225            }, this.splitIntoLines = function() {
9226                if (this.rangeCount > 1) {
9227                    var e = this.rangeList.ranges,
9228                        t = e[e.length - 1],
9229                        n = i.fromPoints(e[0].start, t.end);
9230                    this.toSingleRange(), this.setSelectionRange(n, t.cursor == t.start)
9231                } else {
9232                    var n = this.getRange(),
9233                        r = this.isBackwards(),
9234                        s = n.start.row,
9235                        o = n.end.row;
9236                    if (s == o) {
9237                        if (r) var u = n.end,
9238                            a = n.start;
9239                        else var u = n.start,
9240                            a = n.end;
9241                        this.addRange(i.fromPoints(a, a)), this.addRange(i.fromPoints(u, u));
9242                        return
9243                    }
9244                    var f = [],
9245                        l = this.getLineRange(s, !0);
9246                    l.start.column = n.start.column, f.push(l);
9247                    for (var c = s + 1; c < o; c++) f.push(this.getLineRange(c, !0));
9248                    l = this.getLineRange(o, !0), l.end.column = n.end.column, f.push(l), f.forEach(this.addRange, this)
9249                }
9250            }, this.toggleBlockSelection = function() {
9251                if (this.rangeCount > 1) {
9252                    var e = this.rangeList.ranges,
9253                        t = e[e.length - 1],
9254                        n = i.fromPoints(e[0].start, t.end);
9255                    this.toSingleRange(), this.setSelectionRange(n, t.cursor == t.start)
9256                } else {
9257                    var r = this.session.documentToScreenPosition(this.selectionLead),
9258                        s = this.session.documentToScreenPosition(this.selectionAnchor),
9259                        o = this.rectangularRangeBlock(r, s);
9260                    o.forEach(this.addRange, this)
9261                }
9262            }, this.rectangularRangeBlock = function(e, t, n) {
9263                var r = [],
9264                    s = e.column < t.column;
9265                if (s) var o = e.column,
9266                    u = t.column;
9267                else var o = t.column,
9268                    u = e.column;
9269                var a = e.row < t.row;
9270                if (a) var f = e.row,
9271                    l = t.row;
9272                else var f = t.row,
9273                    l = e.row;
9274                o < 0 && (o = 0), f < 0 && (f = 0), f == l && (n = !0);
9275                for (var c = f; c <= l; c++) {
9276                    var h = i.fromPoints(this.session.screenToDocumentPosition(c, o), this.session.screenToDocumentPosition(c, u));
9277                    if (h.isEmpty()) {
9278                        if (p && v(h.end, p)) break;
9279                        var p = h.end
9280                    }
9281                    h.cursor = s ? h.start : h.end, r.push(h)
9282                }
9283                a && r.reverse();
9284                if (!n) {
9285                    var d = r.length - 1;
9286                    while (r[d].isEmpty() && d > 0) d--;
9287                    if (d > 0) {
9288                        var m = 0;
9289                        while (r[m].isEmpty()) m++
9290                    }
9291                    for (var g = d; g >= m; g--) r[g].isEmpty() && r.splice(g, 1)
9292                }
9293                return r
9294            }
9295        }.call(s.prototype);
9296    var d = e("./editor").Editor;
9297    (function() {
9298        this.updateSelectionMarkers = function() {
9299            this.renderer.updateCursor(), this.renderer.updateBackMarkers()
9300        }, this.addSelectionMarker = function(e) {
9301            e.cursor || (e.cursor = e.end);
9302            var t = this.getSelectionStyle();
9303            return e.marker = this.session.addMarker(e, "ace_selection", t), this.session.$selectionMarkers.push(e), this.session.selectionMarkerCount = this.session.$selectionMarkers.length, e
9304        }, this.removeSelectionMarker = function(e) {
9305            if (!e.marker) return;
9306            this.session.removeMarker(e.marker);
9307            var t = this.session.$selectionMarkers.indexOf(e);
9308            t != -1 && this.session.$selectionMarkers.splice(t, 1), this.session.selectionMarkerCount = this.session.$selectionMarkers.length
9309        }, this.removeSelectionMarkers = function(e) {
9310            var t = this.session.$selectionMarkers;
9311            for (var n = e.length; n--;) {
9312                var r = e[n];
9313                if (!r.marker) continue;
9314                this.session.removeMarker(r.marker);
9315                var i = t.indexOf(r);
9316                i != -1 && t.splice(i, 1)
9317            }
9318            this.session.selectionMarkerCount = t.length
9319        }, this.$onAddRange = function(e) {
9320            this.addSelectionMarker(e.range), this.renderer.updateCursor(), this.renderer.updateBackMarkers()
9321        }, this.$onRemoveRange = function(e) {
9322            this.removeSelectionMarkers(e.ranges), this.renderer.updateCursor(), this.renderer.updateBackMarkers()
9323        }, this.$onMultiSelect = function(e) {
9324            if (this.inMultiSelectMode) return;
9325            this.inMultiSelectMode = !0, this.setStyle("ace_multiselect"), this.keyBinding.addKeyboardHandler(f.keyboardHandler), this.commands.setDefaultHandler("exec", this.$onMultiSelectExec), this.renderer.updateCursor(), this.renderer.updateBackMarkers()
9326        }, this.$onSingleSelect = function(e) {
9327            if (this.session.multiSelect.inVirtualMode) return;
9328            this.inMultiSelectMode = !1, this.unsetStyle("ace_multiselect"), this.keyBinding.removeKeyboardHandler(f.keyboardHandler), this.commands.removeDefaultHandler("exec", this.$onMultiSelectExec), this.renderer.updateCursor(), this.renderer.updateBackMarkers(), this._emit("changeSelection")
9329        }, this.$onMultiSelectExec = function(e) {
9330            var t = e.command,
9331                n = e.editor;
9332            if (!n.multiSelect) return;
9333            if (!t.multiSelectAction) {
9334                var r = t.exec(n, e.args || {});
9335                n.multiSelect.addRange(n.multiSelect.toOrientedRange()), n.multiSelect.mergeOverlappingRanges()
9336            } else t.multiSelectAction == "forEach" ? r = n.forEachSelection(t, e.args) : t.multiSelectAction == "forEachLine" ? r = n.forEachSelection(t, e.args, !0) : t.multiSelectAction == "single" ? (n.exitMultiSelectMode(), r = t.exec(n, e.args || {})) : r = t.multiSelectAction(n, e.args || {});
9337            return r
9338        }, this.forEachSelection = function(e, t, n) {
9339            if (this.inVirtualSelectionMode) return;
9340            var r = n && n.keepOrder,
9341                i = n == 1 || n && n.$byLines,
9342                o = this.session,
9343                u = this.selection,
9344                a = u.rangeList,
9345                f = (r ? u : a).ranges,
9346                l;
9347            if (!f.length) return e.exec ? e.exec(this, t || {}) : e(this, t || {});
9348            var c = u._eventRegistry;
9349            u._eventRegistry = {};
9350            var h = new s(o);
9351            this.inVirtualSelectionMode = !0;
9352            for (var p = f.length; p--;) {
9353                if (i)
9354                    while (p > 0 && f[p].start.row == f[p - 1].end.row) p--;
9355                h.fromOrientedRange(f[p]), h.index = p, this.selection = o.selection = h;
9356                var d = e.exec ? e.exec(this, t || {}) : e(this, t || {});
9357                !l && d !== undefined && (l = d), h.toOrientedRange(f[p])
9358            }
9359            h.detach(), this.selection = o.selection = u, this.inVirtualSelectionMode = !1, u._eventRegistry = c, u.mergeOverlappingRanges();
9360            var v = this.renderer.$scrollAnimation;
9361            return this.onCursorChange(), this.onSelectionChange(), v && v.from == v.to && this.renderer.animateScrolling(v.from), l
9362        }, this.exitMultiSelectMode = function() {
9363            if (!this.inMultiSelectMode || this.inVirtualSelectionMode) return;
9364            this.multiSelect.toSingleRange()
9365        }, this.getSelectedText = function() {
9366            var e = "";
9367            if (this.inMultiSelectMode && !this.inVirtualSelectionMode) {
9368                var t = this.multiSelect.rangeList.ranges,
9369                    n = [];
9370                for (var r = 0; r < t.length; r++) n.push(this.session.getTextRange(t[r]));
9371                var i = this.session.getDocument().getNewLineCharacter();
9372                e = n.join(i), e.length == (n.length - 1) * i.length && (e = "")
9373            } else this.selection.isEmpty() || (e = this.session.getTextRange(this.getSelectionRange()));
9374            return e
9375        }, this.$checkMultiselectChange = function(e, t) {
9376            if (this.inMultiSelectMode && !this.inVirtualSelectionMode) {
9377                var n = this.multiSelect.ranges[0];
9378                if (this.multiSelect.isEmpty() && t == this.multiSelect.anchor) return;
9379                var r = t == this.multiSelect.anchor ? n.cursor == n.start ? n.end : n.start : n.cursor;
9380                (r.row != t.row || this.session.$clipPositionToDocument(r.row, r.column).column != t.column) && this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())
9381            }
9382        }, this.findAll = function(e, t, n) {
9383            t = t || {}, t.needle = e || t.needle;
9384            if (t.needle == undefined) {
9385                var r = this.selection.isEmpty() ? this.selection.getWordRange() : this.selection.getRange();
9386                t.needle = this.session.getTextRange(r)
9387            }
9388            this.$search.set(t);
9389            var i = this.$search.findAll(this.session);
9390            if (!i.length) return 0;
9391            this.$blockScrolling += 1;
9392            var s = this.multiSelect;
9393            n || s.toSingleRange(i[0]);
9394            for (var o = i.length; o--;) s.addRange(i[o], !0);
9395            return r && s.rangeList.rangeAtPoint(r.start) && s.addRange(r, !0), this.$blockScrolling -= 1, i.length
9396        }, this.selectMoreLines = function(e, t) {
9397            var n = this.selection.toOrientedRange(),
9398                r = n.cursor == n.end,
9399                s = this.session.documentToScreenPosition(n.cursor);
9400            this.selection.$desiredColumn && (s.column = this.selection.$desiredColumn);
9401            var o = this.session.screenToDocumentPosition(s.row + e, s.column);
9402            if (!n.isEmpty()) var u = this.session.documentToScreenPosition(r ? n.end : n.start),
9403                a = this.session.screenToDocumentPosition(u.row + e, u.column);
9404            else var a = o;
9405            if (r) {
9406                var f = i.fromPoints(o, a);
9407                f.cursor = f.start
9408            } else {
9409                var f = i.fromPoints(a, o);
9410                f.cursor = f.end
9411            }
9412            f.desiredColumn = s.column;
9413            if (!this.selection.inMultiSelectMode) this.selection.addRange(n);
9414            else if (t) var l = n.cursor;
9415            this.selection.addRange(f), l && this.selection.substractPoint(l)
9416        }, this.transposeSelections = function(e) {
9417            var t = this.session,
9418                n = t.multiSelect,
9419                r = n.ranges;
9420            for (var i = r.length; i--;) {
9421                var s = r[i];
9422                if (s.isEmpty()) {
9423                    var o = t.getWordRange(s.start.row, s.start.column);
9424                    s.start.row = o.start.row, s.start.column = o.start.column, s.end.row 
9424= o.end.row, s.end.column = o.end.column
9425                }
9426            }
9427            n.mergeOverlappingRanges();
9428            var u = [];
9429            for (var i = r.length; i--;) {
9430                var s = r[i];
9431                u.unshift(t.getTextRange(s))
9432            }
9433            e < 0 ? u.unshift(u.pop()) : u.push(u.shift());
9434            for (var i = r.length; i--;) {
9435                var s = r[i],
9436                    o = s.clone();
9437                t.replace(s, u[i]), s.start.row = o.start.row, s.start.column = o.start.column
9438            }
9439        }, this.selectMore = function(e, t, n) {
9440            var r = this.session,
9441                i = r.multiSelect,
9442                s = i.toOrientedRange();
9443            if (s.isEmpty()) {
9444                s = r.getWordRange(s.start.row, s.start.column), s.cursor = e == -1 ? s.start : s.end, this.multiSelect.addRange(s);
9445                if (n) return
9446            }
9447            var o = r.getTextRange(s),
9448                u = h(r, o, e);
9449            u && (u.cursor = e == -1 ? u.start : u.end, this.$blockScrolling += 1, this.session.unfold(u), this.multiSelect.addRange(u), this.$blockScrolling -= 1, this.renderer.scrollCursorIntoView(null, .5)), t && this.multiSelect.substractPoint(s.cursor)
9450        }, this.alignCursors = function() {
9451            var e = this.session,
9452                t = e.multiSelect,
9453                n = t.ranges,
9454                r = -1,
9455                s = n.filter(function(e) {
9456                    if (e.cursor.row == r) return !0;
9457                    r = e.cursor.row
9458                });
9459            if (!n.length || s.length == n.length - 1) {
9460                var o = this.selection.getRange(),
9461                    u = o.start.row,
9462                    f = o.end.row,
9463                    l = u == f;
9464                if (l) {
9465                    var c = this.session.getLength(),
9466                        h;
9467                    do h = this.session.getLine(f); while (/[=:]/.test(h) && ++f < c);
9468                    do h = this.session.getLine(u); while (/[=:]/.test(h) && --u > 0);
9469                    u < 0 && (u = 0), f >= c && (f = c - 1)
9470                }
9471                var p = this.session.removeFullLines(u, f);
9472                p = this.$reAlignText(p, l), this.session.insert({
9473                    row: u,
9474                    column: 0
9475                }, p.join("\n") + "\n"), l || (o.start.column = 0, o.end.column = p[p.length - 1].length), this.selection.setRange(o)
9476            } else {
9477                s.forEach(function(e) {
9478                    t.substractPoint(e.cursor)
9479                });
9480                var d = 0,
9481                    v = Infinity,
9482                    m = n.map(function(t) {
9483                        var n = t.cursor,
9484                            r = e.getLine(n.row),
9485                            i = r.substr(n.column).search(/\S/g);
9486                        return i == -1 && (i = 0), n.column > d && (d = n.column), i < v && (v = i), i
9487                    });
9488                n.forEach(function(t, n) {
9489                    var r = t.cursor,
9490                        s = d - r.column,
9491                        o = m[n] - v;
9492                    s > o ? e.insert(r, a.stringRepeat(" ", s - o)) : e.remove(new i(r.row, r.column, r.row, r.column - s + o)), t.start.column = t.end.column = d, t.start.row = t.end.row = r.row, t.cursor = t.end
9493                }), t.fromOrientedRange(n[0]), this.renderer.updateCursor(), this.renderer.updateBackMarkers()
9494            }
9495        }, this.$reAlignText = function(e, t) {
9496            function u(e) {
9497                return a.stringRepeat(" ", e)
9498            }
9499
9500            function f(e) {
9501                return e[2] ? u(i) + e[2] + u(s - e[2].length + o) + e[4].replace(/^([=:])\s+/, "$1 ") : e[0]
9502            }
9503
9504            function l(e) {
9505                return e[2] ? u(i + s - e[2].length) + e[2] + u(o, " ") + e[4].replace(/^([=:])\s+/, "$1 ") : e[0]
9506            }
9507
9508            function c(e) {
9509                return e[2] ? u(i) + e[2] + u(o) + e[4].replace(/^([=:])\s+/, "$1 ") : e[0]
9510            }
9511            var n = !0,
9512                r = !0,
9513                i, s, o;
9514            return e.map(function(e) {
9515                var t = e.match(/(\s*)(.*?)(\s*)([=:].*)/);
9516                return t ? i == null ? (i = t[1].length, s = t[2].length, o = t[3].length, t) : (i + s + o != t[1].length + t[2].length + t[3].length && (r = !1), i != t[1].length && (n = !1), i > t[1].length && (i = t[1].length), s < t[2].length && (s = t[2].length), o > t[3].length && (o = t[3].length), t) : [e]
9517            }).map(t ? f : n ? r ? l : f : c)
9518        }
9519    }).call(d.prototype), t.onSessionChange = function(e) {
9520        var t = e.session;
9521        t && !t.multiSelect && (t.$selectionMarkers = [], t.selection.$initRangeList(
9521), t.multiSelect = t.selection), this.multiSelect = t && t.multiSelect;
9522        var n = e.oldSession;
9523        n && (n.multiSelect.off("addRange", this.$onAddRange), n.multiSelect.off("removeRange", this.$onRemoveRange), n.multiSelect.off("multiSelect", this.$onMultiSelect), n.multiSelect.off("singleSelect", this.$onSingleSelect), n.multiSelect.lead.off("change", this.$checkMultiselectChange), n.multiSelect.anchor.off("change", this.$checkMultiselectChange)), t && (t.multiSelect.on("addRange", this.$onAddRange), t.multiSelect.on("removeRange", this.$onRemoveRange), t.multiSelect.on("multiSelect", this.$onMultiSelect), t.multiSelect.on("singleSelect", this.$onSingleSelect), t.multiSelect.lead.on("change", this.$checkMultiselectChange), t.multiSelect.anchor.on("change", this.$checkMultiselectChange)), t && this.inMultiSelectMode != t.selection.inMultiSelectMode && (t.selection.inMultiSelectMode ? this.$onMultiSelect() : this.$onSingleSelect())
9524    }, t.MultiSelect = m, e("./config").defineOptions(d.prototype, "editor", {
9525        enableMultiselect: {
9526            set: function(e) {
9527                m(this), e ? (this.on("changeSession", this.$multiselectOnSessionChange), this.on("mousedown", o)) : (this.off("changeSession", this.$multiselectOnSessionChange), this.off("mousedown", o))
9528            },
9529            value: !0
9530        },
9531        enableBlockSelect: {
9532            set: function(e) {
9533                this.$blockSelectEnabled = e
9534            },
9535            value: !0
9536        }
9537    })
9538}), define("ace/mode/folding/fold_mode", ["require", "exports", "module", "ace/range"], function(e, t, n) {
9539    "use strict";
9540    var r = e("../../range").Range,
9541        i = t.FoldMode = function() {};
9542    (function() {
9543        this.foldingStartMarker = null, this.foldingStopMarker = null, this.getFoldWidget = function(e, t, n) {
9544            var r = e.getLine(n);
9545            return this.foldingStartMarker.test(r) ? "start" : t == "markbeginend" && this.foldingStopMarker && this.foldingStopMarker.test(r) ? "end" : ""
9546        }, this.getFoldWidgetRange = function(e, t, n) {
9547            return null
9548        }, this.indentationBlock = function(e, t, n) {
9549            var i = /\S/,
9550                s = e.getLine(t),
9551                o = s.search(i);
9552            if (o == -1) return;
9553            var u = n || s.length,
9554                a = e.getLength(),
9555                f = t,
9556                l = t;
9557            while (++t < a) {
9558                var c = e.getLine(t).search(i);
9559                if (c == -1) continue;
9560                if (c <= o) break;
9561                l = t
9562            }
9563            if (l > f) {
9564                var h = e.getLine(l).length;
9565                return new r(f, u, l, h)
9566            }
9567        }, this.openingBracketBlock = function(e, t, n, i, s) {
9568            var o = {
9569                    row: n,
9570                    column: i + 1
9571                },
9572                u = e.$findClosingBracket(t, o, s);
9573            if (!u) return;
9574            var a = e.foldWidgets[u.row];
9575            return a == null && (a = e.getFoldWidget(u.row)), a == "start" && u.row > o.row && (u.row--, u.column = e.getLine(u.row).length), r.fromPoints(o, u)
9576        }, this.closingBracketBlock = function(e, t, n, i, s) {
9577            var o = {
9578                    row: n,
9579                    column: i
9580                },
9581                u = e.$findOpeningBracket(t, o);
9582            if (!u) return;
9583            return u.column++, o.column--, r.fromPoints(u, o)
9584        }
9585    }).call(i.prototype)
9586}), define("ace/theme/textmate", ["require", "exports", "module", "ace/lib/dom"], function(e, t, n) {
9587    "use strict";
9588    t.isDark = !1, t.cssClass = "ace-tm", t.cssText = '.ace-tm .ace_gutter {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
9588);}.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;}';
9589    var r = e("../lib/dom");
9590    r.importCssString(t.cssText, t.cssClass)
9591}), define("ace/line_widgets", ["require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/range"], function(e, t, n) {
9592    "use strict";
9593
9594    function o(e) {
9595        this.session = e, 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("changeEditor", this.$onChangeEditor)
9596    }
9597    var r = e("./lib/oop"),
9598        i = e("./lib/dom"),
9599        s = e("./range").Range;
9600    (function() {
9601        this.getRowLength = function(e) {
9602            var t;
9603            return this.lineWidgets ? t = this.lineWidgets[e] && this.lineWidgets[e].rowCount || 0 : t = 0, !this.$useWrapMode || !this.$wrapData[e] ? 1 + t : this.$wrapData[e].length + 1 + t
9604        }, this.$getWidgetScreenLength = function() {
9605            var e = 0;
9606            return this.lineWidgets.forEach(function(t) {
9607                t && t.rowCount && (e += t.rowCount)
9608            }), e
9609        }, this.$onChangeEditor = function(e) {
9610            this.attach(e.editor)
9611        }, this.attach = function(e) {
9612            e && e.widgetManager && e.widgetManager != this && e.widgetManager.detach();
9613            if (this.editor == e) return;
9614            this.detach(), this.editor = e, e && (e.widgetManager = this, e.renderer.on("beforeRender", this.measureWidgets), e.renderer.on("afterRender", this.renderWidgets))
9615        }, this.detach = function(e) {
9616            var t = this.editor;
9617            if (!t) return;
9618            this.editor = null, t.widgetManager = null, t.renderer.off("beforeRender", this.measureWidgets), t.renderer.off("afterRender", this.renderWidgets);
9619            var n = this.session.lineWidgets;
9620            n && n.forEach(function(e) {
9621                e && e.el && e.el.parentNode && (e._inDocument = !1, e.el.parentNode.removeChild(e.el))
9622            })
9623        }, this.updateOnChange = function(e) {
9624            var t = this.session.lineWidgets;
9625            if (!t) return;
9626            var n = e.start.row,
9627                r = e.end.row - n;
9628            if (r !== 0)
9629                if (e.action == "remove") {
9630                    var i = t.splice(n + 1, r);
9631                    i.forEach(function(e) {
9632                        e && this.removeLineWidget(e)
9633                    }, this), this.$updateRows()
9634                } else {
9635                    var s = new Array(r);
9636                    s.unshift(n, 0), t.splice.apply(t, s), this.$updateRows()
9637                }
9638        }, this.$updateRows = function() {
9639            var e = this.session.lineWidgets;
9640            if (!e) return;
9641            var t = !0;
9642            e.forEach(function(e, n) {
9643                e && (t = !1, e.row = n)
9644            }), t && (this.session.lineWidgets = null)
9645        }, this.addLineWidget = function(e) {
9646            this.session.lineWidgets || (this.session.lineWidgets = new Array(this.session.getLength())), this.session.lineWidgets[e.row] = e;
9647            var t = this.editor.renderer;
9648            return e.html && !e.el && (e.el = i.createElement("div"), e.el.innerHTML = e.html), e.el && (i.addCssClass(e.el, "ace_lineWidgetContainer"), e.el.style.position = "absolute", e.el.style.zIndex = 5, t.container.appendChild(e.el), e._inDocument = !0), e.coverGutter || (e.el.style.zIndex = 3), e.pixelHeight || (e.pixelHeight = e.el.offsetHeight), e.rowCount == null && (e.rowCount = e.pixelHeight / t.layerConfig.lineHeight), this.session._emit("changeFold", {
9649                data: {
9650                    start: {
9651                        row: e.row
9652                    }
9653                }
9654            }), this.$updateRows(), this.renderWidgets(null, t), e
9655        }, this.removeLineWidget = function(e) {
9656            e._inDocument = !1, e.el && e.el.parentNode && e.el.parentNode.removeChild(e.el);
9657            if (e.editor && e.editor.destroy) try {
9658                e.editor.destroy()
9659            } catch (t) {}
9660            this.session.lineWidgets && (this.session.lineWidgets[e.row] = undefined), this.session._emit("changeFold", {
9661                data: {
9662                    start: {
9663                        row: e.row
9664                    }
9665                }
9666            }), this.$updateRows()
9667        }, this.onWidgetChanged = function(e) {
9668            this.session._changedWidgets.push(e), this.editor && this.editor.renderer.updateFull()
9669        }, this.measureWidgets = function(e, t) {
9670            var n = this.session._changedWidgets,
9671                r = t.layerConfig;
9672            if (!n || !n.length) return;
9673            var i = Infinity;
9674            for (var s = 0; s < n.length; s++) {
9675                var o = n[s];
9676                o._inDocument || (o._inDocument = !0, t.container.appendChild(o.el)), o.h = o.el.offsetHeight, o.fixedWidth || (
9676o.w = o.el.offsetWidth, o.screenWidth = Math.ceil(o.w / r.characterWidth));
9677                var u = o.h / r.lineHeight;
9678                o.coverLine && (u -= this.session.getRowLineCount(o.row), u < 0 && (u = 0)), o.rowCount != u && (o.rowCount = u, o.row < i && (i = o.row))
9679            }
9680            i != Infinity && (this.session._emit("changeFold", {
9681                data: {
9682                    start: {
9683                        row: i
9684                    }
9685                }
9686            }), this.session.lineWidgetWidth = null), this.session._changedWidgets = []
9687        }, this.renderWidgets = function(e, t) {
9688            var n = t.layerConfig,
9689                r = this.session.lineWidgets;
9690            if (!r) return;
9691            var i = Math.min(this.firstRow, n.firstRow),
9692                s = Math.max(this.lastRow, n.lastRow, r.length);
9693            while (i > 0 && !r[i]) i--;
9694            this.firstRow = n.firstRow, this.lastRow = n.lastRow, t.$cursorLayer.config = n;
9695            for (var o = i; o <= s; o++) {
9696                var u = r[o];
9697                if (!u || !u.el) continue;
9698                u._inDocument || (u._inDocument = !0, t.container.appendChild(u.el));
9699                var a = t.$cursorLayer.getPixelPosition({
9700                    row: o,
9701                    column: 0
9702                }, !0).top;
9703                u.coverLine || (a += n.lineHeight * this.session.getRowLineCount(u.row)), u.el.style.top = a - n.offset + "px";
9704                var f = u.coverGutter ? 0 : t.gutterWidth;
9705                u.fixedWidth || (f -= t.scrollLeft), u.el.style.left = f + "px", u.fixedWidth ? u.el.style.right = t.scrollBar.getWidth() + "px" : u.el.style.right = ""
9706            }
9707        }
9708    }).call(o.prototype), t.LineWidgets = o
9709}), define("ace/ext/error_marker", ["require", "exports", "module", "ace/line_widgets", "ace/lib/dom", "ace/range"], function(e, t, n) {
9710    "use strict";
9711
9712    function o(e, t, n) {
9713        var r = 0,
9714            i = e.length - 1;
9715        while (r <= i) {
9716            var s = r + i >> 1,
9717                o = n(t, e[s]);
9718            if (o > 0) r = s + 1;
9719            else {
9720                if (!(o < 0)) return s;
9721                i = s - 1
9722            }
9723        }
9724        return -(r + 1)
9725    }
9726
9727    function u(e, t, n) {
9728        var r = e.getAnnotations().sort(s.comparePoints);
9729        if (!r.length) return;
9730        var i = o(r, {
9731            row: t,
9732            column: -1
9733        }, s.comparePoints);
9734        i < 0 && (i = -i - 1), i >= r.length ? i = n > 0 ? 0 : r.length - 1 : i === 0 && n < 0 && (i = r.length - 1);
9735        var u = r[i];
9736        if (!u || !n) return;
9737        if (u.row === t) {
9738            do u = r[i += n]; while (u && u.row === t);
9739            if (!u) return r.slice()
9740        }
9741        var a = [];
9742        t = u.row;
9743        do a[n < 0 ? "unshift" : "push"](u), u = r[i += n]; while (u && u.row == t);
9744        return a.length && a
9745    }
9746    var r = e("../line_widgets").LineWidgets,
9747        i = e("../lib/dom"),
9748        s = e("../range").Range;
9749    t.showErrorMarker = function(e, t) {
9750        var n = e.session;
9751        n.widgetManager || (n.widgetManager = new r(n), n.widgetManager.attach(e));
9752        var s = e.getCursorPosition(),
9753            o = s.row,
9754            a = n.lineWidgets && n.lineWidgets[o];
9755        a ? a.destroy() : o -= t;
9756        var f = u(n, o, t),
9757            l;
9758        if (f) {
9759            var c = f[0];
9760            s.column = (c.pos && typeof c.column != "number" ? c.pos.sc : c.column) || 0, s.row = c.row, l = e.renderer.$gutterLayer.$annotations[s.row]
9761        } else {
9762            if (a) return;
9763            l = {
9764                text: ["Looks good!"],
9765                className: "ace_ok"
9766            }
9767        }
9768        e.session.unfold(s.row), e.selection.moveToPosition(s);
9769        var h = {
9770                row: s.row,
9771                fixedWidth: !0,
9772                coverGutter: !0,
9773                el: i.createElement("div")
9774            },
9775            p = h.el.appendChild(i.createElement("div")),
9776            d = h.el.appendChild(i.createElement("div"));
9777        d.className = "error_widget_arrow " + l.className;
9778        var v = e.renderer.$cursorLayer.getPixelPosition(s).left;
9779        d.style.left = v + e.renderer.gutterWidth - 5 + "px", h.el.className = "error_widget_wrapper", p.className = "error_widget " + l.className, p.innerHTML = l.text.join("<br>"), p.appendChild(i.createElement("div"));
9780        var m = function(e, t, n) {
9781            if (t === 0 && (n === "esc" || n === "return")) return h.destroy(), {
9782                command: "null"
9783            }
9784        };
9785        h.destroy = function() {
9786            if (e.$mouseHandler.isMousePressed) return;
9787            e.keyBinding.removeKeyboardHandler(m), n.widgetManager.removeLineWidget(h), e.off("changeSelection", h.destroy), e.off("changeSession", h.destroy), e.off("mouseup", h.destroy), e.off("change", h.destroy)
9788        }, e.keyBinding.addKeyboardHandler(m), e.on("changeSelection", h.destroy), e.on("changeSession", h.destroy), e.on("mouseup", h.destroy), e.on("change", h.destroy), e.session.widgetManager.addLineWidget(h), h.el.onmousedown = e.focus.bind(e), e.renderer.scrollCursorIntoView(null, .5, {
9789            bottom: h.el.offsetHeight
9790        })
9791    }, i.importCssString("    .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;    }", "")
9792}), define("ace/ace", ["require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/lib/dom", "ace/lib/event", "ace/editor", "ace/edit_session", "ace/undomanager", "ace/virtual_renderer", "ace/worker/wor
9792ker_client", "ace/keyboard/hash_handler", "ace/placeholder", "ace/multi_select", "ace/mode/folding/fold_mode", "ace/theme/textmate", "ace/ext/error_marker", "ace/config"], function(e, t, n) {
9793    "use strict";
9794    e("./lib/fixoldbrowsers");
9795    var r = e("./lib/dom"),
9796        i = e("./lib/event"),
9797        s = e("./editor").Editor,
9798        o = e("./edit_session").EditSession,
9799        u = e("./undomanager").UndoManager,
9800        a = e("./virtual_renderer").VirtualRenderer;
9801    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"), t.config = e("./config"), t.require = e, t.edit = function(e) {
9802        if (typeof e == "string") {
9803            var n = e;
9804            e = document.getElementById(n);
9805            if (!e) throw new Error("ace.edit can't find div #" + n)
9806        }
9807        if (e && e.env && e.env.editor instanceof s) return e.env.editor;
9808        var o = "";
9809        if (e && /input|textarea/i.test(e.tagName)) {
9810            var u = e;
9811            o = u.value, e = r.createElement("pre"), u.parentNode.replaceChild(e, u)
9812        } else e && (o = r.getInnerText(e), e.innerHTML = "");
9813        var f = t.createEditSession(o),
9814            l = new s(new a(e));
9815        l.setSession(f);
9816        var c = {
9817            document: f,
9818            editor: l,
9819            onResize: l.resize.bind(l, null)
9820        };
9821        return u && (c.textarea = u), i.addListener(window, "resize", c.onResize), l.on("destroy", function() {
9822            i.removeListener(window, "resize", c.onResize), c.editor.container.env = null
9823        }), l.container.env = l.env = c, l
9824    }, t.createEditSession = function(e, t) {
9825        var n = new o(e, t);
9826        return n.setUndoManager(new u), n
9827    }, t.EditSession = o, t.UndoManager = u
9828});
9829(function() {
9830    require(["ace/ace"], function(a) {
9831        a && a.config.init(true);
9832        if (!window.ace)
9833            window.ace = a;
9834        for (var key in a)
9835            if (a.hasOwnProperty(key))
9836                window.ace[key] = a[key];
9837    });
9838})();
9839})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.