1 |
- {"version":3,"file":"worker-lua-c76a8ac3.js","sources":["../../node_modules/ace-builds/src-noconflict/worker-lua.js"],"sourcesContent":["\"no use strict\";\n!(function(window) {\nif (typeof window.window != \"undefined\" && window.document)\n return;\nif (window.require && window.define)\n return;\n\nif (!window.console) {\n window.console = function() {\n var msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({type: \"log\", data: msgs});\n };\n window.console.error =\n window.console.warn = \n window.console.log =\n window.console.trace = window.console;\n}\nwindow.window = window;\nwindow.ace = window;\n\nwindow.onerror = function(message, file, line, col, err) {\n postMessage({type: \"error\", data: {\n message: message,\n data: err && err.data,\n file: file,\n line: line, \n col: col,\n stack: err && err.stack\n }});\n};\n\nwindow.normalizeModule = function(parentId, moduleName) {\n // normalize plugin requires\n if (moduleName.indexOf(\"!\") !== -1) {\n var chunks = moduleName.split(\"!\");\n return window.normalizeModule(parentId, chunks[0]) + \"!\" + window.normalizeModule(parentId, chunks[1]);\n }\n // normalize relative requires\n if (moduleName.charAt(0) == \".\") {\n var base = parentId.split(\"/\").slice(0, -1).join(\"/\");\n moduleName = (base ? base + \"/\" : \"\") + moduleName;\n \n while (moduleName.indexOf(\".\") !== -1 && previous != moduleName) {\n var previous = moduleName;\n moduleName = moduleName.replace(/^\\.\\//, \"\").replace(/\\/\\.\\//, \"/\").replace(/[^\\/]+\\/\\.\\.\\//, \"\");\n }\n }\n \n return moduleName;\n};\n\nwindow.require = function require(parentId, id) {\n if (!id) {\n id = parentId;\n parentId = null;\n }\n if (!id.charAt)\n throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");\n\n id = window.normalizeModule(parentId, id);\n\n var module = window.require.modules[id];\n if (module) {\n if (!module.initialized) {\n module.initialized = true;\n module.exports = module.factory().exports;\n }\n return module.exports;\n }\n \n if (!window.require.tlns)\n return console.log(\"unable to load \" + id);\n \n var path = resolveModuleId(id, window.require.tlns);\n if (path.slice(-3) != \".js\") path += \".js\";\n \n window.require.id = id;\n window.require.modules[id] = {}; // prevent infinite loop on broken modules\n importScripts(path);\n return window.require(parentId, id);\n};\nfunction resolveModuleId(id, paths) {\n var testPath = id, tail = \"\";\n while (testPath) {\n var alias = paths[testPath];\n if (typeof alias == \"string\") {\n return alias + tail;\n } else if (alias) {\n return alias.location.replace(/\\/*$/, \"/\") + (tail || alias.main || alias.name);\n } else if (alias === false) {\n return \"\";\n }\n var i = testPath.lastIndexOf(\"/\");\n if (i === -1) break;\n tail = testPath.substr(i) + tail;\n testPath = testPath.slice(0, i);\n }\n return id;\n}\nwindow.require.modules = {};\nwindow.require.tlns = {};\n\nwindow.define = function(id, deps, factory) {\n if (arguments.length == 2) {\n factory = deps;\n if (typeof id != \"string\") {\n deps = id;\n id = window.require.id;\n }\n } else if (arguments.length == 1) {\n factory = id;\n deps = [];\n id = window.require.id;\n }\n \n if (typeof factory != \"function\") {\n window.require.modules[id] = {\n exports: factory,\n initialized: true\n };\n return;\n }\n\n if (!deps.length)\n // If there is no dependencies, we inject \"require\", \"exports\" and\n // \"module\" as dependencies, to provide CommonJS compatibility.\n deps = [\"require\", \"exports\", \"module\"];\n\n var req = function(childId) {\n return window.require(id, childId);\n };\n\n window.require.modules[id] = {\n exports: {},\n factory: function() {\n var module = this;\n var returnExports = factory.apply(this, deps.slice(0, factory.length).map(function(dep) {\n switch (dep) {\n // Because \"require\", \"exports\" and \"module\" aren't actual\n // dependencies, we must handle them seperately.\n case \"require\": return req;\n case \"exports\": return module.exports;\n case \"module\": return module;\n // But for all other dependencies, we can just go ahead and\n // require them.\n default: return req(dep);\n }\n }));\n if (returnExports)\n module.exports = returnExports;\n return module;\n }\n };\n};\nwindow.define.amd = {};\nwindow.require.tlns = {};\nwindow.initBaseUrls = function initBaseUrls(topLevelNamespaces) {\n for (var i in topLevelNamespaces)\n this.require.tlns[i] = topLevelNamespaces[i];\n};\n\nwindow.initSender = function initSender() {\n\n var EventEmitter = window.require(\"ace/lib/event_emitter\").EventEmitter;\n var oop = window.require(\"ace/lib/oop\");\n \n var Sender = function() {};\n \n (function() {\n \n oop.implement(this, EventEmitter);\n \n this.callback = function(data, callbackId) {\n postMessage({\n type: \"call\",\n id: callbackId,\n data: data\n });\n };\n \n this.emit = function(name, data) {\n postMessage({\n type: \"event\",\n name: name,\n data: data\n });\n };\n \n }).call(Sender.prototype);\n \n return new Sender();\n};\n\nvar main = window.main = null;\nvar sender = window.sender = null;\n\nwindow.onmessage = function(e) {\n var msg = e.data;\n if (msg.event && sender) {\n sender._signal(msg.event, msg.data);\n }\n else if (msg.command) {\n if (main[msg.command])\n main[msg.command].apply(main, msg.args);\n else if (window[msg.command])\n window[msg.command].apply(window, msg.args);\n else\n throw new Error(\"Unknown command:\" + msg.command);\n }\n else if (msg.init) {\n window.initBaseUrls(msg.tlns);\n sender = window.sender = window.initSender();\n var clazz = this.require(msg.module)[msg.classname];\n main = window.main = new clazz(sender);\n }\n};\n})(this);\n\nace.define(\"ace/lib/oop\",[], function(require, exports, module){\"use strict\";\nexports.inherits = function (ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n};\nexports.mixin = function (obj, mixin) {\n for (var key in mixin) {\n obj[key] = mixin[key];\n }\n return obj;\n};\nexports.implement = function (proto, mixin) {\n exports.mixin(proto, mixin);\n};\n\n});\n\nace.define(\"ace/apply_delta\",[], function(require, exports, module){\"use strict\";\nfunction throwDeltaError(delta, errorText) {\n console.log(\"Invalid Delta:\", delta);\n throw \"Invalid Delta: \" + errorText;\n}\nfunction positionInDocument(docLines, position) {\n return position.row >= 0 && position.row < docLines.length &&\n position.column >= 0 && position.column <= docLines[position.row].length;\n}\nfunction validateDelta(docLines, delta) {\n if (delta.action != \"insert\" && delta.action != \"remove\")\n throwDeltaError(delta, \"delta.action must be 'insert' or 'remove'\");\n if (!(delta.lines instanceof Array))\n throwDeltaError(delta, \"delta.lines must be an Array\");\n if (!delta.start || !delta.end)\n throwDeltaError(delta, \"delta.start/end must be an present\");\n var start = delta.start;\n if (!positionInDocument(docLines, delta.start))\n throwDeltaError(delta, \"delta.start must be contained in document\");\n var end = delta.end;\n if (delta.action == \"remove\" && !positionInDocument(docLines, end))\n throwDeltaError(delta, \"delta.end must contained in document for 'remove' actions\");\n var numRangeRows = end.row - start.row;\n var numRangeLastLineChars = (end.column - (numRangeRows == 0 ? start.column : 0));\n if (numRangeRows != delta.lines.length - 1 || delta.lines[numRangeRows].length != numRangeLastLineChars)\n throwDeltaError(delta, \"delta.range must match delta lines\");\n}\nexports.applyDelta = function (docLines, delta, doNotValidate) {\n var row = delta.start.row;\n var startColumn = delta.start.column;\n var line = docLines[row] || \"\";\n switch (delta.action) {\n case \"insert\":\n var lines = delta.lines;\n if (lines.length === 1) {\n docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n }\n else {\n var args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args);\n docLines[row] = line.substring(0, startColumn) + docLines[row];\n docLines[row + delta.lines.length - 1] += line.substring(startColumn);\n }\n break;\n case \"remove\":\n var endColumn = delta.end.column;\n var endRow = delta.end.row;\n if (row === endRow) {\n docLines[row] = line.substring(0, startColumn) + line.substring(endColumn);\n }\n else {\n docLines.splice(row, endRow - row + 1, line.substring(0, startColumn) + docLines[endRow].substring(endColumn));\n }\n break;\n }\n};\n\n});\n\nace.define(\"ace/lib/event_emitter\",[], function(require, exports, module){\"use strict\";\nvar EventEmitter = {};\nvar stopPropagation = function () { this.propagationStopped = true; };\nvar preventDefault = function () { this.defaultPrevented = true; };\nEventEmitter._emit =\n EventEmitter._dispatchEvent = function (eventName, e) {\n this._eventRegistry || (this._eventRegistry = {});\n this._defaultHandlers || (this._defaultHandlers = {});\n var listeners = this._eventRegistry[eventName] || [];\n var defaultHandler = this._defaultHandlers[eventName];\n if (!listeners.length && !defaultHandler)\n return;\n if (typeof e != \"object\" || !e)\n e = {};\n if (!e.type)\n e.type = eventName;\n if (!e.stopPropagation)\n e.stopPropagation = stopPropagation;\n if (!e.preventDefault)\n e.preventDefault = preventDefault;\n listeners = listeners.slice();\n for (var i = 0; i < listeners.length; i++) {\n listeners[i](e, this);\n if (e.propagationStopped)\n break;\n }\n if (defaultHandler && !e.defaultPrevented)\n return defaultHandler(e, this);\n };\nEventEmitter._signal = function (eventName, e) {\n var listeners = (this._eventRegistry || {})[eventName];\n if (!listeners)\n return;\n listeners = listeners.slice();\n for (var i = 0; i < listeners.length; i++)\n listeners[i](e, this);\n};\nEventEmitter.once = function (eventName, callback) {\n var _self = this;\n this.on(eventName, function newCallback() {\n _self.off(eventName, newCallback);\n callback.apply(null, arguments);\n });\n if (!callback) {\n return new Promise(function (resolve) {\n callback = resolve;\n });\n }\n};\nEventEmitter.setDefaultHandler = function (eventName, callback) {\n var handlers = this._defaultHandlers;\n if (!handlers)\n handlers = this._defaultHandlers = { _disabled_: {} };\n if (handlers[eventName]) {\n var old = handlers[eventName];\n var disabled = handlers._disabled_[eventName];\n if (!disabled)\n handlers._disabled_[eventName] = disabled = [];\n disabled.push(old);\n var i = disabled.indexOf(callback);\n if (i != -1)\n disabled.splice(i, 1);\n }\n handlers[eventName] = callback;\n};\nEventEmitter.removeDefaultHandler = function (eventName, callback) {\n var handlers = this._defaultHandlers;\n if (!handlers)\n return;\n var disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) {\n if (disabled)\n this.setDefaultHandler(eventName, disabled.pop());\n }\n else if (disabled) {\n var i = disabled.indexOf(callback);\n if (i != -1)\n disabled.splice(i, 1);\n }\n};\nEventEmitter.on =\n EventEmitter.addEventListener = function (eventName, callback, capturing) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (!listeners)\n listeners = this._eventRegistry[eventName] = [];\n if (listeners.indexOf(callback) == -1)\n listeners[capturing ? \"unshift\" : \"push\"](callback);\n return callback;\n };\nEventEmitter.off =\n EventEmitter.removeListener =\n EventEmitter.removeEventListener = function (eventName, callback) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (!listeners)\n return;\n var index = listeners.indexOf(callback);\n if (index !== -1)\n listeners.splice(index, 1);\n };\nEventEmitter.removeAllListeners = function (eventName) {\n if (!eventName)\n this._eventRegistry = this._defaultHandlers = undefined;\n if (this._eventRegistry)\n this._eventRegistry[eventName] = undefined;\n if (this._defaultHandlers)\n this._defaultHandlers[eventName] = undefined;\n};\nexports.EventEmitter = EventEmitter;\n\n});\n\nace.define(\"ace/range\",[], function(require, exports, module){\"use strict\";\nvar comparePoints = function (p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n};\nvar Range = /** @class */ (function () {\n function Range(startRow, startColumn, endRow, endColumn) {\n this.start = {\n row: startRow,\n column: startColumn\n };\n this.end = {\n row: endRow,\n column: endColumn\n };\n }\n Range.prototype.isEqual = function (range) {\n return this.start.row === range.start.row &&\n this.end.row === range.end.row &&\n this.start.column === range.start.column &&\n this.end.column === range.end.column;\n };\n Range.prototype.toString = function () {\n return (\"Range: [\" + this.start.row + \"/\" + this.start.column +\n \"] -> [\" + this.end.row + \"/\" + this.end.column + \"]\");\n };\n Range.prototype.contains = function (row, column) {\n return this.compare(row, column) == 0;\n };\n Range.prototype.compareRange = function (range) {\n var cmp, end = range.end, start = range.start;\n cmp = this.compare(end.row, end.column);\n if (cmp == 1) {\n cmp = this.compare(start.row, start.column);\n if (cmp == 1) {\n return 2;\n }\n else if (cmp == 0) {\n return 1;\n }\n else {\n return 0;\n }\n }\n else if (cmp == -1) {\n return -2;\n }\n else {\n cmp = this.compare(start.row, start.column);\n if (cmp == -1) {\n return -1;\n }\n else if (cmp == 1) {\n return 42;\n }\n else {\n return 0;\n }\n }\n };\n Range.prototype.comparePoint = function (p) {\n return this.compare(p.row, p.column);\n };\n Range.prototype.containsRange = function (range) {\n return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;\n };\n Range.prototype.intersects = function (range) {\n var cmp = this.compareRange(range);\n return (cmp == -1 || cmp == 0 || cmp == 1);\n };\n Range.prototype.isEnd = function (row, column) {\n return this.end.row == row && this.end.column == column;\n };\n Range.prototype.isStart = function (row, column) {\n return this.start.row == row && this.start.column == column;\n };\n Range.prototype.setStart = function (row, column) {\n if (typeof row == \"object\") {\n this.start.column = row.column;\n this.start.row = row.row;\n }\n else {\n this.start.row = row;\n this.start.column = column;\n }\n };\n Range.prototype.setEnd = function (row, column) {\n if (typeof row == \"object\") {\n this.end.column = row.column;\n this.end.row = row.row;\n }\n else {\n this.end.row = row;\n this.end.column = column;\n }\n };\n Range.prototype.inside = function (row, column) {\n if (this.compare(row, column) == 0) {\n if (this.isEnd(row, column) || this.isStart(row, column)) {\n return false;\n }\n else {\n return true;\n }\n }\n return false;\n };\n Range.prototype.insideStart = function (row, column) {\n if (this.compare(row, column) == 0) {\n if (this.isEnd(row, column)) {\n return false;\n }\n else {\n return true;\n }\n }\n return false;\n };\n Range.prototype.insideEnd = function (row, column) {\n if (this.compare(row, column) == 0) {\n if (this.isStart(row, column)) {\n return false;\n }\n else {\n return true;\n }\n }\n return false;\n };\n Range.prototype.compare = function (row, column) {\n if (!this.isMultiLine()) {\n if (row === this.start.row) {\n return column < this.start.column ? -1 : (column > this.end.column ? 1 : 0);\n }\n }\n if (row < this.start.row)\n return -1;\n if (row > this.end.row)\n return 1;\n if (this.start.row === row)\n return column >= this.start.column ? 0 : -1;\n if (this.end.row === row)\n return column <= this.end.column ? 0 : 1;\n return 0;\n };\n Range.prototype.compareStart = function (row, column) {\n if (this.start.row == row && this.start.column == column) {\n return -1;\n }\n else {\n return this.compare(row, column);\n }\n };\n Range.prototype.compareEnd = function (row, column) {\n if (this.end.row == row && this.end.column == column) {\n return 1;\n }\n else {\n return this.compare(row, column);\n }\n };\n Range.prototype.compareInside = function (row, column) {\n if (this.end.row == row && this.end.column == column) {\n return 1;\n }\n else if (this.start.row == row && this.start.column == column) {\n return -1;\n }\n else {\n return this.compare(row, column);\n }\n };\n Range.prototype.clipRows = function (firstRow, lastRow) {\n if (this.end.row > lastRow)\n var end = { row: lastRow + 1, column: 0 };\n else if (this.end.row < firstRow)\n var end = { row: firstRow, column: 0 };\n if (this.start.row > lastRow)\n var start = { row: lastRow + 1, column: 0 };\n else if (this.start.row < firstRow)\n var start = { row: firstRow, column: 0 };\n return Range.fromPoints(start || this.start, end || this.end);\n };\n Range.prototype.extend = function (row, column) {\n var cmp = this.compare(row, column);\n if (cmp == 0)\n return this;\n else if (cmp == -1)\n var start = { row: row, column: column };\n else\n var end = { row: row, column: column };\n return Range.fromPoints(start || this.start, end || this.end);\n };\n Range.prototype.isEmpty = function () {\n return (this.start.row === this.end.row && this.start.column === this.end.column);\n };\n Range.prototype.isMultiLine = function () {\n return (this.start.row !== this.end.row);\n };\n Range.prototype.clone = function () {\n return Range.fromPoints(this.start, this.end);\n };\n Range.prototype.collapseRows = function () {\n if (this.end.column == 0)\n return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row - 1), 0);\n else\n return new Range(this.start.row, 0, this.end.row, 0);\n };\n Range.prototype.toScreenRange = function (session) {\n var screenPosStart = session.documentToScreenPosition(this.start);\n var screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column);\n };\n Range.prototype.moveBy = function (row, column) {\n this.start.row += row;\n this.start.column += column;\n this.end.row += row;\n this.end.column += column;\n };\n return Range;\n}());\nRange.fromPoints = function (start, end) {\n return new Range(start.row, start.column, end.row, end.column);\n};\nRange.comparePoints = comparePoints;\nRange.comparePoints = function (p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n};\nexports.Range = Range;\n\n});\n\nace.define(\"ace/anchor\",[], function(require, exports, module){\"use strict\";\nvar oop = require(\"./lib/oop\");\nvar EventEmitter = require(\"./lib/event_emitter\").EventEmitter;\nvar Anchor = /** @class */ (function () {\n function Anchor(doc, row, column) {\n this.$onChange = this.onChange.bind(this);\n this.attach(doc);\n if (typeof column == \"undefined\")\n this.setPosition(row.row, row.column);\n else\n this.setPosition(row, column);\n }\n Anchor.prototype.getPosition = function () {\n return this.$clipPositionToDocument(this.row, this.column);\n };\n Anchor.prototype.getDocument = function () {\n return this.document;\n };\n Anchor.prototype.onChange = function (delta) {\n if (delta.start.row == delta.end.row && delta.start.row != this.row)\n return;\n if (delta.start.row > this.row)\n return;\n var point = $getTransformedPoint(delta, { row: this.row, column: this.column }, this.$insertRight);\n this.setPosition(point.row, point.column, true);\n };\n Anchor.prototype.setPosition = function (row, column, noClip) {\n var pos;\n if (noClip) {\n pos = {\n row: row,\n column: column\n };\n }\n else {\n pos = this.$clipPositionToDocument(row, column);\n }\n if (this.row == pos.row && this.column == pos.column)\n return;\n var old = {\n row: this.row,\n column: this.column\n };\n this.row = pos.row;\n this.column = pos.column;\n this._signal(\"change\", {\n old: old,\n value: pos\n });\n };\n Anchor.prototype.detach = function () {\n this.document.off(\"change\", this.$onChange);\n };\n Anchor.prototype.attach = function (doc) {\n this.document = doc || this.document;\n this.document.on(\"change\", this.$onChange);\n };\n Anchor.prototype.$clipPositionToDocument = function (row, column) {\n var pos = {};\n if (row >= this.document.getLength()) {\n pos.row = Math.max(0, this.document.getLength() - 1);\n pos.column = this.document.getLine(pos.row).length;\n }\n else if (row < 0) {\n pos.row = 0;\n pos.column = 0;\n }\n else {\n pos.row = row;\n pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column));\n }\n if (column < 0)\n pos.column = 0;\n return pos;\n };\n return Anchor;\n}());\nAnchor.prototype.$insertRight = false;\noop.implement(Anchor.prototype, EventEmitter);\nfunction $pointsInOrder(point1, point2, equalPointsInOrder) {\n var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n return (point1.row < point2.row) || (point1.row == point2.row && bColIsAfter);\n}\nfunction $getTransformedPoint(delta, point, moveIfEqual) {\n var deltaIsInsert = delta.action == \"insert\";\n var deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row);\n var deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column);\n var deltaStart = delta.start;\n var deltaEnd = deltaIsInsert ? deltaStart : delta.end; // Collapse insert range.\n if ($pointsInOrder(point, deltaStart, moveIfEqual)) {\n return {\n row: point.row,\n column: point.column\n };\n }\n if ($pointsInOrder(deltaEnd, point, !moveIfEqual)) {\n return {\n row: point.row + deltaRowShift,\n column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n };\n }\n return {\n row: deltaStart.row,\n column: deltaStart.column\n };\n}\nexports.Anchor = Anchor;\n\n});\n\nace.define(\"ace/document\",[], function(require, exports, module){\"use strict\";\nvar oop = require(\"./lib/oop\");\nvar applyDelta = require(\"./apply_delta\").applyDelta;\nvar EventEmitter = require(\"./lib/event_emitter\").EventEmitter;\nvar Range = require(\"./range\").Range;\nvar Anchor = require(\"./anchor\").Anchor;\nvar Document = /** @class */ (function () {\n function Document(textOrLines) {\n this.$lines = [\"\"];\n if (textOrLines.length === 0) {\n this.$lines = [\"\"];\n }\n else if (Array.isArray(textOrLines)) {\n this.insertMergedLines({ row: 0, column: 0 }, textOrLines);\n }\n else {\n this.insert({ row: 0, column: 0 }, textOrLines);\n }\n }\n Document.prototype.setValue = function (text) {\n var len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length));\n this.insert({ row: 0, column: 0 }, text || \"\");\n };\n Document.prototype.getValue = function () {\n return this.getAllLines().join(this.getNewLineCharacter());\n };\n Document.prototype.createAnchor = function (row, column) {\n return new Anchor(this, row, column);\n };\n Document.prototype.$detectNewLine = function (text) {\n var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n this.$autoNewLine = match ? match[1] : \"\\n\";\n this._signal(\"changeNewLineMode\");\n };\n Document.prototype.getNewLineCharacter = function () {\n switch (this.$newLineMode) {\n case \"windows\":\n return \"\\r\\n\";\n case \"unix\":\n return \"\\n\";\n default:\n return this.$autoNewLine || \"\\n\";\n }\n };\n Document.prototype.setNewLineMode = function (newLineMode) {\n if (this.$newLineMode === newLineMode)\n return;\n this.$newLineMode = newLineMode;\n this._signal(\"changeNewLineMode\");\n };\n Document.prototype.getNewLineMode = function () {\n return this.$newLineMode;\n };\n Document.prototype.isNewLine = function (text) {\n return (text == \"\\r\\n\" || text == \"\\r\" || text == \"\\n\");\n };\n Document.prototype.getLine = function (row) {\n return this.$lines[row] || \"\";\n };\n Document.prototype.getLines = function (firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1);\n };\n Document.prototype.getAllLines = function () {\n return this.getLines(0, this.getLength());\n };\n Document.prototype.getLength = function () {\n return this.$lines.length;\n };\n Document.prototype.getTextRange = function (range) {\n return this.getLinesForRange(range).join(this.getNewLineCharacter());\n };\n Document.prototype.getLinesForRange = function (range) {\n var lines;\n if (range.start.row === range.end.row) {\n lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n }\n else {\n lines = this.getLines(range.start.row, range.end.row);\n lines[0] = (lines[0] || \"\").substring(range.start.column);\n var l = lines.length - 1;\n if (range.end.row - range.start.row == l)\n lines[l] = lines[l].substring(0, range.end.column);\n }\n return lines;\n };\n Document.prototype.insertLines = function (row, lines) {\n console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\");\n return this.insertFullLines(row, lines);\n };\n Document.prototype.removeLines = function (firstRow, lastRow) {\n console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\");\n return this.removeFullLines(firstRow, lastRow);\n };\n Document.prototype.insertNewLine = function (position) {\n console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\");\n return this.insertMergedLines(position, [\"\", \"\"]);\n };\n Document.prototype.insert = function (position, text) {\n if (this.getLength() <= 1)\n this.$detectNewLine(text);\n return this.insertMergedLines(position, this.$split(text));\n };\n Document.prototype.insertInLine = function (position, text) {\n var start = this.clippedPos(position.row, position.column);\n var end = this.pos(position.row, position.column + text.length);\n this.applyDelta({\n start: start,\n end: end,\n action: \"insert\",\n lines: [text]\n }, true);\n return this.clonePos(end);\n };\n Document.prototype.clippedPos = function (row, column) {\n var length = this.getLength();\n if (row === undefined) {\n row = length;\n }\n else if (row < 0) {\n row = 0;\n }\n else if (row >= length) {\n row = length - 1;\n column = undefined;\n }\n var line = this.getLine(row);\n if (column == undefined)\n column = line.length;\n column = Math.min(Math.max(column, 0), line.length);\n return { row: row, column: column };\n };\n Document.prototype.clonePos = function (pos) {\n return { row: pos.row, column: pos.column };\n };\n Document.prototype.pos = function (row, column) {\n return { row: row, column: column };\n };\n Document.prototype.$clipPosition = function (position) {\n var length = this.getLength();\n if (position.row >= length) {\n position.row = Math.max(0, length - 1);\n position.column = this.getLine(length - 1).length;\n }\n else {\n position.row = Math.max(0, position.row);\n position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length);\n }\n return position;\n };\n Document.prototype.insertFullLines = function (row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n var column = 0;\n if (row < this.getLength()) {\n lines = lines.concat([\"\"]);\n column = 0;\n }\n else {\n lines = [\"\"].concat(lines);\n row--;\n column = this.$lines[row].length;\n }\n this.insertMergedLines({ row: row, column: column }, lines);\n };\n Document.prototype.insertMergedLines = function (position, lines) {\n var start = this.clippedPos(position.row, position.column);\n var end = {\n row: start.row + lines.length - 1,\n column: (lines.length == 1 ? start.column : 0) + lines[lines.length - 1].length\n };\n this.applyDelta({\n start: start,\n end: end,\n action: \"insert\",\n lines: lines\n });\n return this.clonePos(end);\n };\n Document.prototype.remove = function (range) {\n var start = this.clippedPos(range.start.row, range.start.column);\n var end = this.clippedPos(range.end.row, range.end.column);\n this.applyDelta({\n start: start,\n end: end,\n action: \"remove\",\n lines: this.getLinesForRange({ start: start, end: end })\n });\n return this.clonePos(start);\n };\n Document.prototype.removeInLine = function (row, startColumn, endColumn) {\n var start = this.clippedPos(row, startColumn);\n var end = this.clippedPos(row, endColumn);\n this.applyDelta({\n start: start,\n end: end,\n action: \"remove\",\n lines: this.getLinesForRange({ start: start, end: end })\n }, true);\n return this.clonePos(start);\n };\n Document.prototype.removeFullLines = function (firstRow, lastRow) {\n firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);\n lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);\n var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;\n var deleteLastNewLine = lastRow < this.getLength() - 1;\n var startRow = (deleteFirstNewLine ? firstRow - 1 : firstRow);\n var startCol = (deleteFirstNewLine ? this.getLine(startRow).length : 0);\n var endRow = (deleteLastNewLine ? lastRow + 1 : lastRow);\n var endCol = (deleteLastNewLine ? 0 : this.getLine(endRow).length);\n var range = new Range(startRow, startCol, endRow, endCol);\n var deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n this.applyDelta({\n start: range.start,\n end: range.end,\n action: \"remove\",\n lines: this.getLinesForRange(range)\n });\n return deletedLines;\n };\n Document.prototype.removeNewLine = function (row) {\n if (row < this.getLength() - 1 && row >= 0) {\n this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: \"remove\",\n lines: [\"\", \"\"]\n });\n }\n };\n Document.prototype.replace = function (range, text) {\n if (!(range instanceof Range))\n range = Range.fromPoints(range.start, range.end);\n if (text.length === 0 && range.isEmpty())\n return range.start;\n if (text == this.getTextRange(range))\n return range.end;\n this.remove(range);\n var end;\n if (text) {\n end = this.insert(range.start, text);\n }\n else {\n end = range.start;\n }\n return end;\n };\n Document.prototype.applyDeltas = function (deltas) {\n for (var i = 0; i < deltas.length; i++) {\n this.applyDelta(deltas[i]);\n }\n };\n Document.prototype.revertDeltas = function (deltas) {\n for (var i = deltas.length - 1; i >= 0; i--) {\n this.revertDelta(deltas[i]);\n }\n };\n Document.prototype.applyDelta = function (delta, doNotValidate) {\n var isInsert = delta.action == \"insert\";\n if (isInsert ? delta.lines.length <= 1 && !delta.lines[0]\n : !Range.comparePoints(delta.start, delta.end)) {\n return;\n }\n if (isInsert && delta.lines.length > 20000) {\n this.$splitAndapplyLargeDelta(delta, 20000);\n }\n else {\n applyDelta(this.$lines, delta, doNotValidate);\n this._signal(\"change\", delta);\n }\n };\n Document.prototype.$safeApplyDelta = function (delta) {\n var docLength = this.$lines.length;\n if (delta.action == \"remove\" && delta.start.row < docLength && delta.end.row < docLength\n || delta.action == \"insert\" && delta.start.row <= docLength) {\n this.applyDelta(delta);\n }\n };\n Document.prototype.$splitAndapplyLargeDelta = function (delta, MAX) {\n var lines = delta.lines;\n var l = lines.length - MAX + 1;\n var row = delta.start.row;\n var column = delta.start.column;\n for (var from = 0, to = 0; from < l; from = to) {\n to += MAX - 1;\n var chunk = lines.slice(from, to);\n chunk.push(\"\");\n this.applyDelta({\n start: this.pos(row + from, column),\n end: this.pos(row + to, column = 0),\n action: delta.action,\n lines: chunk\n }, true);\n }\n delta.lines = lines.slice(from);\n delta.start.row = row + from;\n delta.start.column = column;\n this.applyDelta(delta, true);\n };\n Document.prototype.revertDelta = function (delta) {\n this.$safeApplyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: (delta.action == \"insert\" ? \"remove\" : \"insert\"),\n lines: delta.lines.slice()\n });\n };\n Document.prototype.indexToPosition = function (index, startRow) {\n var lines = this.$lines || this.getAllLines();\n var newlineLength = this.getNewLineCharacter().length;\n for (var i = startRow || 0, l = lines.length; i < l; i++) {\n index -= lines[i].length + newlineLength;\n if (index < 0)\n return { row: i, column: index + lines[i].length + newlineLength };\n }\n return { row: l - 1, column: index + lines[l - 1].length + newlineLength };\n };\n Document.prototype.positionToIndex = function (pos, startRow) {\n var lines = this.$lines || this.getAllLines();\n var newlineLength = this.getNewLineCharacter().length;\n var index = 0;\n var row = Math.min(pos.row, lines.length);\n for (var i = startRow || 0; i < row; ++i)\n index += lines[i].length + newlineLength;\n return index + pos.column;\n };\n Document.prototype.$split = function (text) {\n return text.split(/\\r\\n|\\r|\\n/);\n };\n return Document;\n}());\nDocument.prototype.$autoNewLine = \"\";\nDocument.prototype.$newLineMode = \"auto\";\noop.implement(Document.prototype, EventEmitter);\nexports.Document = Document;\n\n});\n\nace.define(\"ace/lib/lang\",[], function(require, exports, module){\"use strict\";\nexports.last = function (a) {\n return a[a.length - 1];\n};\nexports.stringReverse = function (string) {\n return string.split(\"\").reverse().join(\"\");\n};\nexports.stringRepeat = function (string, count) {\n var result = '';\n while (count > 0) {\n if (count & 1)\n result += string;\n if (count >>= 1)\n string += string;\n }\n return result;\n};\nvar trimBeginRegexp = /^\\s\\s*/;\nvar trimEndRegexp = /\\s\\s*$/;\nexports.stringTrimLeft = function (string) {\n return string.replace(trimBeginRegexp, '');\n};\nexports.stringTrimRight = function (string) {\n return string.replace(trimEndRegexp, '');\n};\nexports.copyObject = function (obj) {\n var copy = {};\n for (var key in obj) {\n copy[key] = obj[key];\n }\n return copy;\n};\nexports.copyArray = function (array) {\n var copy = [];\n for (var i = 0, l = array.length; i < l; i++) {\n if (array[i] && typeof array[i] == \"object\")\n copy[i] = this.copyObject(array[i]);\n else\n copy[i] = array[i];\n }\n return copy;\n};\nexports.deepCopy = function deepCopy(obj) {\n if (typeof obj !== \"object\" || !obj)\n return obj;\n var copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; key < obj.length; key++) {\n copy[key] = deepCopy(obj[key]);\n }\n return copy;\n }\n if (Object.prototype.toString.call(obj) !== \"[object Object]\")\n return obj;\n copy = {};\n for (var key in obj)\n copy[key] = deepCopy(obj[key]);\n return copy;\n};\nexports.arrayToMap = function (arr) {\n var map = {};\n for (var i = 0; i < arr.length; i++) {\n map[arr[i]] = 1;\n }\n return map;\n};\nexports.createMap = function (props) {\n var map = Object.create(null);\n for (var i in props) {\n map[i] = props[i];\n }\n return map;\n};\nexports.arrayRemove = function (array, value) {\n for (var i = 0; i <= array.length; i++) {\n if (value === array[i]) {\n array.splice(i, 1);\n }\n }\n};\nexports.escapeRegExp = function (str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, '\\\\$1');\n};\nexports.escapeHTML = function (str) {\n return (\"\" + str).replace(/&/g, \"&\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(/</g, \"<\");\n};\nexports.getMatchOffsets = function (string, regExp) {\n var matches = [];\n string.replace(regExp, function (str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length\n });\n });\n return matches;\n};\nexports.deferredCall = function (fcn) {\n var timer = null;\n var callback = function () {\n timer = null;\n fcn();\n };\n var deferred = function (timeout) {\n deferred.cancel();\n timer = setTimeout(callback, timeout || 0);\n return deferred;\n };\n deferred.schedule = deferred;\n deferred.call = function () {\n this.cancel();\n fcn();\n return deferred;\n };\n deferred.cancel = function () {\n clearTimeout(timer);\n timer = null;\n return deferred;\n };\n deferred.isPending = function () {\n return timer;\n };\n return deferred;\n};\nexports.delayedCall = function (fcn, defaultTimeout) {\n var timer = null;\n var callback = function () {\n timer = null;\n fcn();\n };\n var _self = function (timeout) {\n if (timer == null)\n timer = setTimeout(callback, timeout || defaultTimeout);\n };\n _self.delay = function (timeout) {\n timer && clearTimeout(timer);\n timer = setTimeout(callback, timeout || defaultTimeout);\n };\n _self.schedule = _self;\n _self.call = function () {\n this.cancel();\n fcn();\n };\n _self.cancel = function () {\n timer && clearTimeout(timer);\n timer = null;\n };\n _self.isPending = function () {\n return timer;\n };\n return _self;\n};\n\n});\n\nace.define(\"ace/worker/mirror\",[], function(require, exports, module) {\n\"use strict\";\n\nvar Document = require(\"../document\").Document;\nvar lang = require(\"../lib/lang\");\n \nvar Mirror = exports.Mirror = function(sender) {\n this.sender = sender;\n var doc = this.doc = new Document(\"\");\n \n var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));\n \n var _self = this;\n sender.on(\"change\", function(e) {\n var data = e.data;\n if (data[0].start) {\n doc.applyDeltas(data);\n } else {\n for (var i = 0; i < data.length; i += 2) {\n var d, err; \n if (Array.isArray(data[i+1])) {\n d = {action: \"insert\", start: data[i], lines: data[i+1]};\n } else {\n d = {action: \"remove\", start: data[i], end: data[i+1]};\n }\n \n if ((d.action == \"insert\" ? d.start : d.end).row >= doc.$lines.length) {\n err = new Error(\"Invalid delta\");\n err.data = {\n path: _self.$path,\n linesLength: doc.$lines.length,\n start: d.start,\n end: d.end\n };\n throw err;\n }\n\n doc.applyDelta(d, true);\n }\n }\n if (_self.$timeout)\n return deferredUpdate.schedule(_self.$timeout);\n _self.onUpdate();\n });\n};\n\n(function() {\n \n this.$timeout = 500;\n \n this.setTimeout = function(timeout) {\n this.$timeout = timeout;\n };\n \n this.setValue = function(value) {\n this.doc.setValue(value);\n this.deferredUpdate.schedule(this.$timeout);\n };\n \n this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId);\n };\n \n this.onUpdate = function() {\n };\n \n this.isPending = function() {\n return this.deferredUpdate.isPending();\n };\n \n}).call(Mirror.prototype);\n\n});\n\nace.define(\"ace/mode/lua/luaparse\",[], function(require, exports, module) {\n\n(function (root, name, factory) {\n factory(exports)\n}(this, 'luaparse', function (exports) {\n 'use strict';\n\n exports.version = \"0.3.1\";\n\n var input, options, length, features, encodingMode;\n var defaultOptions = exports.defaultOptions = {\n wait: false\n , comments: true\n , scope: false\n , locations: false\n , ranges: false\n , onCreateNode: null\n , onCreateScope: null\n , onDestroyScope: null\n , onLocalDeclaration: null\n , luaVersion: '5.3'\n , encodingMode: 'none'\n };\n\n function encodeUTF8(codepoint, highMask) {\n highMask = highMask || 0;\n\n if (codepoint < 0x80) {\n return String.fromCharCode(codepoint);\n } else if (codepoint < 0x800) {\n return String.fromCharCode(\n highMask | 0xc0 | (codepoint >> 6) ,\n highMask | 0x80 | ( codepoint & 0x3f)\n );\n } else if (codepoint < 0x10000) {\n return String.fromCharCode(\n highMask | 0xe0 | (codepoint >> 12) ,\n highMask | 0x80 | ((codepoint >> 6) & 0x3f),\n highMask | 0x80 | ( codepoint & 0x3f)\n );\n } else /* istanbul ignore else */ if (codepoint < 0x110000) {\n return String.fromCharCode(\n highMask | 0xf0 | (codepoint >> 18) ,\n highMask | 0x80 | ((codepoint >> 12) & 0x3f),\n highMask | 0x80 | ((codepoint >> 6) & 0x3f),\n highMask | 0x80 | ( codepoint & 0x3f)\n );\n } else {\n return null;\n }\n }\n\n function toHex(num, digits) {\n var result = num.toString(16);\n while (result.length < digits)\n result = '0' + result;\n return result;\n }\n\n function checkChars(rx) {\n return function (s) {\n var m = rx.exec(s);\n if (!m)\n return s;\n raise(null, errors.invalidCodeUnit, toHex(m[0].charCodeAt(0), 4).toUpperCase());\n };\n }\n\n var encodingModes = {\n 'pseudo-latin1': {\n fixup: checkChars(/[^\\x00-\\xff]/),\n encodeByte: function (value) {\n if (value === null)\n return '';\n return String.fromCharCode(value);\n },\n encodeUTF8: function (codepoint) {\n return encodeUTF8(codepoint);\n },\n },\n 'x-user-defined': {\n fixup: checkChars(/[^\\x00-\\x7f\\uf780-\\uf7ff]/),\n encodeByte: function (value) {\n if (value === null)\n return '';\n if (value >= 0x80)\n return String.fromCharCode(value | 0xf700);\n return String.fromCharCode(value);\n },\n encodeUTF8: function (codepoint) {\n return encodeUTF8(codepoint, 0xf700);\n }\n },\n 'none': {\n discardStrings: true,\n fixup: function (s) {\n return s;\n },\n encodeByte: function (value) {\n return '';\n },\n encodeUTF8: function (codepoint) {\n return '';\n }\n }\n };\n\n var EOF = 1, StringLiteral = 2, Keyword = 4, Identifier = 8\n , NumericLiteral = 16, Punctuator = 32, BooleanLiteral = 64\n , NilLiteral = 128, VarargLiteral = 256;\n\n exports.tokenTypes = { EOF: EOF, StringLiteral: StringLiteral\n , Keyword: Keyword, Identifier: Identifier, NumericLiteral: NumericLiteral\n , Punctuator: Punctuator, BooleanLiteral: BooleanLiteral\n , NilLiteral: NilLiteral, VarargLiteral: VarargLiteral\n };\n\n var errors = exports.errors = {\n unexpected: 'unexpected %1 \\'%2\\' near \\'%3\\''\n , unexpectedEOF: 'unexpected symbol near \\'<eof>\\''\n , expected: '\\'%1\\' expected near \\'%2\\''\n , expectedToken: '%1 expected near \\'%2\\''\n , unfinishedString: 'unfinished string near \\'%1\\''\n , malformedNumber: 'malformed number near \\'%1\\''\n , decimalEscapeTooLarge: 'decimal escape too large near \\'%1\\''\n , invalidEscape: 'invalid escape sequence near \\'%1\\''\n , hexadecimalDigitExpected: 'hexadecimal digit expected near \\'%1\\''\n , braceExpected: 'missing \\'%1\\' near \\'%2\\''\n , tooLargeCodepoint: 'UTF-8 value too large near \\'%1\\''\n , unfinishedLongString: 'unfinished long string (starting at line %1) near \\'%2\\''\n , unfinishedLongComment: 'unfinished long comment (starting at line %1) near \\'%2\\''\n , ambiguousSyntax: 'ambiguous syntax (function call x new statement) near \\'%1\\''\n , noLoopToBreak: 'no loop to break near \\'%1\\''\n , labelAlreadyDefined: 'label \\'%1\\' already defined on line %2'\n , labelNotVisible: 'no visible label \\'%1\\' for <goto>'\n , gotoJumpInLocalScope: '<goto %1> jumps into the scope of local \\'%2\\''\n , cannotUseVararg: 'cannot use \\'...\\' outside a vararg function near \\'%1\\''\n , invalidCodeUnit: 'code unit U+%1 is not allowed in the current encoding mode'\n };\n\n var ast = exports.ast = {\n labelStatement: function(label) {\n return {\n type: 'LabelStatement'\n , label: label\n };\n }\n\n , breakStatement: function() {\n return {\n type: 'BreakStatement'\n };\n }\n\n , gotoStatement: function(label) {\n return {\n type: 'GotoStatement'\n , label: label\n };\n }\n\n , returnStatement: function(args) {\n return {\n type: 'ReturnStatement'\n , 'arguments': args\n };\n }\n\n , ifStatement: function(clauses) {\n return {\n type: 'IfStatement'\n , clauses: clauses\n };\n }\n , ifClause: function(condition, body) {\n return {\n type: 'IfClause'\n , condition: condition\n , body: body\n };\n }\n , elseifClause: function(condition, body) {\n return {\n type: 'ElseifClause'\n , condition: condition\n , body: body\n };\n }\n , elseClause: function(body) {\n return {\n type: 'ElseClause'\n , body: body\n };\n }\n\n , whileStatement: function(condition, body) {\n return {\n type: 'WhileStatement'\n , condition: condition\n , body: body\n };\n }\n\n , doStatement: function(body) {\n return {\n type: 'DoStatement'\n , body: body\n };\n }\n\n , repeatStatement: function(condition, body) {\n return {\n type: 'RepeatStatement'\n , condition: condition\n , body: body\n };\n }\n\n , localStatement: function(variables, init) {\n return {\n type: 'LocalStatement'\n , variables: variables\n , init: init\n };\n }\n\n , assignmentStatement: function(variables, init) {\n return {\n type: 'AssignmentStatement'\n , variables: variables\n , init: init\n };\n }\n\n , callStatement: function(expression) {\n return {\n type: 'CallStatement'\n , expression: expression\n };\n }\n\n , functionStatement: function(identifier, parameters, isLocal, body) {\n return {\n type: 'FunctionDeclaration'\n , identifier: identifier\n , isLocal: isLocal\n , parameters: parameters\n , body: body\n };\n }\n\n , forNumericStatement: function(variable, start, end, step, body) {\n return {\n type: 'ForNumericStatement'\n , variable: variable\n , start: start\n , end: end\n , step: step\n , body: body\n };\n }\n\n , forGenericStatement: function(variables, iterators, body) {\n return {\n type: 'ForGenericStatement'\n , variables: variables\n , iterators: iterators\n , body: body\n };\n }\n\n , chunk: function(body) {\n return {\n type: 'Chunk'\n , body: body\n };\n }\n\n , identifier: function(name) {\n return {\n type: 'Identifier'\n , name: name\n };\n }\n\n , literal: function(type, value, raw) {\n type = (type === StringLiteral) ? 'StringLiteral'\n : (type === NumericLiteral) ? 'NumericLiteral'\n : (type === BooleanLiteral) ? 'BooleanLiteral'\n : (type === NilLiteral) ? 'NilLiteral'\n : 'VarargLiteral';\n\n return {\n type: type\n , value: value\n , raw: raw\n };\n }\n\n , tableKey: function(key, value) {\n return {\n type: 'TableKey'\n , key: key\n , value: value\n };\n }\n , tableKeyString: function(key, value) {\n return {\n type: 'TableKeyString'\n , key: key\n , value: value\n };\n }\n , tableValue: function(value) {\n return {\n type: 'TableValue'\n , value: value\n };\n }\n\n\n , tableConstructorExpression: function(fields) {\n return {\n type: 'TableConstructorExpression'\n , fields: fields\n };\n }\n , binaryExpression: function(operator, left, right) {\n var type = ('and' === operator || 'or' === operator) ?\n 'LogicalExpression' :\n 'BinaryExpression';\n\n return {\n type: type\n , operator: operator\n , left: left\n , right: right\n };\n }\n , unaryExpression: function(operator, argument) {\n return {\n type: 'UnaryExpression'\n , operator: operator\n , argument: argument\n };\n }\n , memberExpression: function(base, indexer, identifier) {\n return {\n type: 'MemberExpression'\n , indexer: indexer\n , identifier: identifier\n , base: base\n };\n }\n\n , indexExpression: function(base, index) {\n return {\n type: 'IndexExpression'\n , base: base\n , index: index\n };\n }\n\n , callExpression: function(base, args) {\n return {\n type: 'CallExpression'\n , base: base\n , 'arguments': args\n };\n }\n\n , tableCallExpression: function(base, args) {\n return {\n type: 'TableCallExpression'\n , base: base\n , 'arguments': args\n };\n }\n\n , stringCallExpression: function(base, argument) {\n return {\n type: 'StringCallExpression'\n , base: base\n , argument: argument\n };\n }\n\n , comment: function(value, raw) {\n return {\n type: 'Comment'\n , value: value\n , raw: raw\n };\n }\n };\n\n function finishNode(node) {\n if (trackLocations) {\n var location = locations.pop();\n location.complete();\n location.bless(node);\n }\n if (options.onCreateNode) options.onCreateNode(node);\n return node;\n }\n\n var slice = Array.prototype.slice\n , toString = Object.prototype.toString\n ;\n\n var indexOf = /* istanbul ignore next */ function (array, element) {\n for (var i = 0, length = array.length; i < length; ++i) {\n if (array[i] === element) return i;\n }\n return -1;\n };\n if (Array.prototype.indexOf)\n indexOf = function (array, element) {\n return array.indexOf(element);\n };\n\n function indexOfObject(array, property, element) {\n for (var i = 0, length = array.length; i < length; ++i) {\n if (array[i][property] === element) return i;\n }\n return -1;\n }\n\n function sprintf(format) {\n var args = slice.call(arguments, 1);\n format = format.replace(/%(\\d)/g, function (match, index) {\n return '' + args[index - 1] || /* istanbul ignore next */ '';\n });\n return format;\n }\n\n var assign = /* istanbul ignore next */ function (dest) {\n var args = slice.call(arguments, 1)\n , src, prop;\n\n for (var i = 0, length = args.length; i < length; ++i) {\n src = args[i];\n for (prop in src)\n if (Object.prototype.hasOwnProperty.call(src, prop)) {\n dest[prop] = src[prop];\n }\n }\n\n return dest;\n };\n if (Object.assign)\n assign = Object.assign;\n\n exports.SyntaxError = SyntaxError;\n\n function fixupError(e) {\n if (!Object.create)\n return e;\n return Object.create(e, {\n 'line': { 'writable': true, value: e.line },\n 'index': { 'writable': true, value: e.index },\n 'column': { 'writable': true, value: e.column }\n });\n }\n\n function raise(token) {\n var message = sprintf.apply(null, slice.call(arguments, 1))\n , error, col;\n\n if (token === null || typeof token.line === 'undefined') {\n col = index - lineStart + 1;\n error = fixupError(new SyntaxError(sprintf('[%1:%2] %3', line, col, message)));\n error.index = index;\n error.line = line;\n error.column = col;\n } else {\n col = token.range[0] - token.lineStart;\n error = fixupError(new SyntaxError(sprintf('[%1:%2] %3', token.line, col, message)));\n error.line = token.line;\n error.index = token.range[0];\n error.column = col;\n }\n throw error;\n }\n\n function tokenValue(token) {\n var raw = input.slice(token.range[0], token.range[1]);\n if (raw)\n return raw;\n return token.value;\n }\n\n function raiseUnexpectedToken(type, token) {\n raise(token, errors.expectedToken, type, tokenValue(token));\n }\n\n function unexpected(found) {\n var near = tokenValue(lookahead);\n if ('undefined' !== typeof found.type) {\n var type;\n switch (found.type) {\n case StringLiteral: type = 'string'; break;\n case Keyword: type = 'keyword'; break;\n case Identifier: type = 'identifier'; break;\n case NumericLiteral: type = 'number'; break;\n case Punctuator: type = 'symbol'; break;\n case BooleanLiteral: type = 'boolean'; break;\n case NilLiteral:\n return raise(found, errors.unexpected, 'symbol', 'nil', near);\n case EOF:\n return raise(found, errors.unexpectedEOF);\n }\n return raise(found, errors.unexpected, type, tokenValue(found), near);\n }\n return raise(found, errors.unexpected, 'symbol', found, near);\n }\n\n var index\n , token\n , previousToken\n , lookahead\n , comments\n , tokenStart\n , line\n , lineStart;\n\n exports.lex = lex;\n\n function lex() {\n skipWhiteSpace();\n while (45 === input.charCodeAt(index) &&\n 45 === input.charCodeAt(index + 1)) {\n scanComment();\n skipWhiteSpace();\n }\n if (index >= length) return {\n type : EOF\n , value: '<eof>'\n , line: line\n , lineStart: lineStart\n , range: [index, index]\n };\n\n var charCode = input.charCodeAt(index)\n , next = input.charCodeAt(index + 1);\n tokenStart = index;\n if (isIdentifierStart(charCode)) return scanIdentifierOrKeyword();\n\n switch (charCode) {\n case 39: case 34: // '\"\n return scanStringLiteral();\n\n case 48: case 49: case 50: case 51: case 52: case 53:\n case 54: case 55: case 56: case 57: // 0-9\n return scanNumericLiteral();\n\n case 46: // .\n if (isDecDigit(next)) return scanNumericLiteral();\n if (46 === next) {\n if (46 === input.charCodeAt(index + 2)) return scanVarargLiteral();\n return scanPunctuator('..');\n }\n return scanPunctuator('.');\n\n case 61: // =\n if (61 === next) return scanPunctuator('==');\n return scanPunctuator('=');\n\n case 62: // >\n if (features.bitwiseOperators)\n if (62 === next) return scanPunctuator('>>');\n if (61 === next) return scanPunctuator('>=');\n return scanPunctuator('>');\n\n case 60: // <\n if (features.bitwiseOperators)\n if (60 === next) return scanPunctuator('<<');\n if (61 === next) return scanPunctuator('<=');\n return scanPunctuator('<');\n\n case 126: // ~\n if (61 === next) return scanPunctuator('~=');\n if (!features.bitwiseOperators)\n break;\n return scanPunctuator('~');\n\n case 58: // :\n if (features.labels)\n if (58 === next) return scanPunctuator('::');\n return scanPunctuator(':');\n\n case 91: // [\n if (91 === next || 61 === next) return scanLongStringLiteral();\n return scanPunctuator('[');\n\n case 47: // /\n if (features.integerDivision)\n if (47 === next) return scanPunctuator('//');\n return scanPunctuator('/');\n\n case 38: case 124: // & |\n if (!features.bitwiseOperators)\n break;\n case 42: case 94: case 37: case 44: case 123: case 125:\n case 93: case 40: case 41: case 59: case 35: case 45:\n case 43: // * ^ % , { } ] ( ) ; # - +\n return scanPunctuator(input.charAt(index));\n }\n\n return unexpected(input.charAt(index));\n }\n\n function consumeEOL() {\n var charCode = input.charCodeAt(index)\n , peekCharCode = input.charCodeAt(index + 1);\n\n if (isLineTerminator(charCode)) {\n if (10 === charCode && 13 === peekCharCode) ++index;\n if (13 === charCode && 10 === peekCharCode) ++index;\n ++line;\n lineStart = ++index;\n\n return true;\n }\n return false;\n }\n\n function skipWhiteSpace() {\n while (index < length) {\n var charCode = input.charCodeAt(index);\n if (isWhiteSpace(charCode)) {\n ++index;\n } else if (!consumeEOL()) {\n break;\n }\n }\n }\n\n function scanIdentifierOrKeyword() {\n var value, type;\n while (isIdentifierPart(input.charCodeAt(++index)));\n value = encodingMode.fixup(input.slice(tokenStart, index));\n if (isKeyword(value)) {\n type = Keyword;\n } else if ('true' === value || 'false' === value) {\n type = BooleanLiteral;\n value = ('true' === value);\n } else if ('nil' === value) {\n type = NilLiteral;\n value = null;\n } else {\n type = Identifier;\n }\n\n return {\n type: type\n , value: value\n , line: line\n , lineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function scanPunctuator(value) {\n index += value.length;\n return {\n type: Punctuator\n , value: value\n , line: line\n , lineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function scanVarargLiteral() {\n index += 3;\n return {\n type: VarargLiteral\n , value: '...'\n , line: line\n , lineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function scanStringLiteral() {\n var delimiter = input.charCodeAt(index++)\n , beginLine = line\n , beginLineStart = lineStart\n , stringStart = index\n , string = encodingMode.discardStrings ? null : ''\n , charCode;\n\n for (;;) {\n charCode = input.charCodeAt(index++);\n if (delimiter === charCode) break;\n if (index > length || isLineTerminator(charCode)) {\n string += input.slice(stringStart, index - 1);\n raise(null, errors.unfinishedString, input.slice(tokenStart, index - 1));\n }\n if (92 === charCode) { // backslash\n if (!encodingMode.discardStrings) {\n var beforeEscape = input.slice(stringStart, index - 1);\n string += encodingMode.fixup(beforeEscape);\n }\n var escapeValue = readEscapeSequence();\n if (!encodingMode.discardStrings)\n string += escapeValue;\n stringStart = index;\n }\n }\n if (!encodingMode.discardStrings) {\n string += encodingMode.encodeByte(null);\n string += encodingMode.fixup(input.slice(stringStart, index - 1));\n }\n\n return {\n type: StringLiteral\n , value: string\n , line: beginLine\n , lineStart: beginLineStart\n , lastLine: line\n , lastLineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function scanLongStringLiteral() {\n var beginLine = line\n , beginLineStart = lineStart\n , string = readLongString(false);\n if (false === string) raise(token, errors.expected, '[', tokenValue(token));\n\n return {\n type: StringLiteral\n , value: encodingMode.discardStrings ? null : encodingMode.fixup(string)\n , line: beginLine\n , lineStart: beginLineStart\n , lastLine: line\n , lastLineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function scanNumericLiteral() {\n var character = input.charAt(index)\n , next = input.charAt(index + 1);\n\n var literal = ('0' === character && 'xX'.indexOf(next || null) >= 0) ?\n readHexLiteral() : readDecLiteral();\n\n var foundImaginaryUnit = readImaginaryUnitSuffix()\n , foundInt64Suffix = readInt64Suffix();\n\n if (foundInt64Suffix && (foundImaginaryUnit || literal.hasFractionPart)) {\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n }\n\n return {\n type: NumericLiteral\n , value: literal.value\n , line: line\n , lineStart: lineStart\n , range: [tokenStart, index]\n };\n }\n\n function readImaginaryUnitSuffix() {\n if (!features.imaginaryNumbers) return;\n if ('iI'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n return true;\n } else {\n return false;\n }\n }\n\n function readInt64Suffix() {\n if (!features.integerSuffixes) return;\n\n if ('uU'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n if ('lL'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n if ('lL'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n return 'ULL';\n } else {\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n }\n } else {\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n }\n } else if ('lL'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n if ('lL'.indexOf(input.charAt(index) || null) >= 0) {\n ++index;\n return 'LL';\n } else {\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n }\n }\n }\n\n function readHexLiteral() {\n var fraction = 0 // defaults to 0 as it gets summed\n , binaryExponent = 1 // defaults to 1 as it gets multiplied\n , binarySign = 1 // positive\n , digit, fractionStart, exponentStart, digitStart;\n\n digitStart = index += 2; // Skip 0x part\n if (!isHexDigit(input.charCodeAt(index)))\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n\n while (isHexDigit(input.charCodeAt(index))) ++index;\n digit = parseInt(input.slice(digitStart, index), 16);\n var foundFraction = false;\n if ('.' === input.charAt(index)) {\n foundFraction = true;\n fractionStart = ++index;\n\n while (isHexDigit(input.charCodeAt(index))) ++index;\n fraction = input.slice(fractionStart, index);\n fraction = (fractionStart === index) ? 0\n : parseInt(fraction, 16) / Math.pow(16, index - fractionStart);\n }\n var foundBinaryExponent = false;\n if ('pP'.indexOf(input.charAt(index) || null) >= 0) {\n foundBinaryExponent = true;\n ++index;\n if ('+-'.indexOf(input.charAt(index) || null) >= 0)\n binarySign = ('+' === input.charAt(index++)) ? 1 : -1;\n\n exponentStart = index;\n if (!isDecDigit(input.charCodeAt(index)))\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n\n while (isDecDigit(input.charCodeAt(index))) ++index;\n binaryExponent = input.slice(exponentStart, index);\n binaryExponent = Math.pow(2, binaryExponent * binarySign);\n }\n\n return {\n value: (digit + fraction) * binaryExponent,\n hasFractionPart: foundFraction || foundBinaryExponent\n };\n }\n\n function readDecLiteral() {\n while (isDecDigit(input.charCodeAt(index))) ++index;\n var foundFraction = false;\n if ('.' === input.charAt(index)) {\n foundFraction = true;\n ++index;\n while (isDecDigit(input.charCodeAt(index))) ++index;\n }\n var foundExponent = false;\n if ('eE'.indexOf(input.charAt(index) || null) >= 0) {\n foundExponent = true;\n ++index;\n if ('+-'.indexOf(input.charAt(index) || null) >= 0) ++index;\n if (!isDecDigit(input.charCodeAt(index)))\n raise(null, errors.malformedNumber, input.slice(tokenStart, index));\n\n while (isDecDigit(input.charCodeAt(index))) ++index;\n }\n\n return {\n value: parseFloat(input.slice(tokenStart, index)),\n hasFractionPart: foundFraction || foundExponent\n };\n }\n\n function readUnicodeEscapeSequence() {\n var sequenceStart = index++;\n\n if (input.charAt(index++) !== '{')\n raise(null, errors.braceExpected, '{', '\\\\' + input.slice(sequenceStart, index));\n if (!isHexDigit(input.charCodeAt(index)))\n raise(null, errors.hexadecimalDigitExpected, '\\\\' + input.slice(sequenceStart, index));\n\n while (input.charCodeAt(index) === 0x30) ++index;\n var escStart = index;\n\n while (isHexDigit(input.charCodeAt(index))) {\n ++index;\n if (index - escStart > 6)\n raise(null, errors.tooLargeCodepoint, '\\\\' + input.slice(sequenceStart, index));\n }\n\n var b = input.charAt(index++);\n if (b !== '}') {\n if ((b === '\"') || (b === \"'\"))\n raise(null, errors.braceExpected, '}', '\\\\' + input.slice(sequenceStart, index--));\n else\n raise(null, errors.hexadecimalDigitExpected, '\\\\' + input.slice(sequenceStart, index));\n }\n\n var codepoint = parseInt(input.slice(escStart, index - 1) || '0', 16);\n var frag = '\\\\' + input.slice(sequenceStart, index);\n\n if (codepoint > 0x10ffff) {\n raise(null, errors.tooLargeCodepoint, frag);\n }\n\n return encodingMode.encodeUTF8(codepoint, frag);\n }\n function readEscapeSequence() {\n var sequenceStart = index;\n switch (input.charAt(index)) {\n case 'a': ++index; return '\\x07';\n case 'n': ++index; return '\\n';\n case 'r': ++index; return '\\r';\n case 't': ++index; return '\\t';\n case 'v': ++index; return '\\x0b';\n case 'b': ++index; return '\\b';\n case 'f': ++index; return '\\f';\n case '\\r':\n case '\\n':\n consumeEOL();\n return '\\n';\n\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n while (isDecDigit(input.charCodeAt(index)) && index - sequenceStart < 3) ++index;\n\n var frag = input.slice(sequenceStart, index);\n var ddd = parseInt(frag, 10);\n if (ddd > 255) {\n raise(null, errors.decimalEscapeTooLarge, '\\\\' + ddd);\n }\n return encodingMode.encodeByte(ddd, '\\\\' + frag);\n\n case 'z':\n if (features.skipWhitespaceEscape) {\n ++index;\n skipWhiteSpace();\n return '';\n }\n break;\n\n case 'x':\n if (features.hexEscapes) {\n if (isHexDigit(input.charCodeAt(index + 1)) &&\n isHexDigit(input.charCodeAt(index + 2))) {\n index += 3;\n return encodingMode.encodeByte(parseInt(input.slice(sequenceStart + 1, index), 16), '\\\\' + input.slice(sequenceStart, index));\n }\n raise(null, errors.hexadecimalDigitExpected, '\\\\' + input.slice(sequenceStart, index + 2));\n }\n break;\n\n case 'u':\n if (features.unicodeEscapes)\n return readUnicodeEscapeSequence();\n break;\n\n case '\\\\': case '\"': case \"'\":\n return input.charAt(index++);\n }\n\n if (features.strictEscapes)\n raise(null, errors.invalidEscape, '\\\\' + input.slice(sequenceStart, index + 1));\n return input.charAt(index++);\n }\n\n function scanComment() {\n tokenStart = index;\n index += 2; // --\n\n var character = input.charAt(index)\n , content = ''\n , isLong = false\n , commentStart = index\n , lineStartComment = lineStart\n , lineComment = line;\n\n if ('[' === character) {\n content = readLongString(true);\n if (false === content) content = character;\n else isLong = true;\n }\n if (!isLong) {\n while (index < length) {\n if (isLineTerminator(input.charCodeAt(index))) break;\n ++index;\n }\n if (options.comments) content = input.slice(commentStart, index);\n }\n\n if (options.comments) {\n var node = ast.comment(content, input.slice(tokenStart, index));\n if (options.locations) {\n node.loc = {\n start: { line: lineComment, column: tokenStart - lineStartComment }\n , end: { line: line, column: index - lineStart }\n };\n }\n if (options.ranges) {\n node.range = [tokenStart, index];\n }\n if (options.onCreateNode) options.onCreateNode(node);\n comments.push(node);\n }\n }\n\n function readLongString(isComment) {\n var level = 0\n , content = ''\n , terminator = false\n , character, stringStart, firstLine = line;\n\n ++index; // [\n while ('=' === input.charAt(index + level)) ++level;\n if ('[' !== input.charAt(index + level)) return false;\n\n index += level + 1;\n if (isLineTerminator(input.charCodeAt(index))) consumeEOL();\n\n stringStart = index;\n while (index < length) {\n while (isLineTerminator(input.charCodeAt(index))) consumeEOL();\n\n character = input.charAt(index++);\n if (']' === character) {\n terminator = true;\n for (var i = 0; i < level; ++i) {\n if ('=' !== input.charAt(index + i)) terminator = false;\n }\n if (']' !== input.charAt(index + level)) terminator = false;\n }\n if (terminator) {\n content += input.slice(stringStart, index - 1);\n index += level + 1;\n return content;\n }\n }\n\n raise(null, isComment ?\n errors.unfinishedLongComment :\n errors.unfinishedLongString,\n firstLine, '<eof>');\n }\n\n function next() {\n previousToken = token;\n token = lookahead;\n lookahead = lex();\n }\n\n function consume(value) {\n if (value === token.value) {\n next();\n return true;\n }\n return false;\n }\n\n function expect(value) {\n if (value === token.value) next();\n else raise(token, errors.expected, value, tokenValue(token));\n }\n\n function isWhiteSpace(charCode) {\n return 9 === charCode || 32 === charCode || 0xB === charCode || 0xC === charCode;\n }\n\n function isLineTerminator(charCode) {\n return 10 === charCode || 13 === charCode;\n }\n\n function isDecDigit(charCode) {\n return charCode >= 48 && charCode <= 57;\n }\n\n function isHexDigit(charCode) {\n return (charCode >= 48 && charCode <= 57) || (charCode >= 97 && charCode <= 102) || (charCode >= 65 && charCode <= 70);\n }\n\n function isIdentifierStart(charCode) {\n if ((charCode >= 65 && charCode <= 90) || (charCode >= 97 && charCode <= 122) || 95 === charCode)\n return true;\n if (features.extendedIdentifiers && charCode >= 128)\n return true;\n return false;\n }\n\n function isIdentifierPart(charCode) {\n if ((charCode >= 65 && charCode <= 90) || (charCode >= 97 && charCode <= 122) || 95 === charCode || (charCode >= 48 && charCode <= 57))\n return true;\n if (features.extendedIdentifiers && charCode >= 128)\n return true;\n return false;\n }\n\n function isKeyword(id) {\n switch (id.length) {\n case 2:\n return 'do' === id || 'if' === id || 'in' === id || 'or' === id;\n case 3:\n return 'and' === id || 'end' === id || 'for' === id || 'not' === id;\n case 4:\n if ('else' === id || 'then' === id)\n return true;\n if (features.labels && !features.contextualGoto)\n return ('goto' === id);\n return false;\n case 5:\n return 'break' === id || 'local' === id || 'until' === id || 'while' === id;\n case 6:\n return 'elseif' === id || 'repeat' === id || 'return' === id;\n case 8:\n return 'function' === id;\n }\n return false;\n }\n\n function isUnary(token) {\n if (Punctuator === token.type) return '#-~'.indexOf(token.value) >= 0;\n if (Keyword === token.type) return 'not' === token.value;\n return false;\n }\n\n function isBlockFollow(token) {\n if (EOF === token.type) return true;\n if (Keyword !== token.type) return false;\n switch (token.value) {\n case 'else': case 'elseif':\n case 'end': case 'until':\n return true;\n default:\n return false;\n }\n }\n var scopes\n , scopeDepth\n , globals;\n function createScope() {\n var scope = scopes[scopeDepth++].slice();\n scopes.push(scope);\n if (options.onCreateScope) options.onCreateScope();\n }\n function destroyScope() {\n var scope = scopes.pop();\n --scopeDepth;\n if (options.onDestroyScope) options.onDestroyScope();\n }\n function scopeIdentifierName(name) {\n if (options.onLocalDeclaration) options.onLocalDeclaration(name);\n if (-1 !== indexOf(scopes[scopeDepth], name)) return;\n scopes[scopeDepth].push(name);\n }\n function scopeIdentifier(node) {\n scopeIdentifierName(node.name);\n attachScope(node, true);\n }\n function attachScope(node, isLocal) {\n if (!isLocal && -1 === indexOfObject(globals, 'name', node.name))\n globals.push(node);\n\n node.isLocal = isLocal;\n }\n function scopeHasName(name) {\n return (-1 !== indexOf(scopes[scopeDepth], name));\n }\n\n var locations = []\n , trackLocations;\n\n function createLocationMarker() {\n return new Marker(token);\n }\n\n function Marker(token) {\n if (options.locations) {\n this.loc = {\n start: {\n line: token.line\n , column: token.range[0] - token.lineStart\n }\n , end: {\n line: 0\n , column: 0\n }\n };\n }\n if (options.ranges) this.range = [token.range[0], 0];\n }\n Marker.prototype.complete = function() {\n if (options.locations) {\n this.loc.end.line = previousToken.lastLine || previousToken.line;\n this.loc.end.column = previousToken.range[1] - (previousToken.lastLineStart || previousToken.lineStart);\n }\n if (options.ranges) {\n this.range[1] = previousToken.range[1];\n }\n };\n\n Marker.prototype.bless = function (node) {\n if (this.loc) {\n var loc = this.loc;\n node.loc = {\n start: {\n line: loc.start.line,\n column: loc.start.column\n },\n end: {\n line: loc.end.line,\n column: loc.end.column\n }\n };\n }\n if (this.range) {\n node.range = [\n this.range[0],\n this.range[1]\n ];\n }\n };\n function markLocation() {\n if (trackLocations) locations.push(createLocationMarker());\n }\n function pushLocation(marker) {\n if (trackLocations) locations.push(marker);\n }\n\n function FullFlowContext() {\n this.scopes = [];\n this.pendingGotos = [];\n }\n\n FullFlowContext.prototype.isInLoop = function () {\n var i = this.scopes.length;\n while (i --> 0) {\n if (this.scopes[i].isLoop)\n return true;\n }\n return false;\n };\n\n FullFlowContext.prototype.pushScope = function (isLoop) {\n var scope = {\n labels: {},\n locals: [],\n deferredGotos: [],\n isLoop: !!isLoop\n };\n this.scopes.push(scope);\n };\n\n FullFlowContext.prototype.popScope = function () {\n for (var i = 0; i < this.pendingGotos.length; ++i) {\n var theGoto = this.pendingGotos[i];\n if (theGoto.maxDepth >= this.scopes.length)\n if (--theGoto.maxDepth <= 0)\n raise(theGoto.token, errors.labelNotVisible, theGoto.target);\n }\n\n this.scopes.pop();\n };\n\n FullFlowContext.prototype.addGoto = function (target, token) {\n var localCounts = [];\n\n for (var i = 0; i < this.scopes.length; ++i) {\n var scope = this.scopes[i];\n localCounts.push(scope.locals.length);\n if (Object.prototype.hasOwnProperty.call(scope.labels, target))\n return;\n }\n\n this.pendingGotos.push({\n maxDepth: this.scopes.length,\n target: target,\n token: token,\n localCounts: localCounts\n });\n };\n\n FullFlowContext.prototype.addLabel = function (name, token) {\n var scope = this.currentScope();\n\n if (Object.prototype.hasOwnProperty.call(scope.labels, name)) {\n raise(token, errors.labelAlreadyDefined, name, scope.labels[name].line);\n } else {\n var newGotos = [];\n\n for (var i = 0; i < this.pendingGotos.length; ++i) {\n var theGoto = this.pendingGotos[i];\n\n if (theGoto.maxDepth >= this.scopes.length && theGoto.target === name) {\n if (theGoto.localCounts[this.scopes.length - 1] < scope.locals.length) {\n scope.deferredGotos.push(theGoto);\n }\n continue;\n }\n\n newGotos.push(theGoto);\n }\n\n this.pendingGotos = newGotos;\n }\n\n scope.labels[name] = {\n localCount: scope.locals.length,\n line: token.line\n };\n };\n\n FullFlowContext.prototype.addLocal = function (name, token) {\n this.currentScope().locals.push({\n name: name,\n token: token\n });\n };\n\n FullFlowContext.prototype.currentScope = function () {\n return this.scopes[this.scopes.length - 1];\n };\n\n FullFlowContext.prototype.raiseDeferredErrors = function () {\n var scope = this.currentScope();\n var bads = scope.deferredGotos;\n for (var i = 0; i < bads.length; ++i) {\n var theGoto = bads[i];\n raise(theGoto.token, errors.gotoJumpInLocalScope, theGoto.target, scope.locals[theGoto.localCounts[this.scopes.length - 1]].name);\n }\n };\n\n function LoopFlowContext() {\n this.level = 0;\n this.loopLevels = [];\n }\n\n LoopFlowContext.prototype.isInLoop = function () {\n return !!this.loopLevels.length;\n };\n\n LoopFlowContext.prototype.pushScope = function (isLoop) {\n ++this.level;\n if (isLoop)\n this.loopLevels.push(this.level);\n };\n\n LoopFlowContext.prototype.popScope = function () {\n var levels = this.loopLevels;\n var levlen = levels.length;\n if (levlen) {\n if (levels[levlen - 1] === this.level)\n levels.pop();\n }\n --this.level;\n };\n\n LoopFlowContext.prototype.addGoto =\n LoopFlowContext.prototype.addLabel =\n function () { throw new Error('This should never happen'); };\n\n LoopFlowContext.prototype.addLocal =\n LoopFlowContext.prototype.raiseDeferredErrors =\n function () {};\n\n function makeFlowContext() {\n return features.labels ? new FullFlowContext() : new LoopFlowContext();\n }\n\n function parseChunk() {\n next();\n markLocation();\n if (options.scope) createScope();\n var flowContext = makeFlowContext();\n flowContext.allowVararg = true;\n flowContext.pushScope();\n var body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n if (EOF !== token.type) unexpected(token);\n if (trackLocations && !body.length) previousToken = token;\n return finishNode(ast.chunk(body));\n }\n\n function parseBlock(flowContext) {\n var block = []\n , statement;\n\n while (!isBlockFollow(token)) {\n if ('return' === token.value || (!features.relaxedBreak && 'break' === token.value)) {\n block.push(parseStatement(flowContext));\n break;\n }\n statement = parseStatement(flowContext);\n consume(';');\n if (statement) block.push(statement);\n }\n return block;\n }\n\n function parseStatement(flowContext) {\n markLocation();\n\n if (Punctuator === token.type) {\n if (consume('::')) return parseLabelStatement(flowContext);\n }\n if (features.emptyStatement) {\n if (consume(';')) {\n if (trackLocations) locations.pop();\n return;\n }\n }\n\n flowContext.raiseDeferredErrors();\n\n if (Keyword === token.type) {\n switch (token.value) {\n case 'local': next(); return parseLocalStatement(flowContext);\n case 'if': next(); return parseIfStatement(flowContext);\n case 'return': next(); return parseReturnStatement(flowContext);\n case 'function': next();\n var name = parseFunctionName();\n return parseFunctionDeclaration(name);\n case 'while': next(); return parseWhileStatement(flowContext);\n case 'for': next(); return parseForStatement(flowContext);\n case 'repeat': next(); return parseRepeatStatement(flowContext);\n case 'break': next();\n if (!flowContext.isInLoop())\n raise(token, errors.noLoopToBreak, token.value);\n return parseBreakStatement();\n case 'do': next(); return parseDoStatement(flowContext);\n case 'goto': next(); return parseGotoStatement(flowContext);\n }\n }\n\n if (features.contextualGoto &&\n token.type === Identifier && token.value === 'goto' &&\n lookahead.type === Identifier && lookahead.value !== 'goto') {\n next(); return parseGotoStatement(flowContext);\n }\n if (trackLocations) locations.pop();\n\n return parseAssignmentOrCallStatement(flowContext);\n }\n\n function parseLabelStatement(flowContext) {\n var nameToken = token\n , label = parseIdentifier();\n\n if (options.scope) {\n scopeIdentifierName('::' + nameToken.value + '::');\n attachScope(label, true);\n }\n\n expect('::');\n\n flowContext.addLabel(nameToken.value, nameToken);\n return finishNode(ast.labelStatement(label));\n }\n\n function parseBreakStatement() {\n return finishNode(ast.breakStatement());\n }\n\n function parseGotoStatement(flowContext) {\n var name = token.value\n , gotoToken = previousToken\n , label = parseIdentifier();\n\n flowContext.addGoto(name, gotoToken);\n return finishNode(ast.gotoStatement(label));\n }\n\n function parseDoStatement(flowContext) {\n if (options.scope) createScope();\n flowContext.pushScope();\n var body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n expect('end');\n return finishNode(ast.doStatement(body));\n }\n\n function parseWhileStatement(flowContext) {\n var condition = parseExpectedExpression(flowContext);\n expect('do');\n if (options.scope) createScope();\n flowContext.pushScope(true);\n var body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n expect('end');\n return finishNode(ast.whileStatement(condition, body));\n }\n\n function parseRepeatStatement(flowContext) {\n if (options.scope) createScope();\n flowContext.pushScope(true);\n var body = parseBlock(flowContext);\n expect('until');\n flowContext.raiseDeferredErrors();\n var condition = parseExpectedExpression(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n return finishNode(ast.repeatStatement(condition, body));\n }\n\n function parseReturnStatement(flowContext) {\n var expressions = [];\n\n if ('end' !== token.value) {\n var expression = parseExpression(flowContext);\n if (null != expression) expressions.push(expression);\n while (consume(',')) {\n expression = parseExpectedExpression(flowContext);\n expressions.push(expression);\n }\n consume(';'); // grammar tells us ; is optional here.\n }\n return finishNode(ast.returnStatement(expressions));\n }\n\n function parseIfStatement(flowContext) {\n var clauses = []\n , condition\n , body\n , marker;\n if (trackLocations) {\n marker = locations[locations.length - 1];\n locations.push(marker);\n }\n condition = parseExpectedExpression(flowContext);\n expect('then');\n if (options.scope) createScope();\n flowContext.pushScope();\n body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n clauses.push(finishNode(ast.ifClause(condition, body)));\n\n if (trackLocations) marker = createLocationMarker();\n while (consume('elseif')) {\n pushLocation(marker);\n condition = parseExpectedExpression(flowContext);\n expect('then');\n if (options.scope) createScope();\n flowContext.pushScope();\n body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n clauses.push(finishNode(ast.elseifClause(condition, body)));\n if (trackLocations) marker = createLocationMarker();\n }\n\n if (consume('else')) {\n if (trackLocations) {\n marker = new Marker(previousToken);\n locations.push(marker);\n }\n if (options.scope) createScope();\n flowContext.pushScope();\n body = parseBlock(flowContext);\n flowContext.popScope();\n if (options.scope) destroyScope();\n clauses.push(finishNode(ast.elseClause(body)));\n }\n\n expect('end');\n return finishNode(ast.ifStatement(clauses));\n }\n\n function parseForStatement(flowContext) {\n var variable = parseIdentifier()\n , body;\n\n if (options.scope) {\n createScope();\n scopeIdentifier(variable);\n }\n if (consume('=')) {\n var start = parseExpectedExpression(flowContext);\n expect(',');\n var end = parseExpectedExpression(flowContext);\n var step = consume(',') ? parseExpectedExpression(flowContext) : null;\n\n expect('do');\n flowContext.pushScope(true);\n body = parseBlock(flowContext);\n flowContext.popScope();\n expect('end');\n if (options.scope) destroyScope();\n\n return finishNode(ast.forNumericStatement(variable, start, end, step, body));\n }\n else {\n var variables = [variable];\n while (consume(',')) {\n variable = parseIdentifier();\n if (options.scope) scopeIdentifier(variable);\n variables.push(variable);\n }\n expect('in');\n var iterators = [];\n do {\n var expression = parseExpectedExpression(flowContext);\n iterators.push(expression);\n } while (consume(','));\n\n expect('do');\n flowContext.pushScope(true);\n body = parseBlock(flowContext);\n flowContext.popScope();\n expect('end');\n if (options.scope) destroyScope();\n\n return finishNode(ast.forGenericStatement(variables, iterators, body));\n }\n }\n\n function parseLocalStatement(flowContext) {\n var name\n , declToken = previousToken;\n\n if (Identifier === token.type) {\n var variables = []\n , init = [];\n\n do {\n name = parseIdentifier();\n\n variables.push(name);\n flowContext.addLocal(name.name, declToken);\n } while (consume(','));\n\n if (consume('=')) {\n do {\n var expression = parseExpectedExpression(flowContext);\n init.push(expression);\n } while (consume(','));\n }\n if (options.scope) {\n for (var i = 0, l = variables.length; i < l; ++i) {\n scopeIdentifier(variables[i]);\n }\n }\n\n return finishNode(ast.localStatement(variables, init));\n }\n if (consume('function')) {\n name = parseIdentifier();\n flowContext.addLocal(name.name, declToken);\n\n if (options.scope) {\n scopeIdentifier(name);\n createScope();\n }\n return parseFunctionDeclaration(name, true);\n } else {\n raiseUnexpectedToken('<name>', token);\n }\n }\n\n function parseAssignmentOrCallStatement(flowContext) {\n var previous = token\n , marker, startMarker;\n var lvalue, base, name;\n\n var targets = [];\n\n if (trackLocations) startMarker = createLocationMarker();\n\n do {\n if (trackLocations) marker = createLocationMarker();\n\n if (Identifier === token.type) {\n name = token.value;\n base = parseIdentifier();\n if (options.scope) attachScope(base, scopeHasName(name));\n lvalue = true;\n } else if ('(' === token.value) {\n next();\n base = parseExpectedExpression(flowContext);\n expect(')');\n lvalue = false;\n } else {\n return unexpected(token);\n }\n\n both: for (;;) {\n var newBase;\n\n switch (StringLiteral === token.type ? '\"' : token.value) {\n case '.':\n case '[':\n lvalue = true;\n break;\n case ':':\n case '(':\n case '{':\n case '\"':\n lvalue = null;\n break;\n default:\n break both;\n }\n\n base = parsePrefixExpressionPart(base, marker, flowContext);\n }\n\n targets.push(base);\n\n if (',' !== token.value)\n break;\n\n if (!lvalue) {\n return unexpected(token);\n }\n\n next();\n } while (true);\n\n if (targets.length === 1 && lvalue === null) {\n pushLocation(marker);\n return finishNode(ast.callStatement(targets[0]));\n } else if (!lvalue) {\n return unexpected(token);\n }\n\n expect('=');\n\n var values = [];\n\n do {\n values.push(parseExpectedExpression(flowContext));\n } while (consume(','));\n\n pushLocation(startMarker);\n return finishNode(ast.assignmentStatement(targets, values));\n }\n\n function parseIdentifier() {\n markLocation();\n var identifier = token.value;\n if (Identifier !== token.type) raiseUnexpectedToken('<name>', token);\n next();\n return finishNode(ast.identifier(identifier));\n }\n\n function parseFunctionDeclaration(name, isLocal) {\n var flowContext = makeFlowContext();\n flowContext.pushScope();\n\n var parameters = [];\n expect('(');\n if (!consume(')')) {\n while (true) {\n if (Identifier === token.type) {\n var parameter = parseIdentifier();\n if (options.scope) scopeIdentifier(parameter);\n\n parameters.push(parameter);\n\n if (consume(',')) continue;\n }\n else if (VarargLiteral === token.type) {\n flowContext.allowVararg = true;\n parameters.push(parsePrimaryExpression(flowContext));\n } else {\n raiseUnexpectedToken('<name> or \\'...\\'', token);\n }\n expect(')');\n break;\n }\n }\n\n var body = parseBlock(flowContext);\n flowContext.popScope();\n expect('end');\n if (options.scope) destroyScope();\n\n isLocal = isLocal || false;\n return finishNode(ast.functionStatement(name, parameters, isLocal, body));\n }\n\n function parseFunctionName() {\n var base, name, marker;\n\n if (trackLocations) marker = createLocationMarker();\n base = parseIdentifier();\n\n if (options.scope) {\n attachScope(base, scopeHasName(base.name));\n createScope();\n }\n\n while (consume('.')) {\n pushLocation(marker);\n name = parseIdentifier();\n base = finishNode(ast.memberExpression(base, '.', name));\n }\n\n if (consume(':')) {\n pushLocation(marker);\n name = parseIdentifier();\n base = finishNode(ast.memberExpression(base, ':', name));\n if (options.scope) scopeIdentifierName('self');\n }\n\n return base;\n }\n\n function parseTableConstructor(flowContext) {\n var fields = []\n , key, value;\n\n while (true) {\n markLocation();\n if (Punctuator === token.type && consume('[')) {\n key = parseExpectedExpression(flowContext);\n expect(']');\n expect('=');\n value = parseExpectedExpression(flowContext);\n fields.push(finishNode(ast.tableKey(key, value)));\n } else if (Identifier === token.type) {\n if ('=' === lookahead.value) {\n key = parseIdentifier();\n next();\n value = parseExpectedExpression(flowContext);\n fields.push(finishNode(ast.tableKeyString(key, value)));\n } else {\n value = parseExpectedExpression(flowContext);\n fields.push(finishNode(ast.tableValue(value)));\n }\n } else {\n if (null == (value = parseExpression(flowContext))) {\n locations.pop();\n break;\n }\n fields.push(finishNode(ast.tableValue(value)));\n }\n if (',;'.indexOf(token.value) >= 0) {\n next();\n continue;\n }\n break;\n }\n expect('}');\n return finishNode(ast.tableConstructorExpression(fields));\n }\n\n function parseExpression(flowContext) {\n var expression = parseSubExpression(0, flowContext);\n return expression;\n }\n\n function parseExpectedExpression(flowContext) {\n var expression = parseExpression(flowContext);\n if (null == expression) raiseUnexpectedToken('<expression>', token);\n else return expression;\n }\n\n function binaryPrecedence(operator) {\n var charCode = operator.charCodeAt(0)\n , length = operator.length;\n\n if (1 === length) {\n switch (charCode) {\n case 94: return 12; // ^\n case 42: case 47: case 37: return 10; // * / %\n case 43: case 45: return 9; // + -\n case 38: return 6; // &\n case 126: return 5; // ~\n case 124: return 4; // |\n case 60: case 62: return 3; // < >\n }\n } else if (2 === length) {\n switch (charCode) {\n case 47: return 10; // //\n case 46: return 8; // ..\n case 60: case 62:\n if('<<' === operator || '>>' === operator) return 7; // << >>\n return 3; // <= >=\n case 61: case 126: return 3; // == ~=\n case 111: return 1; // or\n }\n } else if (97 === charCode && 'and' === operator) return 2;\n return 0;\n }\n\n function parseSubExpression(minPrecedence, flowContext) {\n var operator = token.value\n , expression, marker;\n\n if (trackLocations) marker = createLocationMarker();\n if (isUnary(token)) {\n markLocation();\n next();\n var argument = parseSubExpression(10, flowContext);\n if (argument == null) raiseUnexpectedToken('<expression>', token);\n expression = finishNode(ast.unaryExpression(operator, argument));\n }\n if (null == expression) {\n expression = parsePrimaryExpression(flowContext);\n if (null == expression) {\n expression = parsePrefixExpression(flowContext);\n }\n }\n if (null == expression) return null;\n\n var precedence;\n while (true) {\n operator = token.value;\n\n precedence = (Punctuator === token.type || Keyword === token.type) ?\n binaryPrecedence(operator) : 0;\n\n if (precedence === 0 || precedence <= minPrecedence) break;\n if ('^' === operator || '..' === operator) --precedence;\n next();\n var right = parseSubExpression(precedence, flowContext);\n if (null == right) raiseUnexpectedToken('<expression>', token);\n if (trackLocations) locations.push(marker);\n expression = finishNode(ast.binaryExpression(operator, expression, right));\n\n }\n return expression;\n }\n\n function parsePrefixExpressionPart(base, marker, flowContext) {\n var expression, identifier;\n\n if (Punctuator === token.type) {\n switch (token.value) {\n case '[':\n pushLocation(marker);\n next();\n expression = parseExpectedExpression(flowContext);\n expect(']');\n return finishNode(ast.indexExpression(base, expression));\n case '.':\n pushLocation(marker);\n next();\n identifier = parseIdentifier();\n return finishNode(ast.memberExpression(base, '.', identifier));\n case ':':\n pushLocation(marker);\n next();\n identifier = parseIdentifier();\n base = finishNode(ast.memberExpression(base, ':', identifier));\n pushLocation(marker);\n return parseCallExpression(base, flowContext);\n case '(': case '{': // args\n pushLocation(marker);\n return parseCallExpression(base, flowContext);\n }\n } else if (StringLiteral === token.type) {\n pushLocation(marker);\n return parseCallExpression(base, flowContext);\n }\n\n return null;\n }\n\n function parsePrefixExpression(flowContext) {\n var base, name, marker;\n\n if (trackLocations) marker = createLocationMarker();\n if (Identifier === token.type) {\n name = token.value;\n base = parseIdentifier();\n if (options.scope) attachScope(base, scopeHasName(name));\n } else if (consume('(')) {\n base = parseExpectedExpression(flowContext);\n expect(')');\n } else {\n return null;\n }\n for (;;) {\n var newBase = parsePrefixExpressionPart(base, marker, flowContext);\n if (newBase === null)\n break;\n base = newBase;\n }\n\n return base;\n }\n\n function parseCallExpression(base, flowContext) {\n if (Punctuator === token.type) {\n switch (token.value) {\n case '(':\n if (!features.emptyStatement) {\n if (token.line !== previousToken.line)\n raise(null, errors.ambiguousSyntax, token.value);\n }\n next();\n var expressions = [];\n var expression = parseExpression(flowContext);\n if (null != expression) expressions.push(expression);\n while (consume(',')) {\n expression = parseExpectedExpression(flowContext);\n expressions.push(expression);\n }\n\n expect(')');\n return finishNode(ast.callExpression(base, expressions));\n\n case '{':\n markLocation();\n next();\n var table = parseTableConstructor(flowContext);\n return finishNode(ast.tableCallExpression(base, table));\n }\n } else if (StringLiteral === token.type) {\n return finishNode(ast.stringCallExpression(base, parsePrimaryExpression(flowContext)));\n }\n\n raiseUnexpectedToken('function arguments', token);\n }\n\n function parsePrimaryExpression(flowContext) {\n var literals = StringLiteral | NumericLiteral | BooleanLiteral | NilLiteral | VarargLiteral\n , value = token.value\n , type = token.type\n , marker;\n\n if (trackLocations) marker = createLocationMarker();\n\n if (type === VarargLiteral && !flowContext.allowVararg) {\n raise(token, errors.cannotUseVararg, token.value);\n }\n\n if (type & literals) {\n pushLocation(marker);\n var raw = input.slice(token.range[0], token.range[1]);\n next();\n return finishNode(ast.literal(type, value, raw));\n } else if (Keyword === type && 'function' === value) {\n pushLocation(marker);\n next();\n if (options.scope) createScope();\n return parseFunctionDeclaration(null);\n } else if (consume('{')) {\n pushLocation(marker);\n return parseTableConstructor(flowContext);\n }\n }\n\n exports.parse = parse;\n\n var versionFeatures = {\n '5.1': {\n },\n '5.2': {\n labels: true,\n emptyStatement: true,\n hexEscapes: true,\n skipWhitespaceEscape: true,\n strictEscapes: true,\n relaxedBreak: true\n },\n '5.3': {\n labels: true,\n emptyStatement: true,\n hexEscapes: true,\n skipWhitespaceEscape: true,\n strictEscapes: true,\n unicodeEscapes: true,\n bitwiseOperators: true,\n integerDivision: true,\n relaxedBreak: true\n },\n 'LuaJIT': {\n labels: true,\n contextualGoto: true,\n hexEscapes: true,\n skipWhitespaceEscape: true,\n strictEscapes: true,\n unicodeEscapes: true,\n imaginaryNumbers: true,\n integerSuffixes: true\n }\n };\n\n function parse(_input, _options) {\n if ('undefined' === typeof _options && 'object' === typeof _input) {\n _options = _input;\n _input = undefined;\n }\n if (!_options) _options = {};\n\n input = _input || '';\n options = assign({}, defaultOptions, _options);\n index = 0;\n line = 1;\n lineStart = 0;\n length = input.length;\n scopes = [[]];\n scopeDepth = 0;\n globals = [];\n locations = [];\n\n if (!Object.prototype.hasOwnProperty.call(versionFeatures, options.luaVersion)) {\n throw new Error(sprintf(\"Lua version '%1' not supported\", options.luaVersion));\n }\n\n features = assign({}, versionFeatures[options.luaVersion]);\n if (options.extendedIdentifiers !== void 0)\n features.extendedIdentifiers = !!options.extendedIdentifiers;\n\n if (!Object.prototype.hasOwnProperty.call(encodingModes, options.encodingMode)) {\n throw new Error(sprintf(\"Encoding mode '%1' not supported\", options.encodingMode));\n }\n\n encodingMode = encodingModes[options.encodingMode];\n\n if (options.comments) comments = [];\n if (!options.wait) return end();\n return exports;\n }\n exports.write = write;\n\n function write(_input) {\n input += String(_input);\n length = input.length;\n return exports;\n }\n exports.end = end;\n\n function end(_input) {\n if ('undefined' !== typeof _input) write(_input);\n if (input && input.substr(0, 2) === '#!') input = input.replace(/^.*/, function (line) {\n return line.replace(/./g, ' ');\n });\n\n length = input.length;\n trackLocations = options.locations || options.ranges;\n lookahead = lex();\n\n var chunk = parseChunk();\n if (options.comments) chunk.comments = comments;\n if (options.scope) chunk.globals = globals;\n if (locations.length > 0)\n throw new Error('Location tracking failed. This is most likely a bug in luaparse');\n\n return chunk;\n }\n\n}));\n\n});\n\nace.define(\"ace/mode/lua_worker\",[], function(require, exports, module) {\n\"use strict\";\n\nvar oop = require(\"../lib/oop\");\nvar Mirror = require(\"../worker/mirror\").Mirror;\nvar luaparse = require(\"../mode/lua/luaparse\");\n\nvar Worker = exports.Worker = function(sender) {\n Mirror.call(this, sender);\n this.setTimeout(500);\n};\n\noop.inherits(Worker, Mirror);\n\n(function() {\n\n this.onUpdate = function() {\n var value = this.doc.getValue();\n var errors = [];\n try {\n luaparse.parse(value);\n } catch(e) {\n if (e instanceof luaparse.SyntaxError) {\n errors.push({\n row: e.line - 1,\n column: e.column,\n text: e.message,\n type: \"error\"\n });\n }\n }\n this.sender.emit(\"annotate\", errors);\n };\n\n}).call(Worker.prototype);\n\n});\n"],"names":["window","msgs","message","file","line","col","err","parentId","moduleName","chunks","base","previous","id","module","path","resolveModuleId","paths","testPath","tail","alias","i","deps","factory","req","childId","returnExports","dep","topLevelNamespaces","EventEmitter","oop","Sender","data","callbackId","name","main","sender","e","msg","clazz","this","require","exports","ctor","superCtor","obj","mixin","key","proto","docLines","delta","doNotValidate","row","startColumn","lines","args","endColumn","endRow","stopPropagation","preventDefault","eventName","listeners","defaultHandler","callback","_self","newCallback","resolve","handlers","old","disabled","capturing","index","comparePoints","p1","p2","Range","startRow","range","column","cmp","end","start","p","firstRow","lastRow","session","screenPosStart","screenPosEnd","Anchor","doc","point","$getTransformedPoint","noClip","pos","$pointsInOrder","point1","point2","equalPointsInOrder","bColIsAfter","moveIfEqual","deltaIsInsert","deltaRowShift","deltaColShift","deltaStart","deltaEnd","applyDelta","Document","textOrLines","text","len","match","newLineMode","l","position","length","deleteFirstNewLine","deleteLastNewLine","startCol","endCol","deletedLines","deltas","isInsert","docLength","MAX","from","to","chunk","newlineLength","a","string","count","result","trimBeginRegexp","trimEndRegexp","copy","array","deepCopy","arr","map","props","value","str","regExp","matches","fcn","timer","deferred","timeout","defaultTimeout","lang","Mirror","deferredUpdate","d","root","input","options","features","encodingMode","defaultOptions","encodeUTF8","codepoint","highMask","toHex","num","digits","checkChars","rx","s","m","raise","errors","encodingModes","EOF","StringLiteral","Keyword","Identifier","NumericLiteral","Punctuator","BooleanLiteral","NilLiteral","VarargLiteral","ast","label","clauses","condition","body","variables","init","expression","identifier","parameters","isLocal","variable","step","iterators","type","raw","fields","operator","left","right","argument","indexer","finishNode","node","trackLocations","location","locations","slice","indexOf","element","indexOfObject","property","sprintf","format","assign","dest","src","prop","fixupError","token","error","lineStart","tokenValue","raiseUnexpectedToken","unexpected","found","near","lookahead","previousToken","comments","tokenStart","lex","skipWhiteSpace","scanComment","charCode","next","isIdentifierStart","scanIdentifierOrKeyword","scanStringLiteral","scanNumericLiteral","isDecDigit","scanVarargLiteral","scanPunctuator","scanLongStringLiteral","consumeEOL","peekCharCode","isLineTerminator","isWhiteSpace","isIdentifierPart","isKeyword","delimiter","beginLine","beginLineStart","stringStart","beforeEscape","escapeValue","readEscapeSequence","readLongString","character","literal","readHexLiteral","readDecLiteral","foundImaginaryUnit","readImaginaryUnitSuffix","foundInt64Suffix","readInt64Suffix","fraction","binaryExponent","binarySign","digit","fractionStart","exponentStart","digitStart","isHexDigit","foundFraction","foundBinaryExponent","foundExponent","readUnicodeEscapeSequence","sequenceStart","escStart","b","frag","ddd","content","isLong","commentStart","lineStartComment","lineComment","isComment","level","terminator","firstLine","consume","expect","isUnary","isBlockFollow","scopes","scopeDepth","globals","createScope","scope","destroyScope","scopeIdentifierName","scopeIdentifier","attachScope","scopeHasName","createLocationMarker","Marker","loc","markLocation","pushLocation","marker","FullFlowContext","isLoop","theGoto","target","localCounts","newGotos","bads","LoopFlowContext","levels","levlen","makeFlowContext","parseChunk","flowContext","parseBlock","block","statement","parseStatement","parseLabelStatement","parseLocalStatement","parseIfStatement","parseReturnStatement","parseFunctionName","parseFunctionDeclaration","parseWhileStatement","parseForStatement","parseRepeatStatement","parseBreakStatement","parseDoStatement","parseGotoStatement","parseAssignmentOrCallStatement","nameToken","parseIdentifier","gotoToken","parseExpectedExpression","expressions","parseExpression","declToken","startMarker","lvalue","targets","both","parsePrefixExpressionPart","values","parameter","parsePrimaryExpression","parseTableConstructor","parseSubExpression","binaryPrecedence","minPrecedence","parsePrefixExpression","precedence","parseCallExpression","newBase","table","literals","parse","versionFeatures","_input","_options","write","luaparse","Worker"],"mappings":"2YACE,SAASA,EAAQ,CAGnB,GAFI,OAAOA,EAAO,OAAU,KAAeA,EAAO,UAE9CA,EAAO,SAAWA,EAAO,OACzB,OAECA,EAAO,UACRA,EAAO,QAAU,UAAW,CACxB,IAAIC,EAAO,MAAM,UAAU,MAAM,KAAK,UAAW,CAAC,EAClD,YAAY,CAAC,KAAM,MAAO,KAAMA,CAAI,CAAC,CAC7C,EACID,EAAO,QAAQ,MACfA,EAAO,QAAQ,KACfA,EAAO,QAAQ,IACfA,EAAO,QAAQ,MAAQA,EAAO,SAElCA,EAAO,OAASA,EAChBA,EAAO,IAAMA,EAEbA,EAAO,QAAU,SAASE,EAASC,EAAMC,EAAMC,EAAKC,EAAK,CACrD,YAAY,CAAC,KAAM,QAAS,KAAM,CAC9B,QAASJ,EACT,KAAMI,GAAOA,EAAI,KACjB,KAAMH,EACN,KAAMC,EACN,IAAKC,EACL,MAAOC,GAAOA,EAAI,KACrB,CAAA,CAAC,CACN,EAEAN,EAAO,gBAAkB,SAASO,EAAUC,EAAY,CAEpD,GAAIA,EAAW,QAAQ,GAAG,IAAM,GAAI,CAChC,IAAIC,EAASD,EAAW,MAAM,GAAG,EACjC,OAAOR,EAAO,gBAAgBO,EAAUE,EAAO,CAAC,CAAC,EAAI,IAAMT,EAAO,gBAAgBO,EAAUE,EAAO,CAAC,CAAC,EAGzG,GAAID,EAAW,OAAO,CAAC,GAAK,IAAK,CAC7B,IAAIE,EAAOH,EAAS,MAAM,GAAG,EAAE,MAAM,EAAG,EAAE,EAAE,KAAK,GAAG,EAGpD,IAFAC,GAAcE,EAAOA,EAAO,IAAM,IAAMF,EAEjCA,EAAW,QAAQ,GAAG,IAAM,IAAMG,GAAYH,GAAY,CAC7D,IAAIG,EAAWH,EACfA,EAAaA,EAAW,QAAQ,QAAS,EAAE,EAAE,QAAQ,SAAU,GAAG,EAAE,QAAQ,iBAAkB,E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