mlogjs 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bin.cjs +69 -0
- package/dist/bin.cjs +69 -0
- package/dist/index.cjs +1817 -0
- package/dist/index.mjs +1813 -0
- package/dist/types/Compiler.d.ts +18 -0
- package/{build → dist/types}/Scope.d.ts +23 -26
- package/dist/types/bin.d.ts +1 -0
- package/dist/types/handlers/BlockStatement.d.ts +2 -0
- package/dist/types/handlers/CallExpression.d.ts +3 -0
- package/dist/types/handlers/ForStatement.d.ts +2 -0
- package/{build → dist/types}/handlers/Function.d.ts +4 -4
- package/{build → dist/types}/handlers/Identifier.d.ts +2 -2
- package/dist/types/handlers/IfStatement.d.ts +2 -0
- package/{build → dist/types}/handlers/Literal.d.ts +2 -2
- package/{build → dist/types}/handlers/Object.d.ts +4 -4
- package/{build → dist/types}/handlers/OperationExpressions.d.ts +7 -7
- package/dist/types/handlers/Program.d.ts +2 -0
- package/dist/types/handlers/Statements.d.ts +5 -0
- package/dist/types/handlers/TemplateExpression.d.ts +2 -0
- package/dist/types/handlers/VariableDeclaration.d.ts +3 -0
- package/dist/types/handlers/WhileStatement.d.ts +2 -0
- package/{build → dist/types}/handlers/index.d.ts +14 -14
- package/dist/types/index.d.ts +1 -0
- package/{build → dist/types}/initScope.d.ts +2 -2
- package/{build → dist/types}/instructions/AddressResolver.d.ts +12 -12
- package/{build → dist/types}/instructions/ControlInstructions.d.ts +11 -11
- package/{build → dist/types}/instructions/EndInstruction.d.ts +4 -4
- package/{build → dist/types}/instructions/InstructionBase.d.ts +10 -10
- package/{build → dist/types}/instructions/JumpInstruction.d.ts +15 -15
- package/{build → dist/types}/instructions/OperationInstruction.d.ts +5 -5
- package/{build → dist/types}/instructions/SetCounterInstruction.d.ts +5 -5
- package/{build → dist/types}/instructions/SetInstruction.d.ts +5 -5
- package/{build → dist/types}/instructions/ZeroSpaceInstruction.d.ts +4 -4
- package/{build → dist/types}/instructions/index.d.ts +9 -9
- package/{build → dist/types}/macros/Building.d.ts +11 -11
- package/dist/types/macros/Function.d.ts +12 -0
- package/{build → dist/types}/macros/Math.d.ts +5 -5
- package/{build → dist/types}/macros/Memory.d.ts +5 -5
- package/{build → dist/types}/macros/Namespace.d.ts +21 -21
- package/{build → dist/types}/macros/Other.d.ts +5 -5
- package/{build → dist/types}/macros/RawValue.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Control.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Draw.d.ts +5 -5
- package/{build → dist/types}/macros/commands/DrawFlush.d.ts +5 -5
- package/{build → dist/types}/macros/commands/GetLink.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Lookup.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Print.d.ts +5 -5
- package/{build → dist/types}/macros/commands/PrintFlush.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Radar.d.ts +7 -7
- package/{build → dist/types}/macros/commands/Sensor.d.ts +5 -5
- package/{build → dist/types}/macros/commands/UnitBind.d.ts +5 -5
- package/dist/types/macros/commands/UnitControl.d.ts +5 -0
- package/{build → dist/types}/macros/commands/UnitLocate.d.ts +5 -5
- package/{build → dist/types}/macros/commands/UnitRadar.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Wait.d.ts +5 -5
- package/{build → dist/types}/macros/commands/index.d.ts +14 -14
- package/{build → dist/types}/macros/index.d.ts +7 -7
- package/{build → dist/types}/operators.d.ts +25 -25
- package/dist/types/types.d.ts +100 -0
- package/{build → dist/types}/utils.d.ts +3 -3
- package/{build → dist/types}/values/BaseValue.d.ts +5 -5
- package/{build → dist/types}/values/FunctionValue.d.ts +34 -34
- package/{build → dist/types}/values/LiteralValue.d.ts +12 -12
- package/dist/types/values/ObjectValue.d.ts +19 -0
- package/{build → dist/types}/values/StoreValue.d.ts +11 -11
- package/{build → dist/types}/values/TempValue.d.ts +12 -12
- package/{build → dist/types}/values/VoidValue.d.ts +13 -11
- package/{build → dist/types}/values/index.d.ts +6 -6
- package/doc/README.md +9 -0
- package/lib/eslib/lib.es5.d.ts +1 -1
- package/lib/traits.d.ts +0 -1
- package/package.json +17 -27
- package/build/Compiler.d.ts +0 -18
- package/build/Compiler.js +0 -100
- package/build/Compiler.js.map +0 -1
- package/build/Scope.js +0 -61
- package/build/Scope.js.map +0 -1
- package/build/bin.d.ts +0 -2
- package/build/bin.js +0 -61
- package/build/bin.js.map +0 -1
- package/build/handlers/BlockStatement.d.ts +0 -2
- package/build/handlers/BlockStatement.js +0 -14
- package/build/handlers/BlockStatement.js.map +0 -1
- package/build/handlers/CallExpression.d.ts +0 -3
- package/build/handlers/CallExpression.js +0 -20
- package/build/handlers/CallExpression.js.map +0 -1
- package/build/handlers/ForStatement.d.ts +0 -2
- package/build/handlers/ForStatement.js +0 -32
- package/build/handlers/ForStatement.js.map +0 -1
- package/build/handlers/Function.js +0 -36
- package/build/handlers/Function.js.map +0 -1
- package/build/handlers/Identifier.js +0 -8
- package/build/handlers/Identifier.js.map +0 -1
- package/build/handlers/IfStatement.d.ts +0 -2
- package/build/handlers/IfStatement.js +0 -25
- package/build/handlers/IfStatement.js.map +0 -1
- package/build/handlers/Literal.js +0 -18
- package/build/handlers/Literal.js.map +0 -1
- package/build/handlers/Object.js +0 -44
- package/build/handlers/Object.js.map +0 -1
- package/build/handlers/OperationExpressions.js +0 -33
- package/build/handlers/OperationExpressions.js.map +0 -1
- package/build/handlers/Program.d.ts +0 -2
- package/build/handlers/Program.js +0 -9
- package/build/handlers/Program.js.map +0 -1
- package/build/handlers/Statements.d.ts +0 -5
- package/build/handlers/Statements.js +0 -30
- package/build/handlers/Statements.js.map +0 -1
- package/build/handlers/TemplateExpression.d.ts +0 -2
- package/build/handlers/TemplateExpression.js +0 -18
- package/build/handlers/TemplateExpression.js.map +0 -1
- package/build/handlers/VariableDeclaration.d.ts +0 -3
- package/build/handlers/VariableDeclaration.js +0 -56
- package/build/handlers/VariableDeclaration.js.map +0 -1
- package/build/handlers/WhileStatement.d.ts +0 -2
- package/build/handlers/WhileStatement.js +0 -23
- package/build/handlers/WhileStatement.js.map +0 -1
- package/build/handlers/index.js +0 -31
- package/build/handlers/index.js.map +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -8
- package/build/index.js.map +0 -1
- package/build/initScope.js +0 -40
- package/build/initScope.js.map +0 -1
- package/build/instructions/AddressResolver.js +0 -31
- package/build/instructions/AddressResolver.js.map +0 -1
- package/build/instructions/ControlInstructions.js +0 -23
- package/build/instructions/ControlInstructions.js.map +0 -1
- package/build/instructions/EndInstruction.js +0 -11
- package/build/instructions/EndInstruction.js.map +0 -1
- package/build/instructions/InstructionBase.js +0 -21
- package/build/instructions/InstructionBase.js.map +0 -1
- package/build/instructions/JumpInstruction.js +0 -22
- package/build/instructions/JumpInstruction.js.map +0 -1
- package/build/instructions/OperationInstruction.js +0 -11
- package/build/instructions/OperationInstruction.js.map +0 -1
- package/build/instructions/SetCounterInstruction.js +0 -11
- package/build/instructions/SetCounterInstruction.js.map +0 -1
- package/build/instructions/SetInstruction.js +0 -11
- package/build/instructions/SetInstruction.js.map +0 -1
- package/build/instructions/ZeroSpaceInstruction.js +0 -11
- package/build/instructions/ZeroSpaceInstruction.js.map +0 -1
- package/build/instructions/index.js +0 -26
- package/build/instructions/index.js.map +0 -1
- package/build/macros/Building.js +0 -81
- package/build/macros/Building.js.map +0 -1
- package/build/macros/Function.d.ts +0 -12
- package/build/macros/Function.js +0 -20
- package/build/macros/Function.js.map +0 -1
- package/build/macros/Math.js +0 -57
- package/build/macros/Math.js.map +0 -1
- package/build/macros/Memory.js +0 -61
- package/build/macros/Memory.js.map +0 -1
- package/build/macros/Namespace.js +0 -98
- package/build/macros/Namespace.js.map +0 -1
- package/build/macros/Other.js +0 -20
- package/build/macros/Other.js.map +0 -1
- package/build/macros/RawValue.js +0 -16
- package/build/macros/RawValue.js.map +0 -1
- package/build/macros/commands/Control.js +0 -25
- package/build/macros/commands/Control.js.map +0 -1
- package/build/macros/commands/Draw.js +0 -39
- package/build/macros/commands/Draw.js.map +0 -1
- package/build/macros/commands/DrawFlush.js +0 -17
- package/build/macros/commands/DrawFlush.js.map +0 -1
- package/build/macros/commands/GetLink.js +0 -21
- package/build/macros/commands/GetLink.js.map +0 -1
- package/build/macros/commands/Lookup.js +0 -24
- package/build/macros/commands/Lookup.js.map +0 -1
- package/build/macros/commands/Print.js +0 -14
- package/build/macros/commands/Print.js.map +0 -1
- package/build/macros/commands/PrintFlush.js +0 -17
- package/build/macros/commands/PrintFlush.js.map +0 -1
- package/build/macros/commands/Radar.js +0 -61
- package/build/macros/commands/Radar.js.map +0 -1
- package/build/macros/commands/Sensor.js +0 -20
- package/build/macros/commands/Sensor.js.map +0 -1
- package/build/macros/commands/UnitBind.js +0 -17
- package/build/macros/commands/UnitBind.js.map +0 -1
- package/build/macros/commands/UnitControl.d.ts +0 -5
- package/build/macros/commands/UnitControl.js +0 -68
- package/build/macros/commands/UnitControl.js.map +0 -1
- package/build/macros/commands/UnitLocate.js +0 -55
- package/build/macros/commands/UnitLocate.js.map +0 -1
- package/build/macros/commands/UnitRadar.js +0 -41
- package/build/macros/commands/UnitRadar.js.map +0 -1
- package/build/macros/commands/Wait.js +0 -18
- package/build/macros/commands/Wait.js.map +0 -1
- package/build/macros/commands/index.js +0 -33
- package/build/macros/commands/index.js.map +0 -1
- package/build/macros/index.js +0 -40
- package/build/macros/index.js.map +0 -1
- package/build/operators.js +0 -102
- package/build/operators.js.map +0 -1
- package/build/types.d.ts +0 -49
- package/build/types.js +0 -28
- package/build/types.js.map +0 -1
- package/build/utils.js +0 -13
- package/build/utils.js.map +0 -1
- package/build/values/BaseValue.js +0 -112
- package/build/values/BaseValue.js.map +0 -1
- package/build/values/FunctionValue.js +0 -104
- package/build/values/FunctionValue.js.map +0 -1
- package/build/values/LiteralValue.js +0 -88
- package/build/values/LiteralValue.js.map +0 -1
- package/build/values/ObjectValue.d.ts +0 -17
- package/build/values/ObjectValue.js +0 -50
- package/build/values/ObjectValue.js.map +0 -1
- package/build/values/StoreValue.js +0 -31
- package/build/values/StoreValue.js.map +0 -1
- package/build/values/TempValue.js +0 -67
- package/build/values/TempValue.js.map +0 -1
- package/build/values/VoidValue.js +0 -31
- package/build/values/VoidValue.js.map +0 -1
- package/build/values/index.js +0 -23
- package/build/values/index.js.map +0 -1
- package/dist/mlogjs.es.js +0 -6366
- package/dist/mlogjs.umd.js +0 -8
package/dist/mlogjs.umd.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var Fs=Object.defineProperty;var je=Object.getOwnPropertySymbols;var Ms=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable;var Ge=(P,I,N)=>I in P?Fs(P,I,{enumerable:!0,configurable:!0,writable:!0,value:N}):P[I]=N,He=(P,I)=>{for(var N in I||(I={}))Ms.call(I,N)&&Ge(P,N,I[N]);if(je)for(var N of je(I))Ds.call(I,N)&&Ge(P,N,I[N]);return P};(function(P,I){typeof exports=="object"&&typeof module!="undefined"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(P=typeof globalThis!="undefined"?globalThis:P||self,I(P.mlogjs={}))})(this,function(P){"use strict";var I={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},N="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",We={5:N,"5module":N+" export import",6:N+" const class extends export import super"},ze=/^in(stanceof)?$/,At="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",zt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Qe=new RegExp("["+At+"]"),Ke=new RegExp("["+At+zt+"]");At=zt=null;var Qt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],$e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function Pt(t,e){for(var i=65536,s=0;s<e.length;s+=2){if(i+=e[s],i>t)return!1;if(i+=e[s+1],i>=t)return!0}}function j(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Qe.test(String.fromCharCode(t)):e===!1?!1:Pt(t,Qt)}function Z(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ke.test(String.fromCharCode(t)):e===!1?!1:Pt(t,Qt)||Pt(t,$e)}var v=function(e,i){i===void 0&&(i={}),this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function V(t,e){return new v(t,{beforeExpr:!0,binop:e})}var L={beforeExpr:!0},T={startsExpr:!0},Nt={};function g(t,e){return e===void 0&&(e={}),e.keyword=t,Nt[t]=new v(t,e)}var r={num:new v("num",T),regexp:new v("regexp",T),string:new v("string",T),name:new v("name",T),privateId:new v("privateId",T),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",L),semi:new v(";",L),colon:new v(":",L),dot:new v("."),question:new v("?",L),questionDot:new v("?."),arrow:new v("=>",L),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",L),backQuote:new v("`",T),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:V("||",1),logicalAND:V("&&",2),bitwiseOR:V("|",3),bitwiseXOR:V("^",4),bitwiseAND:V("&",5),equality:V("==/!=/===/!==",6),relational:V("</>/<=/>=",7),bitShift:V("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:V("%",10),star:V("*",10),slash:V("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:V("??",1),_break:g("break"),_case:g("case",L),_catch:g("catch"),_continue:g("continue"),_debugger:g("debugger"),_default:g("default",L),_do:g("do",{isLoop:!0,beforeExpr:!0}),_else:g("else",L),_finally:g("finally"),_for:g("for",{isLoop:!0}),_function:g("function",T),_if:g("if"),_return:g("return",L),_switch:g("switch"),_throw:g("throw",L),_try:g("try"),_var:g("var"),_const:g("const"),_while:g("while",{isLoop:!0}),_with:g("with"),_new:g("new",{beforeExpr:!0,startsExpr:!0}),_this:g("this",T),_super:g("super",T),_class:g("class",T),_extends:g("extends",L),_export:g("export"),_import:g("import",T),_null:g("null",T),_true:g("true",T),_false:g("false",T),_in:g("in",{beforeExpr:!0,binop:7}),_instanceof:g("instanceof",{beforeExpr:!0,binop:7}),_typeof:g("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:g("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:g("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,Ye=new RegExp(R.source,"g");function J(t){return t===10||t===13||t===8232||t===8233}function Kt(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var a=t.charCodeAt(s);if(J(a))return s<i-1&&a===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}var $t=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,B=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Yt=Object.prototype,Xe=Yt.hasOwnProperty,Ze=Yt.toString,ot=Object.hasOwn||function(t,e){return Xe.call(t,e)},Xt=Array.isArray||function(t){return Ze.call(t)==="[object Array]"};function K(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Je=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ut=function(e,i){this.line=e,this.column=i};ut.prototype.offset=function(e){return new ut(this.line,this.column+e)};var gt=function(e,i,s){this.start=i,this.end=s,e.sourceFile!==null&&(this.source=e.sourceFile)};function Zt(t,e){for(var i=1,s=0;;){var a=Kt(t,s,e);if(a<0)return new ut(i,e-s);++i,s=a}}var Tt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Jt=!1;function ti(t){var e={};for(var i in Tt)e[i]=t&&ot(t,i)?t[i]:Tt[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!Jt&&typeof console=="object"&&console.warn&&(Jt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
-
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),Xt(e.onToken)){var s=e.onToken;e.onToken=function(a){return s.push(a)}}return Xt(e.onComment)&&(e.onComment=ei(e,e.onComment)),e}function ei(t,e){return function(i,s,a,n,o,u){var h={type:i?"Block":"Line",value:s,start:a,end:n};t.locations&&(h.loc=new gt(this,o,u)),t.ranges&&(h.range=[a,n]),e.push(h)}}var ht=1,tt=2,Vt=4,te=8,ee=16,ie=32,Lt=64,se=128,lt=256,Rt=ht|tt|lt;function Bt(t,e){return tt|(t?Vt:0)|(e?te:0)}var vt=0,Ot=1,G=2,ae=3,re=4,ne=5,E=function(e,i,s){this.options=e=ti(e),this.sourceFile=e.sourceFile,this.keywords=K(We[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var a="";e.allowReserved!==!0&&(a=I[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module"&&(a+=" await")),this.reservedWords=K(a);var n=(a?a+" ":"")+I.strict;this.reservedWordsStrict=K(n),this.reservedWordsStrictBind=K(n+" "+I.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
-
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ht),this.regexpState=null,this.privateNameStack=[]},U={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};E.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},U.inFunction.get=function(){return(this.currentVarScope().flags&tt)>0},U.inGenerator.get=function(){return(this.currentVarScope().flags&te)>0&&!this.currentVarScope().inClassFieldInit},U.inAsync.get=function(){return(this.currentVarScope().flags&Vt)>0&&!this.currentVarScope().inClassFieldInit},U.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags<)return!1;if(e.flags&tt)return(e.flags&Vt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},U.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&Lt)>0||i||this.options.allowSuperOutsideMethod},U.allowDirectSuper.get=function(){return(this.currentThisScope().flags&se)>0},U.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},U.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&(tt|lt))>0||i},U.inClassStaticBlock.get=function(){return(this.currentVarScope().flags<)>0},E.extend=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var s=this,a=0;a<e.length;a++)s=e[a](s);return s},E.parse=function(e,i){return new this(i,e).parse()},E.parseExpressionAt=function(e,i,s){var a=new this(s,e,i);return a.nextToken(),a.parseExpression()},E.tokenizer=function(e,i){return new this(i,e)},Object.defineProperties(E.prototype,U);var A=E.prototype,ii=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;A.strictDirective=function(t){for(;;){B.lastIndex=t,t+=B.exec(this.input)[0].length;var e=ii.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){B.lastIndex=t+e[0].length;var i=B.exec(this.input),s=i.index+i[0].length,a=this.input.charAt(s);return a===";"||a==="}"||R.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(a)||a==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,B.lastIndex=t,t+=B.exec(this.input)[0].length,this.input[t]===";"&&t++}},A.eat=function(t){return this.type===t?(this.next(),!0):!1},A.isContextual=function(t){return this.type===r.name&&this.value===t&&!this.containsEsc},A.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1},A.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},A.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},A.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},A.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},A.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},A.expect=function(t){this.eat(t)||this.unexpected()},A.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};function bt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}A.checkPatternErrors=function(t,e){if(!!t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,"Parenthesized pattern")}},A.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},A.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},A.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var d=E.prototype;d.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==r.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,a=Object.keys(this.undefinedExports);s<a.length;s+=1){var n=a[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Ft={kind:"loop"},si={kind:"switch"};d.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;B.lastIndex=this.pos;var e=B.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(s===91||s===92||s>55295&&s<56320)return!0;if(t)return!1;if(s===123)return!0;if(j(s,!0)){for(var a=i+1;Z(s=this.input.charCodeAt(a),!0);)++a;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,a);if(!ze.test(n))return!0}return!1},d.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;B.lastIndex=this.pos;var t=B.exec(this.input),e=this.pos+t[0].length,i;return!R.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(Z(i=this.input.charCodeAt(e+8))||i>55295&&i<56320))},d.parseStatement=function(t,e,i){var s=this.type,a=this.startNode(),n;switch(this.isLet(t)&&(s=r._var,n="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(a,s.keyword);case r._debugger:return this.parseDebuggerStatement(a);case r._do:return this.parseDoStatement(a);case r._for:return this.parseForStatement(a);case r._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!t);case r._class:return t&&this.unexpected(),this.parseClass(a,!0);case r._if:return this.parseIfStatement(a);case r._return:return this.parseReturnStatement(a);case r._switch:return this.parseSwitchStatement(a);case r._throw:return this.parseThrowStatement(a);case r._try:return this.parseTryStatement(a);case r._const:case r._var:return n=n||this.value,t&&n!=="var"&&this.unexpected(),this.parseVarStatement(a,n);case r._while:return this.parseWhileStatement(a);case r._with:return this.parseWithStatement(a);case r.braceL:return this.parseBlock(!0,a);case r.semi:return this.parseEmptyStatement(a);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){B.lastIndex=this.pos;var o=B.exec(this.input),u=this.pos+o[0].length,h=this.input.charCodeAt(u);if(h===40||h===46)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(a):this.parseExport(a,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!t);var c=this.value,f=this.parseExpression();return s===r.name&&f.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(a,c,f,t):this.parseExpressionStatement(a,f)}},d.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?t.label=null:this.type!==r.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var a=this.labels[s];if((t.label==null||a.name===t.label.name)&&(a.kind!=null&&(i||a.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},d.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},d.parseDoStatement=function(t){return this.next(),this.labels.push(Ft),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(r._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(r.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},d.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ft),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),a=i?"let":this.value;return this.next(),this.parseVar(s,!0,a),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var n=this.isContextual("let"),o=!1,u=new bt,h=this.parseExpression(e>-1?"await":!0,u);return this.type===r._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?e>-1&&this.unexpected(e):t.await=e>-1),n&&o&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,u),this.checkLValPattern(h),this.parseForIn(t,h)):(this.checkExpressionErrors(u,!0),e>-1&&this.unexpected(e),this.parseFor(t,h))},d.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,ct|(i?0:Mt),!1,e)},d.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},d.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},d.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(r.braceL),this.labels.push(si),this.enterScope(0);for(var e,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(r.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},d.parseThrowStatement=function(t){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ai=[];d.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===r._catch){var e=this.startNode();if(this.next(),this.eat(r.parenL)){e.param=this.parseBindingAtom();var i=e.param.type==="Identifier";this.enterScope(i?ie:0),this.checkLValPattern(e.param,i?re:G),this.expect(r.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(r._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},d.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},d.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ft),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},d.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},d.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},d.parseLabeledStatement=function(t,e,i,s){for(var a=0,n=this.labels;a<n.length;a+=1){var o=n[a];o.name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===r._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var c=this.labels[h];if(c.statementStart===t.start)c.statementStart=this.start,c.kind=u;else break}return this.labels.push({name:e,kind:u,statementStart:this.start}),t.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},d.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},d.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(r.braceL),t&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},d.parseFor=function(t,e){return t.init=e,this.expect(r.semi),t.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),t.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},d.parseForIn=function(t,e){var i=this.type===r._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},d.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(r.eq)?s.init=this.parseMaybeAssign(e):i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():s.id.type!=="Identifier"&&!(e&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(r.comma))break}return t},d.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?Ot:G,!1)};var ct=1,Mt=2,oe=4;d.parseFunction=function(t,e,i,s,a){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&e&Mt&&this.unexpected(),t.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&ct&&(t.id=e&oe&&this.type!==r.name?null:this.parseIdent(),t.id&&!(e&Mt)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ot:G:ae));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bt(t.async,t.generator)),e&ct||(t.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,a),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(t,e&ct?"FunctionDeclaration":"FunctionExpression")},d.parseFunctionParams=function(t){this.expect(r.parenL),t.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},d.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),a=this.startNode(),n=!1;for(a.body=[],this.expect(r.braceL);this.type!==r.braceR;){var o=this.parseClassElement(t.superClass!==null);o&&(a.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raise(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&ri(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(a,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},d.parseClassElement=function(t){if(this.eat(r.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",a=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?u=!0:s="static"}if(i.static=u,!s&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(e>=9||!n)&&this.eat(r.star)&&(a=!0),!s&&!n&&!a){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===r.parenL||o!=="method"||a||n){var c=!i.static&&yt(i,"constructor"),f=c&&t;c&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":o,this.parseClassMethod(i,a,n,f)}else this.parseClassField(i);return i},d.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},d.parseClassElementName=function(t){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},d.parseClassMethod=function(t,e,i,s){var a=t.key;t.kind==="constructor"?(e&&this.raise(a.start,"Constructor can't be a generator"),i&&this.raise(a.start,"Constructor can't be an async method")):t.static&&yt(t,"prototype")&&this.raise(a.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,i,s);return t.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),t.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),t.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},d.parseClassField=function(t){if(yt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&yt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},d.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(lt|Lt);this.type!==r.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},d.parseClassId=function(t,e){this.type===r.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,G,!1)):(e===!0&&this.unexpected(),t.id=null)},d.parseClassSuper=function(t){t.superClass=this.eat(r._extends)?this.parseExprSubscripts(!1):null},d.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},d.exitClassBody=function(){for(var t=this.privateNameStack.pop(),e=t.declared,i=t.used,s=this.privateNameStack.length,a=s===0?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var o=i[n];ot(e,o.name)||(a?a.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function ri(t,e){var i=e.key.name,s=t[i],a="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(a=(e.static?"s":"i")+e.kind),s==="iget"&&a==="iset"||s==="iset"&&a==="iget"||s==="sget"&&a==="sset"||s==="sset"&&a==="sget"?(t[i]="true",!1):s?!0:(t[i]=a,!1)}function yt(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}d.parseExport=function(t,e){if(this.next(),this.eat(r.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(r._default)){this.checkExport(e,"default",this.lastTokStart);var i;if(this.type===r._function||(i=this.isAsyncFunction())){var s=this.startNode();this.next(),i&&this.next(),t.declaration=this.parseFunction(s,ct|oe,!1,i)}else if(this.type===r._class){var a=this.startNode();t.declaration=this.parseClass(a,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var n=0,o=t.specifiers;n<o.length;n+=1){var u=o[n];this.checkUnreserved(u.local),this.checkLocalExport(u.local),u.local.type==="Literal"&&this.raise(u.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},d.checkExport=function(t,e,i){!t||(ot(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},d.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e.name,e.start);else if(i==="ObjectPattern")for(var s=0,a=e.properties;s<a.length;s+=1){var n=a[s];this.checkPatternExport(t,n)}else if(i==="ArrayPattern")for(var o=0,u=e.elements;o<u.length;o+=1){var h=u[o];h&&this.checkPatternExport(t,h)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"?this.checkPatternExport(t,e.argument):i==="ParenthesizedExpression"&&this.checkPatternExport(t,e.expression)},d.checkVariableExport=function(t,e){if(!!t)for(var i=0,s=e;i<s.length;i+=1){var a=s[i];this.checkPatternExport(t,a.id)}},d.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},d.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(r.braceL);!this.eat(r.braceR);){if(i)i=!1;else if(this.expect(r.comma),this.afterTrailingComma(r.braceR))break;var s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(t,s.exported[s.exported.type==="Identifier"?"name":"value"],s.exported.start),e.push(this.finishNode(s,"ExportSpecifier"))}return e},d.parseImport=function(t){return this.next(),this.type===r.string?(t.specifiers=ai,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===r.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},d.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===r.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,G),t.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(r.comma))return t}if(this.type===r.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,G),t.push(this.finishNode(s,"ImportNamespaceSpecifier")),t}for(this.expect(r.braceL);!this.eat(r.braceR);){if(e)e=!1;else if(this.expect(r.comma),this.afterTrailingComma(r.braceR))break;var a=this.startNode();a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,G),t.push(this.finishNode(a,"ImportSpecifier"))}return t},d.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===r.string){var t=this.parseLiteral(this.value);return Je.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},d.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},d.isDirectiveCandidate=function(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var F=E.prototype;F.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,a=t.properties;s<a.length;s+=1){var n=a[s];this.toAssignable(n,e),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},F.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var a=t[s];a&&this.toAssignable(a,e)}if(i){var n=t[i-1];this.options.ecmaVersion===6&&e&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return t},F.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},F.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==r.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},F.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case r.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(r.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case r.braceL:return this.parseObj(!0)}return this.parseIdent()},F.parseBindingList=function(t,e,i){for(var s=[],a=!0;!this.eat(t);)if(a?a=!1:this.expect(r.comma),e&&this.type===r.comma)s.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===r.ellipsis){var n=this.parseRestBinding();this.parseBindingListItem(n),s.push(n),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),s.push(o)}}return s},F.parseBindingListItem=function(t){return t},F.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(r.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},F.checkLValSimple=function(t,e,i){e===void 0&&(e=vt);var s=e!==vt;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===G&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(ot(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==ne&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},F.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=vt),t.type){case"ObjectPattern":for(var s=0,a=t.properties;s<a.length;s+=1){var n=a[s];this.checkLValInnerPattern(n,e,i)}break;case"ArrayPattern":for(var o=0,u=t.elements;o<u.length;o+=1){var h=u[o];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}},F.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=vt),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var M=function(e,i,s,a,n){this.token=e,this.isExpr=!!i,this.preserveSpace=!!s,this.override=a,this.generator=!!n},k={b_stat:new M("{",!1),b_expr:new M("{",!0),b_tmpl:new M("${",!1),p_stat:new M("(",!1),p_expr:new M("(",!0),q_tmpl:new M("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new M("function",!1),f_expr:new M("function",!0),f_expr_gen:new M("function",!0,!1,null,!0),f_gen:new M("function",!1,!1,null,!0)},et=E.prototype;et.initialContext=function(){return[k.b_stat]},et.curContext=function(){return this.context[this.context.length-1]},et.braceIsBlock=function(t){var e=this.curContext();return e===k.f_expr||e===k.f_stat?!0:t===r.colon&&(e===k.b_stat||e===k.b_expr)?!e.isExpr:t===r._return||t===r.name&&this.exprAllowed?R.test(this.input.slice(this.lastTokEnd,this.start)):t===r._else||t===r.semi||t===r.eof||t===r.parenR||t===r.arrow?!0:t===r.braceL?e===k.b_stat:t===r._var||t===r._const||t===r.name?!1:!this.exprAllowed},et.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},et.updateContext=function(t){var e,i=this.type;i.keyword&&t===r.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},et.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},r.parenR.updateContext=r.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===k.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr},r.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?k.b_stat:k.b_expr),this.exprAllowed=!0},r.dollarBraceL.updateContext=function(){this.context.push(k.b_tmpl),this.exprAllowed=!0},r.parenL.updateContext=function(t){var e=t===r._if||t===r._for||t===r._with||t===r._while;this.context.push(e?k.p_stat:k.p_expr),this.exprAllowed=!0},r.incDec.updateContext=function(){},r._function.updateContext=r._class.updateContext=function(t){t.beforeExpr&&t!==r._else&&!(t===r.semi&&this.curContext()!==k.p_stat)&&!(t===r._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===r.colon||t===r.braceL)&&this.curContext()===k.b_stat)?this.context.push(k.f_expr):this.context.push(k.f_stat),this.exprAllowed=!1},r.backQuote.updateContext=function(){this.curContext()===k.q_tmpl?this.context.pop():this.context.push(k.q_tmpl),this.exprAllowed=!1},r.star.updateContext=function(t){if(t===r._function){var e=this.context.length-1;this.context[e]===k.f_expr?this.context[e]=k.f_expr_gen:this.context[e]=k.f_gen}this.exprAllowed=!0},r.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==r.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var m=E.prototype;m.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s=t.key,a;switch(s.type){case"Identifier":a=s.name;break;case"Literal":a=String(s.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6){a==="__proto__"&&n==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),e.proto=!0);return}a="$"+a;var o=e[a];if(o){var u;n==="init"?u=this.strict&&o.init||o.get||o.set:u=o.init||o[n],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else o=e[a]={init:!1,get:!1,set:!1};o[n]=!0}},m.parseExpression=function(t,e){var i=this.start,s=this.startLoc,a=this.parseMaybeAssign(t,e);if(this.type===r.comma){var n=this.startNodeAt(i,s);for(n.expressions=[a];this.eat(r.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return a},m.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,a=-1,n=-1,o=-1;e?(a=e.parenthesizedAssign,n=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new bt,s=!0);var u=this.start,h=this.startLoc;(this.type===r.parenL||this.type===r.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var c=this.parseMaybeConditional(t,e);if(i&&(c=i.call(this,c,u,h)),this.type.isAssign){var f=this.startNodeAt(u,h);return f.operator=this.value,this.type===r.eq&&(c=this.toAssignable(c,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.start&&(e.shorthandAssign=-1),this.type===r.eq?this.checkLValPattern(c):this.checkLValSimple(c),f.left=c,this.next(),f.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(f,"AssignmentExpression")}else s&&this.checkExpressionErrors(e,!0);return a>-1&&(e.parenthesizedAssign=a),n>-1&&(e.trailingComma=n),c},m.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,a=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return a;if(this.eat(r.question)){var n=this.startNodeAt(i,s);return n.test=a,n.consequent=this.parseMaybeAssign(),this.expect(r.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return a},m.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,a=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||a.start===i&&a.type==="ArrowFunctionExpression"?a:this.parseExprOp(a,i,s,-1,t)},m.parseExprOp=function(t,e,i,s,a){var n=this.type.binop;if(n!=null&&(!a||this.type!==r._in)&&n>s){var o=this.type===r.logicalOR||this.type===r.logicalAND,u=this.type===r.coalesce;u&&(n=r.logicalAND.binop);var h=this.value;this.next();var c=this.start,f=this.startLoc,_=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,a),c,f,n,a),X=this.buildBinary(e,i,t,_,h,o||u);return(o&&this.type===r.coalesce||u&&(this.type===r.logicalOR||this.type===r.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(X,e,i,s,a)}return t},m.buildBinary=function(t,e,i,s,a,n){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=i,o.operator=a,o.right=s,this.finishNode(o,n?"LogicalExpression":"BinaryExpression")},m.parseMaybeUnary=function(t,e,i,s){var a=this.start,n=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(s),e=!0;else if(this.type.prefix){var u=this.startNode(),h=this.type===r.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&u.argument.type==="Identifier"?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&ue(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):e=!0,o=this.finishNode(u,h?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===r.privateId)(s||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==r._in&&this.unexpected();else{if(o=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(a,n);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}if(!i&&this.eat(r.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(a,n,o,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return o};function ue(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&ue(t.expression)}m.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,a=this.parseExprAtom(t,e);if(a.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return a;var n=this.parseSubscripts(a,i,s,!1,e);return t&&n.type==="MemberExpression"&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n},m.parseSubscripts=function(t,e,i,s,a){for(var n=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,o=!1;;){var u=this.parseSubscript(t,e,i,s,n,o,a);if(u.optional&&(o=!0),u===t||u.type==="ArrowFunctionExpression"){if(o){var h=this.startNodeAt(e,i);h.expression=u,u=this.finishNode(h,"ChainExpression")}return u}t=u}},m.parseSubscript=function(t,e,i,s,a,n,o){var u=this.options.ecmaVersion>=11,h=u&&this.eat(r.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(r.bracketL);if(c||h&&this.type!==r.parenL&&this.type!==r.backQuote||this.eat(r.dot)){var f=this.startNodeAt(e,i);f.object=t,c?(f.property=this.parseExpression(),this.expect(r.bracketR)):this.type===r.privateId&&t.type!=="Super"?f.property=this.parsePrivateIdent():f.property=this.parseIdent(this.options.allowReserved!=="never"),f.computed=!!c,u&&(f.optional=h),t=this.finishNode(f,"MemberExpression")}else if(!s&&this.eat(r.parenL)){var _=new bt,X=this.yieldPos,xt=this.awaitPos,at=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var It=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1,_);if(a&&!h&&!this.canInsertSemicolon()&&this.eat(r.arrow))return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=X,this.awaitPos=xt,this.awaitIdentPos=at,this.parseArrowExpression(this.startNodeAt(e,i),It,!0,o);this.checkExpressionErrors(_,!0),this.yieldPos=X||this.yieldPos,this.awaitPos=xt||this.awaitPos,this.awaitIdentPos=at||this.awaitIdentPos;var rt=this.startNodeAt(e,i);rt.callee=t,rt.arguments=It,u&&(rt.optional=h),t=this.finishNode(rt,"CallExpression")}else if(this.type===r.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var nt=this.startNodeAt(e,i);nt.tag=t,nt.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(nt,"TaggedTemplateExpression")}return t},m.parseExprAtom=function(t,e){this.type===r.slash&&this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case r._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===r.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==r.dot&&this.type!==r.bracketL&&this.type!==r.parenL&&this.unexpected(),this.finishNode(i,"Super");case r._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case r.name:var a=this.start,n=this.startLoc,o=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(k.f_expr),this.parseFunction(this.startNodeAt(a,n),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(a,n),[u],!1,e);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===r.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,n),[u],!0,e)}return u;case r.regexp:var h=this.value;return i=this.parseLiteral(h.value),i.regex={pattern:h.pattern,flags:h.flags},i;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return i=this.startNode(),i.value=this.type===r._null?null:this.type===r._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case r.parenL:var c=this.start,f=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),f;case r.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(r.bracketR,!0,!0,t),this.finishNode(i,"ArrayExpression");case r.braceL:return this.overrideContext(k.b_expr),this.parseObj(!1,t);case r._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},m.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case r.parenL:return this.parseDynamicImport(t);case r.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}},m.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var e=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},m.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},m.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},m.parseParenExpression=function(){this.expect(r.parenL);var t=this.parseExpression();return this.expect(r.parenR),t},m.parseParenAndDistinguishExpression=function(t,e){var i=this.start,s=this.startLoc,a,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,h=[],c=!0,f=!1,_=new bt,X=this.yieldPos,xt=this.awaitPos,at;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(c?c=!1:this.expect(r.comma),n&&this.afterTrailingComma(r.parenR,!0)){f=!0;break}else if(this.type===r.ellipsis){at=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,_,this.parseParenItem));var It=this.lastTokEnd,rt=this.lastTokEndLoc;if(this.expect(r.parenR),t&&!this.canInsertSemicolon()&&this.eat(r.arrow))return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=X,this.awaitPos=xt,this.parseParenArrowList(i,s,h,e);(!h.length||f)&&this.unexpected(this.lastTokStart),at&&this.unexpected(at),this.checkExpressionErrors(_,!0),this.yieldPos=X||this.yieldPos,this.awaitPos=xt||this.awaitPos,h.length>1?(a=this.startNodeAt(o,u),a.expressions=h,this.finishNodeAt(a,"SequenceExpression",It,rt)):a=h[0]}else a=this.parseParenExpression();if(this.options.preserveParens){var nt=this.startNodeAt(i,s);return nt.expression=a,this.finishNode(nt,"ParenthesizedExpression")}else return a},m.parseParenItem=function(t){return t},m.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var ni=[];m.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,a=this.startLoc,n=this.type===r._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),s,a,!0,!1),n&&t.callee.type==="ImportExpression"&&this.raise(s,"Cannot use new with import()"),this.eat(r.parenL)?t.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ni,this.finishNode(t,"NewExpression")},m.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
4
|
-
`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},m.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},m.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},m.parseObj=function(t,e){var i=this.startNode(),s=!0,a={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,a,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},m.parseProperty=function(t,e){var i=this.startNode(),s,a,n,o;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return t?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===r.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,e),this.type===r.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(t||e)&&(n=this.start,o=this.startLoc),t||(s=this.eat(r.star)));var u=this.containsEsc;return this.parsePropertyName(i),!t&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i,e)):a=!1,this.parsePropertyValue(i,t,s,a,n,o,e,u),this.finishNode(i,"Property")},m.parsePropertyValue=function(t,e,i,s,a,n,o,u){if((i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===r.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s);else if(!e&&!u&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq){(i||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h=t.kind==="get"?0:1;if(t.value.params.length!==h){var c=t.value.start;t.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=a),t.kind="init",e?t.value=this.parseMaybeDefault(a,n,this.copyNode(t.key)):this.type===r.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(a,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected()},m.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(r.bracketR),t.key;t.computed=!1}return t.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},m.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},m.parseMethod=function(t,e,i){var s=this.startNode(),a=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bt(e,s.generator)|Lt|(i?se:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=a,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")},m.parseArrowExpression=function(t,e,i,s){var a=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Bt(i,!1)|ee),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=a,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")},m.parseFunctionBody=function(t,e,i,s){var a=e&&this.type!==r.braceL,n=this.strict,o=!1;if(a)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!n&&!o&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,ne),t.body=this.parseBlock(!1,void 0,o&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},m.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){var s=i[e];if(s.type!=="Identifier")return!1}return!0},m.checkParams=function(t,e){for(var i=Object.create(null),s=0,a=t.params;s<a.length;s+=1){var n=a[s];this.checkLValInnerPattern(n,Ot,e?null:i)}},m.parseExprList=function(t,e,i,s){for(var a=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(r.comma),e&&this.afterTrailingComma(t))break;var o=void 0;i&&this.type===r.comma?o=null:this.type===r.ellipsis?(o=this.parseSpread(s),s&&this.type===r.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):o=this.parseMaybeAssign(!1,s),a.push(o)}return a},m.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&s==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1)){var a=this.strict?this.reservedWordsStrict:this.reservedWords;a.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))}},m.parseIdent=function(t,e){var i=this.startNode();return this.type===r.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,(i.name==="class"||i.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!t),this.finishNode(i,"Identifier"),t||(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i.start)),i},m.parsePrivateIdent=function(){var t=this.startNode();return this.type===r.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t),t},m.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===r.semi||this.canInsertSemicolon()||this.type!==r.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(r.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},m.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var wt=E.prototype;wt.raise=function(t,e){var i=Zt(this.input,t);e+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},wt.raiseRecoverable=wt.raise,wt.curPosition=function(){if(this.options.locations)return new ut(this.curLine,this.pos-this.lineStart)};var W=E.prototype,oi=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};W.enterScope=function(t){this.scopeStack.push(new oi(t))},W.exitScope=function(){this.scopeStack.pop()},W.treatFunctionsAsVarInScope=function(t){return t.flags&tt||!this.inModule&&t.flags&ht},W.declareName=function(t,e,i){var s=!1;if(e===G){var a=this.currentScope();s=a.lexical.indexOf(t)>-1||a.functions.indexOf(t)>-1||a.var.indexOf(t)>-1,a.lexical.push(t),this.inModule&&a.flags&ht&&delete this.undefinedExports[t]}else if(e===re){var n=this.currentScope();n.lexical.push(t)}else if(e===ae){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(t)>-1:s=o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var u=this.scopeStack.length-1;u>=0;--u){var h=this.scopeStack[u];if(h.lexical.indexOf(t)>-1&&!(h.flags&ie&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){s=!0;break}if(h.var.push(t),this.inModule&&h.flags&ht&&delete this.undefinedExports[t],h.flags&Rt)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},W.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},W.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},W.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&Rt)return e}},W.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&Rt&&!(e.flags&ee))return e}};var kt=function(e,i,s){this.type="",this.start=i,this.end=0,e.options.locations&&(this.loc=new gt(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[i,0])},pt=E.prototype;pt.startNode=function(){return new kt(this,this.start,this.startLoc)},pt.startNodeAt=function(t,e){return new kt(this,t,e)};function he(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}pt.finishNode=function(t,e){return he.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},pt.finishNodeAt=function(t,e,i,s){return he.call(this,t,e,i,s)},pt.copyNode=function(t){var e=new kt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var le="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ce=le+" Extended_Pictographic",pe=ce,fe=pe+" EBase EComp EMod EPres ExtPict",ui=fe,hi={9:le,10:ce,11:pe,12:fe,13:ui},de="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",me="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",xe=me+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ge=xe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ve=ge+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",li=ve+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ci={9:me,10:xe,11:ge,12:ve,13:li},be={};function pi(t){var e=be[t]={binary:K(hi[t]+" "+de),nonBinary:{General_Category:K(de),Script:K(ci[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Dt=0,ye=[9,10,11,12,13];Dt<ye.length;Dt+=1){var fi=ye[Dt];pi(fi)}var p=E.prototype,H=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=be[e.options.ecmaVersion>=13?13:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};H.prototype.reset=function(e,i,s){var a=s.indexOf("u")!==-1;this.start=e|0,this.source=i+"",this.flags=s,this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchN=a&&this.parser.options.ecmaVersion>=9},H.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},H.prototype.at=function(e,i){i===void 0&&(i=!1);var s=this.source,a=s.length;if(e>=a)return-1;var n=s.charCodeAt(e);if(!(i||this.switchU)||n<=55295||n>=57344||e+1>=a)return n;var o=s.charCodeAt(e+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n},H.prototype.nextIndex=function(e,i){i===void 0&&(i=!1);var s=this.source,a=s.length;if(e>=a)return a;var n=s.charCodeAt(e),o;return!(i||this.switchU)||n<=55295||n>=57344||e+1>=a||(o=s.charCodeAt(e+1))<56320||o>57343?e+1:e+2},H.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},H.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},H.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},H.prototype.eat=function(e,i){return i===void 0&&(i=!1),this.current(i)===e?(this.advance(i),!0):!1};function St(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}p.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=0;s<i.length;s++){var a=i.charAt(s);e.indexOf(a)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},p.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},p.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames.indexOf(s)===-1&&t.raise("Invalid named capture referenced")}},p.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},p.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},p.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1},p.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},p.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1},p.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},p.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,a=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(a=t.lastIntValue),t.eat(125)))return a!==-1&&a<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},p.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},p.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},p.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},p.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},p.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},p.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},p.regexp_eatSyntaxCharacter=function(t){var e=t.current();return we(e)?(t.lastIntValue=e,t.advance(),!0):!1};function we(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}p.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!we(i);)t.advance();return t.pos!==e},p.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1},p.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){t.groupNames.indexOf(t.lastStringValue)!==-1&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}},p.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},p.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=St(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=St(t.lastIntValue);return!0}return!1},p.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),di(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)};function di(t){return j(t,!0)||t===36||t===95}p.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),mi(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)};function mi(t){return Z(t,!0)||t===36||t===95||t===8204||t===8205}p.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},p.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},p.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},p.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},p.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},p.regexp_eatZero=function(t){return t.current()===48&&!Ct(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1},p.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1},p.regexp_eatControlLetter=function(t){var e=t.current();return ke(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function ke(t){return t>=65&&t<=90||t>=97&&t<=122}p.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(s&&a>=55296&&a<=56319){var n=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(a-55296)*1024+(o-56320)+65536,!0}t.pos=n,t.lastIntValue=a}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&xi(t.lastIntValue))return!0;s&&t.raise("Invalid unicode escape"),t.pos=i}return!1};function xi(t){return t>=0&&t<=1114111}p.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1},p.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1},p.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(gi(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(e===80||e===112)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1};function gi(t){return t===100||t===68||t===115||t===83||t===119||t===87}p.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var a=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,a),!0}return!1},p.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){ot(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},p.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")},p.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Se(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""};function Se(t){return ke(t)||t===95}p.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";vi(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""};function vi(t){return Se(t)||Ct(t)}p.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},p.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},p.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(e===-1||i===-1)&&t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}},p.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||Ee(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return s!==93?(t.lastIntValue=s,t.advance(),!0):!1},p.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},p.regexp_eatClassControlLetter=function(t){var e=t.current();return Ct(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1},p.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},p.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Ct(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e};function Ct(t){return t>=48&&t<=57}p.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Ce(i=t.current());)t.lastIntValue=16*t.lastIntValue+_e(i),t.advance();return t.pos!==e};function Ce(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function _e(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}p.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+i*8+t.lastIntValue:t.lastIntValue=e*8+i}else t.lastIntValue=e;return!0}return!1},p.regexp_eatOctalDigit=function(t){var e=t.current();return Ee(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function Ee(t){return t>=48&&t<=55}p.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var a=t.current();if(!Ce(a))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+_e(a),t.advance()}return!0};var Ut=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new gt(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},x=E.prototype;x.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ut(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},x.getToken=function(){return this.next(),new Ut(this)},typeof Symbol!="undefined"&&(x[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===r.eof,value:e}}}}),x.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(r.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())},x.readToken=function(t){return j(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},x.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},x.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,a=e;(s=Kt(this.input,a,this.pos))>-1;)++this.curLine,a=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},x.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!J(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},x.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(t>8&&t<14||t>=5760&&$t.test(String.fromCharCode(t)))++this.pos;else break t}}},x.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},x.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},x.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},x.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=t===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,s=r.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},x.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(t===124?r.logicalOR:r.logicalAND,2)}return e===61?this.finishOp(r.assign,2):this.finishOp(t===124?r.bitwiseOR:r.bitwiseAND,1)},x.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},x.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):e===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},x.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(i=2),this.finishOp(r.relational,i))},x.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(t===61?r.eq:r.prefix,1)},x.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(e===63){if(t>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},x.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),j(e,!0)||e===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+_t(e)+"'")},x.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+_t(t)+"'")},x.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},x.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(R.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(s==="[")e=!0;else if(s==="]"&&e)e=!1;else if(s==="/"&&!e)break;t=s==="\\"}++this.pos}var a=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new H(this));u.reset(i,a,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var h=null;try{h=new RegExp(a,o)}catch{}return this.finishToken(r.regexp,{pattern:a,flags:o,value:h})},x.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&e===void 0,a=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,h=0,c=e==null?1/0:e;h<c;++h,++this.pos){var f=this.input.charCodeAt(this.pos),_=void 0;if(s&&f===95){a&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=f;continue}if(f>=97?_=f-97+10:f>=65?_=f-65+10:f>=48&&f<=57?_=f-48:_=1/0,_>=t)break;u=f,o=o*t+_}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||e!=null&&this.pos-n!==e?null:o};function bi(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Ie(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}x.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Ie(this.input.slice(e,this.pos)),++this.pos):j(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},x.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&s===110){var a=Ie(this.input.slice(e,this.pos));return++this.pos,j(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,a)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),j(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=bi(this.input.slice(e,this.pos),i);return this.finishToken(r.num,n)},x.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else e=this.readHexChar(4);return e};function _t(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}x.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;s===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(J(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(r.string,e)};var Ae={};x.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===Ae)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},x.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ae;this.raise(t,e)},x.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(r.template,t));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(J(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
5
|
-
`;break;default:t+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},x.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(r.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},x.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
6
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return _t(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;return this.invalidStringToken(i,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(s,8);return a>255&&(s=s.slice(0,-1),a=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),(s!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(a)}return J(e)?"":String.fromCharCode(e)}},x.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i},x.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=this.fullCharCodeAtPos();if(Z(a,s))this.pos+=a<=65535?1:2;else if(a===92){this.containsEsc=!0,t+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?j:Z)(o,s)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=_t(o),i=this.pos}else break;e=!1}return t+this.input.slice(i,this.pos)},x.readWord=function(){var t=this.readWord1(),e=r.name;return this.keywords.test(t)&&(e=Nt[t]),this.finishToken(e,t)};var yi="8.7.0";E.acorn={Parser:E,version:yi,defaultOptions:Tt,Position:ut,SourceLocation:gt,getLineInfo:Zt,Node:kt,TokenType:v,tokTypes:r,keywordTypes:Nt,TokContext:M,tokContexts:k,isIdentifierChar:Z,isIdentifierStart:j,Token:Ut,isNewLine:J,lineBreak:R,lineBreakG:Ye,nonASCIIwhitespace:$t};function wi(t,e){return E.parse(t,e)}const ki=["*","**","+","-","/","%"],Si=["!=","!==","<","<=","==","===",">",">="],Ci=["&","<<",">>",">>>","^","|"],_i=[...ki,...Si,...Ci,"instanceof","in"],Ei=["&&","??","||"],Ii=["%=","&=","*=","**=","+=","-=","/="],Ai=["&&=","||="],Pi=["<<=",">>=",">>>=","^=","|="],Ni=[...Ii,...Ai,...Pi,"="],Ti=[..._i,...Ei,...Ni],Vi=["!","u+","u-","delete","typeof","void","~"],Pe=["++","--"],Li=[...Vi,...Pe],ft=[...Ti,...Li],Et={"==":"equal","===":"strictEqual","!=":"notEqual","!==":"notEqual","<":"lessThan",">":"greaterThan","<=":"lessThanEq",">=":"greaterThanEq","+":"add","-":"sub","*":"mul","/":"div","%":"mod","**":"pow","|":"or","&":"and","^":"xor",">>":"shr",">>>":"shr","<<":"shl","&&":"land","||":"or"};class ${constructor(e){this.constant=!1,this.macro=!1,this.scope=e}eval(e){throw new Error(`${this} cannot eval.`)}call(e,i){throw new Error(`${this} cannot call.`)}get(e,i){throw new Error(`${this} cannot get.`)}toString(){return"void"}}for(const t of ft)$.prototype[t]=function(){throw console.log(this),new Error(`${this} cannot '${t}' operation.`)};class y{constructor(...e){this._hidden=!1,this.args=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}resolve(e){}toString(){return this.args.filter(e=>e).join(" ")}}class Y extends y{constructor(e,i,s,a){super("op",e,i,s,a)}}class qt extends y{constructor(e,i){super("set",e,i)}}class Ri extends y{constructor(){super("end")}}class q extends y{get hidden(){return!0}set hidden(e){}constructor(...e){super();this.bonds=e}resolve(e){for(const i of this.bonds)i.data=e}bind(e){this.bonds.push(e)}bindBreak(e){return e.break=this,this}bindContinue(e){return e.continue=this,this}}var O=(t=>(t.Equal="equal",t.NotEqual="notEqual",t.LessThan="lessThan",t.LessThanEq="lessThanEq",t.GreaterThan="greaterThan",t.GreaterThanEq="greaterThanEq",t.StrictEqual="strictEqual",t.Always="always",t))(O||{});class D extends y{constructor(e,i,s,a){super("jump",e,i,s,a)}}class Ne extends y{constructor(e){super("set","@counter",e)}}class Bi extends y{toString(){return this.args.join("")}}class Oi extends D{constructor(e){super(e,O.Always)}}class Fi extends D{constructor(e){super(e,O.Always)}}class Mi extends D{constructor(e){super(e,O.Always)}}class z extends ${"u-"(e){const[i,s]=this.eval(e),a=new b(e);return[a,[...s,new Y("sub",a,new l(e,0),i)]]}}const Te={"==":"equal","===":"strictEqual","!=":"notEqual","!==":"notEqual","<":"lessThan",">":"greaterThan","<=":"lessThanEq",">=":"greaterThanEq","+":"add","-":"sub","*":"mul","/":"div","%":"mod","**":"pow","|":"or","&":"and","^":"xor",">>":"shr",">>>":"shr","<<":"shl","&&":"land","||":"or"};for(const t in Te){const e=Te[t];z.prototype[t]=function(i,s){const[a,n]=this.eval(i),[o,u]=s.eval(i),h=new b(i);return[h,[...n,...u,new Y(e,h,a,o)]]}}const Ve={"!":"not","~":"flip"};for(const t in Ve){const e=Ve[t];z.prototype[t]=function(i){const[s,a]=this.eval(i),n=new b(i);return[n,[...a,new Y(e,n,s)]]}}const Le={"+=":"+","-=":"-","*=":"*","/=":"/","%=":"%","**=":"**","|=":"|","&=":"&","^=":"^",">>=":">>",">>>=":">>>","<<=":"<<","&&=":"&&","||=":"||"};for(const t in Le)z.prototype[t]=function(e,i){const[s,a]=this[Le[t]](e,i),[n,o]=this["="](e,s);return[n,[...a,...o]]};for(const t of Pe)z.prototype[t]=function(e,i){let[s,a]=this.eval(e);if(!i){const o=new b(e),[u,h]=o["="](e,s);s=u,a.push(...h)}const n=t==="++"?"+=":"-=";return[s,[...a,...this[n](e,new l(e,1))[1]]]};const Di={length:function(t){if(typeof this.data!="string")throw new Error("Length method only works on string literal values.");return new l(t,this.data.length)}};class l extends z{constructor(e,i){super(e);this.constant=!0,this.data=i}eval(e){return[this,[]]}toString(){return JSON.stringify(this.data)}get(e,i){if(!(i instanceof l&&typeof i.data=="string"))return super.get(e,i);const s=Di[i.data];if(!s)throw new Error(`Method ${i.data} does not exist on literal values.`);return[s.apply(this,[e]),[]]}get num(){return this.data===null?0:typeof this.data=="string"?1:this.data}typeof(e){return[new l(e,"literal"),[]]}}const Re={"==":(t,e)=>+(t==e),"===":(t,e)=>+(t===e),"!=":(t,e)=>+(t!=e),"!==":(t,e)=>+(t!==e),"<":(t,e)=>+(t<e),">":(t,e)=>+(t>e),"<=":(t,e)=>+(t<=e),">=":(t,e)=>+(t>=e),"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>t**e,"|":(t,e)=>t|e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>e,"<<":(t,e)=>t<<e,"&&":(t,e)=>+(t&&e),"||":(t,e)=>+(t||e)};for(const t in Re){const e=Re[t];l.prototype[t]=function(i,s){return s instanceof l?[new l(i,e(this.num,s.num)),[]]:z.prototype[t].apply(this,[i,s])}}const Be={"!":t=>+!t,"~":t=>~t,"u-":t=>-t};for(const t in Be)l.prototype[t]=function(e){const i=Be[t];return[new l(e,i(this.num)),[]]};class S extends z{constructor(e,i){super(e);this.constant=!1,this.name=i}typeof(e){return[new l(e,"store"),[]]}"="(e,i){if(this.constant)throw new Error(`Cannot assign to unmutable store '${this.name}'.`);if(i instanceof b&&i.canProxy)return i.proxy(this);const[s,a]=i.eval(e);return[this,[...a,new qt(this,s)]]}eval(e){return[this,[]]}toString(){return this.name}}class b extends S{constructor(e,i){super(e,i!=null?i:"t"+e.ntemp+(e.name?":"+e.name:""));this.canProxy=!0,i||e.ntemp++}eval(e){return super.eval(e)}"="(e,i){return this.proxied?(this.noProxy(),[this,[new qt(this,i)]]):i instanceof l&&this.canProxy?this.proxy(i):super["="](e,i)}proxy(e){if(!this.canProxy)throw console.log(this.proxied),new Error("Cannot proxy (canProxy = false).");if(this.proxied)throw new Error("Cannot proxy multiple times.");this.proxied=e,this.canProxy=!1;for(const i of[...ft,"eval","get","call","toString","proxy"])i!=="="&&i in e&&(this[i]=(...s)=>e[i].apply(e,s));return this.setInst=new qt(this,e),this.setInst.hidden=!0,[this,[this.setInst]]}noProxy(){this.setInst.hidden=!1;for(const e of[...ft,"eval","get","call","toString","proxy"])this[e]=b.prototype[e]}}class C extends ${constructor(e,i={}){super(e);this.constant=!0,this.macro=!0,this.data=i}typeof(e){return[new l(e,"object"),[]]}get(e,i){const s=this.data[i.data];if(s)return[s,[]];const{$get:a}=this.data;if(!a)throw new Error("Cannot get undefined member.");return a.call(e,[i])}eval(e){const{$eval:i}=this.data;return i?i.call(e,[]):[this,[]]}call(e,i){const{$call:s}=this.data;return s?s.call(e,i):super.call(e,i)}}for(const t of ft)C.prototype[t]=function(...e){const i=this.data["$"+t];if(!i)return $.prototype[t].apply(this,e);let[s,...a]=e;return i.call(s,a)};class dt{constructor(e,i=null,s=!1,a=0,n="",o=[]){this.stacked=!1,this.ntemp=0,this.data=e,this.parent=i,this.stacked=s,this.ntemp=a,this.name=n,this.inst=o}copy(){const e=new dt(He({},this.data),this.parent,this.stacked,this.ntemp,this.name,this.inst);return e.break=this.break,e.continue=this.continue,e.function=this.function,e}createScope(){const e=this.copy();return e.data={},e.parent=this,e}createFunction(e,i){return new dt({},this,i!=null?i:this.stacked,0,e,this.inst)}has(e){return e in this.data?!0:this.parent?this.parent.has(e):!1}get(e){const i=this.data[e];if(i)return i;if(this.parent)return this.parent.get(e);throw Error(`${e} is not declared.`)}set(e,i){if(e in this.data)throw Error(`${e} is already declared.`);return this.hardSet(e,i)}hardSet(e,i){return this.data[e]=i,i}make(e,i){return this.set(e,this.stacked?null:new S(this,i))}}const Ui=(t,e,i)=>t.handleMany(e!=null?e:new dt({}),i.body);function jt(t){const{line:e,column:i}=t.loc.start;return e+":"+i}function Gt(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const qi=(t,e,i)=>t.handleMany(e,i.declarations,(s,a)=>Oe(t,s,a,i.kind)),Oe=(t,e,i,s="let")=>{let a=i.init?t.handleEval(e,i.init):[null,[]];switch(i.id.type){case"Identifier":{const{name:n}=i.id,[o]=a;if(s==="const"&&!o)throw Error("Cannot create constant with void value.");if(s==="const"&&o.constant)return e.set(n,o),a;{const u=e.make(n,jt(i));if(o){if(o.macro)throw new Error("Macro value must be constant.");a[1].push(...u["="](e,a[0])[1])}return s==="const"&&(u.constant=!0),a}}case"ArrayPattern":{const{elements:n}=i.id,[o]=a;if(!o)throw new Error("Cannot use array destructuring with constant with void value.");if(!o.macro)throw new Error("Cannot use array destructuring on non macro values");for(let u=0;u<n.length;u++){const h=n[u];if(!h)continue;const c=o.data[u];e.set(h.name,c)}return a}default:throw new Error("")}},ji=(t,e,i)=>{const{value:s}=i;if(s===null||typeof s=="string"||typeof s=="number")return[new l(e,s),[]];if(typeof s=="boolean")return[new l(e,+s),[]];throw Error("Cannot create literal "+typeof s)},Ht=(t,e,i)=>{const[s,a]=t.handleEval(e,i.left),[n,o]=t.handleEval(e,i.right),[u,h]=s[i.operator](e,n);return[u,[...a,...o,...h]]},Gi=Ht,Hi=Ht,Wi=(t,e,i)=>{const[s,a]=t.handle(e,i.left),[n,o]=t.handleEval(e,i.right),[u,h]=s[i.operator](e,n);return[u,[...a,...o,...h]]},zi=(t,e,{argument:i,operator:s})=>{const[a,n]=t.handleEval(e,i),o=s=="+"||s=="-"?"u"+s:s,[u,h]=a[o](e);return[u,[...n,...h]]},Qi=(t,e,{argument:i,operator:s,prefix:a})=>{const[n,o]=t.handle(e,i),[u,h]=n[s](e,a);return[u,[...o,...h]]},Ki=(t,e,i)=>[e.get(i.name),[]],$i=(t,e,i)=>t.handle(e,i.expression),Yi=(t,e)=>{const i=new l(e,null);return e.break.bind(i),[null,[new Oi(i)]]},Xi=(t,e)=>{const i=new l(e,null);return e.continue.bind(i),[null,[new Fi(i)]]},Zi=(t,e,i)=>{const[s,a]=i.argument?t.handle(e,i.argument):[null,[]],[n,o]=e.function.return(e,s);return[n,[...a,...o]]},Ji=(t,e,i)=>{const s=[],[a,n]=t.handleEval(e,i.test);if(a instanceof l)return a.data?s.push(...t.handle(e,i.consequent)[1]):i.alternate&&s.push(...t.handle(e,i.alternate)[1]),[null,s];const o=new l(e,null);s.push(...n,new D(o,O.Equal,a,new l(e,0)),...t.handle(e,i.consequent)[1],new q(o));const u=new l(e,null);return i.alternate&&s.push(new D(u,O.Always),new q(o),...t.handle(e,i.alternate)[1],new q(u)),[null,s]},ts=(t,e,i)=>{const s=[],[a,n]=t.handleEval(e,i.test),o=new l(e,null),u=new l(e,null),h=new q(o).bindContinue(e),c=new q(u).bindBreak(e);return a instanceof l?(a.data&&s.push(h,...t.handle(e,i.body)[1],new D(o,O.Always),c),[null,s]):(s.push(h,...n,new D(u,O.Equal,a,new l(e,0)),...t.handle(e,i.body)[1],new D(o,O.Always),c),[null,s])},es=(t,e,i)=>{e=e.createScope();const s=i.init?t.handle(e,i.init)[1]:[],[a,n]=i.test?t.handleEval(e,i.test):[new l(e,1),[]],o=i.update?t.handle(e,i.update)[1]:[],u=new l(e,null),h=new l(e,null),c=new q(u).bindContinue(e),f=new q(h).bindBreak(e);return[null,[...s,c,...n,new D(h,O.Equal,a,new l(e,0)),...t.handle(e,i.body)[1],...o,new D(u,O.Always),f]]};class is extends ${constructor(e,i,s,a,n,o){super(e);this.constant=!0,this.macro=!0,this.bundled=!1,this.name=i,this.paramNames=s,this.paramStores=a,this.body=n,this.c=o,this.callSize=a.length+2,e.function=this,this.createValues(),this.createInst()}createValues(){this.addr=new l(this.scope,null),this.temp=new S(this.scope,"f"+this.name),this.ret=new S(this.scope,"r"+this.name)}typeof(e){return[new l(e,"function"),[]]}createInst(){this.inst=[new q(this.addr),...this.c.handle(this.scope,this.body)[1]],this.inst.push(new Ne(this.ret))}normalReturn(e,i){const s=i?this.temp["="](e,i)[1]:[];return[null,[...s,new Ne(this.ret)]]}normalCall(e,i){this.bundled||this.scope.inst.push(...this.inst),this.bundled=!0;const s=new l(e,null),a=this.paramStores.map((n,o)=>n["="](e,i[o])[1]).reduce((n,o)=>n.concat(o),[]).concat(...this.ret["="](e,s)[1],new D(this.addr,O.Always),new q(s));return[this.temp,a]}inlineReturn(e,i){const s=i?this.inlineTemp["="](e,i)[1]:[];return[null,[...s,new Mi(this.inlineEnd)]]}inlineCall(e,i){this.inlineTemp=new b(e),this.inlineEnd=new l(e,null);const s=this.scope.copy();this.paramNames.forEach((n,o)=>s.hardSet(n,i[o])),this.tryingInline=!0;let a=this.c.handle(s,this.body)[1];return this.tryingInline=!1,a.push(new q(this.inlineEnd)),[this.inlineTemp,a]}call(e,i){if(i.length!==this.paramStores.length)throw new Error("Cannot call: argument count not matching.");const s=this.inlineCall(e,i),a=s[1].filter(n=>!n.hidden).length;return this.inline||a<=this.callSize?s:this.normalCall(e,i)}return(e,i){return i&&i.macro?(this.inline=!0,[null,[]]):this.inline||this.tryingInline?this.inlineReturn(e,i):this.normalReturn(e,i)}eval(e){return[this,[]]}}const Wt=(t,e,i)=>{const s=jt(i);e=e.createFunction(s);let{params:a,body:n}=i;i.expression&&(n={type:"BlockStatement",body:[{type:"ReturnStatement",argument:n}]});const o=[],u=[];for(const h of a)o.push(h.name),u.push(e.make(h.name,jt(h)));return[new is(e,s,o,u,n,t),[]]},ss=(t,e,i)=>[e.set(i.id.name,Wt(t,e,i)[0]),[]],as=Wt,Fe=(t,e,i)=>{const s=[],a=i.arguments.map(c=>{const[f,_]=t.handleEval(e,c);return s.push(..._),f}),[n,o]=t.handleEval(e,i.callee);s.push(...o);const[u,h]=n.call(e,a);return s.push(...h),[u,s]};var rs=Object.freeze(Object.defineProperty({__proto__:null,Program:Ui,VariableDeclaration:qi,VariableDeclarator:Oe,Literal:ji,LRExpression:Ht,BinaryExpression:Gi,LogicalExpression:Hi,AssignmentExpression:Wi,UnaryExpression:zi,UpdateExpression:Qi,Identifier:Ki,ExpressionStatement:$i,BreakStatement:Yi,ContinueStatement:Xi,ReturnStatement:Zi,IfStatement:Ji,WhileStatement:ts,ForStatement:es,ArrowFunctionExpression:Wt,FunctionDeclaration:ss,FunctionExpression:as,CallExpression:Fe,NewExpression:Fe,ObjectExpression:(t,e,i)=>{const s={},a=[];for(const n of i.properties){if(n.computed)throw new Error("Cannot handle computed property.");const{key:o,value:u}=n;let h;o.type==="Identifier"?h=o.name:o.type==="Literal"&&(h=""+o.value);const[c,f]=t.handleEval(e,u);s[h]=c,a.push(...f)}return[new C(e,s),a]},ArrayExpression:(t,e,i)=>{const s={},a=[];return i.elements.forEach((n,o)=>{const[u,h]=t.handleEval(e,n);s[o]=u,a.push(...h)}),[new C(e,s),a]},MemberExpression:(t,e,i)=>{const[s,a]=t.handleEval(e,i.object),[n,o]=i.computed?t.handleEval(e,i.property):[new l(e,i.property.name),[]],[u,h]=s.get(e,n);return[u,[...a,...o,...h]]},TemplateLiteral:(t,e,i)=>{const s=[],a=[];return i.expressions.forEach((n,o)=>{const[u,h]=t.handleEval(e,n);a.push(...h),s.push(i.quasis[o].value.raw,u)}),s.push(i.quasis.slice(-1)[0].value.raw),a.push(new Bi(...s)),[null,a]},BlockStatement:(t,e,i)=>{const[s,a]=t.handleMany(e.createScope(),i.body);return[s,a]}},Symbol.toStringTag,{value:"Module"}));class w extends ${constructor(e,i){super(e);this.macro=!0,this.constant=!0,this.fn=i}call(e,i){return this.fn.apply(this,i)}eval(e){return[this,[]]}}const Me={max:(t,e)=>Math.max(t,e),min:(t,e)=>Math.min(t,e),angle:(t,e)=>Math.atan2(t,e),len:(t,e)=>Math.sqrt(t**2+e**2),noise:null,abs:t=>Math.abs(t),log:t=>Math.log(t),log10:t=>Math.log(t)/Math.log(10),sin:t=>Math.sin(t),cos:t=>Math.cos(t),tan:t=>Math.tan(t),floor:t=>Math.floor(t),ceil:t=>Math.ceil(t),sqrt:t=>Math.ceil(t),rand:null};function ns(t){const e={};for(const i in Me){const s=Me[i];e[i]=new w(t,(a,n)=>{if(n){if(s&&a instanceof l&&n instanceof l){if(typeof a.data!="number"||typeof n.data!="number")throw new Error("Cannot do math operation with non-numerical literals.");return[new l(t,s(a.num,n.num)),[]]}const u=new b(t);return[u,[new Y(i,u,a,n)]]}if(s&&a instanceof l){if(typeof a.data!="number")throw new Error("Cannot do math operation with non-numerical literal.");return[new l(t,s(a.num)),[]]}const o=new b(t);return[o,[new Y(i,o,a,n)]]})}return e}class os extends C{constructor(e){super(e,ns(e))}}class us extends w{constructor(e){super(e,(...i)=>{for(const s of i)if(!(s instanceof l))throw new Error("Concat arguments must all be literal values.");return[new l(e,i.map(s=>s.data).join("")),[]]})}}class hs extends w{constructor(e){super(e,(i,...s)=>{if(!(i instanceof l))throw new Error("Draw kind must be literal.");if(["clear","color","stroke","line","rect","lineRect","poly","linePoly","triangle","image"].indexOf(i.data)===-1)throw new Error("Draw kind must be valid");return[null,[new y("draw",i.data,...s.map(a=>a instanceof l&&typeof a.data=="string"?a.data:a))]]})}}class ls extends w{constructor(e){super(e,(...i)=>[null,[new y("print",...i)]])}}class cs extends w{constructor(e){super(e,i=>{if(!(i instanceof C))throw new Error("The printflush target must be a building");return[null,[new y("printflush",i)]]})}}class ps extends w{constructor(e){super(e,i=>{if(!(i instanceof C))throw new Error("The drawflush target must be a building");return[null,[new y("drawflush",i)]]})}}const De=["copper","lead","metaglass","graphite","sand","coal","titanium","thorium","scrap","silicon","plastanium","phaseFabric","surgeAlloy","sporePod","blastCompound","pyratite"];class it extends C{toString(){return this.name}constructor(e,i){super(e,{$get:new w(e,s=>{if(s instanceof l&&typeof s.data=="string"){const a=De.includes(s.data)?Gt(s.data):s.data,n=new b(e);return[n,[new y("sensor",n,this,`@${a}`)]]}if(s instanceof S){const a=new b(e);return[a,[new y("sensor",a,this,s)]]}throw new Error("Building property acessors must be string literals or stores")})});this.name=i}}class fs extends C{constructor(e){super(e,{$call:new w(e,i=>{if(!(i instanceof l))throw new Error("Block name must be a literal.");if(typeof i.data!="string")throw new Error("Block name must be a string.");return[new it(e,i.data),[]]})})}}for(const t in Et){const e=Et[t];it.prototype[t]=function(i,s){const a=new S(i,this.name),[n,o]=s.eval(i),u=new b(i);return[u,[...o,new Y(e,u,a,n)]]}}class ds extends w{constructor(e){super(e,i=>{if(!(i instanceof S)&&(!(i instanceof l)||typeof i.data!="number"))throw new Error("The getlink index must be a number literal or a store");const s=new b(e);return[new it(e,s.name),[new y("getlink",s,i)]]})}}const ms=["enabled","shoot","shootp","config","color"];class xs extends w{constructor(e){super(e,(i,s,...a)=>{if(!(i instanceof l)||typeof i.data!="string")throw new Error("The control kind must be a string literal");if(!ms.includes(i.data))throw new Error("Invalid control kind");if(!(s instanceof C))throw new Error("The building must be an object value");return[null,[new y("control",i.data,s,...a)]]})}}class Q extends C{constructor(e,{changeCasing:i=!1}={}){super(e,{$get:new w(e,s=>{if(!(s instanceof l)||typeof s.data!="string")throw new Error("Cannot use dynamic properties on object macros");const a=this.changeCasing?Gt(s.data):s.data;return[new S(e,`@${a}`),[]]})});this.changeCasing=i}}class gs extends Q{constructor(e){super(e);const i=this.data.$get;this.data.$get=new w(e,s=>{if(s instanceof l){if(s.data==="unit")return[new mt(e,"@unit"),[]];if(s.data==="this")return[new it(e,"@this"),[]]}return i.call(e,[s])})}}class vs extends Q{constructor(e){super(e);this.data.$get,this.data.$get=new w(e,i=>{if(!(i instanceof l)||typeof i.data!="string")throw new Error("Cannot use dynamic properties on object macros");const s=i.data[0].toUpperCase()+i.data.slice(1);return[new S(e,`@command${s}`),[]]})}}class mt extends C{constructor(e,i){super(e,{$get:new w(e,s=>{if(s instanceof l&&typeof s.data=="string"){const a=De.includes(s.data)?Gt(s.data):s.data,n=new b(e),o=s.data==="controller"?new mt(e,n.name):n;return[o,[new y("sensor",o,this,`@${a}`)]]}if(s instanceof S){const a=new b(e);return[a,[new y("sensor",a,this,s)]]}throw new Error("Building property acessors must be string literals or stores")})});this.name=i}toString(){return this.name}}for(const t in Et){const e=Et[t];mt.prototype[t]=function(i,s){const a=new S(i,this.name),[n,o]=s.eval(i),u=new b(i);return[u,[...o,new Y(e,u,a,n)]]}}const st=["any","enemy","ally","player","attacker","flying","boss","ground"],Ue=["distance","health","shield","armor","maxHealth"];class bs extends w{constructor(e){super(e,(i,s,a,n,o,u)=>{if(!(i instanceof C))throw new Error("The building must a store");if(!(s instanceof l)||typeof s.data!="string"||!(a instanceof l)||typeof a.data!="string"||!(n instanceof l)||typeof n.data!="string")throw new Error("The filters must be string literals");if(!st.includes(s.data))throw new Error("Invalid value for filter1");if(!st.includes(a.data))throw new Error("Invalid value for filter2");if(!st.includes(n.data))throw new Error("Invalid value for filter3");if(!(o instanceof l||o instanceof S))throw new Error("The radar order must be a literal or a store");if(!(u instanceof l)||typeof u.data!="string")throw new Error("The radar sort must be a string literal");if(!Ue.includes(u.data))throw new Error("Invalid sort value");const h=new b(e);return[new mt(e,h.name),[new y("radar",s.data,a.data,n.data,u.data,i,o,h)]]})}}class ys extends w{constructor(e){super(e,(i,s)=>{if(!(i instanceof S))throw new Error("The sensor property must be a store");if(!(s instanceof C))throw new Error("The sensor target must be a store");const a=new b(e);return[a,[new y("sensor",a,i,s)]]})}}class ws extends w{constructor(e){super(e,i=>{if(!(i instanceof S)&&!(i instanceof l&&typeof i.data=="number"))throw new Error("The wait seconds must be either a number literal or a store");return[null,[new y("wait",i)]]})}}const ks=["block","unit","item","liquid"];class Ss extends w{constructor(e){super(e,(i,s)=>{if(!(i instanceof l&&typeof i.data=="string"))throw new Error("The lookup kind must be a string literal");if(!ks.includes(i.data))throw new Error("Invalid lookup kind");if(!(s instanceof l&&typeof s.data=="number")&&!(s instanceof S))throw new Error("The lookup index must be a number literal or a store");const a=new b(e);return[a,[new y("lookup",i.data,a,s)]]})}}class Cs extends w{constructor(e){super(e,i=>{if(!(i instanceof S))throw new Error("The unitBind type must be a store");return[null,[new y("ubind",i)]]})}}const _s=["idle","stop","move","approach","boost","pathfind","target","targetp","itemDrop","itemTake","payDrop","payTake","payEnter","mine","flag","build","getBlock","within"];class Es extends w{constructor(e){super(e,(i,...s)=>{if(!(i instanceof l)||typeof i.data!="string")throw new Error("The unitControl mode must be a string literal");if(!_s.includes(i.data))throw new Error("Invalid unitControl mode");if(s.some(o=>!(o instanceof S||o instanceof l||o instanceof C)))throw new Error("The others arguments of unitControl must be literals or stores");let a=null,n=[];switch(i.data){case"getBlock":{const o=new b(e),u=new b(e);a=new C(e,{0:o,1:new it(e,u.name),length:new l(e,2)}),n=[o,u,new l(e,0)];break}case"within":{const o=new b(e);a=o,n=[o,0];break}}return[a,[new y("ucontrol",i.data,...s,...n)]]})}}class Is extends w{constructor(e){super(e,(i,s,a,n,o)=>{if(!(i instanceof l)||typeof i.data!="string"||!(s instanceof l)||typeof s.data!="string"||!(a instanceof l)||typeof a.data!="string")throw new Error("The filters must be string literals");if(!st.includes(i.data))throw new Error("Invalid value for filter1");if(!st.includes(s.data))throw new Error("Invalid value for filter2");if(!st.includes(a.data))throw new Error("Invalid value for filter3");if(!(n instanceof l||n instanceof S))throw new Error("The radar order must be a literal or a store");if(!(o instanceof l)||typeof o.data!="string")throw new Error("The radar sort must be a string literal");if(!Ue.includes(o.data))throw new Error("Invalid sort value");const u=new b(e);return[u,[new y("uradar",i.data,s.data,a.data,n,o.data,u)]]})}}const As=["ore","building","spawn","damaged"];class Ps extends w{constructor(e){super(e,(i,...s)=>{if(!(i instanceof l&&typeof i.data=="string"))throw new Error("The unitLocate find must be a string literal");if(!As.includes(i.data))throw new Error("Invalid find value");if(s.some(f=>!(f instanceof S||f instanceof l)))throw new Error("The others arguments of unitLocate must be literals or stores");const a=new b(e),n=new b(e),o=new b(e),u=new b(e),h=[n,o,a,u];let c=[];switch(i.data){case"ore":{const[f]=s;c=[i.data,"core","true",f];break}case"building":{const[f,_]=s;c=[i.data,f.data,_,"@copper"];break}case"spawn":case"damaged":{c=[i.data,"core","true","@copper"];break}}return[new C(e,{0:a,1:n,2:o,3:new it(e,u.name),length:new l(e,i.data==="ore"?3:4)}),[new y("ulocate",...c,...h)]]})}}class qe extends C{constructor(e,i,s){super(e,{$eval:new w(e,()=>{const a=new b(e);return[a,[new y("read",a,i.cell,s)]]}),"$=":new w(e,a=>[null,[new y("write",s,i.cell,a)]])})}}for(const t of ft)t!=="="&&(qe.prototype[t]=function(...e){return z.prototype[t].apply(this,e)});class Ns extends C{constructor(e,i,s){super(e,{$get:new w(e,a=>a instanceof l&&typeof a.data!="number"?[new $(e),[]]:[new qe(e,this,a),[]]),length:s,size:s});this.cell=i,this.name=i.toString()}toString(){return this.name}}class Ts extends C{constructor(e){super(e,{$call:new w(e,(i,s=new l(e,64))=>{if(!(i instanceof C))throw new Error("Memory cell must be a building object.");if(!(s instanceof l&&typeof s.data=="number"))throw new Error("The memory size must be a number literal.");return[new Ns(e,i,s),[]]})})}}class Vs extends w{constructor(e){super(e,i=>{if(!(i instanceof l)||typeof i.data!="string")throw new Error("The name of the building must be a string literal.");return[new S(e,i.data),[]]})}}function Ls(t){t.hardSet("ControlKind",new Q(t)),t.hardSet("Vars",new gs(t)),t.hardSet("Items",new Q(t,{changeCasing:!0})),t.hardSet("Liquids",new Q(t)),t.hardSet("Units",new Q(t)),t.hardSet("LAccess",new Q(t)),t.hardSet("UnitCommands",new vs(t)),t.hardSet("Blocks",new Q(t,{changeCasing:!0})),t.hardSet("getBuilding",new fs(t)),t.hardSet("getVar",new Vs(t)),t.hardSet("concat",new us(t)),t.hardSet("Math",new os(t)),t.hardSet("Memory",new Ts(t)),t.hardSet("draw",new hs(t)),t.hardSet("print",new ls(t)),t.hardSet("printFlush",new cs(t)),t.hardSet("drawFlush",new ps(t)),t.hardSet("getLink",new ds(t)),t.hardSet("control",new xs(t)),t.hardSet("radar",new bs(t)),t.hardSet("sensor",new ys(t)),t.hardSet("wait",new ws(t)),t.hardSet("lookup",new Ss(t)),t.hardSet("unitBind",new Cs(t)),t.hardSet("unitControl",new Es(t)),t.hardSet("unitRadar",new Is(t)),t.hardSet("unitLocate",new Ps(t))}class Rs{constructor(e){this.handlers=rs,this.usingStack=!!e,this.stackName=e}compile(e){var s;let i;try{const a=this.parse(e),n=new dt({});Ls(n);const o=this.handle(n,a);o[1].push(new Ri,...n.inst),this.resolve(o),i=this.serialize(o)+`
|
|
7
|
-
`}catch(a){return[null,a,(s=a==null?void 0:a.nodeStack)!=null?s:[]]}return[i,null,[]]}resolve(e){let i=0;for(const s of e[1])s.resolve(i),s.hidden||i++}serialize(e){const[i,s]=e;return s.filter(a=>!a.hidden).join(`
|
|
8
|
-
`)}parse(e){return wi(e,{locations:!0,ecmaVersion:"latest"})}handle(e,i){var s;try{const a=this.handlers[i.type];if(!a)throw Error("Missing handler for "+i.type);return a(this,e,i,null)}catch(a){throw(s=a.nodeStack)!=null||(a.nodeStack=[]),a.nodeStack.push(i),a}}handleEval(e,i){const[s,a]=this.handle(e,i),[n,o]=s.eval(e);return[n,[...a,...o]]}handleMany(e,i,s=this.handle.bind(this)){const a=[];for(const n of i){const[o,u]=s(e,n);a.push(...u)}return[null,a]}}const Bs=new Rs,Os=t=>Bs.compile(t);P.compile=Os,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|