simple-graph-query 3.1.0 → 3.2.0

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see simple-graph-query.bundle.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SimpleGraphQuery=e():t.SimpleGraphQuery=e()}(this,()=>(()=>{var t={41:(t,e,r)=>{"use strict";var n=r(655),i=r(8068),s=r(9675),o=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!o&&o(t,e);if(n)n(t,e,{configurable:null===c&&h?h.configurable:!c,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!u&&(a||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{"use strict";t.exports=Function.prototype.call},309:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;const s=r(5629),o=r(2399),a=r(7760);let l=class{constructor(t,e){if(this.i=0,this._factory=s.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(null!=this.eofToken)return this.eofToken.charPositionInLine;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!=this.eofToken)return this.eofToken.line;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t<r.length;t++)"\n"===r.charAt(t)&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!=this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([o.Override],l.prototype,"charPositionInLine",null),n([o.Override],l.prototype,"nextToken",null),n([o.Override],l.prototype,"line",null),n([o.Override],l.prototype,"inputStream",null),n([o.Override],l.prototype,"sourceName",null),n([o.Override,o.NotNull,i(0,o.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,o.NotNull)],l),e.ListTokenSource=l},324:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;const s=r(8590),o=r(2399),a=r(7435);let l=class extends s.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([o.Override,o.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,o.NotNull)],l),e.LexerDFASerializer=l},328:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;const i=r(4148),s=r(1492),o=r(7477),a=r(2399);class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=s.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position===0)throw i(this.LA(1)===s.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(o.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?s.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?s.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){const e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},333:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;const i=r(3907),s=r(5636),o=r(2399),a=r(8840);var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=s.MurmurHash.initialize(7);return e=s.MurmurHash.update(e,t.state.stateNumber),e=s.MurmurHash.update(e,t.context),e=s.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([o.Override],e.prototype,"hashCode",null),n([o.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},360:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;const i=r(7477),s=r(2399),o=r(7760);class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===o.Token.EOF?"<EOF>":this._symbol.text||""}}n([s.Override],a.prototype,"getChild",null),n([s.Override],a.prototype,"parent",null),n([s.Override],a.prototype,"setParent",null),n([s.Override],a.prototype,"payload",null),n([s.Override],a.prototype,"sourceInterval",null),n([s.Override],a.prototype,"childCount",null),n([s.Override],a.prototype,"accept",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toStringTree",null),n([s.Override],a.prototype,"toString",null),e.TerminalNode=a},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,i=r(9612),s=r(9383),o=r(1237),a=r(9290),l=r(9538),c=r(8068),u=r(9675),h=r(5345),p=r(1514),d=r(8968),f=r(6188),_=r(8002),T=r(5880),y=r(414),O=r(3093),x=Function,g=function(t){try{return x('"use strict"; return ('+t+").constructor;")()}catch(t){}},E=r(5795),m=r(655),v=function(){throw new u},S=E?function(){try{return v}catch(t){try{return E(arguments,"callee").get}catch(t){return v}}}():v,N=r(4039)(),R=r(3628),b=r(1064),A=r(8648),C=r(1002),L=r(76),I={},P="undefined"!=typeof Uint8Array&&R?R(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":N&&R?R([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&R?R(R([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&N&&R?R((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&N&&R?R((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&R?R(""[Symbol.iterator]()):n,"%Symbol%":N?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":C,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":b,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":_,"%Math.pow%":T,"%Math.round%":y,"%Math.sign%":O,"%Reflect.getPrototypeOf%":A};if(R)try{null.error}catch(t){var K=R(R(t));w["%Error.prototype%"]=K}var k=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&R&&(r=R(i.prototype))}return w[e]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(6743),U=r(9957),F=M.call(L,Array.prototype.concat),j=M.call(C,Array.prototype.splice),H=M.call(L,String.prototype.replace),B=M.call(L,String.prototype.slice),G=M.call(L,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,V=function(t,e){var r,n=t;if(U(D,n)&&(n="%"+(r=D[n])[0]+"%"),U(w,n)){var i=w[n];if(i===I&&(i=k(n)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return H(t,z,function(t,e,r,i){n[n.length]=r?H(i,q,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=V("%"+n+"%",e),s=i.name,o=i.value,a=!1,l=i.alias;l&&(n=l[0],j(r,F([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],f=B(d,0,1),_=B(d,-1);if(('"'===f||"'"===f||"`"===f||'"'===_||"'"===_||"`"===_)&&f!==_)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(a=!0),U(w,s="%"+(n+="."+d)+"%"))o=w[s];else if(null!=o){if(!(d in o)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(E&&h+1>=r.length){var T=E(o,d);o=(p=!!T)&&"get"in T&&!("originalValue"in T.get)?T.get:o[d]}else p=U(o,d),o=o[d];p&&!a&&(w[s]=o)}}return o}},487:(t,e,r)=>{"use strict";var n=r(6897),i=r(655),s=r(3126),o=r(2205);t.exports=function(t){var e=s(arguments),r=1+t.length-(arguments.length-1);return n(e,r>0?r:0,!0)},i?i(t.exports,"apply",{value:o}):t.exports.apply=o},493:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;const s=r(9202),o=r(1533),a=r(4274),l=r(8955),c=r(7037),u=r(5369),h=r(8749),p=r(8744),d=r(6889),f=r(760),_=r(3099),T=r(8016),y=r(3074),O=r(9250),x=r(3357),g=r(9803),E=r(3972),m=r(7920),v=r(9616),S=r(6474),N=r(4283),R=r(4520),b=r(5859),A=r(6479),C=r(6251),L=r(2399),I=r(3575),P=r(3161),w=r(4891),K=r(6305),k=r(6061),D=r(6369),M=r(3053),U=r(9240),F=r(8840),j=r(3334),H=r(1384),B=r(8195),G=r(5481),z=r(4016),q=r(7760),V=r(8644),Y=r(8567),$=r(4650);var Q;!function(t){t[t.UNICODE_BMP=0]="UNICODE_BMP",t[t.UNICODE_SMP=1]="UNICODE_SMP"}(Q||(Q={}));class W{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=W.SUPPORTED_UUIDS.findIndex(e=>e.equals(t));return!(r<0)&&W.SUPPORTED_UUIDS.findIndex(t=>t.equals(e))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>W.toInt(t[e]),size:1}:{readUnicode:(t,e)=>W.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;e<t.length;e++)t[e]=t[e]-2&65535;let e=0,r=W.toInt(t[e++]);if(r!==W.SERIALIZED_VERSION){let t=`Could not deserialize ATN with version ${r} (expected ${W.SERIALIZED_VERSION}).`;throw new Error(t)}let n=W.toUUID(t,e);if(e+=8,W.SUPPORTED_UUIDS.findIndex(t=>t.equals(n))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${W.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=W.isFeatureSupported(W.ADDED_LEXER_ACTIONS,n),l=W.toInt(t[e++]),d=W.toInt(t[e++]),T=new a.ATN(l,d),x=[],E=[],v=W.toInt(t[e++]);for(let r=0;r<v;r++){let r=W.toInt(t[e++]);if(r===c.ATNStateType.INVALID_TYPE){T.addState(new g.InvalidState);continue}let n=W.toInt(t[e++]);65535===n&&(n=-1);let i=this.stateFactory(r,n);if(r===c.ATNStateType.LOOP_END){let r=W.toInt(t[e++]);x.push([i,r])}else if(i instanceof _.BlockStartState){let r=W.toInt(t[e++]);E.push([i,r])}T.addState(i)}for(let t of x)t[0].loopBackState=T.states[t[1]];for(let t of E)t[0].endState=T.states[t[1]];let S=W.toInt(t[e++]);for(let r=0;r<S;r++){let r=W.toInt(t[e++]);T.states[r].nonGreedy=!0}let N=W.toInt(t[e++]);for(let r=0;r<N;r++){let r=W.toInt(t[e++]);T.states[r].sll=!0}let R=W.toInt(t[e++]);for(let r=0;r<R;r++){let r=W.toInt(t[e++]);T.states[r].isPrecedenceRule=!0}let b=W.toInt(t[e++]);0===T.grammarType&&(T.ruleToTokenType=new Int32Array(b)),T.ruleToStartState=new Array(b);for(let r=0;r<b;r++){let i=W.toInt(t[e++]),s=T.states[i];if(s.leftFactored=0!==W.toInt(t[e++]),T.ruleToStartState[r]=s,0===T.grammarType){let i=W.toInt(t[e++]);if(65535===i&&(i=q.Token.EOF),T.ruleToTokenType[r]=i,!W.isFeatureSupported(W.ADDED_LEXER_ACTIONS,n)){let r=W.toInt(t[e++]);65535===r&&(r=-1)}}}T.ruleToStopState=new Array(b);for(let t of T.states)t instanceof F.RuleStopState&&(T.ruleToStopState[t.ruleIndex]=t,T.ruleToStartState[t.ruleIndex].stopState=t);let A=W.toInt(t[e++]);for(let r=0;r<A;r++){let r=W.toInt(t[e++]);T.modeToStartState.push(T.states[r])}T.modeToDFA=new Array(A);for(let t=0;t<A;t++)T.modeToDFA[t]=new y.DFA(T.modeToStartState[t]);let L=[];e=this.deserializeSets(t,e,L,W.getUnicodeDeserializer(0)),W.isFeatureSupported(W.ADDED_UNICODE_SMP,n)&&(e=this.deserializeSets(t,e,L,W.getUnicodeDeserializer(1)));let I=W.toInt(t[e++]);for(let r=0;r<I;r++){let r=W.toInt(t[e]),n=W.toInt(t[e+1]),i=W.toInt(t[e+2]),s=W.toInt(t[e+3]),o=W.toInt(t[e+4]),a=W.toInt(t[e+5]),l=this.edgeFactory(T,i,r,n,s,o,a,L);T.states[r].addTransition(l),e+=6}let P=new o.Array2DHashSet({hashCode:t=>t.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),k=[];for(let t of T.states){let e=t.ruleIndex>=0&&T.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r<t.numberOfTransitions;r++){let n=t.transition(r);if(!(n instanceof j.RuleTransition))continue;let i=n;if(!T.ruleToStartState[i.target.ruleIndex].leftFactored&&e)continue;let s=-1;T.ruleToStartState[i.target.ruleIndex].isPrecedenceRule&&0===i.precedence&&(s=i.target.ruleIndex);let o={stopState:i.target.ruleIndex,returnState:i.followState.stateNumber,outermostPrecedenceReturn:s};P.add(o)&&k.push(o)}}for(let t of k){let e=new O.EpsilonTransition(T.states[t.returnState],t.outermostPrecedenceReturn);T.ruleToStopState[t.stopState].addTransition(e)}for(let t of T.states){if(t instanceof _.BlockStartState){if(void 0===t.endState)throw new Error("IllegalStateException");if(void 0!==t.endState.startState)throw new Error("IllegalStateException");t.endState.startState=t}if(t instanceof K.PlusLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof w.PlusBlockStartState&&(r.loopBackState=e)}}else if(t instanceof G.StarLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof z.StarLoopEntryState&&(r.loopBackState=e)}}}let D=W.toInt(t[e++]);for(let r=1;r<=D;r++){let n=W.toInt(t[e++]),i=T.states[n];T.decisionToState.push(i),i.decision=r-1}if(0===T.grammarType)if(i){T.lexerActions=new Array(W.toInt(t[e++]));for(let r=0;r<T.lexerActions.length;r++){let n=W.toInt(t[e++]),i=W.toInt(t[e++]);65535===i&&(i=-1);let s=W.toInt(t[e++]);65535===s&&(s=-1);let o=this.lexerActionFactory(n,i,s);T.lexerActions[r]=o}}else{let t=[];for(let e of T.states)for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);if(!(n instanceof s.ActionTransition))continue;let i=n.ruleIndex,o=n.actionIndex,a=new m.LexerCustomAction(i,o);e.setTransition(r,new s.ActionTransition(n.target,i,t.length,!1)),t.push(a)}T.lexerActions=t}this.markPrecedenceDecisions(T),T.decisionToDFA=new Array(D);for(let t=0;t<D;t++)T.decisionToDFA[t]=new y.DFA(T.decisionToState[t],t);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(T),this.deserializationOptions.isGenerateRuleBypassTransitions&&1===T.grammarType){T.ruleToTokenType=new Int32Array(T.ruleToStartState.length);for(let t=0;t<T.ruleToStartState.length;t++)T.ruleToTokenType[t]=T.maxTokenType+t+1;for(let t=0;t<T.ruleToStartState.length;t++){let e=new h.BasicBlockStartState;e.ruleIndex=t,T.addState(e);let r,n,i=new f.BlockEndState;if(i.ruleIndex=t,T.addState(i),e.endState=i,T.defineDecisionState(e),i.startState=e,T.ruleToStartState[t].isPrecedenceRule){r=void 0;for(let e of T.states){if(e.ruleIndex!==t)continue;if(!(e instanceof z.StarLoopEntryState))continue;let n=e.transition(e.numberOfTransitions-1).target;if(n instanceof C.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof F.RuleStopState){r=e;break}}if(!r)throw new Error("Couldn't identify final state of the precedence rule prefix section.");n=r.loopBackState.transition(0)}else r=T.ruleToStopState[t];for(let t of T.states)for(let e=0;e<t.numberOfTransitions;e++){let s=t.transition(e);s!==n&&s.target===r&&(s.target=i)}for(;T.ruleToStartState[t].numberOfTransitions>0;){let r=T.ruleToStartState[t].removeTransition(T.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}T.ruleToStartState[t].addTransition(new O.EpsilonTransition(e)),i.addTransition(new O.EpsilonTransition(r));let s=new p.BasicState;T.addState(s),s.addTransition(new u.AtomTransition(i,T.ruleToTokenType[t])),e.addTransition(new O.EpsilonTransition(s))}this.deserializationOptions.isVerifyATN&&this.verifyATN(T)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=W.inlineSetRules(T),t+=W.combineChainedEpsilons(T);let e=0===T.grammarType;if(t+=W.optimizeSets(T,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(T)}return W.identifyTailCalls(T),T}deserializeSets(t,e,r,n){let i=W.toInt(t[e++]);for(let s=0;s<i;s++){let i=W.toInt(t[e]);e++;let s=new x.IntervalSet;r.push(s),0!==W.toInt(t[e++])&&s.add(-1);for(let r=0;r<i;r++){let r=n.readUnicode(t,e);e+=n.size;let i=n.readUnicode(t,e);e+=n.size,s.add(r,i)}}return e}markPrecedenceDecisions(t){let e=new Map;for(let r of t.states)if(r instanceof z.StarLoopEntryState&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){let n=r.transition(r.numberOfTransitions-1).target;n instanceof C.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof F.RuleStopState&&(e.set(r.ruleIndex,r),r.precedenceRuleDecision=!0,r.precedenceLoopbackStates=new d.BitSet(t.states.length))}for(let r of e)for(let e of t.ruleToStopState[r[0]].getTransitions())1===e.serializationType&&-1===e.outermostPrecedenceReturn&&r[1].precedenceLoopbackStates.set(e.target.stateNumber)}verifyATN(t){for(let e of t.states)if(this.checkCondition(void 0!==e,"ATN states should not be undefined."),e.stateType!==c.ATNStateType.INVALID_TYPE){if(this.checkCondition(e.onlyHasEpsilonTransitions||e.numberOfTransitions<=1),e instanceof w.PlusBlockStartState&&this.checkCondition(void 0!==e.loopBackState),e instanceof z.StarLoopEntryState){let t=e;if(this.checkCondition(void 0!==t.loopBackState),this.checkCondition(2===t.numberOfTransitions),t.transition(0).target instanceof B.StarBlockStartState)this.checkCondition(t.transition(1).target instanceof C.LoopEndState),this.checkCondition(!t.nonGreedy);else{if(!(t.transition(0).target instanceof C.LoopEndState))throw new Error("IllegalStateException");this.checkCondition(t.transition(1).target instanceof B.StarBlockStartState),this.checkCondition(t.nonGreedy)}}if(e instanceof G.StarLoopbackState&&(this.checkCondition(1===e.numberOfTransitions),this.checkCondition(e.transition(0).target instanceof z.StarLoopEntryState)),e instanceof C.LoopEndState&&this.checkCondition(void 0!==e.loopBackState),e instanceof U.RuleStartState&&this.checkCondition(void 0!==e.stopState),e instanceof _.BlockStartState&&this.checkCondition(void 0!==e.endState),e instanceof f.BlockEndState&&this.checkCondition(void 0!==e.startState),e instanceof T.DecisionState){let t=e;this.checkCondition(t.numberOfTransitions<=1||t.decision>=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof F.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e<t.ruleToStartState.length;e++){let n=t.ruleToStartState[e];for(;n.onlyHasEpsilonTransitions&&1===n.numberOfOptimizedTransitions&&1===n.getOptimizedTransition(0).serializationType;)n=n.getOptimizedTransition(0).target;if(1!==n.numberOfOptimizedTransitions)continue;let i=n.getOptimizedTransition(0),s=i.target;if(!i.isEpsilon&&s.onlyHasEpsilonTransitions&&1===s.numberOfOptimizedTransitions&&s.getOptimizedTransition(0).target instanceof F.RuleStopState)switch(i.serializationType){case 5:case 2:case 7:r[e]=i;break;default:continue}}for(let n of t.states){if(n.ruleIndex<0)continue;let i;for(let s=0;s<n.numberOfOptimizedTransitions;s++){let o=n.getOptimizedTransition(s);if(!(o instanceof j.RuleTransition)){void 0!==i&&i.push(o);continue}let a=o,l=r[a.target.ruleIndex];if(void 0===l){void 0!==i&&i.push(o);continue}if(void 0===i){i=[];for(let t=0;t<s;t++)i.push(n.getOptimizedTransition(s))}e++;let c=a.followState,h=new p.BasicState;switch(h.setRuleIndex(c.ruleIndex),t.addState(h),i.push(new O.EpsilonTransition(h)),l.serializationType){case 5:h.addTransition(new u.AtomTransition(c,l._label));break;case 2:h.addTransition(new M.RangeTransition(c,l.from,l.to));break;case 7:h.addTransition(new H.SetTransition(c,l.label));break;default:throw new Error("UnsupportedOperationException")}}if(void 0!==i){if(n.isOptimized)for(;n.numberOfOptimizedTransitions>0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof F.RuleStopState)continue;let t;t:for(let n=0;n<r.numberOfOptimizedTransitions;n++){let i=r.getOptimizedTransition(n),s=i.target;if(1===i.serializationType&&-1===i.outermostPrecedenceReturn&&s.stateType===c.ATNStateType.BASIC&&s.onlyHasEpsilonTransitions){for(let e=0;e<s.numberOfOptimizedTransitions;e++)if(1!==s.getOptimizedTransition(e).serializationType||-1!==s.getOptimizedTransition(e).outermostPrecedenceReturn){void 0!==t&&t.push(i);continue t}if(e++,void 0===t){t=[];for(let e=0;e<n;e++)t.push(r.getOptimizedTransition(e))}for(let e=0;e<s.numberOfOptimizedTransitions;e++){let r=s.getOptimizedTransition(e).target;t.push(new O.EpsilonTransition(r))}}else void 0!==t&&t.push(i)}if(void 0!==t){if(r.isOptimized)for(;r.numberOfOptimizedTransitions>0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new x.IntervalSet;for(let t=0;t<e.numberOfOptimizedTransitions;t++){let r=e.getOptimizedTransition(t);if(!(r instanceof O.EpsilonTransition))continue;if(1!==r.target.numberOfOptimizedTransitions)continue;let i=r.target.getOptimizedTransition(0);i.target instanceof f.BlockEndState&&(i instanceof I.NotSetTransition||(i instanceof u.AtomTransition||i instanceof M.RangeTransition||i instanceof H.SetTransition)&&n.add(t))}if(n.size<=1)continue;let i=[];for(let t=0;t<e.numberOfOptimizedTransitions;t++)n.contains(t)||i.push(e.getOptimizedTransition(t));let s,o=e.getOptimizedTransition(n.minElement).target.getOptimizedTransition(0).target,a=new x.IntervalSet;for(let t of n.intervals)for(let r=t.a;r<=t.b;r++){let t=e.getOptimizedTransition(r).target.getOptimizedTransition(0);if(t instanceof I.NotSetTransition)throw new Error("Not yet implemented.");a.addAll(t.label)}if(1===a.intervals.length)if(1===a.size)s=new u.AtomTransition(o,a.minElement);else{let t=a.intervals[0];s=new M.RangeTransition(o,t.a,t.b)}else s=new H.SetTransition(o,a);let l=new p.BasicState;if(l.setRuleIndex(e.ruleIndex),t.addState(l),l.addTransition(s),i.push(new O.EpsilonTransition(l)),r+=e.numberOfOptimizedTransitions-i.length,e.isOptimized)for(;e.numberOfOptimizedTransitions>0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);n instanceof j.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}if(e.isOptimized)for(let r=0;r<e.numberOfOptimizedTransitions;r++){let n=e.getOptimizedTransition(r);n instanceof j.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}}}static testTailCall(t,e,r){if(!r&&e.tailCall)return!0;if(r&&e.optimizedTailCall)return!0;let n=new d.BitSet(t.states.length),i=[];for(i.push(e.followState);;){let t=i.pop();if(!t)break;if(n.get(t.stateNumber))continue;if(t instanceof F.RuleStopState)continue;if(!t.onlyHasEpsilonTransitions)return!1;let e=r?t.numberOfOptimizedTransitions:t.numberOfTransitions;for(let n=0;n<e;n++){let e=r?t.getOptimizedTransition(n):t.transition(n);if(1!==e.serializationType)return!1;i.push(e.target)}}return!0}static toInt(t){return t}static toInt32(t,e){return(t[e]|t[e+1]<<16)>>>0}static toUUID(t,e){let r=W.toInt32(t,e),n=W.toInt32(t,e+2),i=W.toInt32(t,e+4),s=W.toInt32(t,e+6);return new Y.UUID(s,i,n,r)}edgeFactory(t,e,r,n,i,o,a,l){let c=t.states[n];switch(e){case 1:return new O.EpsilonTransition(c);case 2:return 0!==a?new M.RangeTransition(c,q.Token.EOF,o):new M.RangeTransition(c,i,o);case 3:return new j.RuleTransition(t.states[i],o,a,c);case 4:return new D.PredicateTransition(c,i,o,0!==a);case 10:return new k.PrecedencePredicateTransition(c,i);case 5:return 0!==a?new u.AtomTransition(c,q.Token.EOF):new u.AtomTransition(c,i);case 6:return new s.ActionTransition(c,i,o,0!==a);case 7:return new H.SetTransition(c,l[i]);case 8:return new I.NotSetTransition(c,l[i]);case 9:return new $.WildcardTransition(c)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case c.ATNStateType.INVALID_TYPE:return new g.InvalidState;case c.ATNStateType.BASIC:r=new p.BasicState;break;case c.ATNStateType.RULE_START:r=new U.RuleStartState;break;case c.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case c.ATNStateType.PLUS_BLOCK_START:r=new w.PlusBlockStartState;break;case c.ATNStateType.STAR_BLOCK_START:r=new B.StarBlockStartState;break;case c.ATNStateType.TOKEN_START:r=new V.TokensStartState;break;case c.ATNStateType.RULE_STOP:r=new F.RuleStopState;break;case c.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case c.ATNStateType.STAR_LOOP_BACK:r=new G.StarLoopbackState;break;case c.ATNStateType.STAR_LOOP_ENTRY:r=new z.StarLoopEntryState;break;case c.ATNStateType.PLUS_LOOP_BACK:r=new K.PlusLoopbackState;break;case c.ATNStateType.LOOP_END:r=new C.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new E.LexerChannelAction(e);case 1:return new m.LexerCustomAction(e,r);case 2:return new v.LexerModeAction(e);case 3:return S.LexerMoreAction.INSTANCE;case 4:return N.LexerPopModeAction.INSTANCE;case 5:return new R.LexerPushModeAction(e);case 6:return b.LexerSkipAction.INSTANCE;case 7:return new A.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}W.BASE_SERIALIZED_UUID=Y.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),W.ADDED_LEXER_ACTIONS=Y.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),W.ADDED_UNICODE_SMP=Y.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),W.SUPPORTED_UUIDS=[W.BASE_SERIALIZED_UUID,W.ADDED_LEXER_ACTIONS,W.ADDED_UNICODE_SMP],W.SERIALIZED_UUID=W.ADDED_UNICODE_SMP,n([L.NotNull],W.prototype,"deserializationOptions",void 0),n([i(0,L.NotNull)],W.prototype,"deserialize",null),n([i(0,L.NotNull)],W.prototype,"markPrecedenceDecisions",null),n([L.NotNull,i(0,L.NotNull)],W.prototype,"edgeFactory",null),e.ATNDeserializer=W},534:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=void 0,e.getIdentifierName=function(t){const e=t.IDENTIFIER_TOK();if(e)return e.text;const r=t.QUOTED_IDENTIFIER_TOK();return r?r.text.slice(1,-1).replace(/\\(.)/g,"$1"):t.text},e.quoteIfReserved=function(t,e){return e.has(t)?"`"+t.replace(/([`\\])/g,"\\$1")+"`":t},e.FORGE_RESERVED_KEYWORDS=new Set(["open","as","var","abstract","sig","extends","in","lone","some","one","two","set","func","pfunc","disj","wheat","pred","fun","assert","run","check","for","but","exactly","none","univ","iden","is","sat","unsat","theorem","forge_error","checked","test","expect","suite","all","sufficient","necessary","consistent","inconsistent","with","let","bind","or","xor","iff","implies","else","and","until","release","since","triggered","not","always","eventually","after","before","once","historically","this","sexpr","inst","eval","example","ni","no","sum","Int","option"])},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},s=/%[sdj%]/g;e.format=function(t){if(!x(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])y(a)||!m(a)?o+=" "+a:o+=" "+c(a);return o},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var o={},a=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function c(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),T(r)?n.showHidden=r:r&&e._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,t,n.depth)}function u(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&N(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return x(i)||(i=p(t,i,n)),i}var s=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return O(e)?t.stylize(""+e,"number"):T(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),S(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(N(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(v(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var c,u="",h=!1,m=["{","}"];return _(r)&&(h=!0,m=["[","]"]),N(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),v(r)&&(u=" "+Date.prototype.toUTCString.call(r)),S(r)&&(u=" "+d(r)),0!==o.length||h&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o<a;++o)C(e,String(o))?s.push(f(t,e,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(f(t,e,r,n,i,!0))}),s}(t,r,n,a,o):o.map(function(e){return f(t,r,n,a,e,h)}),t.seen.pop(),function(t,e,r){return t.reduce(function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,u,m)):m[0]+u+m[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?p(t,l.value,null):p(t,l.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),g(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function _(t){return Array.isArray(t)}function T(t){return"boolean"==typeof t}function y(t){return null===t}function O(t){return"number"==typeof t}function x(t){return"string"==typeof t}function g(t){return void 0===t}function E(t){return m(t)&&"[object RegExp]"===R(t)}function m(t){return"object"==typeof t&&null!==t}function v(t){return m(t)&&"[object Date]"===R(t)}function S(t){return m(t)&&("[object Error]"===R(t)||t instanceof Error)}function N(t){return"function"==typeof t}function R(t){return Object.prototype.toString.call(t)}function b(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=_,e.isBoolean=T,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=O,e.isString=x,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=E,e.types.isRegExp=E,e.isObject=m,e.isDate=v,e.types.isDate=v,e.isError=S,e.types.isNativeError=S,e.isFunction=N,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[b((t=new Date).getHours()),b(t.getMinutes()),b(t.getSeconds())].join(":"),[t.getDate(),A[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!m(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push(function(t,n){t?r(t):e(n)});try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),L&&Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=L,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return i.apply(s,arguments)};t.apply(this,e).then(function(t){n.nextTick(o.bind(null,null,t))},function(t){n.nextTick(I.bind(null,t,o))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},585:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;const i=r(2399);class s{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],s.prototype,"toString",null),e.DecisionInfo=s},592:(t,e,r)=>{"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},659:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r<t.length;r++)e.set(t[r],r);return e},e.toCharArray=function(t){if("string"==typeof t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}return t.toCharArray()}},754:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},755:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;const i=r(5922),s=r(9449),o=r(2399);class a extends s.RecognitionException{constructor(t,e,r,n,s,o){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===o&&(o=t.context)),super(t,e,o),this._deadEndConfigs=s,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([o.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},760:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.BLOCK_END}}n([o.Override],a.prototype,"stateType",null),e.BlockEndState=a},821:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach((e,r)=>{e.forEach(e=>{t.push([r,e])})}),t}}e.MultiMap=r},934:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},996:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6869);class a extends o.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return s.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1072:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;const s=r(2399);let o=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};o.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([s.NotNull],o.prototype,"target",void 0),o=n([i(0,s.NotNull)],o),e.Transition=o},1088:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;const s=r(2962),o=r(4274),a=r(8880),l=r(3258),c=r(6298),u=r(9709),h=r(7477),p=r(1492),d=r(2807),f=r(2662),_=r(6181),T=r(2399),y=r(5895),O=r(8859),x=r(8840),g=r(7760),E=r(4148);let m=class t extends c.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let r=this.atn.modeToDFA[e].s0;return null==r?this.matchATN(t):this.execATN(t,r)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),s=i.hasSemanticContext;s&&(i.hasSemanticContext=!1);let o=this.addDFAState(i);if(!s){let t=this.atn.modeToDFA[this.mode];t.s0?o=t.s0:t.s0=o}let a=this.execATN(e,o);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===c.ATNSimulator.ERROR)break;if(n!==p.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===p.IntStream.EOF))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,c.ATNSimulator.ERROR),c.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===p.IntStream.EOF&&e.index===this.startIndex)return g.Token.EOF;throw new _.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let s=o.ATN.INVALID_ALT_NUMBER;for(let o of r){let r=o.alt===s;if(r&&o.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${o.toString(this.recog,!0)}`);let a=o.state.numberOfOptimizedTransitions;for(let t=0;t<a;t++){let a=o.state.getOptimizedTransition(t),l=this.getReachableTarget(a,i);if(null!=l){let t,a=o.lexerActionExecutor;null!=a?(a=a.fixOffsetBeforeMatch(e.index-this.startIndex),t=o.transform(l,!0,a)):(E(null==o.lexerActionExecutor),t=o.transform(l,!0));let c=i===p.IntStream.EOF;if(this.closure(e,t,n,r,!0,c)){s=o.alt;break}}}}}accept(e,r,n,i,s,o){t.debug&&console.log(`ACTION ${r}`),e.seek(i),this._line=s,this._charPositionInLine=o,null!=r&&null!=this.recog&&r.execute(this.recog,e,n)}getReachableTarget(t,e){if(t.matches(e,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE))return t.target}computeStartState(t,e){let r=O.PredictionContext.EMPTY_FULL,n=new y.OrderedATNConfigSet;for(let i=0;i<e.numberOfTransitions;i++){let s=e.transition(i).target,o=a.ATNConfig.create(s,i+1,r);this.closure(t,o,n,!1,!1,!1)}return n}closure(e,r,n,i,s,o){if(t.debug&&console.log("closure("+r.toString(this.recog,!0)+")"),r.state instanceof x.RuleStopState){t.debug&&(null!=this.recog?console.log(`closure at ${this.recog.ruleNames[r.state.ruleIndex]} rule stop ${r}`):console.log(`closure at rule stop ${r}`));let a=r.context;if(a.isEmpty)return n.add(r),!0;a.hasEmpty&&(n.add(r.transform(r.state,!0,O.PredictionContext.EMPTY_FULL)),i=!0);for(let t=0;t<a.size;t++){let l=a.getReturnState(t);if(l===O.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let c=a.getParent(t),u=this.atn.states[l],h=r.transform(u,!1,c);i=this.closure(e,h,n,i,s,o)}return i}r.state.onlyHasEpsilonTransitions||i&&r.hasPassedThroughNonGreedyDecision||n.add(r);let a=r.state;for(let t=0;t<a.numberOfOptimizedTransitions;t++){let l=a.getOptimizedTransition(t),c=this.getEpsilonTarget(e,r,l,n,s,o);null!=c&&(i=this.closure(e,c,n,i,s,o))}return i}getEpsilonTarget(e,r,n,i,s,o){let a;switch(n.serializationType){case 3:let l=n;if(this.optimize_tail_calls&&l.optimizedTailCall&&!r.context.hasEmpty)a=r.transform(n.target,!0);else{let t=r.context.getChild(l.followState.stateNumber);a=r.transform(n.target,!0,t)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let c=n;t.debug&&console.log("EVAL rule "+c.ruleIndex+":"+c.predIndex),i.hasSemanticContext=!0,a=this.evaluatePredicate(e,c.ruleIndex,c.predIndex,s)?r.transform(n.target,!0):void 0;break;case 6:if(r.context.hasEmpty){let t=f.LexerActionExecutor.append(r.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);a=r.transform(n.target,!0,t);break}a=r.transform(n.target,!0);break;case 1:a=r.transform(n.target,!0);break;case 5:case 2:case 7:if(o&&n.matches(p.IntStream.EOF,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE)){a=r.transform(n.target,!1);break}a=void 0;break;default:a=void 0}return a}evaluatePredicate(t,e,r,n){if(null==this.recog)return!0;if(!n)return this.recog.sempred(void 0,e,r);let i=this._charPositionInLine,s=this._line,o=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(void 0,e,r)}finally{this._charPositionInLine=i,this._line=s,t.seek(o),t.release(a)}}captureSimState(t,e,r){t.index=e.index,t.line=this._line,t.charPos=this._charPositionInLine,t.dfaState=r}addDFAEdge(e,r,n){if(n instanceof l.ATNConfigSet){let t=n.hasSemanticContext;t&&(n.hasSemanticContext=!1);let i=this.addDFAState(n);return t||this.addDFAEdge(e,r,i),i}t.debug&&console.log("EDGE "+e+" -> "+n+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,n)}addDFAState(t){E(!t.hasSemanticContext);let e=new u.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new u.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof x.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new s.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};n([T.NotNull],m.prototype,"prevAccept",void 0),n([i(0,T.NotNull)],m.prototype,"copyState",null),n([i(0,T.NotNull)],m.prototype,"match",null),n([T.Override],m.prototype,"reset",null),n([i(0,T.NotNull)],m.prototype,"matchATN",null),n([i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"execATN",null),n([i(0,T.NotNull)],m.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"computeTargetState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"getReachableConfigSet",null),n([i(0,T.NotNull)],m.prototype,"accept",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"computeStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull),i(3,T.NotNull)],m.prototype,"getEpsilonTarget",null),n([i(0,T.NotNull)],m.prototype,"evaluatePredicate",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"captureSimState",null),n([T.NotNull,i(0,T.NotNull)],m.prototype,"addDFAState",null),n([T.NotNull],m.prototype,"getDFA",null),n([T.NotNull,i(0,T.NotNull)],m.prototype,"getText",null),n([i(0,T.NotNull)],m.prototype,"consume",null),n([T.NotNull],m.prototype,"getTokenName",null),m=n([i(0,T.NotNull)],m),e.LexerATNSimulator=m,function(t){t.debug=!1,t.dfa_debug=!1,t.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}}(m=e.LexerATNSimulator||(e.LexerATNSimulator={})),e.LexerATNSimulator=m},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1097:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;const i=r(1964),s=r(7477),o=r(2399),a=r(9984),l=r(360);class c extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return c.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){const e=t;return e.setParent(this),this.addAnyChild(e)}{const e=t;let r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof c)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?s.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):s.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):s.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}}c.EMPTY=new c,n([o.Override],c.prototype,"parent",null),n([o.Override],c.prototype,"childCount",null),n([o.Override],c.prototype,"sourceInterval",null),e.ParserRuleContext=c},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1173:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;const s=r(2399);let o=class{constructor(t,e,r,n,i,s){this.decision=t,this.fullCtx=s,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([s.NotNull],o.prototype,"input",void 0),o=n([i(2,s.NotNull)],o),e.DecisionEventInfo=o},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),s=Object.keys,o=s?function(t){return s(t)}:r(8875),a=Object.keys;o.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=o;return Object.keys||o},t.exports=o},1229:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=e.quoteIfReserved=e.getIdentifierName=e.SelectorSynthesisError=e.synthesizeSelectorWithWhy=e.synthesizeBinaryRelationWithWhy=e.synthesizeBinaryRelation=e.synthesizeSelector=e.ForgeExprStaticAnalyzer=e.SimpleGraphQueryEvaluator=void 0,e.analyzeForgeExpression=function(t,e){try{const r=h(t).parseExpr();return r&&0!==r.childCount?new c.ForgeExprStaticAnalyzer(e).analyze(r):{status:"unknown"}}catch{return{status:"unknown"}}};const n=r(2221),i=r(5395),s=r(5288),o=r(3274),a=r(2219),l=r(6684),c=r(2569);Object.defineProperty(e,"ForgeExprStaticAnalyzer",{enumerable:!0,get:function(){return c.ForgeExprStaticAnalyzer}});const u=r(3651);function h(t){const e=n.CharStreams.fromString(t),r=new s.ForgeLexer(e),o=new n.CommonTokenStream(r),a=new i.ForgeParser(o);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new u.ParseErrorListener),a}e.SimpleGraphQueryEvaluator=class{constructor(t){this.forgeListener=new o.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.parseTreeCache=new Map,this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,this.lastDiagnostics=[],this.datum=t}invalidate(){this.cachedEvaluator=null,this.cachedEvaluatorDatum=null}getExpressionParseTree(t){const e=h(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}evaluateExpressionWithDiagnostics(t){return{value:this.evaluateExpression(t),diagnostics:this.lastDiagnostics}}evaluateExpression(t){let e;if(this.parseTreeCache.has(t))e=this.parseTreeCache.get(t);else try{const r=this.getExpressionParseTree(t);e=r instanceof i.ExprContext?r:r.getChild(0),this.parseTreeCache.set(t,e)}catch(e){return this.lastDiagnostics=[],{error:new Error(`Error parsing expression "${t}"`)}}null!==this.cachedEvaluator&&this.cachedEvaluatorDatum===this.datum||(this.cachedEvaluator=new l.ForgeExprEvaluator(this.datum),this.cachedEvaluatorDatum=this.datum);const r=this.cachedEvaluator;r.resetDiagnostics();try{let t=r.visit(e);return this.lastDiagnostics=r.getDiagnostics(),t}catch(e){if(this.lastDiagnostics=r.getDiagnostics(),this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,e instanceof l.NameNotFoundError)return[];if(e instanceof Error){const r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}};var p=r(9700);Object.defineProperty(e,"synthesizeSelector",{enumerable:!0,get:function(){return p.synthesizeSelector}}),Object.defineProperty(e,"synthesizeBinaryRelation",{enumerable:!0,get:function(){return p.synthesizeBinaryRelation}}),Object.defineProperty(e,"synthesizeBinaryRelationWithWhy",{enumerable:!0,get:function(){return p.synthesizeBinaryRelationWithWhy}}),Object.defineProperty(e,"synthesizeSelectorWithWhy",{enumerable:!0,get:function(){return p.synthesizeSelectorWithWhy}}),Object.defineProperty(e,"SelectorSynthesisError",{enumerable:!0,get:function(){return p.SelectorSynthesisError}});var d=r(534);Object.defineProperty(e,"getIdentifierName",{enumerable:!0,get:function(){return d.getIdentifierName}}),Object.defineProperty(e,"quoteIfReserved",{enumerable:!0,get:function(){return d.quoteIfReserved}}),Object.defineProperty(e,"FORGE_RESERVED_KEYWORDS",{enumerable:!0,get:function(){return d.FORGE_RESERVED_KEYWORDS}})},1237:t=>{"use strict";t.exports=EvalError},1284:function(t,e,r){"use strict";var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;const o=r(7886),a=r(4274),l=r(6298),c=r(2433),u=r(585),h=r(4241),p=r(2399),d=r(7059),f=r(3161),_=r(7004),T=r(2356),y=r(4364);class O extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;t<this.numDecisions;t++)this.decisions.push(new u.DecisionInfo(t))}adaptivePredict(t,e,r,i){if(void 0!==i)return super.adaptivePredict(t,e,r,i);try{this._input=t,this._startIndex=t.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=e,this.currentState=void 0,this.conflictingAltResolvedBySLL=a.ATN.INVALID_ALT_NUMBER;let i=n.hrtime(),s=super.adaptivePredict(t,e,r),o=n.hrtime(),l=1e9*(o[0]-i[0]);0===l?l=o[1]-i[1]:l+=1e9-i[1]+o[1],this.decisions[e].timeInPrediction+=l,this.decisions[e].invocations++;let c=this._sllStopIndex-this._startIndex+1;if(this.decisions[e].SLL_TotalLook+=c,this.decisions[e].SLL_MinLook=0===this.decisions[e].SLL_MinLook?c:Math.min(this.decisions[e].SLL_MinLook,c),c>this.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=c,this.decisions[e].SLL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,s,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,s,t,this._startIndex,this._llStopIndex,!0))}return s}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,s){let o=super.computeTargetState(t,e,r,n,i,s);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,o}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof T.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new _.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new c.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,s,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let u;u=null!=s?s.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&u!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new c.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new o.AmbiguityInfo(this.currentDecision,this.currentState,s,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,s,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([p.Override,s(0,p.NotNull)],O.prototype,"adaptivePredict",null),i([p.Override],O.prototype,"getStartState",null),i([p.Override],O.prototype,"computeStartState",null),i([p.Override],O.prototype,"computeReachSet",null),i([p.Override],O.prototype,"getExistingTargetState",null),i([p.Override],O.prototype,"computeTargetState",null),i([p.Override],O.prototype,"evalSemanticContextImpl",null),i([p.Override],O.prototype,"reportContextSensitivity",null),i([p.Override],O.prototype,"reportAttemptingFullContext",null),i([p.Override,s(0,p.NotNull),s(5,p.NotNull),s(6,p.NotNull)],O.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=O},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},1384:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;const s=r(3357),o=r(2399),a=r(7760),l=r(1072);let c=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=s.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([o.NotNull],c.prototype,"set",void 0),n([o.Override],c.prototype,"serializationType",null),n([o.Override,o.NotNull],c.prototype,"label",null),n([o.Override],c.prototype,"matches",null),n([o.Override,o.NotNull],c.prototype,"toString",null),c=n([i(0,o.NotNull),i(1,o.Nullable)],c),e.SetTransition=c},1405:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;const i=r(2399),s=r(659);class o{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof o&&this.isExact===t.isExact&&s.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),e.ConflictInfo=o},1492:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME="<unknown>"},1514:t=>{"use strict";t.exports=Math.abs},1533:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;const s=r(4148),o=r(5643),a=r(2399),l=r(5636);class c{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof c){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;t<this.buckets.length;t++){let e=this.buckets[t];e&&(this.buckets[t]=e.slice(0))}this.n=t.n,this.threshold=t.threshold}else this.comparator=t||o.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(e)}getOrAdd(t){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof c&&(t.size===this.size&&this.containsAll(t))}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}s(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof c){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],c.prototype,"comparator",void 0),n([a.Override],c.prototype,"hashCode",null),n([a.Override],c.prototype,"equals",null),n([a.Override],c.prototype,"add",null),n([a.Override],c.prototype,"size",null),n([a.Override],c.prototype,"isEmpty",null),n([a.Override],c.prototype,"contains",null),n([i(0,a.Nullable)],c.prototype,"containsFast",null),n([a.Override],c.prototype,Symbol.iterator,null),n([a.Override],c.prototype,"toArray",null),n([a.Override],c.prototype,"containsAll",null),n([a.Override],c.prototype,"addAll",null),n([a.Override],c.prototype,"clear",null),n([a.Override],c.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],c.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],c.prototype,"createBuckets",null),e.Array2DHashSet=c},1668:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1862:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;const n=r(8240);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},1964:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;const i=r(2399),s=r(360);class o extends s.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],o.prototype,"accept",null),e.ErrorNode=o},2193:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6869);class a extends o.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return s.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},2205:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),s=r(3144);t.exports=function(){return s(n,i,arguments)}},2219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;const n=r(1964),i=r(360),s=r(5378);class o{walk(t,e){let r=[],o=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),o.push(l),l=0,a=a.getChild(0);else do{if(a instanceof s.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l<e.childCount?e.getChild(l):void 0,a)break;a=r.pop(),l=o.pop()}while(a)}enterRule(t,e){let r=e.ruleContext;t.enterEveryRule&&t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){let r=e.ruleContext;r.exitRule(t),t.exitEveryRule&&t.exitEveryRule(r)}}e.ParseTreeWalker=o,function(t){t.DEFAULT=new t}(o=e.ParseTreeWalker||(e.ParseTreeWalker={}))},2221:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(2666),e),i(r(5635),e),i(r(7404),e),i(r(7442),e),i(r(6737),e),i(r(2781),e),i(r(6776),e),i(r(5866),e),i(r(328),e),i(r(8291),e),i(r(5629),e),i(r(5411),e),i(r(3196),e),i(r(3361),e),i(r(7997),e),i(r(7866),e),i(r(2262),e),i(r(2468),e),i(r(3714),e),i(r(1492),e),i(r(2807),e),i(r(6145),e),i(r(6181),e),i(r(309),e),i(r(755),e),i(r(5922),e),i(r(754),e),i(r(9274),e),i(r(1097),e),i(r(7115),e),i(r(6142),e),i(r(9449),e),i(r(8831),e),i(r(9984),e),i(r(7862),e),i(r(3530),e),i(r(4275),e),i(r(7760),e),i(r(1668),e),i(r(8369),e),i(r(3696),e),i(r(2806),e),i(r(8897),e),i(r(7435),e),i(r(5116),e)},2262:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;const s=r(9449),o=r(2399),a=r(6369);let l=class t extends s.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([o.NotNull],l,"formatMessage",null),l=n([i(0,o.NotNull)],l),e.FailedPredicateException=l},2299:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var o=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach(function(t){return e.push(t)}),e},l=function(t){var e=[];return t.forEach(function(t,r){return e.push([r,t])}),e},c=Object.is?Object.is:r(7653),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(4133);function p(t){return t.call.bind(t)}var d=p(Object.prototype.hasOwnProperty),f=p(Object.prototype.propertyIsEnumerable),_=p(Object.prototype.toString),T=r(537).types,y=T.isAnyArrayBuffer,O=T.isArrayBufferView,x=T.isDate,g=T.isMap,E=T.isRegExp,m=T.isSet,v=T.isNativeError,S=T.isBoxedPrimitive,N=T.isNumberObject,R=T.isStringObject,b=T.isBooleanObject,A=T.isBigIntObject,C=T.isSymbolObject,L=T.isFloat32Array,I=T.isFloat64Array;function P(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function w(t){return Object.keys(t).filter(P).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function K(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function k(t,e,r,n){if(t===e)return 0!==t||!r||c(t,e);if(r){if("object"!==s(t))return"number"==typeof t&&h(t)&&h(e);if("object"!==s(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==s(t))return(null===e||"object"!==s(e))&&t==e;if(null===e||"object"!==s(e))return!1}var i,a,l,u,p=_(t);if(p!==_(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=w(t),f=w(e);return d.length===f.length&&M(t,e,r,n,1,d)}if("[object Object]"===p&&(!g(t)&&g(e)||!m(t)&&m(e)))return!1;if(x(t)){if(!x(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(E(t)){if(!E(e)||(l=t,u=e,!(o?l.source===u.source&&l.flags===u.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(u))))return!1}else if(v(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(O(t)){if(r||!L(t)&&!I(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===K(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var T=w(t),P=w(e);return T.length===P.length&&M(t,e,r,n,0,T)}if(m(t))return!(!m(e)||t.size!==e.size)&&M(t,e,r,n,2);if(g(t))return!(!g(e)||t.size!==e.size)&&M(t,e,r,n,3);if(y(t)){if(a=e,(i=t).byteLength!==a.byteLength||0!==K(new Uint8Array(i),new Uint8Array(a)))return!1}else if(S(t)&&!function(t,e){return N(t)?N(e)&&c(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):R(t)?R(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):b(t)?b(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):A(t)?A(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):C(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return M(t,e,r,n,0)}function D(t,e){return e.filter(function(e){return f(t,e)})}function M(t,e,r,i,o,c){if(5===arguments.length){c=Object.keys(t);var h=Object.keys(e);if(c.length!==h.length)return!1}for(var p=0;p<c.length;p++)if(!d(e,c[p]))return!1;if(r&&5===arguments.length){var _=u(t);if(0!==_.length){var T=0;for(p=0;p<_.length;p++){var y=_[p];if(f(t,y)){if(!f(e,y))return!1;c.push(y),T++}else if(f(e,y))return!1}var O=u(e);if(_.length!==O.length&&D(e,O).length!==T)return!1}else{var x=u(e);if(0!==x.length&&0!==D(e,x).length)return!1}}if(0===c.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var g=i.val1.get(t);if(void 0!==g){var E=i.val2.get(e);if(void 0!==E)return g===E}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var m=function(t,e,r,i,o,c){var u=0;if(2===c){if(!function(t,e,r,n){for(var i=null,o=a(t),l=0;l<o.length;l++){var c=o[l];if("object"===s(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!j(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var u=a(e),h=0;h<u.length;h++){var p=u[h];if("object"===s(p)&&null!==p){if(!U(i,p,r,n))return!1}else if(!r&&!t.has(p)&&!U(i,p,r,n))return!1}return 0===i.size}return!0}(t,e,r,o))return!1}else if(3===c){if(!function(t,e,r,i){for(var o=null,a=l(t),c=0;c<a.length;c++){var u=n(a[c],2),h=u[0],p=u[1];if("object"===s(h)&&null!==h)null===o&&(o=new Set),o.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!k(p,d,r,i)){if(r)return!1;if(!H(t,e,h,p,i))return!1;null===o&&(o=new Set),o.add(h)}}}if(null!==o){for(var f=l(e),_=0;_<f.length;_++){var T=n(f[_],2),y=T[0],O=T[1];if("object"===s(y)&&null!==y){if(!B(o,t,y,O,r,i))return!1}else if(!(r||t.has(y)&&k(t.get(y),O,!1,i)||B(o,t,y,O,!1,i)))return!1}return 0===o.size}return!0}(t,e,r,o))return!1}else if(1===c)for(;u<t.length;u++){if(!d(t,u)){if(d(e,u))return!1;for(var h=Object.keys(t);u<h.length;u++){var p=h[u];if(!d(e,p)||!k(t[p],e[p],r,o))return!1}return h.length===Object.keys(e).length}if(!d(e,u)||!k(t[u],e[u],r,o))return!1}for(u=0;u<i.length;u++){var f=i[u];if(!k(t[f],e[f],r,o))return!1}return!0}(t,e,r,c,i,o);return i.val1.delete(t),i.val2.delete(e),m}function U(t,e,r,n){for(var i=a(t),s=0;s<i.length;s++){var o=i[s];if(k(e,o,r,n))return t.delete(o),!0}return!1}function F(t){switch(s(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(h(t))return!1}return!0}function j(t,e,r){var n=F(r);return null!=n?n:e.has(n)&&!t.has(n)}function H(t,e,r,n,i){var s=F(r);if(null!=s)return s;var o=e.get(s);return!(void 0===o&&!e.has(s)||!k(n,o,!1,i))&&!t.has(s)&&k(n,o,!1,i)}function B(t,e,r,n,i,s){for(var o=a(t),l=0;l<o.length;l++){var c=o[l];if(k(r,c,i,s)&&k(n,e.get(c),i,s))return t.delete(c),!0}return!1}t.exports={isDeepEqual:function(t,e){return k(t,e,!1)},isDeepStrictEqual:function(t,e){return k(t,e,!0)}}},2356:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;const s=r(1533),o=r(8151),a=r(5636),l=r(2399),c=r(8055),u=r(659);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n<e.length;n++){let i=e[n];i instanceof t.PrecedencePredicate&&(r.push(i),e.splice(n,1),n--)}return r}class r extends t{constructor(t=-1,e=-1,r=!1){super(),this.ruleIndex=t,this.predIndex=e,this.isCtxDependent=r}eval(t,e){let r=this.isCtxDependent?e:void 0;return t.sempred(r,this.ruleIndex,this.predIndex)}hashCode(){let t=a.MurmurHash.initialize();return t=a.MurmurHash.update(t,this.ruleIndex),t=a.MurmurHash.update(t,this.predIndex),t=a.MurmurHash.update(t,this.isCtxDependent?1:0),t=a.MurmurHash.finish(t,3),t}equals(t){return t instanceof r&&(this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent)}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}n([l.Override],r.prototype,"eval",null),n([l.Override],r.prototype,"hashCode",null),n([l.Override],r.prototype,"equals",null),n([l.Override],r.prototype,"toString",null),t.Predicate=r;class h extends t{constructor(t){super(),this.precedence=t}eval(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,r){return e.precpred(r,this.precedence)?t.NONE:void 0}compareTo(t){return this.precedence-t.precedence}hashCode(){let t=1;return t=31*t+this.precedence,t}equals(t){return t instanceof h&&(this===t||this.precedence===t.precedence)}toString(){return"{"+this.precedence+">=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class p extends t{}t.Operator=p;let d=class r extends p{constructor(t,n){super();let i=new s.Array2DHashSet(c.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let o=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));o&&this.opnds.push(o)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&o.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,null==o)return;o!==t.NONE&&i.push(o)}if(!n)return this;if(0===i.length)return t.NONE;let s=i[0];for(let e=1;e<i.length;e++)s=t.and(s,i[e]);return s}toString(){return u.join(this.opnds,"&&")}};n([l.Override],d.prototype,"operands",null),n([l.Override],d.prototype,"equals",null),n([l.Override],d.prototype,"hashCode",null),n([l.Override],d.prototype,"eval",null),n([l.Override],d.prototype,"evalPrecedence",null),n([l.Override],d.prototype,"toString",null),d=n([i(0,l.NotNull),i(1,l.NotNull)],d),t.AND=d;let f=class r extends p{constructor(t,n){super();let i=new s.Array2DHashSet(c.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let o=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)<0&&(e=r):e=r;return e}(e(this.opnds));o&&this.opnds.push(o)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&o.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,486279973)}eval(t,e){for(let r of this.opnds)if(r.eval(t,e))return!0;return!1}evalPrecedence(e,r){let n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,o===t.NONE)return t.NONE;o&&i.push(o)}if(!n)return this;if(0===i.length)return;let s=i[0];for(let e=1;e<i.length;e++)s=t.or(s,i[e]);return s}toString(){return u.join(this.opnds,"||")}};n([l.Override],f.prototype,"operands",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([l.Override],f.prototype,"eval",null),n([l.Override],f.prototype,"evalPrecedence",null),n([l.Override],f.prototype,"toString",null),f=n([i(0,l.NotNull),i(1,l.NotNull)],f),t.OR=f}(h=e.SemanticContext||(e.SemanticContext={}))},2399:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},2431:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;const i=r(2399),s=r(7239),o=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(o.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of s.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},2433:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,o.NotNull),i(2,o.NotNull)],a),e.ContextSensitivityInfo=a},2464:(t,e,r)=>{"use strict";var n=r(8452),i=r(6642);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2468:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;const s=r(9449),o=r(2399);let a=class extends s.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,o.NotNull)],a),e.InputMismatchException=a},2569:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprStaticAnalyzer=void 0;const n=r(5585),i=r(5395),s=r(534),o=r(6684),a={kind:"unknown"};class l{constructor(t){this.typesById=new Map(t.getTypes().map(t=>[t.id,t])),this.relationsByName=new Map;for(const e of t.getRelations()){const t=this.relationsByName.get(e.name);t?t.push(e):this.relationsByName.set(e.name,[e])}}getType(t){return this.typesById.get(t)}getRelations(t){return this.relationsByName.get(t)??[]}isSubtypeOf(t,e){if(t===e)return!0;const r=this.typesById.get(t);return!!r&&r.types.includes(e)}areDisjoint(t,e){if(t===e)return!1;for(const r of this.typesById.values())if(r.types.includes(t)&&r.types.includes(e))return!1;return!0}}function c(t,e){return!(!t||!e)&&t.text===e.text}function u(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?u(r.expr(),e):!!(r instanceof i.Expr8Context&&r.MINUS_TOK())&&(r.expr10().text===e||u(r.expr8(),e))}function h(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?h(r.expr(),e):!!(r instanceof i.Expr11Context&&r.AMP_TOK())&&(r.expr11().text===e||r.expr12().text===e||h(r.expr11(),e)||h(r.expr12(),e))}function p(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?p(r.expr(),e):!!(r instanceof i.Expr8Context&&r.PLUS_TOK())&&(r.expr8().text===e||r.expr10().text===e||p(r.expr8(),e)||p(r.expr10(),e))}function d(t){if(!t)return;let e=t;for(;1===e.childCount;)e=e.getChild(0);if(e instanceof i.Expr5Context&&e.NEG_TOK()){const t=e.expr5();return t?t.text:void 0}return e instanceof i.Expr18Context&&e.LEFT_PAREN_TOK()?d(e.expr()):void 0}class f extends n.AbstractParseTreeVisitor{constructor(t){super(),this.boundScopes=[],this.unresolved=new Set,t&&(this.schema=new l(t))}isBound(t){return this.boundScopes.some(e=>e.has(t))}withBoundScope(t,e){this.boundScopes.push(t);try{return e()}finally{this.boundScopes.pop()}}collectNamesFromList(t,e){e.add((0,s.getIdentifierName)(t.name()));const r=t.nameList();r&&this.collectNamesFromList(r,e)}collectBoundNames(t,e){this.collectNamesFromList(t.quantDecl().nameList(),e);const r=t.quantDeclList();r&&this.collectBoundNames(r,e)}illTypedIfBindsReservedName(t){if(this.schema)for(const e of t)if(this.schema.getType(e)||this.schema.getRelations(e).length>0)return{kind:"ill-typed",reason:`cannot bind variable named '${e}': it is a reserved schema `+(this.schema.getType(e)?"type":"relation")+" name"}}analyze(t){this.unresolved.clear(),this.boundScopes.length=0;const e=this.visit(t);this.boundScopes.length=0,this.collectUnresolvedNames(t);const r=this.unresolved.size>0?{unresolvedNames:Array.from(this.unresolved)}:{};return"bool"===e.kind?e.value?{status:"tautology",reason:"expression folds to literal true",...r}:{status:"unsat",reason:"expression folds to literal false",...r}:"empty"===e.kind?{status:"empty",reason:"expression is provably the empty set",...r}:"ill-typed"===e.kind?{status:"ill-typed",reason:e.reason,...r}:{status:"unknown",...r}}static arityOf(t){return"typed"===t.kind?t.arity:"bool"===t.kind||"num"===t.kind?1:(t.kind,-1)}defaultResult(){return a}static bailIfIllTyped(...t){for(const e of t)if("ill-typed"===e.kind)return e}aggregateResult(t,e){return"ill-typed"===t.kind?t:"ill-typed"===e.kind||"unknown"===t.kind?e:t}visitExpr(t){if(t.LET_TOK()||t.BIND_TOK())return a;const e=t.quant();return e?this.foldQuantifier(t,e):this.visitChildren(t)}foldQuantifier(t,e){const r=t.blockOrBar();if(!r)return a;const n=t.quantDeclList(),i=new Set;if(n){this.collectBoundNames(n,i);const t=this.illTypedIfBindsReservedName(i);if(t)return t}let s=!1,o=t.quantDeclList();for(;o;){const t=o.quantDecl().expr(),e=this.visit(t);if("ill-typed"===e.kind)return e;if("empty"===e.kind){s=!0;break}const r=o.quantDeclList();if(!r)break;o=r}let l=a;r.BAR_TOK()&&r.expr()&&(l=this.withBoundScope(i,()=>this.visit(r.expr())));const c=e.mult(),u=void 0!==e.ALL_TOK(),h=void 0!==e.NO_TOK(),p=void 0!==c?.SOME_TOK(),d=void 0!==c?.ONE_TOK(),f=void 0!==c?.TWO_TOK(),_=void 0!==c?.LONE_TOK();if(s){if(u||h||_)return{kind:"bool",value:!0};if(p||d||f)return{kind:"bool",value:!1}}if("bool"===l.kind)if(l.value){if(u)return{kind:"bool",value:!0}}else{if(h||_)return{kind:"bool",value:!0};if(p||d||f)return{kind:"bool",value:!1}}return a}visitBlock(t){let e={kind:"bool",value:!0};for(const r of t.expr()){const t=this.visit(r);if("ill-typed"===t.kind)return t;if("bool"===t.kind&&!t.value)return t;"bool"!==t.kind&&(e=a)}return e}visitExpr1(t){if(t.OR_TOK()){const e=t.expr1(),r=t.expr1_5(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("bool"===n.kind&&n.value)return n;if("bool"===i.kind&&i.value)return i;if("bool"===n.kind&&"bool"===i.kind)return{kind:"bool",value:n.value||i.value};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!0}:a}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){const e=t.expr1_5(),r=t.expr2(),n=this.visit(e),i=this.visit(r);return f.bailIfIllTyped(n,i)||(c(e,r)?{kind:"bool",value:!1}:"bool"===n.kind&&"bool"===i.kind?{kind:"bool",value:n.value!==i.value}:a)}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){const e=t.expr2(),r=t.expr3(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return{kind:"bool",value:!0};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!1}:"bool"===n.kind&&"bool"===i.kind?{kind:"bool",value:n.value===i.value}:a}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){const e=this.visit(t.expr4()),r=t.expr3();if(t.ELSE_TOK()){const t=this.visit(r[0]),n=this.visit(r[1]);return f.bailIfIllTyped(e,t,n)||("bool"===e.kind?e.value?t:n:a)}const n=r[0],i=this.visit(n);return f.bailIfIllTyped(e,i)||("bool"!==e.kind||e.value?"bool"===e.kind&&e.value||"bool"===i.kind&&i.value?i:a:{kind:"bool",value:!0})}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){const e=t.expr4(),r=t.expr4_5(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("bool"===n.kind&&!n.value)return n;if("bool"===i.kind&&!i.value)return i;if("bool"===n.kind&&"bool"===i.kind)return{kind:"bool",value:n.value&&i.value};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!1}:a}return this.visitChildren(t)}visitExpr5(t){if(t.NEG_TOK()){const e=this.visit(t.expr5());return"ill-typed"===e.kind?e:"bool"===e.kind?{kind:"bool",value:!e.value}:a}return t.ALWAYS_TOK()||t.EVENTUALLY_TOK()||t.AFTER_TOK()||t.BEFORE_TOK()||t.ONCE_TOK()||t.HISTORICALLY_TOK()?a:this.visitChildren(t)}visitExpr6(t){const e=t.compareOp();if(!e)return this.visitChildren(t);const r=void 0!==t.NEG_TOK(),n=(0,o.compareOpKind)(e),i="ni"===n,s=i?"in":n,l=i?t.expr7():t.expr6(),u=i?t.expr6():t.expr7(),h=this.visit(l),p=this.visit(u),d=f.bailIfIllTyped(h,p);if(d)return d;const _=t=>({kind:"bool",value:r?!t:t});if(c(l,u))switch(s){case"=":case"<=":case">=":case"in":return _(!0);case"<":case">":return _(!1)}if("num"===h.kind&&"num"===p.kind)switch(s){case"=":return _(h.value===p.value);case"<":return _(h.value<p.value);case">":return _(h.value>p.value);case"<=":return _(h.value<=p.value);case">=":return _(h.value>=p.value)}if("bool"===h.kind&&"bool"===p.kind&&"="===s)return _(h.value===p.value);const T="num"===h.kind||"bool"===h.kind,y="num"===p.kind||"bool"===p.kind;if("="===s){if("empty"===h.kind&&"empty"===p.kind)return _(!0);if("empty"===h.kind&&y)return _(!1);if(T&&"empty"===p.kind)return _(!1)}if("in"===s){if("empty"===h.kind)return _(!0);if(T&&"empty"===p.kind)return _(!1)}if("="===n||"in"===n||"ni"===n){const t=f.arityOf(i?p:h),e=f.arityOf(i?h:p);if(t>0&&e>0&&t!==e)return{kind:"ill-typed",reason:`arity mismatch in '${n}': left has arity ${t}, right has arity ${e}`}}if(this.schema&&"typed"===h.kind&&"typed"===p.kind&&h.exact&&p.exact){const t=h.columnTypes,e=p.columnTypes;if(t&&e&&t.length===e.length){const r=t.every((t,r)=>this.schema.isSubtypeOf(t,e[r]));if("in"===s&&r)return _(!0)}}return a}visitExpr7(t){const e=this.visit(t.expr8());if("ill-typed"===e.kind)return e;if(t.SET_TOK())return e;if("empty"===e.kind){if(t.NO_TOK())return{kind:"bool",value:!0};if(t.LONE_TOK())return{kind:"bool",value:!0};if(t.SOME_TOK())return{kind:"bool",value:!1};if(t.ONE_TOK())return{kind:"bool",value:!1};if(t.TWO_TOK())return{kind:"bool",value:!1}}return t.NO_TOK()||t.LONE_TOK()||t.SOME_TOK()||t.ONE_TOK()||t.TWO_TOK()?a:e}visitExpr8(t){if(t.MINUS_TOK()){const e=t.expr8(),r=t.expr10(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return"num"===n.kind?{kind:"num",value:0}:{kind:"empty"};if("num"===n.kind&&"num"===i.kind)return{kind:"num",value:n.value-i.value};if("empty"===n.kind)return{kind:"empty"};if("empty"===i.kind)return n;if(h(e,r.text))return{kind:"empty"};if(p(r,e.text))return{kind:"empty"};const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '-': left has arity ${o}, right has arity ${l}`}:a}if(t.PLUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10()),n=f.bailIfIllTyped(e,r);if(n)return n;if("num"===e.kind&&"num"===r.kind)return{kind:"num",value:e.value+r.value};if("empty"===e.kind&&"empty"===r.kind)return{kind:"empty"};if("empty"===e.kind)return r;if("empty"===r.kind)return e;const i=f.arityOf(e),s=f.arityOf(r);return i>0&&s>0&&i!==s?{kind:"ill-typed",reason:`arity mismatch in '+': left has arity ${i}, right has arity ${s}`}:i>0&&s>0?{kind:"typed",arity:i}:a}return this.visitChildren(t)}visitExpr9(t){if(t.CARD_TOK()){const e=this.visit(t.expr9());return"ill-typed"===e.kind?e:"empty"===e.kind?{kind:"num",value:0}:a}return this.visitChildren(t)}visitExpr10(t){if(t.PPLUS_TOK()){const e=t.expr10(),r=t.expr11(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("empty"===n.kind&&"empty"===i.kind)return{kind:"empty"};if("empty"===n.kind)return i;if("empty"===i.kind)return n;const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '++': left has arity ${o}, right has arity ${l}`}:o>0&&l>0?{kind:"typed",arity:o}:a}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){const e=t.arrowOp();if(e.mult().length>0||e.SET_TOK().length>0)return{kind:"ill-typed",reason:`multiplicity annotations in '${e.text}' are declaration and constraint syntax, not part of an expression`};const r=this.visit(t.expr12()),n=this.visit(t.expr13()),i=f.bailIfIllTyped(r,n);if(i)return i;if("empty"===r.kind||"empty"===n.kind)return{kind:"empty"};if("typed"===r.kind&&"typed"===n.kind){const t=r.columnTypes&&n.columnTypes?[...r.columnTypes,...n.columnTypes]:void 0;return{kind:"typed",arity:r.arity+n.arity,columnTypes:t,exact:!0===r.exact&&!0===n.exact}}const s=f.arityOf(r),o=f.arityOf(n);return s>0&&o>0?{kind:"typed",arity:s+o}:a}return this.visitChildren(t)}visitExpr13(t){const e=void 0!==t.SUBT_TOK();if(e||t.SUPT_TOK()){const r=this.visit(t.expr13()),n=this.visit(t.expr14()),i=f.bailIfIllTyped(r,n);if(i)return i;const[s,o]=e?[r,n]:[n,r],l=f.arityOf(s);if(l>1)return{kind:"ill-typed",reason:`the '${e?"<:":":>"}' operator restricts by a set of arity 1, but its ${e?"left":"right"} operand has arity ${l}`};if("empty"===s.kind)return{kind:"empty"};if(1!==l)return a;if("empty"===o.kind)return{kind:"empty"};const c=f.arityOf(o);return c>0?{kind:"typed",arity:c}:a}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){const e=t.expr11(),r=t.expr12(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("empty"===n.kind||"empty"===i.kind)return{kind:"empty"};if("num"===n.kind&&"num"===i.kind&&n.value!==i.value)return{kind:"empty"};if(u(r,e.text))return{kind:"empty"};if(u(e,r.text))return{kind:"empty"};const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '&': left has arity ${o}, right has arity ${l}`}:this.schema&&"typed"===n.kind&&"typed"===i.kind&&n.columnTypes&&i.columnTypes&&n.columnTypes.length===i.columnTypes.length&&n.columnTypes.some((t,e)=>this.schema.areDisjoint(t,i.columnTypes[e]))?{kind:"empty"}:a}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){const e=t.expr14(),r=this.visit(e);if("ill-typed"===r.kind)return r;const n=[];let i=t.exprList();for(;i;)n.push(this.visit(i.expr())),i=i.exprList();return f.bailIfIllTyped(...n)||(o.SUPPORTED_BUILTINS.includes(e.text)?"sum"===e.text&&1===n.length&&"empty"===n[0].kind?{kind:"num",value:0}:a:"empty"===r.kind||n.some(t=>"empty"===t.kind)?{kind:"empty"}:a)}return this.visitChildren(t)}visitExpr15(t){if(t.DOT_TOK()){const e=this.visit(t.expr15()),r=this.visit(t.expr16()),n=f.bailIfIllTyped(e,r);if(n)return n;if("empty"===e.kind||"empty"===r.kind)return{kind:"empty"};const i=f.arityOf(e),s=f.arityOf(r);if(1===i&&1===s)return{kind:"ill-typed",reason:"dot join of two unary expressions produces arity 0"};if(this.schema&&"typed"===e.kind&&"typed"===r.kind&&e.columnTypes&&r.columnTypes&&e.columnTypes.length>0&&r.columnTypes.length>0){const t=e.columnTypes[e.columnTypes.length-1],n=r.columnTypes[0];if(this.schema.areDisjoint(t,n))return{kind:"empty"};const i=[...e.columnTypes.slice(0,-1),...r.columnTypes.slice(1)];if(i.length>0)return{kind:"typed",arity:i.length,columnTypes:i}}return i>0&&s>0?{kind:"typed",arity:i+s-2}:a}return t.LEFT_SQUARE_TOK()?a:this.visitChildren(t)}visitExpr17(t){if(t.TILDE_TOK()||t.EXP_TOK()){const e=this.visit(t.expr17());return"ill-typed"===e.kind?e:"empty"===e.kind?{kind:"empty"}:a}return t.STAR_TOK()||t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()?a:this.visitChildren(t)}visitExpr18(t){if(t.LEFT_PAREN_TOK())return this.visit(t.expr());if(t.const()){const e=t.const();if(e.NONE_TOK())return{kind:"empty"};if(e.number()){const t=Number(e.number().text);return{kind:"num",value:e.MINUS_TOK()?-t:t}}return a}if(t.qualName())return this.visit(t.qualName());if(t.LEFT_CURLY_TOK()){const e=t.quantDeclList(),r=new Set;if(e){let t=e;for(;t;){const e=t.quantDecl().expr(),n=this.visit(e);if("empty"===n.kind)return{kind:"empty"};if("ill-typed"===n.kind)return n;this.collectNamesFromList(t.quantDecl().nameList(),r);const i=t.quantDeclList();if(!i)break;t=i}}const n=this.illTypedIfBindsReservedName(r);if(n)return n;const i=t.blockOrBar();if(i&&i.BAR_TOK()&&i.expr()){const t=this.withBoundScope(r,()=>this.visit(i.expr()));if("ill-typed"===t.kind)return t;if("bool"===t.kind&&!t.value)return{kind:"empty"}}return a}return t.block()?this.visit(t.block()):a}visitName(t){const e=(0,s.getIdentifierName)(t);if("true"===e)return{kind:"bool",value:!0};if("false"===e)return{kind:"bool",value:!1};if(this.schema){const t=this.schema.getType(e);if(t)return{kind:"typed",arity:1,columnTypes:[t.id],exact:!0};const r=this.schema.getRelations(e);if(1===r.length){const t=r[0].types;return{kind:"typed",arity:t.length,columnTypes:t}}if(r.length>1){const t=r[0].types.length;if(r.every(e=>e.types.length===t)){const e=r[0].types.map((t,e)=>r.every(r=>r.types[e]===t)?t:void 0);return e.every(t=>void 0!==t)?{kind:"typed",arity:t,columnTypes:e}:{kind:"typed",arity:t}}return a}}return a}collectUnresolvedNames(t){if(!this.schema)return;if(t instanceof i.NameContext)return void this.recordIfUnresolved((0,s.getIdentifierName)(t));const e=this.asBinder(t);if(e){const t=new Set;let r=e.declList;for(;r;)this.collectUnresolvedNames(r.quantDecl().expr()),this.collectNamesFromList(r.quantDecl().nameList(),t),r=r.quantDeclList();return void(e.body&&this.withBoundScope(t,()=>this.collectUnresolvedNames(e.body)))}for(let e=0;e<t.childCount;e++)this.collectUnresolvedNames(t.getChild(e))}asBinder(t){const e=t instanceof i.ExprContext&&void 0!==t.quant(),r=t instanceof i.Expr18Context&&void 0!==t.LEFT_CURLY_TOK();if(!e&&!r)return;const n=t,s=n.quantDeclList();return s?{declList:s,body:n.blockOrBar()}:void 0}recordIfUnresolved(t){"true"!==t&&"false"!==t&&(this.isBound(t)||o.SUPPORTED_BUILTINS.includes(t)||this.schema.getType(t)||this.schema.getRelations(t).length>0||this.unresolved.add(t))}}e.ForgeExprStaticAnalyzer=f},2593:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;const i=r(2399);class s{syntaxError(t,e,r,n,i,s){}}n([i.Override],s.prototype,"syntaxError",null),e.XPathLexerErrorListener=s},2662:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;const s=r(8151),o=r(9057),a=r(5636),l=r(2399);let c=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t<this._lexerActions.length;t++)!this._lexerActions[t].isPositionDependent||this._lexerActions[t]instanceof o.LexerIndexedCustomAction||(r||(r=this._lexerActions.slice(0)),r[t]=new o.LexerIndexedCustomAction(e,this._lexerActions[t]));return r?new t(r):this}get lexerActions(){return this._lexerActions}execute(t,e,r){let n=!1,i=e.index;try{for(let s of this._lexerActions){if(s instanceof o.LexerIndexedCustomAction){let t=s.offset;e.seek(r+t),s=s.action,n=r+t!==i}else s.isPositionDependent&&(e.seek(i),n=!1);s.execute(t)}}finally{n&&e.seek(i)}}hashCode(){return this.cachedHashCode}equals(e){return e===this||e instanceof t&&this.cachedHashCode===e.cachedHashCode&&s.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,e._lexerActions)}};n([l.NotNull],c.prototype,"_lexerActions",void 0),n([l.NotNull],c.prototype,"lexerActions",null),n([i(0,l.NotNull)],c.prototype,"execute",null),n([l.Override],c.prototype,"hashCode",null),n([l.Override],c.prototype,"equals",null),n([l.NotNull,i(1,l.NotNull)],c,"append",null),c=n([i(0,l.NotNull)],c),e.LexerActionExecutor=c},2666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2682:(t,e,r)=>{"use strict";var n=r(9600),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o,a;arguments.length>=3&&(o=r),a=t,"[object Array]"===i.call(a)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,o):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,o):function(t,e,r){for(var n in t)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,o)}},2781:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2806:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;const i=r(7477),s=r(2399),o=r(7760);class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),s=new u(this.tokens,n,i.length,e);i.push(s)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),s=new c(this.tokens,n,i.length,e);i.push(s)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),s=new h(this.tokens,t,e,i.length,r);i.push(s)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){let e=this.lastRewriteTokenIndexes.get(t);return null==e?-1:e}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),s=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),s<0&&(s=0),null==n||0===n.length)return this.tokens.getText(r);let c=[],u=this.reduceToSingleOperationPerIndex(n),h=s;for(;h<=l&&h<this.tokens.size;){let t=u.get(h);u.delete(h);let e=this.tokens.get(h);null==t?(e.type!==o.Token.EOF&&c.push(String(e.text)),h++):h=t.execute(c)}if(l===this.tokens.size-1)for(let t of u.values())t.index>=this.tokens.size-1&&c.push(t.text.toString());return c.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof h))continue;let n=r,i=this.getKindOfOps(t,c,e);for(let e of i)e.index===n.index?(t[e.instructionIndex]=void 0,n.text=e.text.toString()+(null!=n.text?n.text.toString():"")):e.index>n.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let s=this.getKindOfOps(t,h,e);for(let e of s){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<n.index||e.index>n.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof c))continue;let n=r,i=this.getKindOfOps(t,c,e);for(let e of i)e.index===n.index&&(e instanceof u?(n.text=this.catOpText(e.text,n.text),t[e.instructionIndex]=void 0):e instanceof c&&(n.text=this.catOpText(n.text,e.text),t[e.instructionIndex]=void 0));let s=this.getKindOfOps(t,h,e);for(let r of s)if(n.index!==r.index){if(n.index>=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i<r&&i<t.length;i++){let r=t[i];null!=r&&r instanceof e&&n.push(r)}return n}}e.TokenStreamRewriter=a,a.DEFAULT_PROGRAM_NAME="default",a.PROGRAM_INIT_SIZE=100,a.MIN_TOKEN_INDEX=0;class l{constructor(t,e,r,n){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===n?"":n}execute(t){return this.index}toString(){let t=this.constructor.name,e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}n([s.Override],l.prototype,"toString",null),e.RewriteOperation=l;class c extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==o.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([s.Override],c.prototype,"execute",null);class u extends c{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}n([s.Override],h.prototype,"execute",null),n([s.Override],h.prototype,"toString",null)},2807:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;const i=r(5629),s=r(1862),o=r(7477),a=r(1492),l=r(1088),c=r(6181),u=r(2399),h=r(8831),p=r(7760);class d extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new s.IntegerStack,this._mode=d.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return p.Token.DEFAULT_CHANNEL}static get HIDDEN(){return p.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=p.Token.INVALID_TYPE,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=d.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=p.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof c.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=d.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===p.Token.INVALID_TYPE&&(this._type=t),this._type===d.SKIP)continue t}while(this._type===d.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=d.SKIP}more(){this._type=d.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,p.Token.EOF,void 0,p.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==p.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(o.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case p.Token.EOF:return"<EOF>";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof c.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}d.DEFAULT_MODE=0,d.MORE=-2,d.SKIP=-3,d.MIN_CHAR_VALUE=0,d.MAX_CHAR_VALUE=1114111,n([u.Override],d.prototype,"nextToken",null),n([u.Override],d.prototype,"tokenFactory",null),n([u.Override],d.prototype,"inputStream",null),n([u.Override],d.prototype,"sourceName",null),n([u.Override],d.prototype,"line",null),n([u.Override],d.prototype,"charPositionInLine",null),e.Lexer=d},2813:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;const i=r(2399);class s{constructor(){this.stateNumber=s.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof s&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"toString",null),e.ATNState=s,function(t){t.INVALID_STATE_NUMBER=-1}(s=e.ATNState||(e.ATNState={}))},2962:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},3003:t=>{"use strict";t.exports=function(t){return t!=t}},3053:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;const s=r(3357),o=r(2399),a=r(1072);let l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return s.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([o.Override],l.prototype,"serializationType",null),n([o.Override,o.NotNull],l.prototype,"label",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.RangeTransition=l},3074:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;const s=r(1533),o=r(3258),a=r(8590),l=r(9709),c=r(324),u=r(2399),h=r(8055),p=r(4016),d=r(7435);let f=class{constructor(t,e=0){if(this.states=new s.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof p.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new o.ATNConfigSet),this.s0full=new l.DFAState(new o.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=d.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new c.LexerDFASerializer(this).toString():""}};n([u.NotNull],f.prototype,"states",void 0),n([u.NotNull],f.prototype,"atnStartState",void 0),n([u.NotNull],f.prototype,"atn",void 0),f=n([i(0,u.NotNull)],f),e.DFA=f},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;const n=r(8016);class i extends n.DecisionState{}e.BlockStartState=i},3126:(t,e,r)=>{"use strict";var n=r(6743),i=r(9675),s=r(76),o=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return o(n,s,t)}},3144:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),s=r(76),o=r(7119);t.exports=o||n.call(s,i)},3161:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;const s=r(2962),o=r(9202),a=r(1533),l=r(5754),c=r(4274),u=r(8880),h=r(3258),p=r(6298),d=r(7037),f=r(5369),_=r(6889),T=r(1405),y=r(8016),O=r(9709),x=r(8240),g=r(7477),E=r(1492),m=r(2399),v=r(3575),S=r(755),N=r(8055),R=r(1097),b=r(8859),A=r(6409),C=r(333),L=r(8840),I=r(3334),P=r(2356),w=r(1384),K=r(4364),k=r(7760),D=r(7435),M=r(4148),U=-2147483648;let F=class t extends p.ATNSimulator{constructor(t,e){super(t),this.predictionMode=C.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let s,o=this.atn.decisionToDFA[r];if(M(null!=o),this.optimize_ll1&&!o.isPrecedenceDfa&&!o.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=o,this.force_global_context?i=!0:this.always_try_local_context||(i=i||o.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==C.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=R.ParserRuleContext.emptyContext()),o.isEmpty||(s=this.getStartState(o,e,n,i)),null==s&&(null==n&&(n=R.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+o.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),s=this.computeStartState(o,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(o,e,l,s);return t.debug&&console.log("DFA after predictATN: "+o.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);if(null==e)return;return new K.SimulatorState(r,e,!1,r)}if(null==t.s0)return;return new K.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,s=r;for(M(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=s&&null!=i&&i.isContextSensitive;)s=this.skipTailCalls(s),i=i.getContextTarget(this.getReturnState(s)),s.isEmpty?M(null==i||!i.isContextSensitive):s=s.parent;return null!=i?new K.SimulatorState(r,i,n,s):void 0}execDFA(e,r,n,i){let s=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+s.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let o=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+o.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;o.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=o.getContextTarget(this.getReturnState(l))),null==t){let t=new K.SimulatorState(i.outerContext,o,i.useContext,l);return this.execATN(e,r,n,t)}M(null!=l),l=l.parent,o=t}if(this.isAcceptState(o,i.useContext)){null!=o.predicates?t.dfa_debug&&console.log("accept "+o):t.dfa_debug&&console.log("accept; predict "+o.prediction+" in state "+o.stateNumber);break}M(!this.isAcceptState(o,i.useContext));let c=this.getExistingTargetState(o,a);if(null==c){let c;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=g.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+o.stateNumber)}let u=new K.SimulatorState(s,o,i.useContext,l);return c=this.execATN(e,r,n,u),t.dfa_debug&&console.log("back from DFA update, alt="+c+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+c),c}if(c===p.ATNSimulator.ERROR){let t=new K.SimulatorState(s,o,i.useContext,l);return this.handleNoViableAlt(r,n,t)}o=c,this.isAcceptState(o,i.useContext)||a===E.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=o.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!o.configs.dipsIntoOuterContext&&o.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;M(!i.useContext);let a=o.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,s,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new K.SimulatorState(s,o,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,s,!0)}let c=o.predicates;if(null!=c){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(c,s,this.reportAmbiguities&&this.predictionMode===C.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,s,o.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,o,n,t,o.configs.isExactConflict,i,o.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+o.prediction),o.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==C.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let s=i.outerContext,o=i.useContext,a=r.LA(1),l=i,u=new A.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,u);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),p.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(M(h.isAcceptState||h.prediction===c.ATN.INVALID_ALT_NUMBER),M(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,o)){let l=h.configs.conflictingAlts,u=null==l?h.prediction:c.ATN.INVALID_ALT_NUMBER;if(u!==c.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,u)}o&&this.always_try_local_context&&this.reportContextSensitivity(e,u,i,n,r.index)}u=h.prediction;let p=null!=l&&this.userWantsCtxSensitive;if(p&&(p=!o&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,s,p||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,s,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(p){M(!o),M(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+s);let a=this.computeStartState(e,s,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),u=l.nextSetBit(0)),u}l=i,a!==E.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new _.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof L.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let s=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof L.RuleStopState)&&s.add(t);let o=this.getPredsForAmbigAlts(n,s,i);if(null!=o){let i=this.getPredicatePredictions(n,o);if(null!=i){let n=t.index;try{t.seek(e);let n=this.evalSemanticContext(i,r.outerContext,!1);if(!n.isEmpty)return n.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,s=e.remainingOuterContext,o=e.s0;if(i)for(;o.isContextSymbol(r);){let t;if(null!=s&&(s=this.skipTailCalls(s),t=o.getContextTarget(this.getReturnState(s))),null==t)break;M(null!=s),s=s.parent,o=t}if(M(!this.isAcceptState(o,i)),this.isAcceptState(o,i))return new K.SimulatorState(e.outerContext,o,i,s);let a=o,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,s,r,i,n);l=e[0],s=e[1]}return l!==p.ATNSimulator.ERROR?(M(!i||!l.configs.dipsIntoOuterContext),new K.SimulatorState(e.outerContext,l,i,s)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,s,o){let a,l,u=r.configs.toArray(),d=new h.ATNConfigSet;do{let e=!s||null!=n;e||(d.isOutermostConfigSet=!0);let r,p=new h.ATNConfigSet;for(let e of u){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof L.RuleStopState){M(e.context.isEmpty),(s&&!e.reachesIntoOuterContext||i===E.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t<n;t++){let r=e.state.getOptimizedTransition(t),n=this.getReachableTarget(e,r,i);null!=n&&p.add(e.transform(n,!1),o)}}if(this.optimize_unique_closure&&null==r&&i!==k.Token.EOF&&p.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER){p.isOutermostConfigSet=d.isOutermostConfigSet,d=p;break}let f=!1,_=i===k.Token.EOF;if(this.closure(p,d,f,e,o,_),l=d.dipsIntoOuterContext,i===E.IntStream.EOF&&(d=this.removeAllConfigsNotInRuleStopState(d,o)),!(null==r||s&&C.PredictionMode.hasConfigInRuleStopState(d))){M(r.length>0);for(let t of r)d.add(t,o)}if(s&&l){d.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new x.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==b.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e<u.length;e++)u[e]=u[e].appendContext(t,o)}}while(s&&l);return d.isEmpty?(this.setDFAEdge(r,i,p.ATNSimulator.ERROR),[p.ATNSimulator.ERROR,n]):[this.addDFAEdge(e,r,i,a,d,o),n]}removeAllConfigsNotInRuleStopState(t,e){if(C.PredictionMode.allConfigsInRuleStopStates(t))return t;let r=new h.ATNConfigSet;for(let n of t)n.state instanceof L.RuleStopState&&r.add(n,e);return r}computeStartState(t,e,r){let n=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,r):r?t.s0full:t.s0;if(null!=n){if(!r)return new K.SimulatorState(e,n,r,e);n.setContextSensitive(this.atn)}t.decision;let i=t.atnStartState,s=0,o=e,a=r?b.PredictionContext.EMPTY_FULL:b.PredictionContext.EMPTY_LOCAL,l=new A.PredictionContextCache;if(r){if(!this.enable_global_context_dfa)for(;null!=o;)o.isEmpty?(s=b.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),a=a.appendSingleContext(s,l),o=o.parent);for(;null!=n&&n.isContextSensitive&&null!=o;){let t;if(o=this.skipTailCalls(o),o.isEmpty?(t=n.getContextTarget(b.PredictionContext.EMPTY_FULL_STATE_KEY),s=b.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),t=n.getContextTarget(s),a=a.appendSingleContext(s,l),o=o.parent),null==t)break;n=t}}if(null!=n&&!n.isContextSensitive)return new K.SimulatorState(e,n,r,o);let c=new h.ATNConfigSet;for(;;){let p=new h.ATNConfigSet,d=i.numberOfTransitions;for(let t=0;t<d;t++){let e=i.transition(t).target;p.add(u.ATNConfig.create(e,t+1,a))}let f=null!=o;f||(c.isOutermostConfigSet=!0);let _=!0;this.closure(p,c,_,f,l,!1);let T,y=c.dipsIntoOuterContext;if(r&&!this.enable_global_context_dfa){n=this.addDFAState(t,c,l);break}if(null==n?t.isPrecedenceDfa?(c=this.applyPrecedenceFilter(c,e,l),T=this.addDFAState(t,c,l),t.setPrecedenceStartState(this._parser.precedence,r,T)):(T=this.addDFAState(t,c,l),r?t.s0full?T=t.s0full:t.s0full=T:t.s0?T=t.s0:t.s0=T):(t.isPrecedenceDfa&&(c=this.applyPrecedenceFilter(c,e,l)),T=this.addDFAState(t,c,l),n.setContextTarget(s,T)),n=T,!r||!y)break;T.setContextSensitive(this.atn),c.clear(),o=this.skipTailCalls(o);let O=this.getReturnState(o);o=o.isEmpty?void 0:o.parent,O!==b.PredictionContext.EMPTY_FULL_STATE_KEY&&(a=a.appendSingleContext(O,l)),s=O}return new K.SimulatorState(e,n,r,o)}applyPrecedenceFilter(t,e,r){let n=new Map,i=new h.ATNConfigSet;for(let s of t){if(1!==s.alt)continue;let t=s.semanticContext.evalPrecedence(this._parser,e);null!=t&&(n.set(s.state.stateNumber,s.context),t!==s.semanticContext?i.add(s.transform(s.state,!1,t),r):i.add(s,r))}for(let e of t)if(1!==e.alt){if(!e.isPrecedenceFilterSuppressed){let t=n.get(e.state.stateNumber);if(null!=t&&t.equals(e.context))continue}i.add(e,r)}return i}getReachableTarget(t,e,r){if(e.matches(r,0,this.atn.maxTokenType))return e.target}predicateDFAState(e,r,n){let i=this.getConflictingAltsFromConfigSet(r);if(!i)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");t.debug&&console.log("predicateDFAState "+e);let s,o=this.getPredsForAmbigAlts(i,r,n);return null!=o&&(s=this.getPredicatePredictions(i,o),e.predicates=s),s}getPredsForAmbigAlts(e,r,n){let i=new Array(n+1),s=i.length;for(let t of r)e.get(t.alt)&&(i[t.alt]=P.SemanticContext.or(i[t.alt],t.semanticContext));let o=0;for(let t=0;t<s;t++)null==i[t]?i[t]=P.SemanticContext.NONE:i[t]!==P.SemanticContext.NONE&&o++;let a=i;return 0===o&&(a=void 0),t.debug&&console.log("getPredsForAmbigAlts result "+(a?l.Arrays.toString(a):"undefined")),a}getPredicatePredictions(t,e){let r=[],n=!1;for(let i=1;i<e.length;i++){let s=e[i];M(null!=s),null!=t&&t.get(i)&&s===P.SemanticContext.NONE?r.push(new O.DFAState.PredPrediction(s,i)):s!==P.SemanticContext.NONE&&(n=!0,r.push(new O.DFAState.PredPrediction(s,i)))}if(n)return r}evalSemanticContext(e,r,n){let i=new _.BitSet;for(let s of e){if(s.pred===P.SemanticContext.NONE){if(i.set(s.alt),!n)break;continue}let e=this.evalSemanticContextImpl(s.pred,r,s.alt);if((t.debug||t.dfa_debug)&&console.log("eval pred "+s+"="+e),e&&((t.debug||t.dfa_debug)&&console.log("PREDICT "+s.alt),i.set(s.alt),!n))break}return i}evalSemanticContextImpl(t,e,r){return t.eval(this._parser,e)}closure(t,e,r,n,i,s){null==i&&(i=A.PredictionContextCache.UNCACHED);let o=t,l=new a.Array2DHashSet(N.ObjectEqualityComparator.INSTANCE);for(;o.size>0;){let t=new h.ATNConfigSet;for(let a of o)this.closureImpl(a,e,t,l,r,n,i,0,s);o=t}}closureImpl(e,r,n,i,s,a,l,c,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof L.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===b.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,b.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&b.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,o=e.context.size-(t?1:0);for(let t=0;t<o;t++){let o=e.context.getParent(t),p=this.atn.states[e.context.getReturnState(t)],d=u.ATNConfig.create(p,e.alt,o,e.semanticContext);d.outerContextDepth=e.outerContextDepth,d.isPrecedenceFilterSuppressed=e.isPrecedenceFilterSuppressed,M(c>U),this.closureImpl(d,r,n,i,s,a,l,c-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,b.PredictionContext.EMPTY_LOCAL)}let p=e.state;p.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let u=0;u<p.numberOfOptimizedTransitions;u++){if(0===u&&p.stateType===d.ATNStateType.STAR_LOOP_ENTRY&&p.precedenceRuleDecision&&!e.context.hasEmpty){let t=p,r=!0;for(let n=0;n<e.context.size;n++)if(!t.precedenceLoopbackStates.get(e.context.getReturnState(n))){r=!1;break}if(r)continue}let f=p.getOptimizedTransition(u),_=!(f instanceof o.ActionTransition)&&s,T=this.getEpsilonTarget(e,f,_,0===c,l,h);if(null!=T){if(f instanceof I.RuleTransition&&null!=n&&!s){n.add(T,l);continue}let o=c;if(e.state instanceof L.RuleStopState){if(null!=this.dfa&&this.dfa.isPrecedenceDfa&&f.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(T.isPrecedenceFilterSuppressed=!0),T.outerContextDepth=T.outerContextDepth+1,!i.add(T))continue;M(o>U),o--,t.debug&&console.log("dips into outer ctx: "+T)}else if(f instanceof I.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)?o>=0&&o++:(M(T.context===e.context),0===o&&(o--,!this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)&&(T.outerContextDepth=T.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(T))continue;this.closureImpl(T,r,n,i,_,a,l,o,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,n,i,s){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return s&&e.matches(k.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=P.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}predTransition(e,r,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=P.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,s=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,s.stateNumber):e.context.getChild(s.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,s=new _.BitSet,o=n[0].alt;s.set(o);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==o)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new _.BitSet;let t=o;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=o;for(let r of n){let n=r.state.nonStopStateNumber,s=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=o}else if(s!==e){if(s!==a.nextSetBit(e+1)){i=!1;break}e=s}}}l=n[0].state.nonStopStateNumber;let u=0,h=0,p=n[0].context;for(let t=1;t<n.length;t++){let e=n[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,n[t].context)}for(let t=h+1;t<n.length;t++){let e=n[t],a=e.state;if(s.set(e.alt),a.nonStopStateNumber!==l){l=a.nonStopStateNumber,u=t,h=t,p=e.context;for(let t=u+1;t<n.length;t++){let e=n[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,e.context)}t=h;continue}let c=e.context,d=e.alt,f=t;for(let t=f+1;t<n.length;t++){let e=n[t];if(e.alt!==d)break;if(e.state.nonStopStateNumber!==l)break;f=t,c=r.join(c,e.context)}t=f;let _=r.join(p,c);if(!p.equals(_))return;i=i&&p.equals(c)}return new T.ConflictInfo(s,i)}getConflictingAltsFromConfigSet(t){let e=t.conflictingAlts;return null==e&&t.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER&&(e=new _.BitSet,e.set(t.uniqueAlt)),e}getTokenName(t){if(t===k.Token.EOF)return"EOF";let e=(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(t);return e===String(t)?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof w.SetTransition&&(e=(r instanceof v.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new S.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=c.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===c.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return c.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof L.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,s,o){M(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,s,o);if(null!=i)for(let t of i.toArray()){if(t===b.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,o),M(t!==b.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){null!=t&&t.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==b.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return M(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let o=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==c.ATN.INVALID_ALT_NUMBER)o.acceptStateInfo=new s.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(o.acceptStateInfo=new s.AcceptStateInfo(t.nextSetBit(0)))}if(o.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(o,r,a.numberOfTransitions),!i)return o;let u=e.addState(o);return t.debug&&u===o&&console.log("adding new DFA state: "+o),u}createDFAState(t,e){return new O.DFAState(e)}reportAttemptingFullContext(e,r,n,i,s){if(t.debug||t.retry_debug){let t=g.Interval.of(i,s);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,s,r,n)}}reportContextSensitivity(e,r,n,i,s){if(t.debug||t.retry_debug){let t=g.Interval.of(i,s);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,s,r,n)}}reportAmbiguity(e,r,n,i,s,o,a){if(t.debug||t.retry_debug){let t=g.Interval.of(n,i);console.log("reportAmbiguity "+o+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,s,o,a)}}getReturnState(t){return t.isEmpty?b.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(M(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};F.debug=!1,F.dfa_debug=!1,F.retry_debug=!1,F.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([m.NotNull],F.prototype,"predictionMode",void 0),n([m.NotNull],F.prototype,"getPredictionMode",null),n([i(0,m.NotNull)],F.prototype,"setPredictionMode",null),n([m.Override],F.prototype,"reset",null),n([i(0,m.NotNull)],F.prototype,"adaptivePredict",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],F.prototype,"getStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(3,m.NotNull)],F.prototype,"execDFA",null),n([i(0,m.NotNull),i(1,m.NotNull),i(3,m.NotNull)],F.prototype,"execATN",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"handleNoViableAlt",null),n([i(0,m.NotNull)],F.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"computeTargetState",null),n([m.NotNull,i(0,m.NotNull)],F.prototype,"removeAllConfigsNotInRuleStopState",null),n([m.NotNull],F.prototype,"computeStartState",null),n([m.NotNull,i(0,m.NotNull)],F.prototype,"applyPrecedenceFilter",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getReachableTarget",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getPredsForAmbigAlts",null),n([i(0,m.NotNull)],F.prototype,"evalSemanticContext",null),n([i(0,m.NotNull)],F.prototype,"evalSemanticContextImpl",null),n([i(1,m.NotNull),i(4,m.Nullable)],F.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.Nullable),i(3,m.NotNull),i(6,m.NotNull)],F.prototype,"closureImpl",null),n([m.NotNull],F.prototype,"getRuleName",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getEpsilonTarget",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"actionTransition",null),n([m.Nullable,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"precedenceTransition",null),n([m.Nullable,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"predTransition",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(2,m.Nullable)],F.prototype,"ruleTransition",null),n([i(0,m.NotNull)],F.prototype,"isConflicted",null),n([m.NotNull],F.prototype,"getTokenName",null),n([i(0,m.NotNull)],F.prototype,"dumpDeadEndConfigs",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],F.prototype,"noViableAlt",null),n([i(0,m.NotNull)],F.prototype,"getUniqueAlt",null),n([i(0,m.NotNull)],F.prototype,"configWithAltAtStopState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(4,m.NotNull)],F.prototype,"addDFAEdge",null),n([i(0,m.Nullable),i(2,m.Nullable)],F.prototype,"setDFAEdge",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"addDFAContextState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"addDFAState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"createDFAState",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"reportAttemptingFullContext",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"reportContextSensitivity",null),n([i(0,m.NotNull),i(5,m.NotNull),i(6,m.NotNull)],F.prototype,"reportAmbiguity",null),F=n([i(0,m.NotNull)],F),e.ParserATNSimulator=F},3196:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,s){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},3258:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;const i=r(3907),s=r(1533),o=r(8151),a=r(4274),l=r(8880),c=r(6889),u=r(2399),h=r(8055),p=r(8859),d=r(6409),f=r(2356),_=r(4148),T=r(659);class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function O(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class x{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=O(),this.unmerged=[]):(this.mergedConfigs=O(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=O(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new c.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");_(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new s.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new x(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;_(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=d.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=p.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;i<this.unmerged.length;i++){let s=this.unmerged[i];if(this.canMerge(t,n,s)){s.outerContextDepth=Math.max(s.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(s.isPrecedenceFilterSuppressed=!0);let o=p.PredictionContext.join(s.context,t.context,e);return this.updatePropertiesForMergedConfig(t),s.context!==o&&(s.context=o,r&&(this.mergedConfigs.put(n,s),this.unmerged.splice(i,1)),!0)}}return this.configs.push(t),r?this.mergedConfigs.put(n,t):this.unmerged.push(t),this.updatePropertiesForAddedConfig(t),!0}updatePropertiesForMergedConfig(t){this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,_(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(t){1===this.configs.length?this._uniqueAlt=t.alt:this._uniqueAlt!==t.alt&&(this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!f.SemanticContext.NONE.equals(t.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,_(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(t,e,r){return t.state.stateNumber===r.state.stateNumber&&e.alt===r.alt&&t.semanticContext.equals(r.semanticContext)}getKey(t){return{state:t.state.stateNumber,alt:t.alt}}containsAll(t){for(let e of t){if(!(e instanceof l.ATNConfig))return!1;if(!this.contains(e))return!1}return!0}addAll(t,e){this.ensureWritable();let r=!1;for(let n of t)this.add(n,e)&&(r=!0);return r}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(t){return this===t||t instanceof x&&this.outermostConfigSet===t.outermostConfigSet&&T.equals(this._conflictInfo,t._conflictInfo)&&o.ArrayEqualityComparator.INSTANCE.equals(this.configs,t.configs)}hashCode(){if(this.isReadOnly&&-1!==this.cachedHashCode)return this.cachedHashCode;let t=1;return t=5*t^(this.outermostConfigSet?1:0),t=5*t^o.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=t),t}toString(t){null==t&&(t=!1);let e="",r=this.configs.slice(0);r.sort((t,e)=>t.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString())),e+="[";for(let n=0;n<r.length;n++)n>0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([u.NotNull],x.prototype,"getRepresentedAlternatives",null),n([u.Override],x.prototype,"size",null),n([u.Override],x.prototype,"isEmpty",null),n([u.Override],x.prototype,"contains",null),n([u.Override],x.prototype,Symbol.iterator,null),n([u.Override],x.prototype,"toArray",null),n([u.Override],x.prototype,"containsAll",null),n([u.Override],x.prototype,"clear",null),n([u.Override],x.prototype,"equals",null),n([u.Override],x.prototype,"hashCode",null),e.ATNConfigSet=x},3274:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;const n=r(534),i=r(5577);function s(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function o(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t);return new i.Block(e,r,n,o,[])}function a(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t);return new i.Expr(e,r,n,o,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){const{startLine:e,startColumn:r,endLine:n,endColumn:a}=s(t),l=this.getAllNames(t.nameList()),c=t.mult()?.toStringTree(),u=t.sigExt()?.toStringTree(),h=t.block(),p=h?o(h):void 0;for(const t of l){let s=new i.Sig(e,r,n,a,t,p,u,c);this._sigs.push(s)}}exitPredDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=(0,n.getIdentifierName)(t.name()),u=t.paraDecls(),h=u?o(u):void 0;let p=o(t.block()),d=new i.Predicate(e,r,a,l,c,h,p);this._predicates.push(d)}exitFunDecl(t){const{startLine:e,startColumn:r,endLine:i,endColumn:o}=s(t),a=(0,n.getIdentifierName)(t.name());let l=new Function(e,r,i,o,a);this._functions.push(l)}exitTestDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=t.name(),u=c?(0,n.getIdentifierName)(c):Math.random().toString(36).substring(7),h=t.block(),p=h?o(h):void 0,d=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),_=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown";let T=new i.Test(e,r,a,l,u,_,p,f,d);this._tests.push(T)}exitSatisfiabilityDecl(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t),l=a(t.expr()),c=t.scope()?.toStringTree(),u=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",p=new i.SatisfiabilityAssertionTest(e,r,n,o,l,h,u,c);this._satisfiabilityAssertions.push(p)}exitPropertyDecl(t){const{startLine:e,startColumn:r,endLine:o,endColumn:l}=s(t),c=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===c)throw new Error("Property relation must be either necessary or sufficient.");const u=a(t.expr()),h=(0,n.getIdentifierName)(t.name()),p=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),f=new i.AssertionTest(e,r,o,l,h,u,c,d,p);this._assertions.push(f)}exitQuantifiedPropertyDecl(t){const{startLine:e,startColumn:r,endLine:l,endColumn:c}=s(t),u=!!t.DISJ_TOK(),h=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===h)throw new Error("Property relation must be either necessary or sufficient.");const p=(0,n.getIdentifierName)(t.name()),d=a(t.expr());let f=t.exprList(),_=f?o(f):void 0;const T=t.scope()?.toStringTree(),y=t.bounds()?.toStringTree(),O=t.quantDeclList(),x=O?o(O):void 0;let g=new i.QuantifiedAssertionTest(e,r,l,c,p,d,h,u,x,y,T,_);this._quantifiedAssertions.push(g)}exitConsistencyDecl(t){const{startLine:e,startColumn:r,endLine:o,endColumn:l}=s(t);let c=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===c)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let u="consistent"===c;const h=(0,n.getIdentifierName)(t.name()),p=a(t.expr()),d=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),_=new i.ConsistencyAssertionTest(e,r,o,l,h,p,u,f,d);this._consistencyAssertions.push(_)}exitExampleDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=(0,n.getIdentifierName)(t.name()),u=o(t.expr()),h=o(t.bounds());let p=new i.Example(e,r,a,l,c,u,h);this._examples.push(p)}getAllNames(t){const e=[];return function t(r){r.name()&&e.push(r.name());const n=r.nameList();n&&t(n)}(t),e.map(t=>(0,n.getIdentifierName)(t))}}},3303:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;const s=r(8291),o=r(2399);let a=class extends s.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([o.NotNull],a.prototype,"_tokenName",void 0),n([o.NotNull],a.prototype,"tokenName",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.TokenTagToken=a},3334:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([s.NotNull],a.prototype,"followState",void 0),n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),a=n([i(0,s.NotNull),i(3,s.NotNull)],a),e.RuleTransition=a},3357:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;const s=r(8151),o=r(8240),a=r(7477),l=r(2807),c=r(5636),u=r(2399),h=r(7760);class p{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===p._COMPLETE_CHAR_SET&&(p._COMPLETE_CHAR_SET=p.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),p._COMPLETE_CHAR_SET.setReadonly(!0)),p._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==p._EMPTY_SET&&(p._EMPTY_SET=new p,p._EMPTY_SET.setReadonly(!0)),p._EMPTY_SET}static of(t,e=t){let r=new p;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.b<t.a)){for(let e=0;e<this._intervals.length;e++){let r=this._intervals[e];if(t.equals(r))return;if(t.adjacent(r)||!t.disjoint(r)){let n=t.union(r);for(this._intervals[e]=n;e<this._intervals.length-1;){e++;let t=this._intervals[e];if(!n.adjacent(t)&&n.disjoint(t))break;this._intervals.splice(e,1),e--,this._intervals[e]=n.union(t)}return}if(t.startsBeforeDisjoint(r))return void this._intervals.splice(e,0,t)}this._intervals.push(t)}}static or(t){let e=new p;for(let r of t)e.addAll(r);return e}addAll(t){if(null==t)return this;if(t instanceof p){let e=t,r=e._intervals.length;for(let t=0;t<r;t++){let r=e._intervals[t];this.add(r.a,r.b)}}else for(let e of t.toArray())this.add(e);return this}complementRange(t,e){return this.complement(p.of(t,e))}complement(t){if(t.isNil)return p.EMPTY_SET;let e;return t instanceof p?e=t:(e=new p,e.addAll(t)),e.subtract(this)}subtract(t){if(null==t||t.isNil)return new p(this._intervals);if(t instanceof p)return p.subtract(this,t);let e=new p;return e.addAll(t),p.subtract(this,e)}static subtract(t,e){if(t.isNil)return new p;let r=new p(t._intervals);if(e.isNil)return r;let n=0,i=0;for(;n<r._intervals.length&&i<e._intervals.length;){let t,s,o=r._intervals[n],l=e._intervals[i];if(l.b<o.a)i++;else if(l.a>o.b)n++;else if(l.a>o.a&&(t=new a.Interval(o.a,l.a-1)),l.b<o.b&&(s=new a.Interval(l.b+1,o.b)),t){if(s){r._intervals[n]=t,r._intervals.splice(n+1,0,s),n++,i++;continue}r._intervals[n]=t,n++}else s?(r._intervals[n]=s,i++):r._intervals.splice(n,1)}return r}or(t){let e=new p;return e.addAll(this),e.addAll(t),e}and(t){if(t.isNil)return new p;let e,r=this._intervals,n=t._intervals,i=r.length,s=n.length,o=0,a=0;for(;o<i&&a<s;){let t=r[o],i=n[a];t.startsBeforeDisjoint(i)?o++:i.startsBeforeDisjoint(t)?a++:t.properlyContains(i)?(e||(e=new p),e.addRange(t.intersection(i)),a++):i.properlyContains(t)?(e||(e=new p),e.addRange(t.intersection(i)),o++):t.disjoint(i)||(e||(e=new p),e.addRange(t.intersection(i)),t.startsAfterNonDisjoint(i)?a++:i.startsAfterNonDisjoint(t)&&o++)}return e||new p}contains(t){let e=0,r=this._intervals.length-1;for(;e<=r;){let n=e+r>>1,i=this._intervals[n],s=i.a;if(i.b<t)e=n+1;else{if(!(s>t))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=c.MurmurHash.initialize();for(let e of this._intervals)t=c.MurmurHash.update(t,e.a),t=c.MurmurHash.update(t,e.b);return t=c.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof p&&s.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;i===s?i===h.Token.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(s)+"'":i+".."+s}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;if(i===s)e+=this.elementName(t,i);else for(let r=i;r<=s;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"<EOF>":e===h.Token.EPSILON?"<EPSILON>":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;r<e;r++){let e=this._intervals[r];t+=e.b-e.a+1}return t}toIntegerList(){let t=new o.IntegerList(this.size),e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.add(e)}return t}toSet(){let t=new Set;for(let e of this._intervals){let r=e.a,n=e.b;for(let e=r;e<=n;e++)t.add(e)}return t}toArray(){let t=new Array,e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.push(e)}return t}remove(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;if(t<n)break;if(t===n&&t===i){this._intervals.splice(r,1);break}if(t===n){this._intervals[r]=a.Interval.of(e.a+1,e.b);break}if(t===i){this._intervals[r]=a.Interval.of(e.a,e.b-1);break}if(t>n&&t<i){let n=e.b;this._intervals[r]=a.Interval.of(e.a,t-1),this.add(t+1,n)}}}get isReadonly(){return this.readonly}setReadonly(t){if(this.readonly&&!t)throw new Error("can't alter readonly IntervalSet");this.readonly=t}}n([u.Override],p.prototype,"addAll",null),n([u.Override],p.prototype,"complement",null),n([u.Override],p.prototype,"subtract",null),n([u.Override],p.prototype,"or",null),n([u.Override],p.prototype,"and",null),n([u.Override],p.prototype,"contains",null),n([u.Override],p.prototype,"isNil",null),n([u.Override],p.prototype,"hashCode",null),n([u.Override],p.prototype,"equals",null),n([i(0,u.NotNull)],p.prototype,"toStringVocabulary",null),n([u.NotNull,i(0,u.NotNull)],p.prototype,"elementName",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"remove",null),n([u.NotNull],p,"of",null),n([u.NotNull],p,"subtract",null),e.IntervalSet=p},3361:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;const s=r(2813),o=r(7037),a=r(2262),l=r(2468),c=r(3357),u=r(755),h=r(8859),p=r(7760),d=r(2399);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=s.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof u.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new c.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=s.ATNState.INVALID_STATE_NUMBER);if(n.contains(p.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case o.ATNStateType.BLOCK_START:case o.ATNStateType.STAR_BLOCK_START:case o.ATNStateType.PLUS_BLOCK_START:case o.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case o.ATNStateType.PLUS_LOOP_BACK:case o.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===p.Token.EOF?"<EOF>":n.getTextFromRange(e.startToken,e.getOffendingToken()):"<unknown input>";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=p.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===p.Token.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let s=r,o=t.inputStream.tryLT(-1);return s.type===p.Token.EOF&&null!=o&&(s=o),this.constructToken(t.inputStream.tokenSource,i,e,s)}constructToken(t,e,r,n){let i=t.tokenFactory,s=n.tokenSource,o=s?s.inputStream:void 0;return i.create({source:t,stream:o},e,r,p.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"<no token>";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===p.Token.EOF?"<EOF>":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new c.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(p.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==p.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([d.Override],f.prototype,"reset",null),n([i(0,d.NotNull)],f.prototype,"beginErrorCondition",null),n([d.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,d.NotNull)],f.prototype,"endErrorCondition",null),n([d.Override],f.prototype,"reportMatch",null),n([d.Override],f.prototype,"reportError",null),n([i(0,d.NotNull)],f.prototype,"notifyErrorListeners",null),n([d.Override],f.prototype,"recover",null),n([d.Override],f.prototype,"sync",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,d.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,d.NotNull)],f.prototype,"reportMissingToken",null),n([d.Override],f.prototype,"recoverInline",null),n([i(0,d.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,d.NotNull)],f.prototype,"singleTokenDeletion",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getMissingSymbol",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,d.NotNull)],f.prototype,"getSymbolText",null),n([i(0,d.NotNull)],f.prototype,"getSymbolType",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"escapeWSAndQuote",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},3530:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},3575:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;const s=r(2399),o=r(1384);let a=class extends o.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"matches",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull),i(1,s.Nullable)],a),e.NotSetTransition=a},3628:(t,e,r)=>{"use strict";var n=r(8648),i=r(1064),s=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:s?function(t){return s(t)}:null},3651:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,s){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},3696:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3714:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;const i=r(2399),s=r(1097);class o extends s.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],o.prototype,"ruleIndex",null),e.InterpreterRuleContext=o},3907:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;const n=r(1533);class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class s{constructor(t){this.backingStore=t instanceof s?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof s&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=s},3918:(t,e,r)=>{"use strict";var n=r(5606);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n,i,s;n=t,i=e,s=r[e],(i=a(i))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!==_(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}function l(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){var e="function"==typeof Map?new Map:void 0;return u=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return h(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},u(t)}function h(t,e,r){return h=p()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&d(i,r.prototype),i},h.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var T=r(537).inspect,y=r(9597).codes.ERR_INVALID_ARG_TYPE;function O(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var x="",g="",E="",m="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function N(t){return T(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var R=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(R,t);var r,i,a,u,h=(r=R,i=p(),function(){var t,e=f(r);if(i){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return l(this,t)});function R(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,R),"object"!==_(t)||null===t)throw new y("options","Object",t);var r=t.message,i=t.operator,s=t.stackStartFn,o=t.actual,a=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=h.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(x="",g="",m="",E=""):(x="",g="",m="",E="")),"object"===_(o)&&null!==o&&"object"===_(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=S(o),a=S(a)),"deepStrictEqual"===i||"strictEqual"===i)e=h.call(this,function(t,e,r){var i="",s="",o=0,a="",l=!1,c=N(t),u=c.split("\n"),h=N(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===_(t)&&"object"===_(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===u.length&&1===h.length&&u[0]!==h[0]){var f=u[0].length+h[0].length;if(f<=10){if(!("object"===_(t)&&null!==t||"object"===_(e)&&null!==e||0===t&&0===e))return"".concat(v[r],"\n\n")+"".concat(u[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&f<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][p]===h[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var T=u[u.length-1],y=h[h.length-1];T===y&&(p++<2?a="\n ".concat(T).concat(a):i=T,u.pop(),h.pop(),0!==u.length&&0!==h.length);)T=u[u.length-1],y=h[h.length-1];var S=Math.max(u.length,h.length);if(0===S){var R=c.split("\n");if(R.length>30)for(R[26]="".concat(x,"...").concat(m);R.length>27;)R.pop();return"".concat(v.notIdentical,"\n\n").concat(R.join("\n"),"\n")}p>3&&(a="\n".concat(x,"...").concat(m).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var b=0,A=v[r]+"\n".concat(g,"+ actual").concat(m," ").concat(E,"- expected").concat(m),C=" ".concat(x,"...").concat(m," Lines skipped");for(p=0;p<S;p++){var L=p-o;if(u.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(h[p-2]),b++),s+="\n ".concat(h[p-1]),b++),o=p,i+="\n".concat(E,"-").concat(m," ").concat(h[p]),b++;else if(h.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(u[p-2]),b++),s+="\n ".concat(u[p-1]),b++),o=p,s+="\n".concat(g,"+").concat(m," ").concat(u[p]),b++;else{var I=h[p],P=u[p],w=P!==I&&(!O(P,",")||P.slice(0,-1)!==I);w&&O(I,",")&&I.slice(0,-1)===P&&(w=!1,P+=","),w?(L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(u[p-2]),b++),s+="\n ".concat(u[p-1]),b++),o=p,s+="\n".concat(g,"+").concat(m," ").concat(P),i+="\n".concat(E,"-").concat(m," ").concat(I),b+=2):(s+=i,i="",1!==L&&0!==p||(s+="\n ".concat(P),b++))}if(b>20&&p<S-2)return"".concat(A).concat(C,"\n").concat(s,"\n").concat(x,"...").concat(m).concat(i,"\n")+"".concat(x,"...").concat(m)}return"".concat(A).concat(l?C:"","\n").concat(s).concat(i).concat(a).concat(d)}(o,a,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=v[i],d=N(o).split("\n");if("notStrictEqual"===i&&"object"===_(o)&&null!==o&&(p=v.notStrictEqualObject),d.length>30)for(d[26]="".concat(x,"...").concat(m);d.length>27;)d.pop();e=1===d.length?h.call(this,"".concat(p," ").concat(d[0])):h.call(this,"".concat(p,"\n\n").concat(d.join("\n"),"\n"))}else{var f=N(o),T="",b=v[i];"notDeepEqual"===i||"notEqual"===i?(f="".concat(v[i],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(T="".concat(N(a)),f.length>512&&(f="".concat(f.slice(0,509),"...")),T.length>512&&(T="".concat(T.slice(0,509),"...")),"deepEqual"===i||"equal"===i?f="".concat(b,"\n\n").concat(f,"\n\nshould equal\n\n"):T=" ".concat(i," ").concat(T)),e=h.call(this,"".concat(f).concat(T))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=o,e.expected=a,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(e),s),e.stack,e.name="AssertionError",l(e)}return a=R,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return T(this,s(s({},e),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),R}(u(Error),T.custom);t.exports=R},3972:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._channel),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerChannelAction=a},4016:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;const i=r(7037),s=r(6889),o=r(8016),a=r(2399);class l extends o.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new s.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},4035:(t,e,r)=>{"use strict";var n,i=r(6556),s=r(9092)(),o=r(9957),a=r(5795);if(s){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},h={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=u),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!o(e,"value"))return!1;try{l(t,h)}catch(t){return t===c}}}else{var p=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===p(t)}}t.exports=n},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4133:(t,e,r)=>{"use strict";var n=r(487),i=r(8452),s=r(3003),o=r(6642),a=r(2464),l=n(o(),Number);i(l,{getPolyfill:o,implementation:s,shim:a}),t.exports=l},4148:(t,e,r)=>{"use strict";var n=r(5606);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t){if("object"!==i(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}var l,c,u=r(9597).codes,h=u.ERR_AMBIGUOUS_ARGUMENT,p=u.ERR_INVALID_ARG_TYPE,d=u.ERR_INVALID_ARG_VALUE,f=u.ERR_INVALID_RETURN_VALUE,_=u.ERR_MISSING_ARGS,T=r(3918),y=r(537).inspect,O=r(537).types,x=O.isPromise,g=O.isRegExp,E=r(9133)(),m=r(9394)(),v=r(8075)("RegExp.prototype.test");function S(){var t=r(2299);l=t.isDeepEqual,c=t.isDeepStrictEqual}new Map;var N=!1,R=t.exports=L,b={};function A(t){if(t.message instanceof Error)throw t.message;throw new T(t)}function C(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var s=new T({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw s.generatedMessage=i,s}}function L(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[L,e.length].concat(e))}R.fail=function t(e,r,i,s,o){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=e,e=void 0):(!1===N&&(N=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(s="!=")),i instanceof Error)throw i;var c={actual:e,expected:r,operator:void 0===s?"fail":s,stackStartFn:o||t};void 0!==i&&(c.message=i);var u=new T(c);throw a&&(u.message=a,u.generatedMessage=!0),u},R.AssertionError=T,R.ok=L,R.equal=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");e!=r&&A({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},R.notEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");e==r&&A({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},R.deepEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),l(e,r)||A({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},R.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),l(e,r)&&A({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},R.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),c(e,r)||A({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},R.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),c(e,r)&&A({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},R.strictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");m(e,r)||A({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},R.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");m(e,r)&&A({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var I=o(function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach(function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&g(e[t])&&v(e[t],n[t])?i[t]=n[t]:i[t]=e[t])})});function P(t,e,r,n){if("function"!=typeof e){if(g(e))return v(e,t);if(2===arguments.length)throw new p("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new T({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw s.operator=n.name,s}var o=Object.keys(e);if(e instanceof Error)o.push("name","message");else if(0===o.length)throw new d("error",e,"may not be an empty object");return void 0===l&&S(),o.forEach(function(i){"string"==typeof t[i]&&g(e[i])&&v(e[i],t[i])||function(t,e,r,n,i,s){if(!(r in t)||!c(t[r],e[r])){if(!n){var o=new I(t,i),a=new I(e,i,t),l=new T({actual:o,expected:a,operator:"deepStrictEqual",stackStartFn:s});throw l.actual=t,l.expected=e,l.operator=s.name,l}A({actual:t,expected:e,message:n,operator:s.name,stackStartFn:s})}}(t,e,i,r,o,n)}),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t){if("function"!=typeof t)throw new p("fn","Function",t);try{t()}catch(t){return t}return b}function K(t){return x(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function k(t){return Promise.resolve().then(function(){var e;if("function"==typeof t){if(!K(e=t()))throw new f("instance of Promise","promiseFn",e)}else{if(!K(t))throw new p("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then(function(){return e}).then(function(){return b}).catch(function(t){return t})})}function D(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new h("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new h("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(e===b){var s="";r&&r.name&&(s+=" (".concat(r.name,")")),s+=n?": ".concat(n):".";var o="rejects"===t.name?"rejection":"exception";A({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(o).concat(s),stackStartFn:t})}if(r&&!P(e,r,n,t))throw e}function M(t,e,r,n){if(e!==b){if("string"==typeof r&&(n=r,r=void 0),!r||P(e,r)){var i=n?": ".concat(n):".",s="doesNotReject"===t.name?"rejection":"exception";A({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(s).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function U(t,e,r,n,s){if(!g(e))throw new p("regexp","RegExp",e);var o="match"===s;if("string"!=typeof t||v(e,t)!==o){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(i(t)," (").concat(y(t),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(e),". Input:\n\n").concat(y(t),"\n"));var l=new T({actual:t,expected:e,message:r,operator:s,stackStartFn:n});throw l.generatedMessage=a,l}}function F(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[F,e.length].concat(e))}R.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];D.apply(void 0,[t,w(e)].concat(n))},R.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(e).then(function(e){return D.apply(void 0,[t,e].concat(n))})},R.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];M.apply(void 0,[t,w(e)].concat(n))},R.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(e).then(function(e){return M.apply(void 0,[t,e].concat(n))})},R.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=y(e);var n=new T({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),s=e.stack;if("string"==typeof s){var o=s.split("\n");o.shift();for(var a=n.stack.split("\n"),l=0;l<o.length;l++){var c=a.indexOf(o[l]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw n}},R.match=function t(e,r,n){U(e,r,n,t,"match")},R.doesNotMatch=function t(e,r,n){U(e,r,n,t,"doesNotMatch")},R.strict=E(F,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict},4197:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;const i=r(2399),s=r(360),o=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of o.Trees.getChildren(t))r instanceof s.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},4233:t=>{"use strict";const e=function*(){}.constructor;t.exports=()=>e},4241:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,o.NotNull),i(2,o.NotNull)],a),e.ErrorInfo=a},4274:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;const s=r(3907),o=r(3074),a=r(3357),l=r(9803),c=r(9462),u=r(2399),h=r(8055),p=r(8859),d=r(7760),f=r(4148);let _=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new s.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new o.DFA(this.decisionToState[t],t);this.modeToDFA=new Array(this.modeToStartState.length);for(let t=0;t<this.modeToDFA.length;t++)this.modeToDFA[t]=new o.DFA(this.modeToStartState[t]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(t){return p.PredictionContext.getCachedContext(t,this.contextCache,new p.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return f(null!=this.decisionToDFA&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(t,e){return e?new c.LL1Analyzer(this).LOOK(t,e):(t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokens(t,p.PredictionContext.EMPTY_LOCAL),t.nextTokenWithinRule.setReadonly(!0)),t.nextTokenWithinRule)}addState(t){t.atn=this,t.stateNumber=this.states.length,this.states.push(t)}removeState(t){let e=new l.InvalidState;e.atn=this,e.stateNumber=t.stateNumber,this.states[t.stateNumber]=e}defineMode(t,e){this.modeNameToStartState.set(t,e),this.modeToStartState.push(e),this.modeToDFA.push(new o.DFA(e)),this.defineDecisionState(e)}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new o.DFA(t,t.decision)),t.decision}getDecisionState(t){if(this.decisionToState.length>0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(d.Token.EPSILON))return i;let s=new a.IntervalSet;for(s.addAll(i),s.remove(d.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(d.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),s.addAll(i),s.remove(d.Token.EPSILON),r=r._parent}return i.contains(d.Token.EPSILON)&&s.add(d.Token.EOF),s}};n([u.NotNull],_.prototype,"states",void 0),n([u.NotNull],_.prototype,"decisionToState",void 0),n([u.NotNull],_.prototype,"modeNameToStartState",void 0),n([u.NotNull],_.prototype,"modeToStartState",void 0),n([u.NotNull],_.prototype,"decisionToDFA",void 0),n([u.NotNull],_.prototype,"modeToDFA",void 0),n([u.NotNull],_.prototype,"nextTokens",null),n([i(0,u.NotNull)],_.prototype,"removeState",null),n([i(0,u.NotNull),i(1,u.NotNull)],_.prototype,"defineMode",null),n([i(0,u.NotNull)],_.prototype,"defineDecisionState",null),n([u.NotNull],_.prototype,"getExpectedTokens",null),_=n([i(0,u.NotNull)],_),e.ATN=_,function(t){t.INVALID_ALT_NUMBER=0}(_=e.ATN||(e.ATN={})),e.ATN=_},4275:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},4283:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,function(t){t.INSTANCE=new t}(a=e.LexerPopModeAction||(e.LexerPopModeAction={}))},4364:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;const s=r(2399),o=r(1097);let a=class{constructor(t,e,r,n){this.outerContext=null!=t?t:o.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,s.NotNull)],a),e.SimulatorState=a},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4520:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._mode),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},4605:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},4650:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.WildcardTransition=a},4699:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;const n=r(5585),i=r(534),s=r(6684);function o(t){const e=new Set;for(const r of t.values())for(const t of r)e.add(t);return e}class a extends n.AbstractParseTreeVisitor{constructor(t){super(),this.instanceData=t}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(const[r,n]of e.entries()){t.has(r)||t.set(r,new Set);const e=t.get(r);for(const t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,o(e));const n=e.get(t);if(void 0!==r)for(const t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){const e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(const r of t.expr()){const t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){const e=(0,i.getIdentifierName)(t.name()),r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([(0,i.getIdentifierName)(t.name())])}getQuantDeclVarNames(t){const e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){const e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");const n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(const t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");const e=this.getQuantDeclListVarNames(t.quantDeclList()),r=this.visit(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected to quantify over something!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let i;i=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());const s=this.aggregateResult(i,r),a=o(s),l=new Set;for(const t of a)e.has(t)||l.add(t);return s.set(t,l),s}const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4_5(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){const e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr16(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");const e=this.getQuantDeclListVarNames(t.quantDeclList()),r=t.blockOrBar();if(void 0===r)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===r.BAR_TOK()||void 0===r.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");let n;n=void 0!==r.block()?this.visit(r.block()):this.visit(r.expr());const i=o(n),s=new Set;for(const t of i)e.has(t)||s.add(t);return n.set(t,s),n}const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");const r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{const r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}visitName(t){const e=(0,i.getIdentifierName)(t);if("true"===e||"false"===e)return this.defaultResult();if(this.instanceData.getTypes().map(t=>t.id).includes(e))return this.defaultResult();for(const t of this.instanceData.getTypes())if(t.atoms.map(t=>t.id).includes(e))return this.defaultResult();for(const t of this.instanceData.getRelations())if(t.name===e)return this.defaultResult();if(s.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();const r=this.defaultResult();return r.set(t,new Set([e])),r}}e.ForgeExprFreeVariableFinder=a},4776:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;const s=r(2399),o=r(7760);let a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return o.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([s.NotNull],a.prototype,"ruleName",null),n([s.Override],a.prototype,"channel",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"type",null),n([s.Override],a.prototype,"line",null),n([s.Override],a.prototype,"charPositionInLine",null),n([s.Override],a.prototype,"tokenIndex",null),n([s.Override],a.prototype,"startIndex",null),n([s.Override],a.prototype,"stopIndex",null),n([s.Override],a.prototype,"tokenSource",null),n([s.Override],a.prototype,"inputStream",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.RuleTagToken=a},4864:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;const s=r(7442),o=r(6776),a=r(5411),l=r(309),c=r(821),u=r(2399),h=r(9278),p=r(9274),d=r(1097),f=r(8571),_=r(5920),T=r(9449),y=r(5378),O=r(4776),x=r(9086),g=r(360),E=r(6947),m=r(7760),v=r(3303);class S{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new c.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new c.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r=this.tokenize(t),n=new l.ListTokenSource(r),i=new a.CommonTokenStream(n);const o=this._parser;let c,u=new p.ParserInterpreter(o.grammarFileName,o.vocabulary,o.ruleNames,o.getATNWithBypassAlts(),i);try{u.errorHandler=new s.BailErrorStrategy,c=u.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof T.RecognitionException?t:t instanceof Error?new S.CannotInvokeStartRule(t):t}if(i.LA(1)!==m.Token.EOF)throw new S.StartRuleDoesNotConsumeFullPattern;return new _.ParseTreePattern(this,t,e,c)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof g.TerminalNode&&e instanceof g.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof v.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);const i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof d.ParserRuleContext&&e instanceof d.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);const e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let s=t.childCount;for(let n=0;n<s;n++){let i=this.matchImpl(t.getChild(n),e.getChild(n),r);if(i)return i}return n}return t}getRuleTagToken(t){if(t instanceof y.RuleNode&&1===t.childCount&&t.getChild(0)instanceof g.TerminalNode){let e=t.getChild(0);if(e.symbol instanceof O.RuleTagToken)return e.symbol}}tokenize(t){let e=this.split(t),r=[];for(let n of e)if(n instanceof x.TagChunk){let e=n;const i=e.tag.substr(0,1);if(i===i.toUpperCase()){let n=this._parser.getTokenType(e.tag);if(n===m.Token.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);let i=new v.TokenTagToken(e.tag,n,e.label);r.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{let n=this._parser.getRuleIndex(e.tag);if(-1===n)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);let i=this._parser.getATNWithBypassAlts().ruleToTokenType[n];r.push(new O.RuleTagToken(e.tag,i,e.label))}}}else{let t=n;this._lexer.inputStream=o.CharStreams.fromString(t.text);let e=this._lexer.nextToken();for(;e.type!==m.Token.EOF;)r.push(e),e=this._lexer.nextToken()}return r}split(t){let e=0,r=t.length,n=[],i=[],s=[];for(;e<r;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(s.push(e),e+=this.stop.length):e++;if(i.length>s.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<s.length)throw new Error("missing start tag in pattern: "+t);let o=i.length;for(let e=0;e<o;e++)if(i[e]>=s[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===o){let e=t.substring(0,r);n.push(new E.TextChunk(e))}if(o>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new E.TextChunk(e))}for(let e=0;e<o;e++){let r,a=t.substring(i[e]+this.start.length,s[e]),l=a,c=a.indexOf(":");if(c>=0&&(r=a.substring(0,c),l=a.substring(c+1,a.length)),n.push(new x.TagChunk(l,r)),e+1<o){let r=t.substring(s[e]+this.stop.length,i[e+1]);n.push(new E.TextChunk(r))}}if(o>0){let e=s[o-1]+this.stop.length;if(e<r){let i=t.substring(e,r);n.push(new E.TextChunk(i))}}for(let t=0;t<n.length;t++){let e=n[t];if(e instanceof E.TextChunk){let r=e.text.replace(this.escapeRE,"");r.length<e.text.length&&(n[t]=new E.TextChunk(r))}}return n}}n([u.NotNull,i(1,u.NotNull)],S.prototype,"match",null),n([u.NotNull],S.prototype,"lexer",null),n([u.NotNull],S.prototype,"parser",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],S.prototype,"matchImpl",null),e.ParseTreePatternMatcher=S,function(t){class e extends Error{constructor(t){super(`CannotInvokeStartRule: ${t}`),this.error=t}}t.CannotInvokeStartRule=e;class r extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}t.StartRuleDoesNotConsumeFullPattern=r}(S=e.ParseTreePatternMatcher||(e.ParseTreePatternMatcher={}))},4891:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},5116:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5288:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),o=0;o<r.length;o++)"default"!==r[o]&&i(e,t,r[o]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeLexer=void 0;const a=r(493),l=r(2807),c=r(1088),u=r(7435),h=o(r(659));class p extends l.Lexer{get vocabulary(){return p.VOCABULARY}constructor(t){super(t),this._interp=new c.LexerATNSimulator(p._ATN,this)}get grammarFileName(){return"ForgeLexer.g4"}get ruleNames(){return p.ruleNames}get serializedATN(){return p._serializedATN}get channelNames(){return p.channelNames}get modeNames(){return p.modeNames}static get _ATN(){return p.__ATN||(p.__ATN=(new a.ATNDeserializer).deserialize(h.toCharArray(p._serializedATN))),p.__ATN}}e.ForgeLexer=p,p.OPEN_TOK=1,p.LEFT_SQUARE_TOK=2,p.RIGHT_SQUARE_TOK=3,p.AS_TOK=4,p.STRING_TOK=5,p.VAR_TOK=6,p.ABSTRACT_TOK=7,p.SIG_TOK=8,p.LEFT_CURLY_TOK=9,p.RIGHT_CURLY_TOK=10,p.EXTENDS_TOK=11,p.IN_TOK=12,p.PLUS_TOK=13,p.LONE_TOK=14,p.SOME_TOK=15,p.ONE_TOK=16,p.TWO_TOK=17,p.SET_TOK=18,p.FUNC_TOK=19,p.PFUNC_TOK=20,p.DISJ_TOK=21,p.COLON_TOK=22,p.WHEAT_TOK=23,p.PRED_TOK=24,p.DOT_TOK=25,p.FUN_TOK=26,p.LEFT_PAREN_TOK=27,p.RIGHT_PAREN_TOK=28,p.ASSERT_TOK=29,p.RUN_TOK=30,p.CHECK_TOK=31,p.FOR_TOK=32,p.BUT_TOK=33,p.EXACTLY_TOK=34,p.NONE_TOK=35,p.UNIV_TOK=36,p.IDEN_TOK=37,p.MINUS_TOK=38,p.IS_TOK=39,p.SAT_TOK=40,p.UNSAT_TOK=41,p.THEOREM_TOK=42,p.FORGE_ERROR_TOK=43,p.CHECKED_TOK=44,p.TEST_TOK=45,p.EXPECT_TOK=46,p.SUITE_TOK=47,p.BAR_TOK=48,p.ALL_TOK=49,p.SUFFICIENT_TOK=50,p.NECESSARY_TOK=51,p.CONSISTENT_TOK=52,p.INCONSISTENT_TOK=53,p.WITH_TOK=54,p.LET_TOK=55,p.BIND_TOK=56,p.OR_TOK=57,p.XOR_TOK=58,p.IFF_TOK=59,p.IMP_TOK=60,p.ELSE_TOK=61,p.AND_TOK=62,p.UNTIL_TOK=63,p.RELEASE_TOK=64,p.SINCE_TOK=65,p.TRIGGERED_TOK=66,p.NEG_TOK=67,p.ALWAYS_TOK=68,p.EVENTUALLY_TOK=69,p.AFTER_TOK=70,p.BEFORE_TOK=71,p.ONCE_TOK=72,p.HISTORICALLY_TOK=73,p.CARD_TOK=74,p.PPLUS_TOK=75,p.AMP_TOK=76,p.SUBT_TOK=77,p.SUPT_TOK=78,p.PRIME_TOK=79,p.TILDE_TOK=80,p.EXP_TOK=81,p.STAR_TOK=82,p.AT_TOK=83,p.BACKQUOTE_TOK=84,p.THIS_TOK=85,p.SEXPR_TOK=86,p.INST_TOK=87,p.EVAL_TOK=88,p.EXAMPLE_TOK=89,p.ARROW_TOK=90,p.GET_LABEL_TOK=91,p.GET_LABEL_STR_TOK=92,p.GET_LABEL_BOOL_TOK=93,p.GET_LABEL_NUM_TOK=94,p.EQ_TOK=95,p.LT_TOK=96,p.GT_TOK=97,p.LEQ_TOK=98,p.GEQ_TOK=99,p.NI_TOK=100,p.NO_TOK=101,p.SUM_TOK=102,p.INT_TOK=103,p.OPTION_TOK=104,p.COMMA_TOK=105,p.SLASH_TOK=106,p.NUM_CONST_TOK=107,p.QUOTED_IDENTIFIER_TOK=108,p.IDENTIFIER_TOK=109,p.WS=110,p.CCOMMENT=111,p.COMMENT=112,p.MULTCOMMENT=113,p.LANG_DECL=114,p.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],p.modeNames=["DEFAULT_MODE"],p.ruleNames=["OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],p._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,"'until'","'release'","'since'","'triggered'",void 0,"'always'","'eventually'","'after'","'before'","'once'","'historically'","'#'","'++'","'&'","'<:'","':>'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],p._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],p.VOCABULARY=new u.VocabularyImpl(p._LITERAL_NAMES,p._SYMBOLIC_NAMES,[]),p._serializedATNSegments=2,p._serializedATNSegment0='줝쪺֍꾺体؇쉁t͗\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tno\top\tpq\tqr\trs\tsø\n\fû\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ȑ\n:;;;;<<<<<<<Ȝ\n<==========ȧ\n=>>>>>??????ȳ\n?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDDɗ\nDEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\\\]]]]]]^^^^^^^______``aabbcccccˣ\ncdddeeefffgggghhhhiiiiiiijjkkll̂\nl\rll̃lll̈\nl\rll̉ľ\nlmmmmm̒\nm\rmm̓mmnnn̚\nn\fnn̝\vnoo̠\no\roo̡ooppppp̪\np\fpp̭\vpppqqqqq̵\nq\fqq̸\vqqqrrrrr̀\nr\frr̓\vrrrrrrssssssss͑\ns\fss͔\vssśt\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u<w=y>{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏiÑjÓkÕl×mÙnÛoÝpßqárãsåt\t$$^^2;^^bb&&11C\\aac|&&1;C\\aac|\v\f""\f\fͩ\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÓÕ×ÙÛÝßáãåçìî\tð\vó\rþĂċďđēěĞĠĥ!Ī#Į%IJ\'Ķ)Ļ+Ł-ņ/ň1Ŏ3œ5ŕ7ř9ś;ŝ=Ť?ŨAŮCŲEŶGžIƃKƈMƍOƏQƒSƖUƜWƤYư[Ƹ]ƽ_DŽaNJcnjeǐgǛiǥkǰmǽoȂqȆsȏuȑwțyȦ{Ȩ}ȲȴȺƒɂ…Ɉ‡ɖ‰ɘ‹ɟɪɰ‘ɷ“ɼ•ʉ—ʋ™ʎ›ʐʓŸʖ¡ʘ£ʚ¥ʜ§ʞ©ʠ«ʢ­ʧ¯ʭ±ʲ³ʷµʿ·˂¹˅»ˋ½˒¿˘Á˚ØÅˢÇˤÉ˧Ë˪Í˭Ï˱Ñ˵Ó˼Õ˾×́Ù̍Û̗Ý̟ß̥á̰ã̻å͉çèqèéréêgêëpëìí]íîï_ï\bðñcñòuò\nóù$ôø\nõö^öø\v÷ô÷õøûù÷ùúúüûùüý$ý\fþÿxÿĀcĀātāĂăcăĄdĄąuąĆvĆćtćĈcĈĉeĉĊvĊċČuČčkčĎiĎďĐ}ĐđĒĒēĔgĔĕzĕĖvĖėgėĘpĘęfęĚuĚěĜkĜĝpĝĞğ-ğĠġnġĢqĢģpģĤgĤĥĦuĦħqħĨoĨĩgĩ ĪīqīĬpĬĭgĭ"Įįvįİyİıqı$IJijuijĴgĴĵvĵ&ĶķhķĸwĸĹpĹĺeĺ(ĻļrļĽhĽľwľĿpĿŀeŀ*ŁłfłŃkŃńuńŅlŅ,ņŇ<Ň.ňʼnyʼnŊjŊŋgŋŌcŌōvō0ŎŏrŏŐtŐőgőŒfŒ2œŔ0Ŕ4ŕŖhŖŗwŗŘpŘ6řŚ*Ś8śŜ+Ŝ:ŝŞcŞşuşŠuŠšgšŢtŢţvţ<ŤťtťŦwŦŧpŧ>ŨũeũŪjŪūgūŬeŬŭmŭ@ŮůhůŰqŰűtűBŲųdųŴwŴŵvŵDŶŷgŷŸzŸŹcŹźeźŻvŻżnżŽ{ŽFžſpſƀqƀƁpƁƂgƂHƃƄwƄƅpƅƆkƆƇxƇJƈƉkƉƊfƊƋgƋƌpƌLƍƎ/ƎNƏƐkƐƑuƑPƒƓuƓƔcƔƕvƕRƖƗwƗƘpƘƙuƙƚcƚƛvƛTƜƝvƝƞjƞƟgƟƠqƠơtơƢgƢƣoƣVƤƥhƥƦqƦƧtƧƨiƨƩgƩƪaƪƫgƫƬtƬƭtƭƮqƮƯtƯXưƱeƱƲjƲƳgƳƴeƴƵmƵƶgƶƷfƷZƸƹvƹƺgƺƻuƻƼvƼ\\ƽƾgƾƿzƿǀrǀǁgǁǂeǂǃvǃ^DŽDžuDždžwdžLJkLJLjvLjljglj`NJNj~NjbnjǍcǍǎnǎǏnǏdǐǑuǑǒwǒǓhǓǔhǔǕkǕǖeǖǗkǗǘgǘǙpǙǚvǚfǛǜp',p._serializedATNSegment1="ǜǝgǝǞeǞǟgǟǠuǠǡuǡǢcǢǣtǣǤ{ǤhǥǦeǦǧqǧǨpǨǩuǩǪkǪǫuǫǬvǬǭgǭǮpǮǯvǯjǰDZkDZDzpDzdzedzǴqǴǵpǵǶuǶǷkǷǸuǸǹvǹǺgǺǻpǻǼvǼlǽǾyǾǿkǿȀvȀȁjȁnȂȃnȃȄgȄȅvȅpȆȇdȇȈkȈȉpȉȊfȊrȋȌ~ȌȐ~ȍȎqȎȐtȏȋȏȍȐtȑȒzȒȓqȓȔtȔvȕȖ>Ȗȗ?ȗȜ@ȘșkșȚhȚȜhțȕțȘȜxȝȞkȞȟoȟȠrȠȡnȡȢkȢȣgȣȧuȤȥ?ȥȧ@ȦȝȦȤȧzȨȩgȩȪnȪȫuȫȬgȬ|ȭȮ(Ȯȳ(ȯȰcȰȱpȱȳfȲȭȲȯȳ~ȴȵwȵȶpȶȷvȷȸkȸȹnȹ€ȺȻtȻȼgȼȽnȽȾgȾȿcȿɀuɀɁgɁ‚ɂɃuɃɄkɄɅpɅɆeɆɇgɇ„ɈɉvɉɊtɊɋkɋɌiɌɍiɍɎgɎɏtɏɐgɐɑfɑ†ɒɗ#ɓɔpɔɕqɕɗvɖɒɖɓɗˆɘəcəɚnɚɛyɛɜcɜɝ{ɝɞuɞŠɟɠgɠɡxɡɢgɢɣpɣɤvɤɥwɥɦcɦɧnɧɨnɨɩ{ɩŒɪɫcɫɬhɬɭvɭɮgɮɯtɯŽɰɱdɱɲgɲɳhɳɴqɴɵtɵɶgɶɷɸqɸɹpɹɺeɺɻgɻ’ɼɽjɽɾkɾɿuɿʀvʀʁqʁʂtʂʃkʃʄeʄʅcʅʆnʆʇnʇʈ{ʈ”ʉʊ%ʊ–ʋʌ-ʌʍ-ʍ˜ʎʏ(ʏšʐʑ>ʑʒ<ʒœʓʔ<ʔʕ@ʕžʖʗ)ʗ ʘʙ€ʙ¢ʚʛ`ʛ¤ʜʝ,ʝ¦ʞʟBʟ¨ʠʡbʡªʢʣvʣʤjʤʥkʥʦuʦ¬ʧʨuʨʩgʩʪzʪʫrʫʬtʬ®ʭʮkʮʯpʯʰuʰʱvʱ°ʲʳgʳʴxʴʵcʵʶnʶ²ʷʸgʸʹzʹʺcʺʻoʻʼrʼʽnʽʾgʾ´ʿˀ/ˀˁ@ˁ¶˂˃B˃˄<˄¸˅ˆBˆˇuˇˈvˈˉtˉˊ<ˊºˋˌBˌˍdˍˎqˎˏqˏːnːˑ<ˑ¼˒˓B˓˔p˔˕w˕˖o˖˗<˗¾˘˙?˙À˚˛>˛Â˜˝@˝Ä˞˟>˟ˣ?ˠˡ?ˡˣ>ˢ˞ˢˠˣÆˤ˥@˥˦?˦È˧˨p˨˩k˩Ê˪˫p˫ˬqˬÌ˭ˮuˮ˯w˯˰o˰Î˱˲K˲˳p˳˴v˴Ð˵˶q˶˷r˷˸v˸˹k˹˺q˺˻p˻Ò˼˽.˽Ô˾˿1˿Ö̀̂\t́̀̂̃̃́̃̄̄̋̅̇0̆̈\ṫ̆̈̉̉̇̉̊̊̌̋̅̋̌̌Ø̍̑b̎̒\n̏̐^̐̒\v̖̑̎̑̏̒̓̓̑̓̔̔̕̕b̖Ứ̗\t̘̚\t̛̛̙̘̝̙̜̜̚Ư̝̞̠̈\t̡̡̡̢̢̟̞̠̟̣̣̤\bo̤Þ̥̦1̧̦1̧̨̫̪\n\b̨̩̪̭̫̩̫̬̬̮̭̫̮̯\bp̯à̰̱/̱̲/̶̵̲̳\n\b̴̵̸̶̴̶̷̷̸̶̳̹̹̺\bq̺â̻̼1̼̽,̽́̾̀\v̿̾̀̓́͂́̿͂̈́̓́̈́ͅ,͆ͅ1͇͇͈͆\br͈ä͉͊%͊͋n͋͌c͍͌p͍͎i͎͒͏͑\n\b͐͏͔͓͓͕͔͕͖͑͒͐͒͒\bs͖æ÷ùȏțȦȲɖˢ̶̡̛̫̃̉̋̑̓́͒\b",p._serializedATN=h.join([p._serializedATNSegment0,p._serializedATNSegment1],"")},5345:t=>{"use strict";t.exports=URIError},5369:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;const s=r(3357),o=r(2399),a=r(1072);let l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return s.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([o.Override],l.prototype,"serializationType",null),n([o.Override,o.NotNull],l.prototype,"label",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.AtomTransition=l},5378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},5395:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),o=0;o<r.length;o++)"default"!==r[o]&&i(e,t,r[o]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.Expr1Context=e.ExprContext=e.ExprListContext=e.TypescopeListContext=e.LetDeclListContext=e.ArrowDeclListContext=e.QuantDeclListContext=e.ParaDeclListContext=e.QualNameListContext=e.NameListContext=e.NameContext=e.OptionDeclContext=e.QualNameContext=e.QuantContext=e.BlockOrBarContext=e.BlockContext=e.LetDeclContext=e.CompareOpContext=e.ArrowOpContext=e.TestConstructContext=e.TestSuiteDeclContext=e.ConsistencyDeclContext=e.PropertyDeclContext=e.QuantifiedPropertyDeclContext=e.SatisfiabilityDeclContext=e.ConstContext=e.TypescopeContext=e.ScopeContext=e.TestBlockContext=e.TestExpectDeclContext=e.TestDeclContext=e.CmdDeclContext=e.AssertDeclContext=e.ParaDeclsContext=e.FunDeclContext=e.PredTypeContext=e.ArrowDeclContext=e.QuantDeclContext=e.ParaDeclContext=e.HelperMultContext=e.ArrowMultContext=e.MultContext=e.SigExtContext=e.SigDeclContext=e.ParagraphContext=e.ImportDeclContext=e.AlloyModuleContext=e.ParseExprContext=e.PredDeclContext=e.ForgeParser=void 0,e.BindRHSProductBaseContext=e.BindRHSProductContext=e.BindRHSUnionContext=e.BoundLHSContext=e.BoundContext=e.AtomNameOrNumberContext=e.BoundsContext=e.NumberContext=e.NumberListContext=e.QueryDeclContext=e.ExampleDeclContext=e.EvalDeclContext=e.EvalRelDeclContext=e.InstDeclContext=e.SexprContext=e.SexprDeclContext=e.ArrowExprContext=e.Expr18Context=e.Expr17Context=e.Expr16Context=e.Expr15Context=e.Expr14Context=e.Expr13Context=e.Expr12Context=e.Expr11Context=e.Expr10Context=e.Expr9Context=e.Expr8Context=e.Expr7Context=e.Expr6Context=e.Expr5Context=e.Expr4_5Context=e.Expr4Context=e.Expr3Context=e.Expr2Context=e.Expr1_5Context=void 0;const a=r(4274),l=r(493),c=r(2262),u=r(755),h=r(5922),p=r(1097),d=r(3161),f=r(9449),_=r(7760),T=r(7435),y=o(r(659));class O extends h.Parser{get vocabulary(){return O.VOCABULARY}get grammarFileName(){return"Forge.g4"}get ruleNames(){return O.ruleNames}get serializedATN(){return O._serializedATN}createFailedPredicateException(t,e){return new c.FailedPredicateException(this,t,e)}constructor(t){super(t),this._interp=new d.ParserATNSimulator(O._ATN,this)}predDecl(){let t,e=new x(this._ctx,this.state);this.enterRule(e,0,O.RULE_predDecl);try{this.enterOuterAlt(e,1),this.state=170,this.match(O.PRED_TOK),this.state=172,this._errHandler.sync(this),t=this._input.LA(1),t===O.WHEAT_TOK&&(this.state=171,this.predType()),this.state=177,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,1,this._ctx)&&(this.state=174,this.qualName(),this.state=175,this.match(O.DOT_TOK)),this.state=179,this.name(),this.state=181,this._errHandler.sync(this),t=this._input.LA(1),t!==O.LEFT_SQUARE_TOK&&t!==O.LEFT_PAREN_TOK||(this.state=180,this.paraDecls()),this.state=183,this.block()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parseExpr(){let t=new g(this._ctx,this.state);this.enterRule(t,2,O.RULE_parseExpr);try{this.enterOuterAlt(t,1),this.state=185,this.expr(),this.state=186,this.match(O.EOF)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}alloyModule(){let t,e=new E(this._ctx,this.state);this.enterRule(e,4,O.RULE_alloyModule);try{switch(this.state=206,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,6,this._ctx)){case 1:for(this.enterOuterAlt(e,1),this.state=191,this._errHandler.sync(this),t=this._input.LA(1);t===O.OPEN_TOK;)this.state=188,this.importDecl(),this.state=193,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=197,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&(1<<O.VAR_TOK|1<<O.ABSTRACT_TOK|1<<O.SIG_TOK|1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.PRED_TOK|1<<O.FUN_TOK|1<<O.ASSERT_TOK|1<<O.RUN_TOK|1<<O.CHECK_TOK)||t===O.TEST_TOK||t===O.EXPECT_TOK||!(t-86&-32)&&1<<t-86&(1<<O.SEXPR_TOK-86|1<<O.INST_TOK-86|1<<O.EXAMPLE_TOK-86|1<<O.OPTION_TOK-86|1<<O.QUOTED_IDENTIFIER_TOK-86|1<<O.IDENTIFIER_TOK-86);)this.state=194,this.paragraph(),this.state=199,this._errHandler.sync(this),t=this._input.LA(1);break;case 2:for(this.enterOuterAlt(e,2),this.state=203,this._errHandler.sync(this),t=this._input.LA(1);t===O.EVAL_TOK;)this.state=200,this.evalDecl(),this.state=205,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDecl(){let t,e=new m(this._ctx,this.state);this.enterRule(e,6,O.RULE_importDecl);try{switch(this.state=226,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,10,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=208,this.match(O.OPEN_TOK),this.state=209,this.qualName(),this.state=214,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_SQUARE_TOK&&(this.state=210,this.match(O.LEFT_SQUARE_TOK),this.state=211,this.qualNameList(),this.state=212,this.match(O.RIGHT_SQUARE_TOK)),this.state=218,this._errHandler.sync(this),t=this._input.LA(1),t===O.AS_TOK&&(this.state=216,this.match(O.AS_TOK),this.state=217,this.name());break;case 2:this.enterOuterAlt(e,2),this.state=220,this.match(O.OPEN_TOK),this.state=221,this.match(O.STRING_TOK),this.state=224,this._errHandler.sync(this),t=this._input.LA(1),t===O.AS_TOK&&(this.state=222,this.match(O.AS_TOK),this.state=223,this.name())}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paragraph(){let t=new v(this._ctx,this.state);this.enterRule(t,8,O.RULE_paragraph);try{switch(this.state=245,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,11,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=228,this.sigDecl();break;case 2:this.enterOuterAlt(t,2),this.state=229,this.predDecl();break;case 3:this.enterOuterAlt(t,3),this.state=230,this.funDecl();break;case 4:this.enterOuterAlt(t,4),this.state=231,this.assertDecl();break;case 5:this.enterOuterAlt(t,5),this.state=232,this.cmdDecl();break;case 6:this.enterOuterAlt(t,6),this.state=233,this.testExpectDecl();break;case 7:this.enterOuterAlt(t,7),this.state=234,this.sexprDecl();break;case 8:this.enterOuterAlt(t,8),this.state=235,this.queryDecl();break;case 9:this.enterOuterAlt(t,9),this.state=236,this.evalRelDecl();break;case 10:this.enterOuterAlt(t,10),this.state=237,this.optionDecl();break;case 11:this.enterOuterAlt(t,11),this.state=238,this.instDecl();break;case 12:this.enterOuterAlt(t,12),this.state=239,this.exampleDecl();break;case 13:this.enterOuterAlt(t,13),this.state=240,this.propertyDecl();break;case 14:this.enterOuterAlt(t,14),this.state=241,this.quantifiedPropertyDecl();break;case 15:this.enterOuterAlt(t,15),this.state=242,this.satisfiabilityDecl();break;case 16:this.enterOuterAlt(t,16),this.state=243,this.consistencyDecl();break;case 17:this.enterOuterAlt(t,17),this.state=244,this.testSuiteDecl()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sigDecl(){let t,e=new S(this._ctx,this.state);this.enterRule(e,10,O.RULE_sigDecl);try{this.enterOuterAlt(e,1),this.state=248,this._errHandler.sync(this),t=this._input.LA(1),t===O.VAR_TOK&&(this.state=247,this.match(O.VAR_TOK)),this.state=251,this._errHandler.sync(this),t=this._input.LA(1),t===O.ABSTRACT_TOK&&(this.state=250,this.match(O.ABSTRACT_TOK)),this.state=254,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK)&&(this.state=253,this.mult()),this.state=256,this.match(O.SIG_TOK),this.state=257,this.nameList(),this.state=259,this._errHandler.sync(this),t=this._input.LA(1),t!==O.EXTENDS_TOK&&t!==O.IN_TOK||(this.state=258,this.sigExt()),this.state=261,this.match(O.LEFT_CURLY_TOK),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),t!==O.VAR_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=262,this.arrowDeclList()),this.state=265,this.match(O.RIGHT_CURLY_TOK),this.state=267,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_CURLY_TOK&&(this.state=266,this.block())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sigExt(){let t,e=new N(this._ctx,this.state);this.enterRule(e,12,O.RULE_sigExt);try{switch(this.state=280,this._errHandler.sync(this),this._input.LA(1)){case O.EXTENDS_TOK:this.enterOuterAlt(e,1),this.state=269,this.match(O.EXTENDS_TOK),this.state=270,this.qualName();break;case O.IN_TOK:for(this.enterOuterAlt(e,2),this.state=271,this.match(O.IN_TOK),this.state=272,this.qualName(),this.state=277,this._errHandler.sync(this),t=this._input.LA(1);t===O.PLUS_TOK;)this.state=273,this.match(O.PLUS_TOK),this.state=274,this.qualName(),this.state=279,this._errHandler.sync(this),t=this._input.LA(1);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mult(){let t,e=new R(this._ctx,this.state);this.enterRule(e,14,O.RULE_mult);try{this.enterOuterAlt(e,1),this.state=282,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}arrowMult(){let t,e=new b(this._ctx,this.state);this.enterRule(e,16,O.RULE_arrowMult);try{this.enterOuterAlt(e,1),this.state=284,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK|1<<O.FUNC_TOK|1<<O.PFUNC_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}helperMult(){let t,e=new A(this._ctx,this.state);this.enterRule(e,18,O.RULE_helperMult);try{this.enterOuterAlt(e,1),this.state=286,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.ONE_TOK|1<<O.SET_TOK|1<<O.FUNC_TOK|1<<O.PFUNC_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paraDecl(){let t,e=new C(this._ctx,this.state);this.enterRule(e,20,O.RULE_paraDecl);try{this.enterOuterAlt(e,1),this.state=289,this._errHandler.sync(this),t=this._input.LA(1),t===O.DISJ_TOK&&(this.state=288,this.match(O.DISJ_TOK)),this.state=291,this.nameList(),this.state=292,this.match(O.COLON_TOK),this.state=294,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,21,this._ctx)&&(this.state=293,this.helperMult()),this.state=296,this.expr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}quantDecl(){let t,e=new L(this._ctx,this.state);this.enterRule(e,22,O.RULE_quantDecl);try{this.enterOuterAlt(e,1),this.state=299,this._errHandler.sync(this),t=this._input.LA(1),t===O.DISJ_TOK&&(this.state=298,this.match(O.DISJ_TOK)),this.state=301,this.nameList(),this.state=302,this.match(O.COLON_TOK),this.state=304,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,23,this._ctx)&&(this.state=303,this.match(O.SET_TOK)),this.state=306,this.expr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}arrowDecl(){let t,e=new I(this._ctx,this.state);this.enterRule(e,24,O.RULE_arrowDecl);try{this.enterOuterAlt(e,1),this.state=309,this._errHandler.sync(this),t=this._input.LA(1),t===O.VAR_TOK&&(this.state=308,this.match(O.VAR_TOK)),this.state=311,this.nameList(),this.state=312,this.match(O.COLON_TOK),this.state=313,this.arrowMult(),this.state=314,this.arrowExpr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}predType(){let t=new P(this._ctx,this.state);this.enterRule(t,26,O.RULE_predType);try{this.enterOuterAlt(t,1),this.state=316,this.match(O.WHEAT_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}funDecl(){let t,e=new w(this._ctx,this.state);this.enterRule(e,28,O.RULE_funDecl);try{this.enterOuterAlt(e,1),this.state=318,this.match(O.FUN_TOK),this.state=322,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,25,this._ctx)&&(this.state=319,this.qualName(),this.state=320,this.match(O.DOT_TOK)),this.state=324,this.name(),this.state=326,this._errHandler.sync(this),t=this._input.LA(1),t!==O.LEFT_SQUARE_TOK&&t!==O.LEFT_PAREN_TOK||(this.state=325,this.paraDecls()),this.state=328,this.match(O.COLON_TOK),this.state=330,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,27,this._ctx)&&(this.state=329,this.helperMult()),this.state=332,this.expr(),this.state=333,this.match(O.LEFT_CURLY_TOK),this.state=334,this.expr(),this.state=335,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paraDecls(){let t,e=new K(this._ctx,this.state);this.enterRule(e,30,O.RULE_paraDecls);try{switch(this.state=347,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_PAREN_TOK:this.enterOuterAlt(e,1),this.state=337,this.match(O.LEFT_PAREN_TOK),this.state=339,this._errHandler.sync(this),t=this._input.LA(1),t!==O.DISJ_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=338,this.paraDeclList()),this.state=341,this.match(O.RIGHT_PAREN_TOK);break;case O.LEFT_SQUARE_TOK:this.enterOuterAlt(e,2),this.state=342,this.match(O.LEFT_SQUARE_TOK),this.state=344,this._errHandler.sync(this),t=this._input.LA(1),t!==O.DISJ_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=343,this.paraDeclList()),this.state=346,this.match(O.RIGHT_SQUARE_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assertDecl(){let t,e=new k(this._ctx,this.state);this.enterRule(e,32,O.RULE_assertDecl);try{this.enterOuterAlt(e,1),this.state=349,this.match(O.ASSERT_TOK),this.state=351,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=350,this.name()),this.state=353,this.block()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}cmdDecl(){let t,e=new D(this._ctx,this.state);this.enterRule(e,34,O.RULE_cmdDecl);try{switch(this.enterOuterAlt(e,1),this.state=358,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=355,this.name(),this.state=356,this.match(O.COLON_TOK)),this.state=360,t=this._input.LA(1),t!==O.RUN_TOK&&t!==O.CHECK_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=363,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,33,this._ctx)){case 1:this.state=361,this.qualName();break;case 2:this.state=362,this.block()}this.state=366,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,34,this._ctx)&&(this.state=365,this.scope()),this.state=370,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=368,this.match(O.FOR_TOK),this.state=369,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testDecl(){let t,e=new M(this._ctx,this.state);this.enterRule(e,36,O.RULE_testDecl);try{switch(this.enterOuterAlt(e,1),this.state=375,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,36,this._ctx)&&(this.state=372,this.name(),this.state=373,this.match(O.COLON_TOK)),this.state=379,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.state=377,this.qualName();break;case O.LEFT_CURLY_TOK:this.state=378,this.block();break;default:throw new u.NoViableAltException(this)}this.state=382,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,38,this._ctx)&&(this.state=381,this.scope()),this.state=386,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=384,this.match(O.FOR_TOK),this.state=385,this.bounds()),this.state=388,this.match(O.IS_TOK),this.state=389,t=this._input.LA(1),t-40&-32||!(1<<t-40&(1<<O.SAT_TOK-40|1<<O.UNSAT_TOK-40|1<<O.THEOREM_TOK-40|1<<O.FORGE_ERROR_TOK-40|1<<O.CHECKED_TOK-40))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testExpectDecl(){let t,e=new U(this._ctx,this.state);this.enterRule(e,38,O.RULE_testExpectDecl);try{this.enterOuterAlt(e,1),this.state=392,this._errHandler.sync(this),t=this._input.LA(1),t===O.TEST_TOK&&(this.state=391,this.match(O.TEST_TOK)),this.state=394,this.match(O.EXPECT_TOK),this.state=396,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=395,this.name()),this.state=398,this.testBlock()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testBlock(){let t,e=new F(this._ctx,this.state);this.enterRule(e,40,O.RULE_testBlock);try{for(this.enterOuterAlt(e,1),this.state=400,this.match(O.LEFT_CURLY_TOK),this.state=404,this._errHandler.sync(this),t=this._input.LA(1);t===O.LEFT_CURLY_TOK||!(t-85&-32)&&1<<t-85&(1<<O.THIS_TOK-85|1<<O.SUM_TOK-85|1<<O.INT_TOK-85|1<<O.QUOTED_IDENTIFIER_TOK-85|1<<O.IDENTIFIER_TOK-85);)this.state=401,this.testDecl(),this.state=406,this._errHandler.sync(this),t=this._input.LA(1);this.state=407,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}scope(){let t,e=new j(this._ctx,this.state);this.enterRule(e,42,O.RULE_scope);try{switch(this.state=417,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,44,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=409,this.match(O.FOR_TOK),this.state=410,this.number(),this.state=413,this._errHandler.sync(this),t=this._input.LA(1),t===O.BUT_TOK&&(this.state=411,this.match(O.BUT_TOK),this.state=412,this.typescopeList());break;case 2:this.enterOuterAlt(e,2),this.state=415,this.match(O.FOR_TOK),this.state=416,this.typescopeList()}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typescope(){let t,e=new H(this._ctx,this.state);this.enterRule(e,44,O.RULE_typescope);try{this.enterOuterAlt(e,1),this.state=420,this._errHandler.sync(this),t=this._input.LA(1),t===O.EXACTLY_TOK&&(this.state=419,this.match(O.EXACTLY_TOK)),this.state=422,this.number(),this.state=423,this.qualName()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}const(){let t,e=new B(this._ctx,this.state);this.enterRule(e,46,O.RULE_const);try{switch(this.state=433,this._errHandler.sync(this),this._input.LA(1)){case O.NONE_TOK:this.enterOuterAlt(e,1),this.state=425,this.match(O.NONE_TOK);break;case O.UNIV_TOK:this.enterOuterAlt(e,2),this.state=426,this.match(O.UNIV_TOK);break;case O.IDEN_TOK:this.enterOuterAlt(e,3),this.state=427,this.match(O.IDEN_TOK);break;case O.MINUS_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(e,4),this.state=429,this._errHandler.sync(this),t=this._input.LA(1),t===O.MINUS_TOK&&(this.state=428,this.match(O.MINUS_TOK)),this.state=431,this.number();break;case O.STRING_TOK:this.enterOuterAlt(e,5),this.state=432,this.match(O.STRING_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}satisfiabilityDecl(){let t,e=new G(this._ctx,this.state);this.enterRule(e,48,O.RULE_satisfiabilityDecl);try{this.enterOuterAlt(e,1),this.state=435,this.match(O.ASSERT_TOK),this.state=436,this.expr(),this.state=437,this.match(O.IS_TOK),this.state=438,t=this._input.LA(1),t-40&-32||!(1<<t-40&(1<<O.SAT_TOK-40|1<<O.UNSAT_TOK-40|1<<O.FORGE_ERROR_TOK-40))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=440,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,48,this._ctx)&&(this.state=439,this.scope()),this.state=444,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=442,this.match(O.FOR_TOK),this.state=443,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}quantifiedPropertyDecl(){let t,e=new z(this._ctx,this.state);this.enterRule(e,50,O.RULE_quantifiedPropertyDecl);try{this.enterOuterAlt(e,1),this.state=446,this.match(O.ASSERT_TOK),this.state=447,this.match(O.ALL_TOK),this.state=449,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,50,this._ctx)&&(this.state=448,this.match(O.DISJ_TOK)),this.state=451,this.quantDeclList(),this.state=452,this.match(O.BAR_TOK),this.state=453,this.expr(),this.state=454,this.match(O.IS_TOK),this.state=455,t=this._input.LA(1),t!==O.SUFFICIENT_TOK&&t!==O.NECESSARY_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=456,this.match(O.FOR_TOK),this.state=457,this.name(),this.state=462,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_SQUARE_TOK&&(this.state=458,this.match(O.LEFT_SQUARE_TOK),this.state=459,this.exprList(),this.state=460,this.match(O.RIGHT_SQUARE_TOK)),this.state=465,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,52,this._ctx)&&(this.state=464,this.scope()),this.state=469,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=467,this.match(O.FOR_TOK),this.state=468,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}propertyDecl(){let t,e=new q(this._ctx,this.state);this.enterRule(e,52,O.RULE_propertyDecl);try{this.enterOuterAlt(e,1),this.state=471,this.match(O.ASSERT_TOK),this.state=472,this.expr(),this.state=473,this.match(O.IS_TOK),this.state=474,t=this._input.LA(1),t!==O.SUFFICIENT_TOK&&t!==O.NECESSARY_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=475,this.match(O.FOR_TOK),this.state=476,this.name(),this.state=478,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,54,this._ctx)&&(this.state=477,this.scope()),this.state=482,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=480,this.match(O.FOR_TOK),this.state=481,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}consistencyDecl(){let t,e=new V(this._ctx,this.state);this.enterRule(e,54,O.RULE_consistencyDecl);try{this.enterOuterAlt(e,1),this.state=484,this.match(O.ASSERT_TOK),this.state=485,this.expr(),this.state=486,this.match(O.IS_TOK),this.state=487,t=this._input.LA(1),t!==O.CONSISTENT_TOK&&t!==O.INCONSISTENT_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=488,this.match(O.WITH_TOK),this.state=489,this.name(),this.state=491,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,56,this._ctx)&&(this.state=490,this.scope()),this.state=495,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=493,this.match(O.FOR_TOK),this.state=494,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testSuiteDecl(){let t,e=new Y(this._ctx,this.state);this.enterRule(e,56,O.RULE_testSuiteDecl);try{for(this.enterOuterAlt(e,1),this.state=497,this.match(O.TEST_TOK),this.state=498,this.match(O.SUITE_TOK),this.state=499,this.match(O.FOR_TOK),this.state=500,this.name(),this.state=501,this.match(O.LEFT_CURLY_TOK),this.state=505,this._errHandler.sync(this),t=this._input.LA(1);!(t-29&-32)&&1<<t-29&(1<<O.ASSERT_TOK-29|1<<O.TEST_TOK-29|1<<O.EXPECT_TOK-29)||t===O.EXAMPLE_TOK;)this.state=502,this.testConstruct(),this.state=507,this._errHandler.sync(this),t=this._input.LA(1);this.state=508,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testConstruct(){let t=new $(this._ctx,this.state);this.enterRule(t,58,O.RULE_testConstruct);try{switch(this.state=516,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,59,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=510,this.exampleDecl();break;case 2:this.enterOuterAlt(t,2),this.state=511,this.testExpectDecl();break;case 3:this.enterOuterAlt(t,3),this.state=512,this.quantifiedPropertyDecl();break;case 4:this.enterOuterAlt(t,4),this.state=513,this.propertyDecl();break;case 5:this.enterOuterAlt(t,5),this.state=514,this.satisfiabilityDecl();break;case 6:this.enterOuterAlt(t,6),this.state=515,this.consistencyDecl()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowOp(){let t=new Q(this._ctx,this.state);this.enterRule(t,60,O.RULE_arrowOp);try{switch(this.enterOuterAlt(t,1),this.state=520,this._errHandler.sync(this),this._input.LA(1)){case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.state=518,this.mult();break;case O.SET_TOK:this.state=519,this.match(O.SET_TOK);case O.ARROW_TOK:}switch(this.state=522,this.match(O.ARROW_TOK),this.state=525,this._errHandler.sync(this),this._input.LA(1)){case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.state=523,this.mult();break;case O.SET_TOK:this.state=524,this.match(O.SET_TOK);case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}compareOp(){let t,e=new W(this._ctx,this.state);this.enterRule(e,62,O.RULE_compareOp);try{this.enterOuterAlt(e,1),this.state=527,t=this._input.LA(1),t===O.IN_TOK||t===O.IS_TOK||!(t-95&-32)&&1<<t-95&(1<<O.EQ_TOK-95|1<<O.LT_TOK-95|1<<O.GT_TOK-95|1<<O.LEQ_TOK-95|1<<O.GEQ_TOK-95|1<<O.NI_TOK-95)?(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}letDecl(){let t=new X(this._ctx,this.state);this.enterRule(t,64,O.RULE_letDecl);try{this.enterOuterAlt(t,1),this.state=529,this.name(),this.state=530,this.match(O.EQ_TOK),this.state=531,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}block(){let t,e=new J(this._ctx,this.state);this.enterRule(e,66,O.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=533,this.match(O.LEFT_CURLY_TOK),this.state=537,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&(1<<O.STRING_TOK|1<<O.LEFT_CURLY_TOK|1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK|1<<O.LEFT_PAREN_TOK)||!(t-35&-32)&&1<<t-35&(1<<O.NONE_TOK-35|1<<O.UNIV_TOK-35|1<<O.IDEN_TOK-35|1<<O.MINUS_TOK-35|1<<O.ALL_TOK-35|1<<O.LET_TOK-35|1<<O.BIND_TOK-35)||!(t-67&-32)&&1<<t-67&(1<<O.NEG_TOK-67|1<<O.ALWAYS_TOK-67|1<<O.EVENTUALLY_TOK-67|1<<O.AFTER_TOK-67|1<<O.BEFORE_TOK-67|1<<O.ONCE_TOK-67|1<<O.HISTORICALLY_TOK-67|1<<O.CARD_TOK-67|1<<O.TILDE_TOK-67|1<<O.EXP_TOK-67|1<<O.STAR_TOK-67|1<<O.AT_TOK-67|1<<O.BACKQUOTE_TOK-67|1<<O.THIS_TOK-67|1<<O.SEXPR_TOK-67|1<<O.GET_LABEL_TOK-67|1<<O.GET_LABEL_STR_TOK-67|1<<O.GET_LABEL_BOOL_TOK-67|1<<O.GET_LABEL_NUM_TOK-67)||!(t-101&-32)&&1<<t-101&(1<<O.NO_TOK-101|1<<O.SUM_TOK-101|1<<O.INT_TOK-101|1<<O.NUM_CONST_TOK-101|1<<O.QUOTED_IDENTIFIER_TOK-101|1<<O.IDENTIFIER_TOK-101);)this.state=534,this.expr(),this.state=539,this._errHandler.sync(this),t=this._input.LA(1);this.state=540,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}blockOrBar(){let t=new Z(this._ctx,this.state);this.enterRule(t,68,O.RULE_blockOrBar);try{switch(this.state=545,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_CURLY_TOK:this.enterOuterAlt(t,1),this.state=542,this.block();break;case O.BAR_TOK:this.enterOuterAlt(t,2),this.state=543,this.match(O.BAR_TOK),this.state=544,this.expr();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}quant(){let t=new tt(this._ctx,this.state);this.enterRule(t,70,O.RULE_quant);try{switch(this.state=551,this._errHandler.sync(this),this._input.LA(1)){case O.ALL_TOK:this.enterOuterAlt(t,1),this.state=547,this.match(O.ALL_TOK);break;case O.NO_TOK:this.enterOuterAlt(t,2),this.state=548,this.match(O.NO_TOK);break;case O.SUM_TOK:this.enterOuterAlt(t,3),this.state=549,this.match(O.SUM_TOK);break;case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.enterOuterAlt(t,4),this.state=550,this.mult();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}qualName(){let t,e=new et(this._ctx,this.state);this.enterRule(e,72,O.RULE_qualName);try{let r;switch(this.state=568,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:for(this.enterOuterAlt(e,1),this.state=555,this._errHandler.sync(this),t=this._input.LA(1),t===O.THIS_TOK&&(this.state=553,this.match(O.THIS_TOK),this.state=554,this.match(O.SLASH_TOK)),this.state=562,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,66,this._ctx);2!==r&&r!==a.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=557,this.name(),this.state=558,this.match(O.SLASH_TOK)),this.state=564,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,66,this._ctx);this.state=565,this.name();break;case O.INT_TOK:this.enterOuterAlt(e,2),this.state=566,this.match(O.INT_TOK);break;case O.SUM_TOK:this.enterOuterAlt(e,3),this.state=567,this.match(O.SUM_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}optionDecl(){let t,e=new rt(this._ctx,this.state);this.enterRule(e,74,O.RULE_optionDecl);try{switch(this.enterOuterAlt(e,1),this.state=570,this.match(O.OPTION_TOK),this.state=571,this.qualName(),this.state=578,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.state=572,this.qualName();break;case O.STRING_TOK:this.state=573,this.match(O.STRING_TOK);break;case O.MINUS_TOK:case O.NUM_CONST_TOK:this.state=575,this._errHandler.sync(this),t=this._input.LA(1),t===O.MINUS_TOK&&(this.state=574,this.match(O.MINUS_TOK)),this.state=577,this.number();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}name(){let t,e=new nt(this._ctx,this.state);this.enterRule(e,76,O.RULE_name);try{this.enterOuterAlt(e,1),this.state=580,t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameList(){let t=new it(this._ctx,this.state);this.enterRule(t,78,O.RULE_nameList);try{switch(this.state=587,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=582,this.name();break;case 2:this.enterOuterAlt(t,2),this.state=583,this.name(),this.state=584,this.match(O.COMMA_TOK),this.state=585,this.nameList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}qualNameList(){let t=new st(this._ctx,this.state);this.enterRule(t,80,O.RULE_qualNameList);try{switch(this.state=594,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=589,this.qualName();break;case 2:this.enterOuterAlt(t,2),this.state=590,this.qualName(),this.state=591,this.match(O.COMMA_TOK),this.state=592,this.qualNameList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}paraDeclList(){let t=new ot(this._ctx,this.state);this.enterRule(t,82,O.RULE_paraDeclList);try{switch(this.state=601,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,72,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=596,this.paraDecl();break;case 2:this.enterOuterAlt(t,2),this.state=597,this.paraDecl(),this.state=598,this.match(O.COMMA_TOK),this.state=599,this.paraDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}quantDeclList(){let t=new at(this._ctx,this.state);this.enterRule(t,84,O.RULE_quantDeclList);try{switch(this.state=608,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,73,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=603,this.quantDecl();break;case 2:this.enterOuterAlt(t,2),this.state=604,this.quantDecl(),this.state=605,this.match(O.COMMA_TOK),this.state=606,this.quantDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowDeclList(){let t=new lt(this._ctx,this.state);this.enterRule(t,86,O.RULE_arrowDeclList);try{switch(this.state=615,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,74,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=610,this.arrowDecl();break;case 2:this.enterOuterAlt(t,2),this.state=611,this.arrowDecl(),this.state=612,this.match(O.COMMA_TOK),this.state=613,this.arrowDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}letDeclList(){let t=new ct(this._ctx,this.state);this.enterRule(t,88,O.RULE_letDeclList);try{switch(this.state=622,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,75,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=617,this.letDecl();break;case 2:this.enterOuterAlt(t,2),this.state=618,this.letDecl(),this.state=619,this.match(O.COMMA_TOK),this.state=620,this.letDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typescopeList(){let t=new ut(this._ctx,this.state);this.enterRule(t,90,O.RULE_typescopeList);try{switch(this.state=629,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=624,this.typescope();break;case 2:this.enterOuterAlt(t,2),this.state=625,this.typescope(),this.state=626,this.match(O.COMMA_TOK),this.state=627,this.typescopeList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}exprList(){let t=new ht(this._ctx,this.state);this.enterRule(t,92,O.RULE_exprList);try{switch(this.state=636,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,77,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=631,this.expr();break;case 2:this.enterOuterAlt(t,2),this.state=632,this.expr(),this.state=633,this.match(O.COMMA_TOK),this.state=634,this.exprList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr(){let t=new pt(this._ctx,this.state);this.enterRule(t,94,O.RULE_expr);try{switch(this.state=654,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,79,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=638,this.expr1(0);break;case 2:this.enterOuterAlt(t,2),this.state=639,this.match(O.LET_TOK),this.state=640,this.letDeclList(),this.state=641,this.blockOrBar();break;case 3:this.enterOuterAlt(t,3),this.state=643,this.match(O.BIND_TOK),this.state=644,this.letDeclList(),this.state=645,this.blockOrBar();break;case 4:this.enterOuterAlt(t,4),this.state=647,this.quant(),this.state=649,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,78,this._ctx)&&(this.state=648,this.match(O.DISJ_TOK)),this.state=651,this.quantDeclList(),this.state=652,this.blockOrBar()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr1(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new dt(this._ctx,r),i=n;this.enterRecursionRule(n,96,O.RULE_expr1,t);try{let t;for(this.enterOuterAlt(n,1),this.state=657,this.expr1_5(0),this._ctx._stop=this._input.tryLT(-1),this.state=664,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,80,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new dt(e,r),this.pushNewRecursionContext(n,96,O.RULE_expr1),this.state=659,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=660,this.match(O.OR_TOK),this.state=661,this.expr1_5(0)}this.state=666,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,80,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr1_5(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new ft(this._ctx,r),i=n;this.enterRecursionRule(n,98,O.RULE_expr1_5,t);try{let t;for(this.enterOuterAlt(n,1),this.state=668,this.expr2(0),this._ctx._stop=this._input.tryLT(-1),this.state=675,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,81,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new ft(e,r),this.pushNewRecursionContext(n,98,O.RULE_expr1_5),this.state=670,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=671,this.match(O.XOR_TOK),this.state=672,this.expr2(0)}this.state=677,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,81,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr2(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new _t(this._ctx,r),i=n;this.enterRecursionRule(n,100,O.RULE_expr2,t);try{let t;for(this.enterOuterAlt(n,1),this.state=679,this.expr3(),this._ctx._stop=this._input.tryLT(-1),this.state=686,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,82,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new _t(e,r),this.pushNewRecursionContext(n,100,O.RULE_expr2),this.state=681,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=682,this.match(O.IFF_TOK),this.state=683,this.expr3()}this.state=688,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,82,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr3(){let t=new Tt(this._ctx,this.state);this.enterRule(t,102,O.RULE_expr3);try{switch(this.state=697,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,84,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=689,this.expr4(0);break;case 2:this.enterOuterAlt(t,2),this.state=690,this.expr4(0),this.state=691,this.match(O.IMP_TOK),this.state=692,this.expr3(),this.state=695,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,83,this._ctx)&&(this.state=693,this.match(O.ELSE_TOK),this.state=694,this.expr3())}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr4(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new yt(this._ctx,r),i=n;this.enterRecursionRule(n,104,O.RULE_expr4,t);try{let t;for(this.enterOuterAlt(n,1),this.state=700,this.expr4_5(),this._ctx._stop=this._input.tryLT(-1),this.state=707,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,85,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new yt(e,r),this.pushNewRecursionContext(n,104,O.RULE_expr4),this.state=702,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=703,this.match(O.AND_TOK),this.state=704,this.expr4_5()}this.state=709,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,85,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr4_5(){let t=new Ot(this._ctx,this.state);this.enterRule(t,106,O.RULE_expr4_5);try{switch(this.state=727,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,86,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=710,this.expr5();break;case 2:this.enterOuterAlt(t,2),this.state=711,this.expr5(),this.state=712,this.match(O.UNTIL_TOK),this.state=713,this.expr5();break;case 3:this.enterOuterAlt(t,3),this.state=715,this.expr5(),this.state=716,this.match(O.RELEASE_TOK),this.state=717,this.expr5();break;case 4:this.enterOuterAlt(t,4),this.state=719,this.expr5(),this.state=720,this.match(O.SINCE_TOK),this.state=721,this.expr5();break;case 5:this.enterOuterAlt(t,5),this.state=723,this.expr5(),this.state=724,this.match(O.TRIGGERED_TOK),this.state=725,this.expr5()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr5(){let t=new xt(this._ctx,this.state);this.enterRule(t,108,O.RULE_expr5);try{switch(this.state=744,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:case O.SET_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.CARD_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.NO_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,1),this.state=729,this.expr6(0);break;case O.NEG_TOK:this.enterOuterAlt(t,2),this.state=730,this.match(O.NEG_TOK),this.state=731,this.expr5();break;case O.ALWAYS_TOK:this.enterOuterAlt(t,3),this.state=732,this.match(O.ALWAYS_TOK),this.state=733,this.expr5();break;case O.EVENTUALLY_TOK:this.enterOuterAlt(t,4),this.state=734,this.match(O.EVENTUALLY_TOK),this.state=735,this.expr5();break;case O.AFTER_TOK:this.enterOuterAlt(t,5),this.state=736,this.match(O.AFTER_TOK),this.state=737,this.expr5();break;case O.BEFORE_TOK:this.enterOuterAlt(t,6),this.state=738,this.match(O.BEFORE_TOK),this.state=739,this.expr5();break;case O.ONCE_TOK:this.enterOuterAlt(t,7),this.state=740,this.match(O.ONCE_TOK),this.state=741,this.expr5();break;case O.HISTORICALLY_TOK:this.enterOuterAlt(t,8),this.state=742,this.match(O.HISTORICALLY_TOK),this.state=743,this.expr5();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr6(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new gt(this._ctx,n),s=i;this.enterRecursionRule(i,110,O.RULE_expr6,t);try{let t;for(this.enterOuterAlt(i,1),this.state=747,this.expr7(),this._ctx._stop=this._input.tryLT(-1),this.state=758,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,89,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new gt(r,n),this.pushNewRecursionContext(i,110,O.RULE_expr6),this.state=749,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=751,this._errHandler.sync(this),e=this._input.LA(1),e===O.NEG_TOK&&(this.state=750,this.match(O.NEG_TOK)),this.state=753,this.compareOp(),this.state=754,this.expr7()}this.state=760,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,89,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr7(){let t,e=new Et(this._ctx,this.state);this.enterRule(e,112,O.RULE_expr7);try{switch(this.state=764,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.CARD_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,1),this.state=761,this.expr8(0);break;case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:case O.SET_TOK:case O.NO_TOK:this.enterOuterAlt(e,2),this.state=762,t=this._input.LA(1),!(-32&t)&&1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK)||t===O.NO_TOK?(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=763,this.expr8(0);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expr8(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new mt(this._ctx,n),s=i;this.enterRecursionRule(i,114,O.RULE_expr8,t);try{let t;for(this.enterOuterAlt(i,1),this.state=767,this.expr9(),this._ctx._stop=this._input.tryLT(-1),this.state=774,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,91,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new mt(r,n),this.pushNewRecursionContext(i,114,O.RULE_expr8),this.state=769,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=770,e=this._input.LA(1),e!==O.PLUS_TOK&&e!==O.MINUS_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=771,this.expr10(0)}this.state=776,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,91,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr9(){let t=new vt(this._ctx,this.state);this.enterRule(t,116,O.RULE_expr9);try{switch(this.state=780,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,1),this.state=777,this.expr10(0);break;case O.CARD_TOK:this.enterOuterAlt(t,2),this.state=778,this.match(O.CARD_TOK),this.state=779,this.expr9();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr10(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new St(this._ctx,r),i=n;this.enterRecursionRule(n,118,O.RULE_expr10,t);try{let t;for(this.enterOuterAlt(n,1),this.state=783,this.expr11(0),this._ctx._stop=this._input.tryLT(-1),this.state=790,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new St(e,r),this.pushNewRecursionContext(n,118,O.RULE_expr10),this.state=785,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=786,this.match(O.PPLUS_TOK),this.state=787,this.expr11(0)}this.state=792,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr11(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Nt(this._ctx,r),i=n;this.enterRecursionRule(n,120,O.RULE_expr11,t);try{let t;for(this.enterOuterAlt(n,1),this.state=794,this.expr12(0),this._ctx._stop=this._input.tryLT(-1),this.state=801,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Nt(e,r),this.pushNewRecursionContext(n,120,O.RULE_expr11),this.state=796,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=797,this.match(O.AMP_TOK),this.state=798,this.expr12(0)}this.state=803,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr12(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Rt(this._ctx,r),i=n;this.enterRecursionRule(n,122,O.RULE_expr12,t);try{let t;for(this.enterOuterAlt(n,1),this.state=805,this.expr13(0),this._ctx._stop=this._input.tryLT(-1),this.state=813,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,95,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Rt(e,r),this.pushNewRecursionContext(n,122,O.RULE_expr12),this.state=807,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=808,this.arrowOp(),this.state=809,this.expr13(0)}this.state=815,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,95,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr13(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new bt(this._ctx,n),s=i;this.enterRecursionRule(i,124,O.RULE_expr13,t);try{let t;for(this.enterOuterAlt(i,1),this.state=817,this.expr14(0),this._ctx._stop=this._input.tryLT(-1),this.state=824,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,96,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new bt(r,n),this.pushNewRecursionContext(i,124,O.RULE_expr13),this.state=819,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=820,e=this._input.LA(1),e!==O.SUBT_TOK&&e!==O.SUPT_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=821,this.expr14(0)}this.state=826,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,96,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr14(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new At(this._ctx,r),i=n;this.enterRecursionRule(n,126,O.RULE_expr14,t);try{let t;for(this.enterOuterAlt(n,1),this.state=828,this.expr15(0),this._ctx._stop=this._input.tryLT(-1),this.state=837,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,97,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new At(e,r),this.pushNewRecursionContext(n,126,O.RULE_expr14),this.state=830,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=831,this.match(O.LEFT_SQUARE_TOK),this.state=832,this.exprList(),this.state=833,this.match(O.RIGHT_SQUARE_TOK)}this.state=839,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,97,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr15(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Ct(this._ctx,r),i=n;this.enterRecursionRule(n,128,O.RULE_expr15,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=847,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,98,this._ctx)){case 1:this.state=841,this.expr16(0);break;case 2:this.state=842,this.name(),this.state=843,this.match(O.LEFT_SQUARE_TOK),this.state=844,this.exprList(),this.state=845,this.match(O.RIGHT_SQUARE_TOK)}for(this._ctx._stop=this._input.tryLT(-1),this.state=854,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,99,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Ct(e,r),this.pushNewRecursionContext(n,128,O.RULE_expr15),this.state=849,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=850,this.match(O.DOT_TOK),this.state=851,this.expr16(0)}this.state=856,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,99,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr16(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Lt(this._ctx,r),i=n;this.enterRecursionRule(n,130,O.RULE_expr16,t);try{let t;for(this.enterOuterAlt(n,1),this.state=858,this.expr17(),this._ctx._stop=this._input.tryLT(-1),this.state=864,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,100,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Lt(e,r),this.pushNewRecursionContext(n,130,O.RULE_expr16),this.state=860,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=861,this.match(O.PRIME_TOK)}this.state=866,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,100,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr17(){let t,e=new It(this._ctx,this.state);this.enterRule(e,132,O.RULE_expr17);try{switch(this.state=870,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,1),this.state=867,this.expr18();break;case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:this.enterOuterAlt(e,2),this.state=868,t=this._input.LA(1),t-80&-32||!(1<<t-80&(1<<O.TILDE_TOK-80|1<<O.EXP_TOK-80|1<<O.STAR_TOK-80|1<<O.GET_LABEL_TOK-80|1<<O.GET_LABEL_STR_TOK-80|1<<O.GET_LABEL_BOOL_TOK-80|1<<O.GET_LABEL_NUM_TOK-80))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=869,this.expr17();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expr18(){let t=new Pt(this._ctx,this.state);this.enterRule(t,134,O.RULE_expr18);try{switch(this.state=890,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,102,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=872,this.const();break;case 2:this.enterOuterAlt(t,2),this.state=873,this.qualName();break;case 3:this.enterOuterAlt(t,3),this.state=874,this.match(O.AT_TOK),this.state=875,this.name();break;case 4:this.enterOuterAlt(t,4),this.state=876,this.match(O.BACKQUOTE_TOK),this.state=877,this.name();break;case 5:this.enterOuterAlt(t,5),this.state=878,this.match(O.THIS_TOK);break;case 6:this.enterOuterAlt(t,6),this.state=879,this.match(O.LEFT_CURLY_TOK),this.state=880,this.quantDeclList(),this.state=881,this.blockOrBar(),this.state=882,this.match(O.RIGHT_CURLY_TOK);break;case 7:this.enterOuterAlt(t,7),this.state=884,this.match(O.LEFT_PAREN_TOK),this.state=885,this.expr(),this.state=886,this.match(O.RIGHT_PAREN_TOK);break;case 8:this.enterOuterAlt(t,8),this.state=888,this.block();break;case 9:this.enterOuterAlt(t,9),this.state=889,this.sexpr()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowExpr(){let t=new wt(this._ctx,this.state);this.enterRule(t,136,O.RULE_arrowExpr);try{switch(this.state=897,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=892,this.qualName();break;case 2:this.enterOuterAlt(t,2),this.state=893,this.qualName(),this.state=894,this.match(O.ARROW_TOK),this.state=895,this.arrowExpr()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sexprDecl(){let t=new Kt(this._ctx,this.state);this.enterRule(t,138,O.RULE_sexprDecl);try{this.enterOuterAlt(t,1),this.state=899,this.sexpr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sexpr(){let t=new kt(this._ctx,this.state);this.enterRule(t,140,O.RULE_sexpr);try{this.enterOuterAlt(t,1),this.state=901,this.match(O.SEXPR_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}instDecl(){let t,e=new Dt(this._ctx,this.state);this.enterRule(e,142,O.RULE_instDecl);try{this.enterOuterAlt(e,1),this.state=903,this.match(O.INST_TOK),this.state=904,this.name(),this.state=905,this.bounds(),this.state=907,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=906,this.scope())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}evalRelDecl(){let t=new Mt(this._ctx,this.state);this.enterRule(t,144,O.RULE_evalRelDecl);try{this.enterOuterAlt(t,1),this.state=909,this.arrowDecl()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}evalDecl(){let t=new Ut(this._ctx,this.state);this.enterRule(t,146,O.RULE_evalDecl);try{this.enterOuterAlt(t,1),this.state=911,this.match(O.EVAL_TOK),this.state=912,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}exampleDecl(){let t=new Ft(this._ctx,this.state);this.enterRule(t,148,O.RULE_exampleDecl);try{this.enterOuterAlt(t,1),this.state=914,this.match(O.EXAMPLE_TOK),this.state=915,this.name(),this.state=916,this.match(O.IS_TOK),this.state=917,this.expr(),this.state=918,this.match(O.FOR_TOK),this.state=919,this.bounds()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}queryDecl(){let t=new jt(this._ctx,this.state);this.enterRule(t,150,O.RULE_queryDecl);try{this.enterOuterAlt(t,1),this.state=921,this.name(),this.state=922,this.match(O.COLON_TOK),this.state=923,this.arrowExpr(),this.state=924,this.match(O.EQ_TOK),this.state=925,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}numberList(){let t=new Ht(this._ctx,this.state);this.enterRule(t,152,O.RULE_numberList);try{switch(this.state=932,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=927,this.number();break;case 2:this.enterOuterAlt(t,2),this.state=928,this.number(),this.state=929,this.match(O.COMMA_TOK),this.state=930,this.numberList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}number(){let t=new Bt(this._ctx,this.state);this.enterRule(t,154,O.RULE_number);try{this.enterOuterAlt(t,1),this.state=934,this.match(O.NUM_CONST_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}bounds(){let t,e=new Gt(this._ctx,this.state);this.enterRule(e,156,O.RULE_bounds);try{switch(this.state=948,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_CURLY_TOK:for(this.enterOuterAlt(e,1),this.state=936,this.match(O.LEFT_CURLY_TOK),this.state=940,this._errHandler.sync(this),t=this._input.LA(1);t===O.MINUS_TOK||!(t-74&-32)&&1<<t-74&(1<<O.CARD_TOK-74|1<<O.BACKQUOTE_TOK-74|1<<O.THIS_TOK-74|1<<O.NO_TOK-74|1<<O.SUM_TOK-74|1<<O.INT_TOK-74)||!(t-107&-32)&&1<<t-107&(1<<O.NUM_CONST_TOK-107|1<<O.QUOTED_IDENTIFIER_TOK-107|1<<O.IDENTIFIER_TOK-107);)this.state=937,this.bound(),this.state=942,this._errHandler.sync(this),t=this._input.LA(1);this.state=943,this.match(O.RIGHT_CURLY_TOK);break;case O.EXACTLY_TOK:case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,2),this.state=945,this._errHandler.sync(this),t=this._input.LA(1),t===O.EXACTLY_TOK&&(this.state=944,this.match(O.EXACTLY_TOK)),this.state=947,this.qualName();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}atomNameOrNumber(){let t=new zt(this._ctx,this.state);this.enterRule(t,158,O.RULE_atomNameOrNumber);try{switch(this.state=955,this._errHandler.sync(this),this._input.LA(1)){case O.BACKQUOTE_TOK:this.enterOuterAlt(t,1),this.state=950,this.match(O.BACKQUOTE_TOK),this.state=951,this.name();break;case O.NUM_CONST_TOK:this.enterOuterAlt(t,2),this.state=952,this.number();break;case O.MINUS_TOK:this.enterOuterAlt(t,3),this.state=953,this.match(O.MINUS_TOK),this.state=954,this.number();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}bound(){let t=new qt(this._ctx,this.state);this.enterRule(t,160,O.RULE_bound);try{switch(this.state=964,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=957,this.boundLHS(),this.state=958,this.compareOp(),this.state=959,this.bindRHSUnion(0);break;case 2:this.enterOuterAlt(t,2),this.state=961,this.match(O.NO_TOK),this.state=962,this.boundLHS();break;case 3:this.enterOuterAlt(t,3),this.state=963,this.qualName()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}boundLHS(){let t,e=new Vt(this._ctx,this.state);this.enterRule(e,162,O.RULE_boundLHS);try{switch(this.state=976,this._errHandler.sync(this),this._input.LA(1)){case O.CARD_TOK:this.enterOuterAlt(e,1),this.state=966,this.match(O.CARD_TOK),this.state=967,this.qualName();break;case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,2),this.state=968,this.qualName();break;case O.MINUS_TOK:case O.BACKQUOTE_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(e,3),this.state=969,this.atomNameOrNumber(),this.state=972,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=970,this.match(O.DOT_TOK),this.state=971,this.qualName(),this.state=974,this._errHandler.sync(this),t=this._input.LA(1)}while(t===O.DOT_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}bindRHSUnion(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Yt(this._ctx,r),i=n;this.enterRecursionRule(n,164,O.RULE_bindRHSUnion,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=984,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,113,this._ctx)){case 1:this.state=979,this.bindRHSProduct(0);break;case 2:this.state=980,this.match(O.LEFT_PAREN_TOK),this.state=981,this.bindRHSUnion(0),this.state=982,this.match(O.RIGHT_PAREN_TOK)}for(this._ctx._stop=this._input.tryLT(-1),this.state=991,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,114,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Yt(e,r),this.pushNewRecursionContext(n,164,O.RULE_bindRHSUnion),this.state=986,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=987,this.match(O.PLUS_TOK),this.state=988,this.bindRHSProduct(0)}this.state=993,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,114,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}bindRHSProduct(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new $t(this._ctx,n),s=i;this.enterRecursionRule(i,166,O.RULE_bindRHSProduct,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=1e3,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,115,this._ctx)){case 1:this.state=995,this.match(O.LEFT_PAREN_TOK),this.state=996,this.bindRHSProduct(0),this.state=997,this.match(O.RIGHT_PAREN_TOK);break;case 2:this.state=999,this.bindRHSProductBase()}for(this._ctx._stop=this._input.tryLT(-1),this.state=1007,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,116,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new $t(r,n),this.pushNewRecursionContext(i,166,O.RULE_bindRHSProduct),this.state=1002,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=1003,e=this._input.LA(1),e!==O.ARROW_TOK&&e!==O.COMMA_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=1004,this.bindRHSProductBase()}this.state=1009,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,116,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}bindRHSProductBase(){let t=new Qt(this._ctx,this.state);this.enterRule(t,168,O.RULE_bindRHSProductBase);try{switch(this.state=1016,this._errHandler.sync(this),this._input.LA(1)){case O.MINUS_TOK:case O.BACKQUOTE_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(t,1),this.state=1010,this.atomNameOrNumber();break;case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,2),this.state=1011,this.qualName();break;case O.LEFT_PAREN_TOK:this.enterOuterAlt(t,3),this.state=1012,this.match(O.LEFT_PAREN_TOK),this.state=1013,this.bindRHSUnion(0),this.state=1014,this.match(O.RIGHT_PAREN_TOK);break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,r){switch(e){case 48:return this.expr1_sempred(t,r);case 49:return this.expr1_5_sempred(t,r);case 50:return this.expr2_sempred(t,r);case 52:return this.expr4_sempred(t,r);case 55:return this.expr6_sempred(t,r);case 57:return this.expr8_sempred(t,r);case 59:return this.expr10_sempred(t,r);case 60:return this.expr11_sempred(t,r);case 61:return this.expr12_sempred(t,r);case 62:return this.expr13_sempred(t,r);case 63:return this.expr14_sempred(t,r);case 64:return this.expr15_sempred(t,r);case 65:return this.expr16_sempred(t,r);case 82:return this.bindRHSUnion_sempred(t,r);case 83:return this.bindRHSProduct_sempred(t,r)}return!0}expr1_sempred(t,e){return 0!==e||this.precpred(this._ctx,1)}expr1_5_sempred(t,e){return 1!==e||this.precpred(this._ctx,1)}expr2_sempred(t,e){return 2!==e||this.precpred(this._ctx,1)}expr4_sempred(t,e){return 3!==e||this.precpred(this._ctx,1)}expr6_sempred(t,e){return 4!==e||this.precpred(this._ctx,1)}expr8_sempred(t,e){return 5!==e||this.precpred(this._ctx,1)}expr10_sempred(t,e){return 6!==e||this.precpred(this._ctx,1)}expr11_sempred(t,e){return 7!==e||this.precpred(this._ctx,1)}expr12_sempred(t,e){return 8!==e||this.precpred(this._ctx,1)}expr13_sempred(t,e){return 9!==e||this.precpred(this._ctx,1)}expr14_sempred(t,e){return 10!==e||this.precpred(this._ctx,1)}expr15_sempred(t,e){return 11!==e||this.precpred(this._ctx,2)}expr16_sempred(t,e){return 12!==e||this.precpred(this._ctx,1)}bindRHSUnion_sempred(t,e){return 13!==e||this.precpred(this._ctx,2)}bindRHSProduct_sempred(t,e){return 14!==e||this.precpred(this._ctx,2)}static get _ATN(){return O.__ATN||(O.__ATN=(new l.ATNDeserializer).deserialize(y.toCharArray(O._serializedATN))),O.__ATN}}e.ForgeParser=O,O.OPEN_TOK=1,O.LEFT_SQUARE_TOK=2,O.RIGHT_SQUARE_TOK=3,O.AS_TOK=4,O.STRING_TOK=5,O.VAR_TOK=6,O.ABSTRACT_TOK=7,O.SIG_TOK=8,O.LEFT_CURLY_TOK=9,O.RIGHT_CURLY_TOK=10,O.EXTENDS_TOK=11,O.IN_TOK=12,O.PLUS_TOK=13,O.LONE_TOK=14,O.SOME_TOK=15,O.ONE_TOK=16,O.TWO_TOK=17,O.SET_TOK=18,O.FUNC_TOK=19,O.PFUNC_TOK=20,O.DISJ_TOK=21,O.COLON_TOK=22,O.WHEAT_TOK=23,O.PRED_TOK=24,O.DOT_TOK=25,O.FUN_TOK=26,O.LEFT_PAREN_TOK=27,O.RIGHT_PAREN_TOK=28,O.ASSERT_TOK=29,O.RUN_TOK=30,O.CHECK_TOK=31,O.FOR_TOK=32,O.BUT_TOK=33,O.EXACTLY_TOK=34,O.NONE_TOK=35,O.UNIV_TOK=36,O.IDEN_TOK=37,O.MINUS_TOK=38,O.IS_TOK=39,O.SAT_TOK=40,O.UNSAT_TOK=41,O.THEOREM_TOK=42,O.FORGE_ERROR_TOK=43,O.CHECKED_TOK=44,O.TEST_TOK=45,O.EXPECT_TOK=46,O.SUITE_TOK=47,O.BAR_TOK=48,O.ALL_TOK=49,O.SUFFICIENT_TOK=50,O.NECESSARY_TOK=51,O.CONSISTENT_TOK=52,O.INCONSISTENT_TOK=53,O.WITH_TOK=54,O.LET_TOK=55,O.BIND_TOK=56,O.OR_TOK=57,O.XOR_TOK=58,O.IFF_TOK=59,O.IMP_TOK=60,O.ELSE_TOK=61,O.AND_TOK=62,O.UNTIL_TOK=63,O.RELEASE_TOK=64,O.SINCE_TOK=65,O.TRIGGERED_TOK=66,O.NEG_TOK=67,O.ALWAYS_TOK=68,O.EVENTUALLY_TOK=69,O.AFTER_TOK=70,O.BEFORE_TOK=71,O.ONCE_TOK=72,O.HISTORICALLY_TOK=73,O.CARD_TOK=74,O.PPLUS_TOK=75,O.AMP_TOK=76,O.SUBT_TOK=77,O.SUPT_TOK=78,O.PRIME_TOK=79,O.TILDE_TOK=80,O.EXP_TOK=81,O.STAR_TOK=82,O.AT_TOK=83,O.BACKQUOTE_TOK=84,O.THIS_TOK=85,O.SEXPR_TOK=86,O.INST_TOK=87,O.EVAL_TOK=88,O.EXAMPLE_TOK=89,O.ARROW_TOK=90,O.GET_LABEL_TOK=91,O.GET_LABEL_STR_TOK=92,O.GET_LABEL_BOOL_TOK=93,O.GET_LABEL_NUM_TOK=94,O.EQ_TOK=95,O.LT_TOK=96,O.GT_TOK=97,O.LEQ_TOK=98,O.GEQ_TOK=99,O.NI_TOK=100,O.NO_TOK=101,O.SUM_TOK=102,O.INT_TOK=103,O.OPTION_TOK=104,O.COMMA_TOK=105,O.SLASH_TOK=106,O.NUM_CONST_TOK=107,O.QUOTED_IDENTIFIER_TOK=108,O.IDENTIFIER_TOK=109,O.WS=110,O.CCOMMENT=111,O.COMMENT=112,O.MULTCOMMENT=113,O.LANG_DECL=114,O.RULE_predDecl=0,O.RULE_parseExpr=1,O.RULE_alloyModule=2,O.RULE_importDecl=3,O.RULE_paragraph=4,O.RULE_sigDecl=5,O.RULE_sigExt=6,O.RULE_mult=7,O.RULE_arrowMult=8,O.RULE_helperMult=9,O.RULE_paraDecl=10,O.RULE_quantDecl=11,O.RULE_arrowDecl=12,O.RULE_predType=13,O.RULE_funDecl=14,O.RULE_paraDecls=15,O.RULE_assertDecl=16,O.RULE_cmdDecl=17,O.RULE_testDecl=18,O.RULE_testExpectDecl=19,O.RULE_testBlock=20,O.RULE_scope=21,O.RULE_typescope=22,O.RULE_const=23,O.RULE_satisfiabilityDecl=24,O.RULE_quantifiedPropertyDecl=25,O.RULE_propertyDecl=26,O.RULE_consistencyDecl=27,O.RULE_testSuiteDecl=28,O.RULE_testConstruct=29,O.RULE_arrowOp=30,O.RULE_compareOp=31,O.RULE_letDecl=32,O.RULE_block=33,O.RULE_blockOrBar=34,O.RULE_quant=35,O.RULE_qualName=36,O.RULE_optionDecl=37,O.RULE_name=38,O.RULE_nameList=39,O.RULE_qualNameList=40,O.RULE_paraDeclList=41,O.RULE_quantDeclList=42,O.RULE_arrowDeclList=43,O.RULE_letDeclList=44,O.RULE_typescopeList=45,O.RULE_exprList=46,O.RULE_expr=47,O.RULE_expr1=48,O.RULE_expr1_5=49,O.RULE_expr2=50,O.RULE_expr3=51,O.RULE_expr4=52,O.RULE_expr4_5=53,O.RULE_expr5=54,O.RULE_expr6=55,O.RULE_expr7=56,O.RULE_expr8=57,O.RULE_expr9=58,O.RULE_expr10=59,O.RULE_expr11=60,O.RULE_expr12=61,O.RULE_expr13=62,O.RULE_expr14=63,O.RULE_expr15=64,O.RULE_expr16=65,O.RULE_expr17=66,O.RULE_expr18=67,O.RULE_arrowExpr=68,O.RULE_sexprDecl=69,O.RULE_sexpr=70,O.RULE_instDecl=71,O.RULE_evalRelDecl=72,O.RULE_evalDecl=73,O.RULE_exampleDecl=74,O.RULE_queryDecl=75,O.RULE_numberList=76,O.RULE_number=77,O.RULE_bounds=78,O.RULE_atomNameOrNumber=79,O.RULE_bound=80,O.RULE_boundLHS=81,O.RULE_bindRHSUnion=82,O.RULE_bindRHSProduct=83,O.RULE_bindRHSProductBase=84,O.ruleNames=["predDecl","parseExpr","alloyModule","importDecl","paragraph","sigDecl","sigExt","mult","arrowMult","helperMult","paraDecl","quantDecl","arrowDecl","predType","funDecl","paraDecls","assertDecl","cmdDecl","testDecl","testExpectDecl","testBlock","scope","typescope","const","satisfiabilityDecl","quantifiedPropertyDecl","propertyDecl","consistencyDecl","testSuiteDecl","testConstruct","arrowOp","compareOp","letDecl","block","blockOrBar","quant","qualName","optionDecl","name","nameList","qualNameList","paraDeclList","quantDeclList","arrowDeclList","letDeclList","typescopeList","exprList","expr","expr1","expr1_5","expr2","expr3","expr4","expr4_5","expr5","expr6","expr7","expr8","expr9","expr10","expr11","expr12","expr13","expr14","expr15","expr16","expr17","expr18","arrowExpr","sexprDecl","sexpr","instDecl","evalRelDecl","evalDecl","exampleDecl","queryDecl","numberList","number","bounds","atomNameOrNumber","bound","boundLHS","bindRHSUnion","bindRHSProduct","bindRHSProductBase"],O._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,"'until'","'release'","'since'","'triggered'",void 0,"'always'","'eventually'","'after'","'before'","'once'","'historically'","'#'","'++'","'&'","'<:'","':>'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],O._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],O.VOCABULARY=new T.VocabularyImpl(O._LITERAL_NAMES,O._SYMBOLIC_NAMES,[]),O._serializedATNSegments=2,O._serializedATNSegment0="줝쪺֍꾺体؇쉁tϽ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tV¯\n´\n¸\nÀ\n\fÃ\vÆ\n\fÉ\vÌ\n\fÏ\vÑ\nÙ\nÝ\nã\nå\nø\nû\nþ\nā\nĆ\nĊ\nĎ\n\b\b\b\b\b\b\bĖ\n\b\f\b\bę\v\b\bě\n\b\t\t\n\n\v\v\f\fĤ\n\f\f\f\f\fĩ\n\f\f\f\r\rĮ\n\r\r\r\r\rij\n\r\r\rĸ\nŅ\nʼn\nō\nŖ\nś\nŞ\nŢ\nũ\nŮ\nű\nŵ\nź\nž\nƁ\nƅ\nƋ\nƏ\nƕ\n\fƘ\vƠ\nƤ\nƧ\nư\nƴ\nƻ\nƿ\nDŽ\nǑ\nǔ\nǘ\nǡ\nǥ\nǮ\nDz\nǺ\n\fǽ\vȇ\n   ȋ\n     Ȑ\n !!\"\"\"\"###Ț\n#\f##ȝ\v###$$$$Ȥ\n$%%%%%Ȫ\n%&&&Ȯ\n&&&&&ȳ\n&\f&&ȶ\v&&&&&Ȼ\n&''''''ɂ\n'''Ʌ\n'(())))))Ɏ\n)******ɕ\n*++++++ɜ\n+,,,,,,ɣ\n,------ɪ\n-......ɱ\n.//////ɸ\n/000000ɿ\n0111111111111ʌ\n11111ʑ\n12222222ʙ\n2\f22ʜ\v23333333ʤ\n3\f33ʧ\v34444444ʯ\n4\f44ʲ\v45555555ʺ\n55ʼ\n56666666˄\n6\f66ˇ\v6777777777777777777˚\n78888888888888888˫\n8999999˲\n99999˷\n9\f99˺\v9::::˿\n:;;;;;;;̇\n;\f;;̊\v;<<<<̏\n<=======̗\n=\f==̚\v=>>>>>>>̢\n>\f>>̥\v>????????̮\n?\f??̱\v?@@@@@@@̹\n@\f@@̼\v@AAAAAAAAA͆\nA\fAA͉\vABBBBBBBB͒\nBBBBB͗\nB\fBB͚\vBCCCCCC͡\nC\fCCͤ\vCDDDDͩ\nDEEEEEEEEEEEEEEEEEEEͽ\nEFFFFFF΄\nFGGHHIIIIIΎ\nIJJKKKLLLLLLLMMMMMMNNNNNNΧ\nNOOPPPέ\nP\fPPΰ\vPPPPδ\nPPPη\nPQQQQQQξ\nQRRRRRRRRχ\nRSSSSSSSϏ\nS\rSSϐSϓ\nSTTTTTTTϛ\nTTTTTϠ\nT\fTTϣ\vTUUUUUUUϫ\nUUUUUϰ\nU\fUUϳ\vUVVVVVVVϻ\nVVbdfjptxz|~€‚„¦¨W\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª !*.*+--4567))afnogg((OPRT]`\\\\kkѐ¬»Ð\bä\n÷\fúĚĜĞĠģĭķľŀ ŝ\"ş$Ũ&Ź(Ɗ*ƒ,ƣ.Ʀ0Ƴ2Ƶ4ǀ6Ǚ8Ǧ:dz<Ȇ>Ȋ@ȑBȓDȗFȣHȩJȺLȼNɆPɍRɔTɛVɢXɩZɰ\\ɷ^ɾ`ʐbʒdʝfʨhʻjʽl˙n˪pˬr˾t̀v̎x̐z̛|̦~̲€̽‚͑„͛†ͨˆͼŠ΃Œ΅Ž·Ή’Ώ”Α–Δ˜ΛšΦœΨžζ ν¢φ¤ϒ¦Ϛ¨ϪªϺ¬®­¯®­®¯¯³°±J&±²²´³°³´´µµ·N(¶¸ ·¶·¸¸¹¹ºD#º»¼`1¼½½¾À\b¿¾ÀÃÁ¿ÁÂÂÇÃÁÄÆ\nÅÄÆÉÇÅÇÈÈÑÉÇÊÌ”KËÊÌÏÍËÍÎÎÑÏÍÐÁÐÍÑÒÓÓØJ&ÔÕÕÖR*Ö××ÙØÔØÙÙÜÚÛÛÝN(ÜÚÜÝÝåÞßßâàááãN(âàâããåäÒäÞå\tæø\fçøèøéø\"êø$ëø(ìøŒGíø˜Mîø’JïøL'ðøIñø–Lòø6óø4ôø2õø8öø:÷æ÷ç÷è÷é÷ê÷ë÷ì÷í÷î÷ï÷ð÷ñ÷ò÷ó÷ô÷õ÷öø\vùû\búùúûûýüþ\týüýþþĀÿā\tĀÿĀāāĂĂă\năąP)ĄĆ\bąĄąĆĆććĉ\vĈĊX-ĉĈĉĊĊċċč\fČĎD#čČčĎĎ\rďĐ\rĐěJ&đĒĒėJ&ēĔĔĖJ&ĕēĖęėĕėĘĘěęėĚďĚđěĜĝ\tĝĞğ\tğĠġ\tġĢĤģĢģĤĤĥĥĦP)ĦĨħĩ\vĨħĨĩĩĪĪī`1īĬĮĭĬĭĮĮįįİP)İIJıijIJıIJijijĴĴĵ`1ĵĶĸ\bķĶķĸĸĹĹĺP)ĺĻĻļ\nļĽŠFĽľĿĿŀńŁłJ&łŃŃŅńŁńŅŅņņňN(Ňʼn ňŇňʼnʼnŊŊŌŋō\vŌŋŌōōŎŎŏ`1ŏŐ\vŐő`1őŒ\fŒœŕŔŖT+ŕŔŕŖŖŗŗŞŘŚřśT+ŚřŚśśŜŜŞŝœŝŘŞ!şšŠŢN(šŠšŢŢţţŤD#Ť#ťŦN(ŦŧŧũŨťŨũũŪŪŭ\tūŮJ&ŬŮD#ŭūŭŬŭŮŮŰůű,ŰůŰűűŴŲų\"ųŵžPŴŲŴŵŵ%ŶŷN(ŷŸŸźŹŶŹźźŽŻžJ&żžD#ŽŻŽżžƀſƁ,ƀſƀƁƁƄƂƃ\"ƃƅžPƄƂƄƅƅƆƆƇ)Ƈƈ\tƈ'ƉƋ/ƊƉƊƋƋƌƌƎ0ƍƏN(ƎƍƎƏƏƐƐƑ*Ƒ)ƒƖ\vƓƕ&ƔƓƕƘƖƔƖƗƗƙƘƖƙƚ\fƚ+ƛƜ\"ƜƟœOƝƞ#ƞƠ\\/ƟƝƟƠƠƤơƢ\"ƢƤ\\/ƣƛƣơƤ-ƥƧ$ƦƥƦƧƧƨƨƩœOƩƪJ&ƪ/ƫƴ%Ƭƴ&ƭƴ'Ʈư(ƯƮƯưưƱƱƴœOƲƴƳƫƳƬƳƭƳƯƳƲƴ1ƵƶƶƷ`1ƷƸ)Ƹƺ\tƹƻ,ƺƹ",O._serializedATNSegment1='ƺƻƻƾƼƽ"ƽƿžPƾƼƾƿƿ3ǀǁǁǃ3ǂDŽǃǂǃDŽDŽDžDždžV,džLJ2LJLj`1Ljlj)ljNJ\t\bNJNj"NjǐN(njǍǍǎ^0ǎǏǏǑǐnjǐǑǑǓǒǔ,ǓǒǓǔǔǗǕǖ"ǖǘžPǗǕǗǘǘ5ǙǚǚǛ`1Ǜǜ)ǜǝ\t\bǝǞ"ǞǠN(ǟǡ,ǠǟǠǡǡǤǢǣ"ǣǥžPǤǢǤǥǥ7ǦǧǧǨ`1Ǩǩ)ǩǪ\t\tǪǫ8ǫǭN(ǬǮ,ǭǬǭǮǮDZǯǰ"ǰDzžPDZǯDZDzDz9dzǴ/Ǵǵ1ǵǶ"ǶǷN(Ƿǻ\vǸǺ<ǹǸǺǽǻǹǻǼǼǾǽǻǾǿ\fǿ;Ȁȇ–Lȁȇ(Ȃȇ4ȃȇ6Ȅȇ2ȅȇ8ȆȀȆȁȆȂȆȃȆȄȆȅȇ=Ȉȋ\tȉȋȊȈȊȉȊȋȋȌȌȏ\\ȍȐ\tȎȐȏȍȏȎȏȐȐ?ȑȒ\t\nȒAȓȔN(ȔȕaȕȖ`1ȖCȗț\vȘȚ`1șȘȚȝțșțȜȜȞȝțȞȟ\fȟEȠȤD#ȡȢ2ȢȤ`1ȣȠȣȡȤGȥȪ3ȦȪgȧȪhȨȪ\tȩȥȩȦȩȧȩȨȪIȫȬWȬȮlȭȫȭȮȮȴȯȰN(ȰȱlȱȳȲȯȳȶȴȲȴȵȵȷȶȴȷȻN(ȸȻiȹȻhȺȭȺȸȺȹȻKȼȽjȽɄJ&ȾɅJ&ȿɅɀɂ(ɁɀɁɂɂɃɃɅœOɄȾɄȿɄɁɅMɆɇ\t\vɇOɈɎN(ɉɊN(ɊɋkɋɌP)ɌɎɍɈɍɉɎQɏɕJ&ɐɑJ&ɑɒkɒɓR*ɓɕɔɏɔɐɕSɖɜ\fɗɘ\fɘəkəɚT+ɚɜɛɖɛɗɜUɝɣ\rɞɟ\rɟɠkɠɡV,ɡɣɢɝɢɞɣWɤɪɥɦɦɧkɧɨX-ɨɪɩɤɩɥɪYɫɱB"ɬɭB"ɭɮkɮɯZ.ɯɱɰɫɰɬɱ[ɲɸ.ɳɴ.ɴɵkɵɶ\\/ɶɸɷɲɷɳɸ]ɹɿ`1ɺɻ`1ɻɼkɼɽ^0ɽɿɾɹɾɺɿ_ʀʑb2ʁʂ9ʂʃZ.ʃʄF$ʄʑʅʆ:ʆʇZ.ʇʈF$ʈʑʉʋH%ʊʌʋʊʋʌʌʍʍʎV,ʎʏF$ʏʑʐʀʐʁʐʅʐʉʑaʒʓ\b2ʓʔd3ʔʚʕʖ\fʖʗ;ʗʙd3ʘʕʙʜʚʘʚʛʛcʜʚʝʞ\b3ʞʟf4ʟʥʠʡ\fʡʢ<ʢʤf4ʣʠʤʧʥʣʥʦʦeʧʥʨʩ\b4ʩʪh5ʪʰʫʬ\fʬʭ=ʭʯh5ʮʫʯʲʰʮʰʱʱgʲʰʳʼj6ʴʵj6ʵʶ>ʶʹh5ʷʸ?ʸʺh5ʹʷʹʺʺʼʻʳʻʴʼiʽʾ\b6ʾʿl7ʿ˅ˀˁ\fˁ˂@˂˄l7˃ˀ˄ˇ˅˃˅ˆˆkˇ˅ˈ˚n8ˉˊn8ˊˋAˋˌn8ˌ˚ˍˎn8ˎˏBˏːn8ː˚ˑ˒n8˒˓C˓˔n8˔˚˕˖n8˖˗D˗˘n8˘˚˙ˈ˙ˉ˙ˍ˙ˑ˙˕˚m˛˫p9˜˝E˝˫n8˞˟F˟˫n8ˠˡGˡ˫n8ˢˣHˣ˫n8ˤ˥I˥˫n8˦˧J˧˫n8˨˩K˩˫n8˪˛˪˜˪˞˪ˠ˪ˢ˪ˤ˪˦˪˨˫oˬ˭\b9˭ˮr:ˮ˸˯˱\f˰˲E˱˰˱˲˲˳˳˴@!˴˵r:˵˷˶˯˷˺˸˶˸˹˹q˺˸˻˿t;˼˽\t\f˽˿t;˾˻˾˼˿s̀́\b;́̂v<̂̈̃̄\f̄̅\t\r̅̇x=̆̃̇̊̈̆̈̉̉ů̈̋̏x=̌̍L̍̏v<̎̋̎̌̏w̐̑\b=̑̒z>̘̒̓̔\f̔̕M̗̕z>̖̗̘̖̘̙̙̓̚y̛̘̜̚\b>̜̝|?̝̣̞̟\f̟̠N̢̠|?̡̢̡̞̥̣̣̤̤{̧̥̣̦\b?̧̨~@̨̯̩̪\f̪̫> ̫̬~@̬̮̭̩̮̱̯̭̯̰̰}̱̯̲̳\b@̴̳€A̴̵̶̺\f̶̷\t̷̹€A̸̵̸̹̼̺̺̻̻̼̺̽̾\bA̾̿‚B͇̿̀́\f́͂͂̓^0͉͇͇͈͈̓̈́̈́͆̀͆ͅͅ͉͇͊͋\bB͋͒„C͍͌N(͍͎͎͏^0͏͓͔͐͐͒͑͊͑͌͒͘\f͔͕͕͗„C͖͓͚͖͙͙͗͘͘ƒ͚͛͘͜\bC͜͝†D͢͟͝͞\f͟͡Qͤͣͣ͢͢͠͞͡͠…ͤͥͩ͢ˆEͦͧ\tͧͩ†Dͨͥͨͦͩ‡ͪͽ0ͫͽJ&ͬͭUͭͽN(ͮͯVͯͽN(ͰͽWͱͲ\vͲͳV,ͳʹF$ʹ͵\f͵ͽͶͷͷ͸`1͸͹͹ͽͺͽD#ͻͽŽHͼͪͼͫͼͬͼͮͼͰͼͱͼͶͼͺͼͻͽ‰;΄J&Ϳ΀J&΀΁\\΁΂ŠF΂΄΃;΃Ϳ΄‹΅ΆŽHΆ·ΈXΈΉΊYΊ΋N(΋΍žPΌΎ,΍Ό΍ΎΎ‘Ώΐΐ“ΑΒZΒΓ`1Γ•ΔΕ[ΕΖN(ΖΗ)ΗΘ`1ΘΙ"ΙΚžPΚ—ΛΜN(ΜΝΝΞŠFΞΟaΟΠ`1Π™ΡΧœO΢ΣœOΣΤkΤΥšNΥΧΦΡΦ΢Χ›ΨΩmٝΪή\vΫέ¢RάΫέΰήάήίίαΰήαη\fβδ$γβγδδεεηJ&ζΪζγηŸθιVιξN(κξœOλμ(μξœOνθνκνλξ¡οπ¤Sπρ@!ρς¦Tςχστgτχ¤SυχJ&φοφσφυχ£ψωLωϓJ&ϊϓJ&ϋώ QόύύϏJ&ώόϏϐϐώϐϑϑϓϒψϒϊϒϋϓ¥ϔϕ\bTϕϛ¨UϖϗϗϘ¦TϘϙϙϛϚϔϚϖϛϡϜϝ\fϝϞϞϠ¨UϟϜϠϣϡϟϡϢϢ§ϣϡϤϥ\bUϥϦϦϧ¨UϧϨϨϫϩϫªVϪϤϪϩϫϱϬϭ\fϭϮ\tϮϰªVϯϬϰϳϱϯϱϲϲ©ϳϱϴϻ QϵϻJ&϶ϷϷϸ¦TϸϹϹϻϺϴϺϵϺ϶ϻ«x®³·ÁÇÍÐØÜâä÷úýĀąĉčėĚģĨĭIJķńňŌŕŚŝšŨŭŰŴŹŽƀƄƊƎƖƟƣƦƯƳƺƾǃǐǓǗǠǤǭDZǻȆȊȏțȣȩȭȴȺɁɄɍɔɛɢɩɰɷɾʋʐʚʥʰʹʻ˅˙˪˱˸˾̘̣̯̺͇̈̎͑ͨ͘͢ͼ΃΍ΦήγζνφϐϒϚϡϪϱϺ',O._serializedATN=y.join([O._serializedATNSegment0,O._serializedATNSegment1],"");class x extends p.ParserRuleContext{PRED_TOK(){return this.getToken(O.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,P)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,K)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=x;class g extends p.ParserRuleContext{expr(){return this.getRuleContext(0,pt)}EOF(){return this.getToken(O.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=g;class E extends p.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(m):this.getRuleContext(t,m)}paragraph(t){return void 0===t?this.getRuleContexts(v):this.getRuleContext(t,v)}evalDecl(t){return void 0===t?this.getRuleContexts(Ut):this.getRuleContext(t,Ut)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=E;class m extends p.ParserRuleContext{OPEN_TOK(){return this.getToken(O.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,st)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(O.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=m;class v extends p.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,S)}predDecl(){return this.tryGetRuleContext(0,x)}funDecl(){return this.tryGetRuleContext(0,w)}assertDecl(){return this.tryGetRuleContext(0,k)}cmdDecl(){return this.tryGetRuleContext(0,D)}testExpectDecl(){return this.tryGetRuleContext(0,U)}sexprDecl(){return this.tryGetRuleContext(0,Kt)}queryDecl(){return this.tryGetRuleContext(0,jt)}evalRelDecl(){return this.tryGetRuleContext(0,Mt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Dt)}exampleDecl(){return this.tryGetRuleContext(0,Ft)}propertyDecl(){return this.tryGetRuleContext(0,q)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,z)}satisfiabilityDecl(){return this.tryGetRuleContext(0,G)}consistencyDecl(){return this.tryGetRuleContext(0,V)}testSuiteDecl(){return this.tryGetRuleContext(0,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=v;class S extends p.ParserRuleContext{SIG_TOK(){return this.getToken(O.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(O.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(O.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,R)}sigExt(){return this.tryGetRuleContext(0,N)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=S;class N extends p.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(O.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(O.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(O.PLUS_TOK):this.getToken(O.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=N;class R extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(O.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=R;class b extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(O.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(O.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=b;class A extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(O.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(O.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=A;class C extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(){return this.getRuleContext(0,pt)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,A)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=C;class L extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(){return this.getRuleContext(0,pt)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=L;class I extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,b)}arrowExpr(){return this.getRuleContext(0,wt)}VAR_TOK(){return this.tryGetToken(O.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=I;class P extends p.ParserRuleContext{WHEAT_TOK(){return this.getToken(O.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=P;class w extends p.ParserRuleContext{FUN_TOK(){return this.getToken(O.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(pt):this.getRuleContext(t,pt)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,K)}helperMult(){return this.tryGetRuleContext(0,A)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=w;class K extends p.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,ot)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=K;class k extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=k;class D extends p.ParserRuleContext{RUN_TOK(){return this.tryGetToken(O.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(O.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(O.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=D;class M extends p.ParserRuleContext{IS_TOK(){return this.getToken(O.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(O.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(O.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(O.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(O.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(O.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(O.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=M;class U extends p.ParserRuleContext{EXPECT_TOK(){return this.getToken(O.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,F)}TEST_TOK(){return this.tryGetToken(O.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=U;class F extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(M):this.getRuleContext(t,M)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=F;class j extends p.ParserRuleContext{FOR_TOK(){return this.getToken(O.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,Bt)}BUT_TOK(){return this.tryGetToken(O.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=j;class H extends p.ParserRuleContext{number(){return this.getRuleContext(0,Bt)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(O.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=H;class B extends p.ParserRuleContext{NONE_TOK(){return this.tryGetToken(O.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(O.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(O.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,Bt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=B;class G extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(O.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(O.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(O.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=G;class z extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(O.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(O.BAR_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(O.FOR_TOK):this.getToken(O.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(O.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(O.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=z;class q extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(O.FOR_TOK):this.getToken(O.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(O.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(O.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=q;class V extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}WITH_TOK(){return this.getToken(O.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(O.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(O.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=V;class Y extends p.ParserRuleContext{TEST_TOK(){return this.getToken(O.TEST_TOK,0)}SUITE_TOK(){return this.getToken(O.SUITE_TOK,0)}FOR_TOK(){return this.getToken(O.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts($):this.getRuleContext(t,$)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=Y;class $ extends p.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Ft)}testExpectDecl(){return this.tryGetRuleContext(0,U)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,z)}propertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,G)}consistencyDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=$;class Q extends p.ParserRuleContext{ARROW_TOK(){return this.getToken(O.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(R):this.getRuleContext(t,R)}SET_TOK(t){return void 0===t?this.getTokens(O.SET_TOK):this.getToken(O.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=Q;class W extends p.ParserRuleContext{IN_TOK(){return this.tryGetToken(O.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(O.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(O.LT_TOK,0)}GT_TOK(){return this.tryGetToken(O.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(O.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(O.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(O.IS_TOK,0)}NI_TOK(){return this.tryGetToken(O.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=W;class X extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(O.EQ_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=X;class J extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(pt):this.getRuleContext(t,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends p.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(O.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends p.ParserRuleContext{ALL_TOK(){return this.tryGetToken(O.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(O.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,R)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends p.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(O.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(O.SLASH_TOK):this.getToken(O.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(O.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(O.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends p.ParserRuleContext{OPTION_TOK(){return this.getToken(O.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}number(){return this.tryGetRuleContext(0,Bt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends p.ParserRuleContext{IDENTIFIER_TOK(){return this.tryGetToken(O.IDENTIFIER_TOK,0)}QUOTED_IDENTIFIER_TOK(){return this.tryGetToken(O.QUOTED_IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class st extends p.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=st;class ot extends p.ParserRuleContext{paraDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=ot;class at extends p.ParserRuleContext{quantDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends p.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,I)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ct extends p.ParserRuleContext{letDecl(){return this.getRuleContext(0,X)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ct;class ut extends p.ParserRuleContext{typescope(){return this.getRuleContext(0,H)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ut;class ht extends p.ParserRuleContext{expr(){return this.getRuleContext(0,pt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class pt extends p.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,dt)}LET_TOK(){return this.tryGetToken(O.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ct)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(O.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=pt;class dt extends p.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,dt)}OR_TOK(){return this.tryGetToken(O.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=dt;class ft extends p.ParserRuleContext{expr2(){return this.getRuleContext(0,_t)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(O.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class _t extends p.ParserRuleContext{expr3(){return this.getRuleContext(0,Tt)}expr2(){return this.tryGetRuleContext(0,_t)}IFF_TOK(){return this.tryGetToken(O.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=_t;class Tt extends p.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(O.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(Tt):this.getRuleContext(t,Tt)}ELSE_TOK(){return this.tryGetToken(O.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=Tt;class yt extends p.ParserRuleContext{expr4_5(){return this.getRuleContext(0,Ot)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(O.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class Ot extends p.ParserRuleContext{expr5(t){return void 0===t?this.getRuleContexts(xt):this.getRuleContext(t,xt)}UNTIL_TOK(){return this.tryGetToken(O.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(O.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(O.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(O.TRIGGERED_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr4_5}enterRule(t){t.enterExpr4_5&&t.enterExpr4_5(this)}exitRule(t){t.exitExpr4_5&&t.exitExpr4_5(this)}accept(t){return t.visitExpr4_5?t.visitExpr4_5(this):t.visitChildren(this)}}e.Expr4_5Context=Ot;class xt extends p.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,gt)}NEG_TOK(){return this.tryGetToken(O.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,xt)}ALWAYS_TOK(){return this.tryGetToken(O.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(O.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(O.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(O.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(O.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(O.HISTORICALLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=xt;class gt extends p.ParserRuleContext{expr7(){return this.getRuleContext(0,Et)}expr6(){return this.tryGetRuleContext(0,gt)}compareOp(){return this.tryGetRuleContext(0,W)}NEG_TOK(){return this.tryGetToken(O.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=gt;class Et extends p.ParserRuleContext{expr8(){return this.getRuleContext(0,mt)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(O.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=Et;class mt extends p.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,vt)}expr8(){return this.tryGetRuleContext(0,mt)}expr10(){return this.tryGetRuleContext(0,St)}PLUS_TOK(){return this.tryGetToken(O.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=mt;class vt extends p.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,St)}CARD_TOK(){return this.tryGetToken(O.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,vt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=vt;class St extends p.ParserRuleContext{expr11(){return this.getRuleContext(0,Nt)}expr10(){return this.tryGetRuleContext(0,St)}PPLUS_TOK(){return this.tryGetToken(O.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=St;class Nt extends p.ParserRuleContext{expr12(){return this.getRuleContext(0,Rt)}expr11(){return this.tryGetRuleContext(0,Nt)}AMP_TOK(){return this.tryGetToken(O.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=Nt;class Rt extends p.ParserRuleContext{expr13(){return this.getRuleContext(0,bt)}expr12(){return this.tryGetRuleContext(0,Rt)}arrowOp(){return this.tryGetRuleContext(0,Q)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Rt;class bt extends p.ParserRuleContext{expr14(){return this.getRuleContext(0,At)}expr13(){return this.tryGetRuleContext(0,bt)}SUBT_TOK(){return this.tryGetToken(O.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(O.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=bt;class At extends p.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Ct)}expr14(){return this.tryGetRuleContext(0,At)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=At;class Ct extends p.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,Lt)}expr15(){return this.tryGetRuleContext(0,Ct)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=Ct;class Lt extends p.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,It)}expr16(){return this.tryGetRuleContext(0,Lt)}PRIME_TOK(){return this.tryGetToken(O.PRIME_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr16}enterRule(t){t.enterExpr16&&t.enterExpr16(this)}exitRule(t){t.exitExpr16&&t.exitExpr16(this)}accept(t){return t.visitExpr16?t.visitExpr16(this):t.visitChildren(this)}}e.Expr16Context=Lt;class It extends p.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,Pt)}expr17(){return this.tryGetRuleContext(0,It)}TILDE_TOK(){return this.tryGetToken(O.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(O.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(O.STAR_TOK,0)}GET_LABEL_TOK(){return this.tryGetToken(O.GET_LABEL_TOK,0)}GET_LABEL_STR_TOK(){return this.tryGetToken(O.GET_LABEL_STR_TOK,0)}GET_LABEL_BOOL_TOK(){return this.tryGetToken(O.GET_LABEL_BOOL_TOK,0)}GET_LABEL_NUM_TOK(){return this.tryGetToken(O.GET_LABEL_NUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=It;class Pt extends p.ParserRuleContext{const(){return this.tryGetRuleContext(0,B)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(O.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(O.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(O.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(O.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(O.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,pt)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=Pt;class wt extends p.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(O.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,wt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=wt;class Kt extends p.ParserRuleContext{sexpr(){return this.getRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=Kt;class kt extends p.ParserRuleContext{SEXPR_TOK(){return this.getToken(O.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=kt;class Dt extends p.ParserRuleContext{INST_TOK(){return this.getToken(O.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Gt)}scope(){return this.tryGetRuleContext(0,j)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Dt;class Mt extends p.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,I)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=Mt;class Ut extends p.ParserRuleContext{EVAL_TOK(){return this.getToken(O.EVAL_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Ut;class Ft extends p.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(O.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}expr(){return this.getRuleContext(0,pt)}FOR_TOK(){return this.getToken(O.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Gt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Ft;class jt extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,wt)}EQ_TOK(){return this.getToken(O.EQ_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=jt;class Ht extends p.ParserRuleContext{number(){return this.getRuleContext(0,Bt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=Ht;class Bt extends p.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(O.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=Bt;class Gt extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(O.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(qt):this.getRuleContext(t,qt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(O.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Gt;class zt extends p.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(O.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,Bt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=zt;class qt extends p.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,Vt)}compareOp(){return this.tryGetRuleContext(0,W)}bindRHSUnion(){return this.tryGetRuleContext(0,Yt)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=qt;class Vt extends p.ParserRuleContext{CARD_TOK(){return this.tryGetToken(O.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,zt)}DOT_TOK(t){return void 0===t?this.getTokens(O.DOT_TOK):this.getToken(O.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=Vt;class Yt extends p.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,$t)}bindRHSUnion(){return this.tryGetRuleContext(0,Yt)}PLUS_TOK(){return this.tryGetToken(O.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=Yt;class $t extends p.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,$t)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Qt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(O.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=$t;class Qt extends p.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,zt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,Yt)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Qt},5411:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;const s=r(6737),o=r(2399),a=r(7760);let l=class extends s.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r++;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e of this.tokens)if(e.channel===this.channel&&t++,e.type===a.Token.EOF)break;return t}};n([o.Override],l.prototype,"adjustSeekIndex",null),n([o.Override],l.prototype,"tryLB",null),n([o.Override],l.prototype,"tryLT",null),l=n([i(0,o.NotNull)],l),e.CommonTokenStream=l},5481:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return s.ATNStateType.STAR_LOOP_BACK}}n([o.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},5577:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,s,o,a){super(t,e,r,n),this.name=i,this.body=s,this.inheritsFrom=o,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.params=s,this.body=o}},e.Test=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.name=i,this.check=s,this.body=o,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.pred=i,this.prop=s,this.check=o,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l,c,u,h){super(t,e,r,n),this.pred=i,this.prop=s,this.check=o,this.disj=a,this.quantDecls=l,this.bounds=c,this.scope=u,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.testExpr=s,this.bounds=o}},e.Function=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.params=s,this.body=o}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a){super(t,e,r,n),this.exp=i,this.check=s,this.bounds=o,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.pred=i,this.prop=s,this.consistent=o,this.bounds=a,this.scope=l}}},5585:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;const s=r(2399);class o{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n<r&&this.shouldVisitNextChild(t,e);n++){let r=t.getChild(n).accept(this);e=this.aggregateResult(e,r)}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}aggregateResult(t,e){return e}shouldVisitNextChild(t,e){return!0}}n([s.Override,i(0,s.NotNull)],o.prototype,"visit",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitChildren",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitTerminal",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitErrorNode",null),n([i(0,s.NotNull)],o.prototype,"shouldVisitNextChild",null),e.AbstractParseTreeVisitor=o},5606:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,l=[],c=!1,u=-1;function h(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&p())}function p(){if(!c){var t=o(h);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new d(t,e)),1!==l.length||c||o(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5629:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;const i=r(8291),s=r(7477),o=r(2399);class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,o,a,l,c){let u=new i.CommonToken(e,r,t,n,o,a);return u.line=l,u.charPositionInLine=c,null==r&&this.copyText&&null!=t.stream&&(u.text=t.stream.getText(s.Interval.of(o,a))),u}createSimple(t,e){return new i.CommonToken(t,e)}}n([o.Override],a.prototype,"create",null),n([o.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,function(t){t.DEFAULT=new t}(a=e.CommonTokenFactory||(e.CommonTokenFactory={}))},5635:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5636:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n<e;n++)r=(r<<5>>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let s=e(i),o=0;for(let e of t)s=r(s,e),o++;return s=n(s,o),s}}(e.MurmurHash||(e.MurmurHash={}))},5643:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;const i=r(2399),s=r(5636),o=r(8055);class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?s.MurmurHash.hashCode([t]):o.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:o.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},5680:(t,e,r)=>{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},5754:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,s=r-1;for(;i<=s;){let e=i+s>>>1,r=t[e];if(r<n)i=e+1;else{if(!(r>n))return e;s=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},5767:(t,e,r)=>{"use strict";var n=r(2682),i=r(9209),s=r(487),o=r(6556),a=r(5795),l=r(3628),c=o("Object.prototype.toString"),u=r(9092)(),h="undefined"==typeof globalThis?r.g:globalThis,p=i(),d=o("String.prototype.slice"),f=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},_={__proto__:null};n(p,u&&a&&l?function(t){var e=new h[t];if(Symbol.toStringTag in e&&l){var r=l(e),n=a(r,Symbol.toStringTag);if(!n&&r){var i=l(r);n=a(i,Symbol.toStringTag)}if(n&&n.get){var o=s(n.get);_["$"+t]=o}}}:function(t){var e=new h[t],r=e.slice||e.set;if(r){var n=s(r);_["$"+t]=n}}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!u){var e=d(c(t),8,-1);return function(t){return f(p,t)>-1}(e)?e:"Object"===e&&function(t){var e=!1;return n(_,function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}}),e}(t)}return a?function(t){var e=!1;return n(_,function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}}),e}(t):null}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5859:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerSkipAction=a,function(t){t.INSTANCE=new t}(a=e.LexerSkipAction||(e.LexerSkipAction={}))},5866:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;const n=r(4148),i=r(4605);class s{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new s(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new s.Builder(t)}}e.CodePointBuffer=s,function(t){let e;!function(t){t[t.BYTE=0]="BYTE",t[t.CHAR=1]="CHAR",t[t.INT=2]="INT"}(e||(e={}));class r{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint8Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 1:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint16Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 2:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Int32Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t)}}appendArrayByte(t){n(-1===this.prevHighSurrogate);let e=t,r=0,s=t.length,o=this.buffer,a=this.position;for(;r<s;){let n=e[r];if(!(n<=255))return t=t.subarray(r,s),this.position=a,i.isHighSurrogate(n)?(this.byteToIntBuffer(t.length),void this.appendArrayInt(t)):(this.byteToCharBuffer(t.length),void this.appendArrayChar(t));o[a]=n,r++,a++}this.position=a}appendArrayChar(t){n(-1===this.prevHighSurrogate);let e=t,r=0,s=t.length,o=this.buffer,a=this.position;for(;r<s;){let n=e[r];if(i.isHighSurrogate(n))return t=t.subarray(r,s),this.position=a,this.charToIntBuffer(t.length),void this.appendArrayInt(t);o[a]=n,r++,a++}this.position=a}appendArrayInt(t){let e=t,r=0,n=t.length,s=this.buffer,o=this.position;for(;r<n;){let t=e[r];r++,-1!==this.prevHighSurrogate?i.isLowSurrogate(t)?(s[o]=String.fromCharCode(this.prevHighSurrogate,t).codePointAt(0),o++,this.prevHighSurrogate=-1):(s[o]=this.prevHighSurrogate,o++,i.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++,this.prevHighSurrogate=-1)):i.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++)}-1!==this.prevHighSurrogate&&(s[o]=this.prevHighSurrogate,o++),this.position=o}byteToCharBuffer(t){let e=new Uint16Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=r}(s=e.CodePointBuffer||(e.CodePointBuffer={}))},5880:t=>{"use strict";t.exports=Math.pow},5895:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;const i=r(3258),s=r(2399);class o extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new o(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([s.Override],o.prototype,"clone",null),n([s.Override],o.prototype,"getKey",null),n([s.Override],o.prototype,"canMerge",null),e.OrderedATNConfigSet=o},5920:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;const s=r(2399),o=r(6605);let a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=o.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([s.NotNull],a.prototype,"_pattern",void 0),n([s.NotNull],a.prototype,"_patternTree",void 0),n([s.NotNull],a.prototype,"_matcher",void 0),n([s.NotNull,i(0,s.NotNull)],a.prototype,"match",null),n([i(0,s.NotNull)],a.prototype,"matches",null),n([s.NotNull,i(0,s.NotNull),i(1,s.NotNull)],a.prototype,"findAll",null),n([s.NotNull],a.prototype,"matcher",null),n([s.NotNull],a.prototype,"pattern",null),n([s.NotNull],a.prototype,"patternTree",null),a=n([i(0,s.NotNull),i(1,s.NotNull),i(3,s.NotNull)],a),e.ParseTreePattern=a},5922:function(t,e,r){"use strict";var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;const a=r(659),l=r(8955),c=r(493),u=r(3361),h=r(1964),p=r(1862),d=r(2807),f=r(2399),_=r(8344),T=r(3161),y=r(6142),O=r(8831),x=r(360),g=r(7760);class E{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],E.prototype,"enterEveryRule",null),i([f.Override],E.prototype,"exitEveryRule",null),i([f.Override],E.prototype,"visitErrorNode",null),i([f.Override],E.prototype,"visitTerminal",null);class m extends O.Recognizer{constructor(t){super(),this._errHandler=new u.DefaultErrorStrategy,this._precedenceStack=new p.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let e=this.interpreter;null!=e&&e.reset()}match(t){let e=this.currentToken;return e.type===t?(t===g.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex(e=>e===t);-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=m.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new c.ATNDeserializer(r).deserialize(a.toCharArray(t)),m.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return o(this,void 0,void 0,function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof d.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then(()=>r(4864))).ParseTreePatternMatcher)(i,this).compile(t,e)})}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let s=this.getErrorListenerDispatch();s.syntaxError&&s.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==m.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new x.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){let t=this._ctx._parent;null!=t&&t.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(g.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(g.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(g.Token.EPSILON)||t!==g.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){let e=this.getRuleIndexMap().get(t);return null!=e?e:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>r(1284)).then(t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new _.ParseInfo(e)})}setProfile(t){return o(this,void 0,void 0,function*(){let e=yield Promise.resolve().then(()=>r(1284)),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new T.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())})}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new E(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}m.bypassAltsAtnCache=new Map,i([f.NotNull],m.prototype,"_errHandler",void 0),i([f.NotNull],m.prototype,"match",null),i([f.NotNull],m.prototype,"matchWildcard",null),i([f.NotNull],m.prototype,"getParseListeners",null),i([s(0,f.NotNull)],m.prototype,"addParseListener",null),i([f.NotNull],m.prototype,"getATNWithBypassAlts",null),i([f.NotNull,s(0,f.NotNull)],m.prototype,"errorHandler",null),i([f.Override],m.prototype,"inputStream",null),i([f.NotNull],m.prototype,"currentToken",null),i([s(0,f.NotNull)],m.prototype,"enterRule",null),i([f.Override,s(0,f.Nullable)],m.prototype,"precpred",null),i([f.Override],m.prototype,"getErrorListenerDispatch",null),i([f.NotNull],m.prototype,"getExpectedTokens",null),i([f.NotNull],m.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],m.prototype,"parseInfo",null),e.Parser=m},6061:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;const s=r(8939),o=r(2399),a=r(2356);let l=class extends s.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.PrecedencePredicateTransition=l},6142:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;const i=r(7115),s=r(2399);class o extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,s,o){this.getDelegates().forEach(a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,s,o)})}reportAttemptingFullContext(t,e,r,n,i,s){this.getDelegates().forEach(o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(t,e,r,n,i,s)})}reportContextSensitivity(t,e,r,n,i,s){this.getDelegates().forEach(o=>{o.reportContextSensitivity&&o.reportContextSensitivity(t,e,r,n,i,s)})}}n([s.Override],o.prototype,"reportAmbiguity",null),n([s.Override],o.prototype,"reportAttemptingFullContext",null),n([s.Override],o.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=o},6145:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;const s=r(2807),o=r(1088),a=r(2399),l=r(2399);let c=class extends s.Lexer{constructor(t,e,r,n,i,s,a){if(super(a),0!==s.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=s,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new o.LexerATNSimulator(s,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],c.prototype,"_vocabulary",void 0),n([l.Override],c.prototype,"atn",null),n([l.Override],c.prototype,"grammarFileName",null),n([l.Override],c.prototype,"ruleNames",null),n([l.Override],c.prototype,"channelNames",null),n([l.Override],c.prototype,"modeNames",null),n([l.Override],c.prototype,"vocabulary",null),c=n([i(1,a.NotNull)],c),e.LexerInterpreter=c},6181:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;const s=r(9449),o=r(2399),a=r(7477),l=r(659);let c=class extends s.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(a.Interval.of(this._startIndex,this._startIndex)),t=l.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};n([o.Override],c.prototype,"inputStream",null),n([o.Override],c.prototype,"toString",null),c=n([i(1,o.NotNull)],c),e.LexerNoViableAltException=c},6188:t=>{"use strict";t.exports=Math.max},6251:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.LOOP_END}}n([o.Override],a.prototype,"stateType",null),e.LoopEndState=a},6298:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;const s=r(3258),o=r(9709),a=r(2399),l=r(8859);let c=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new o.DFAState(new s.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],c.prototype,"atn",void 0),n([a.NotNull],c,"ERROR",null),c=n([i(0,a.NotNull)],c),e.ATNSimulator=c,c=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=c},6305:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;const i=r(7037),s=r(8016),o=r(2399);class a extends s.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([o.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},6369:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;const s=r(8939),o=r(2399),a=r(2356);let l=class extends s.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.PredicateTransition=l},6409:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;const i=r(3907),s=r(2399),o=r(8055),a=r(8859),l=r(4148);class c{constructor(t=!0){this.contexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new c.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new c.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=c,c.UNCACHED=new c(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([s.Override],e.prototype,"equals",null),n([s.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([s.Override],r.prototype,"equals",null),n([s.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(c=e.PredictionContextCache||(e.PredictionContextCache={}))},6474:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerMoreAction=a,function(t){t.INSTANCE=new t}(a=e.LexerMoreAction||(e.LexerMoreAction={}))},6479:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._type),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerTypeAction=a},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{"use strict";var n=r(453),i=r(3126),s=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i([r]):r}},6576:(t,e,r)=>{"use strict";var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6605:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;const n=r(6776),i=r(5411),s=r(6181),o=r(1097),a=r(7760),l=r(9939),c=r(2593),u=r(996),h=r(6739),p=r(2193),d=r(4197),f=r(7712),_=r(2431);class T{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new c.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof s.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let o=r.getTokens(),u=[],h=o.length,p=0;t:for(;p<h;){let t,e=o[p];switch(e.type){case l.XPathLexer.ROOT:case l.XPathLexer.ANYWHERE:let r=e.type===l.XPathLexer.ANYWHERE;p++,t=o[p];let n=t.type===l.XPathLexer.BANG;n&&(p++,t=o[p]);let i=this.getXPathElement(t,r);i.invert=n,u.push(i),p++;break;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.RULE_REF:case l.XPathLexer.WILDCARD:u.push(this.getXPathElement(e,!1)),p++;break;case a.Token.EOF:break t;default:throw new Error("Unknowth path element "+e)}}return u}getXPathElement(t,e){if(t.type===a.Token.EOF)throw new Error("Missing path element at end of path");let r=t.text;if(null==r)throw new Error("Expected wordToken to have text content.");let n=this.parser.getTokenType(r),i=this.parser.getRuleIndex(r);switch(t.type){case l.XPathLexer.WILDCARD:return e?new f.XPathWildcardAnywhereElement:new _.XPathWildcardElement;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.STRING:if(n===a.Token.INVALID_TYPE)throw new Error(r+" at index "+t.startIndex+" isn't a valid token name");return e?new p.XPathTokenAnywhereElement(r,n):new d.XPathTokenElement(r,n);default:if(-1===i)throw new Error(r+" at index "+t.startIndex+" isn't a valid rule name");return e?new u.XPathRuleAnywhereElement(r,i):new h.XPathRuleElement(r,i)}}static findAll(t,e,r){return new T(r,e).evaluate(t)}evaluate(t){let e=new o.ParserRuleContext;e.addChild(t);let r=new Set([e]),n=0;for(;n<this.elements.length;){let t=new Set;for(let e of r)e.childCount>0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=T,T.WILDCARD="*",T.NOT="!"},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6684:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NameNotFoundError=e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=x,e.compareOpKind=b,e.unquoteStringLiteral=C;const n=r(5585),i=r(534),s=r(4699),o=r(7654);function a(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function l(t){return Array.isArray(t)}function c(t){return a(t)?[[t]]:t}function u(t){return"boolean"==typeof t}function h(t){return"number"==typeof t}function p(t){return h(t)?t:(e=t,Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&1===e[0].length&&"number"==typeof e[0][0]?t[0][0]:void 0);var e}function d(t){return"string"==typeof t}function f(t){return JSON.stringify(t)}const _=new WeakMap,T=16;function y(t){let e=_.get(t);return void 0===e&&(e=t.map(t=>JSON.stringify(t)),t.length>=T&&_.set(t,e)),e}function O(t,e){if(t.length<T&&e.length<T){const r=new Set(e.map(f));return t.every(t=>r.has(f(t)))}const r=new Set(y(e)),n=y(t);for(let e=0;e<t.length;e++)if(!r.has(n[e]))return!1;return!0}function x(t,e){return t.length===e.length&&O(t,e)&&O(e,t)}function g(t){const e=new Set,r=[],n=[];for(const i of t){const t=i.length>=T?y(i):void 0;for(let s=0;s<i.length;s++){const o=void 0!==t?t[s]:JSON.stringify(i[s]);e.has(o)||(e.add(o),r.push(i[s]),n.push(o))}}return r.length>=T&&_.set(r,n),r}function E(t){return g([t])}function m(t){const e=t.map(t=>t.flat());if(0===e.length)return[[]];if(e.some(t=>0===t.length))return[];let r=[[]];for(const t of e){const e=[];for(const n of r)for(const r of t)e.push([...n,r]);r=e}return r}function v(t){if(0===t.length)return[];t.forEach(t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")});const e=new Map;for(const[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);const r=[];for(const t of e.keys()){const n=new Set,i=[...e.get(t)??[]];let s=0;for(;s<i.length;){const o=i[s++];if(n.has(o))continue;n.add(o),r.push([t,o]);const a=e.get(o);if(a)for(const t of a)n.has(t)||i.push(t)}}return r}const S=["add","subtract","multiply","divide","remainder"],N=["abs","sign","floor","ceil"],R=["min","max","sum"];function b(t){return t.IN_TOK()?"in":t.NI_TOK()?"ni":t.EQ_TOK()?"=":t.LT_TOK()?"<":t.GT_TOK()?">":t.LEQ_TOK()?"<=":t.GEQ_TOK()?">=":t.IS_TOK()?"is":t.text}function A(t,e,r){if(Math.abs(t.length-e.length)>r)return r+1;let n=Array.from({length:e.length+1},(t,e)=>e);for(let i=1;i<=t.length;i++){const s=[i];let o=i;for(let r=1;r<=e.length;r++){const a=t[i-1]===e[r-1]?0:1,l=Math.min(n[r]+1,s[r-1]+1,n[r-1]+a);s.push(l),o=Math.min(o,l)}if(o>r)return r+1;n=s}return n[e.length]}function C(t){const e=t.slice(1,-1);if(-1===e.indexOf("\\"))return e;let r="";for(let t=0;t<e.length;t++){if("\\"!==e[t]){r+=e[t];continue}const n=e[++t];switch(n){case"n":r+="\n";break;case"t":r+="\t";break;case"r":r+="\r";break;case"0":r+="\0";break;default:r+=n}}return r}e.SUPPORTED_BUILTINS=S.concat(N,R);class L extends n.AbstractParseTreeVisitor{constructor(t){super(),this.cachedResults=new Map,this.relationCache=null,this.relationIndexCache=null,this.diagnostics=new Map,this.instanceData=t,this.environmentStack=[],this.freeVariableFinder=new s.ForgeExprFreeVariableFinder(t),this.freeVariables=new Map}getDiagnostics(){return Array.from(this.diagnostics.values())}resetDiagnostics(){this.diagnostics.clear()}reportUnresolvedName(t){if(this.diagnostics.has(t))return;const e=this.suggestName(t);this.diagnostics.set(t,{kind:"unresolved-name",severity:"warning",name:t,message:`'${t}' does not name a type, relation, or atom in this instance; it evaluates to the empty set.`+(e?` Did you mean '${e}'?`:"")+` If you meant the string "${t}", write it in double quotes.`,...void 0!==e?{suggestion:e}:{}})}suggestName(t){this.buildRelationCache();const e=new Set;for(const t of this.instanceData.getTypes())e.add(t.id);for(const t of this.relationCache.keys())e.add(t);for(const t of this.instanceData.getAtoms())e.add(t.id);let r,n=1+(t.length<=4?1:2);for(const i of e){if(Math.abs(i.length-t.length)>=n)continue;const e=A(t,i,n);e<n&&(n=e,r=i)}return r}buildRelationCache(){if(null!==this.relationCache)return;this.relationCache=new Map,this.relationIndexCache=new Map;const t=this.instanceData.getRelations();for(const e of t){const t=e.tuples.map(t=>t.atoms.map(t=>this.atomValue(t))),r=this.relationCache.get(e.name);this.relationCache.set(e.name,r?r.concat(t):t)}for(const[t,e]of this.relationCache.entries()){const r=new Map;for(const t of e)if(t.length>0){const e=t[0];r.has(e)||r.set(e,[]),r.get(e).push(t)}this.relationIndexCache.set(t,r)}}updateFreeVariables(t){if(0===this.freeVariables.size&&(this.freeVariables=t),0!==this.freeVariables.size)for(const[e,r]of t.entries()){this.freeVariables.has(e)||this.freeVariables.set(e,new Set);const t=this.freeVariables.get(e);for(const e of r)t.add(e)}}constructFreeVariableKey(t){const e=Object.keys(t);return e.sort(),e.map(e=>{const r=t[e];return`${e}=${Array.isArray(r)?JSON.stringify(r):String(r)}`}).join("|")}getLabelForValue(t){if("number"==typeof t||"boolean"==typeof t)return String(t);if("string"==typeof t){let e=this.instanceData.getAtoms().find(e=>e.id===t);if(e)return void 0!==e.label?e.label:e.id}return t}getLabelAsString(t){if("number"==typeof t||"boolean"==typeof t)return String(t);const e=this.getLabelForValue(t);return String(e)}getLabelAsBoolean(t){if("boolean"==typeof t)return t;if("number"==typeof t)return 0!==t;const e=this.getLabelForValue(t),r=String(e).toLowerCase();if("true"===r)return!0;if("false"===r)return!1;const n=Number(e);return isNaN(n)?""!==r:0!==n}getLabelAsNumber(t){if("number"==typeof t)return t;const e=this.getLabelForValue(t),r=Number(e);if(isNaN(r))throw new Error(`Cannot convert label "${e}" to number`);return r}isConvertibleToNumber(t){return"number"==typeof t||"string"==typeof t&&!isNaN(Number(t))}isConvertibleToBoolean(t){return"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t)}convertToBoolean(t){if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)}atomValue(t){return this.isConvertibleToNumber(t)?Number(t):this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t}dotJoin(t,e,r){const n=c(t),i=c(e);let s;if(r&&this.relationIndexCache&&(s=this.relationIndexCache.get(r)),!s){s=new Map;for(const t of i){const e=t[0];s.has(e)||s.set(e,[]),s.get(e).push(t)}}const o=[];for(const t of n){const e=t[t.length-1],r=s.get(e);if(r)for(const e of r)o.push([...t.slice(0,t.length-1),...e.slice(1)])}if(o.some(t=>0===t.length))throw new Error("Join would create a relation of arity 0");return E(o)}cacheResult(t,e,r,n){this.cachedResults.has(t)||this.cachedResults.set(t,new Map);const i=Array.from(this.diagnostics.values()).filter(t=>!n.has(t.name));this.cachedResults.get(t).set(e,{result:r,diagnostics:i})}getIden(){const t=this.instanceData.getTypes(),e=[],r=new Set;for(const n of t)n.atoms.forEach(t=>{if(r.has(t.id))return;r.add(t.id);const n=this.atomValue(t.id);e.push([n,n])});return e}aggregateResult(t,e){if(l(t)&&0===t.length)return e;if(l(e)&&0===e.length)return t;if(a(t)){if(a(e))return e;throw new Error("Expected nextResult to be a single value")}return a(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(const r of t.expr()){const t=this.visit(r);if(!u(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){const r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0;const n={};for(const t of e)for(let e=this.environmentStack.length-1;e>=0;e--){const i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}const i=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)){const e=this.cachedResults.get(t).get(i);if(void 0!==e){for(const t of e.diagnostics)this.diagnostics.has(t.name)||this.diagnostics.set(t.name,t);return e.result}}const s=new Set(this.diagnostics.keys());let l;if(t.LET_TOK()&&(l=[],l.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");const e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);const r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),a=t.blockOrBar();if(void 0===a)throw new Error("expected to quantify over something!");if(void 0===a.BAR_TOK()||void 0===a.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");const l=a.expr(),c=[],h=[];for(const t in r)c.push(t),h.push(r[t]);if(t.quant().SUM_TOK()){const e=m(h),r={env:{},type:"quantDecl"};this.environmentStack.push(r);let o=0;for(const t of e){if(n){const e=new Set;let r=!0;for(const n of t){if(e.has(n)){r=!1;break}e.add(n)}if(!r)continue}for(let e=0;e<c.length;e++)r.env[c[e]]=t[e];const e=p(this.visit(l));if(void 0===e)throw this.environmentStack.pop(),new Error("Expected the expression after the bar in a `sum` to evaluate to a number!");o+=e}return this.environmentStack.pop(),this.cacheResult(t,i,o,s),o}let d,f=!1;const _=void 0!==t.quant().ALL_TOK();if(!n&&!_&&c.length>=2&&(0,o.areAllNumericSets)(h)){const t=(0,o.detectNumericComparisonPattern)(l,c);t&&"none"!==t.type?(d=(0,o.generateOptimizedNumericCombinations)(c,h,t),f=!0):d=m(h)}else d=m(h);const T=[];let y=!1,O=!1;const x={env:{},type:"quantDecl"};this.environmentStack.push(x);for(let e=0;e<d.length;e++){const r=d[e];if(n){let t=!0;const e=new Set;for(const n of r){if(e.has(n)){t=!1;break}e.add(n)}if(!t)continue}for(let t=0;t<c.length;t++)x.env[c[t]]=r[t];let o;if(f)o=!0;else{const t=this.visit(l);if(!u(t))throw new Error("Expected the expression after the bar to be a boolean!");o=t}if(o?(T.push(r),y=!0):O=!0,t.quant().ALL_TOK()&&O){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(t.quant().NO_TOK()&&y){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(t.quant().mult()){const e=t.quant().mult();if(e.LONE_TOK()&&T.length>1){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(e.SOME_TOK()&&y){this.environmentStack.pop();const e=!0;return this.cacheResult(t,i,e,s),e}if(e.ONE_TOK()&&T.length>1){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(e.TWO_TOK()&&T.length>2){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}}}if(this.environmentStack.pop(),t.quant().ALL_TOK()){const e=!O;return this.cacheResult(t,i,e,s),e}if(t.quant().NO_TOK()){const e=!y;return this.cacheResult(t,i,e,s),e}if(t.quant().mult()){const e=t.quant().mult();if(e.LONE_TOK()){const e=T.length<=1;return this.cacheResult(t,i,e,s),e}if(e.SOME_TOK()){const e=y;return this.cacheResult(t,i,e,s),e}if(e.ONE_TOK()){const e=1===T.length;return this.cacheResult(t,i,e,s),e}if(e.TWO_TOK()){const e=2===T.length;return this.cacheResult(t,i,e,s),e}}}const c=this.visitChildren(t);if(void 0===l)return this.cacheResult(t,i,c,s),c;if(a(l))throw new Error("Expected results to be a tuple array");return a(c)?l.push([c]):l=l.concat(c),this.cacheResult(t,i,l,s),l}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");const e=this.visit(t.expr1());if(!u(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;const r=this.visit(t.expr1_5());if(!u(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");const e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!u(e)||!u(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");const e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!u(e)||!u(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");const e=this.visit(t.expr4());if(!u(e))throw new Error("IMP operator expected 2 boolean operands!");const r=t.expr3()??[],n=r[0],i=r[1];if(t.ELSE_TOK()){if(!n||!i)throw new Error("Expected the ELSE operator to have 2 operands!");const t=this.visit(e?n:i);if(!u(t))throw new Error("IMP operator expected 2 boolean operands!");return t}if(!e)return!0;if(!n)throw new Error("Expected the IMP operator to have a consequent expression!");const s=this.visit(n);if(!u(s))throw new Error("IMP operator expected 2 boolean operands!");return s}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr4_5())throw new Error("Expected the AND operator to have 2 operands of the right type!");const e=this.visit(t.expr4());if(!u(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;const r=this.visit(t.expr4_5());if(!u(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr4_5(t){let e=[];return t.UNTIL_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),e):t.RELEASE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),e):t.SINCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),e):t.TRIGGERED_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),e):this.visitChildren(t)}visitExpr5(t){let e=[];if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the temporal operator to have 1 operand!");const r=this.visit(t.expr5());if(t.NEG_TOK()){if(!u(r))throw new Error("Expected the negation operator to have a boolean operand!");return!r}return t.ALWAYS_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),e):t.EVENTUALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),e):t.AFTER_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),e):t.BEFORE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),e):t.ONCE_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),e):t.HISTORICALLY_TOK()?(e.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),e):r}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");const r=this.visit(t.expr6()),i=this.visit(t.expr7());let s=p(r),o=p(i);const u=b(t.compareOp());switch(u){case"=":if(a(r)&&a(i))e=r===i;else if(a(r)&&l(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(l(r)&&a(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!l(r)||!l(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=x(r,i)}break;case"<":if(void 0===s||void 0===o)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s<o;break;case">":if(void 0===s||void 0===o)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s>o;break;case"<=":if(void 0===s||void 0===o)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s<=o;break;case">=":if(void 0===s||void 0===o)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s>=o;break;case"in":case"ni":{const t=c(r),n=c(i),[s,o]="ni"===u?[n,t]:[t,n];e=O(s,o);break}case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");default:throw new Error(`Unexpected compare operator provided: ${u}`)}}if(r){if(!u(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){const e=this.visit(t.expr8());if(t.SET_TOK())return e;if(t.ONE_TOK()||t.TWO_TOK()||t.NO_TOK()||t.SOME_TOK()||t.LONE_TOK()){const r=l(e)?e.length:d(e)||h(e)?1:-1;if(t.ONE_TOK())return 1===r;if(t.TWO_TOK())return 2===r;if(t.NO_TOK())return 0===r;if(t.SOME_TOK())return r>0;if(t.LONE_TOK())return 0===r||1===r}return e}visitExpr8(t){if(t.PLUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10());if(a(e)&&a(r))return e===r?[[e]]:[[e],[r]];if(a(e)&&l(r)){if(0===r.length)return e;if(1===r[0].length)return g([[[e]],r]);throw new Error("arity mismatch in set union!")}if(l(e)&&a(r)){if(0===e.length)return r;if(1===e[0].length)return g([e,[[r]]]);throw new Error("arity mismatch in set union!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return g([e,r])}if(t.MINUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10());if(a(e)&&a(r))return e===r?[]:e;if(a(e)&&l(r)){if(0===r.length)return e;if(1===r[0].length)return r.some(t=>t[0]===e)?[]:e;throw new Error("arity mismatch in set difference!")}if(l(e)&&a(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter(t=>t[0]!==r);throw new Error("arity mismatch in set difference!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length){const t=new Set(y(r)),n=y(e),i=[],s=[];for(let r=0;r<e.length;r++)t.has(n[r])||(i.push(e[r]),s.push(n[r]));return i.length>=T&&_.set(i,s),i}}return this.visitChildren(t)}visitExpr9(t){const e=this.visitChildren(t);if(t.CARD_TOK()){if(l(e))return e.length;if(d(e)||h(e))return 1;throw new Error("The cardinal operator must be applied to a set of tuples!")}return e}visitExpr10(t){if(t.PPLUS_TOK()){if(void 0===t.expr10()||void 0===t.expr11())throw new Error("Expected the pplus operator to have 2 operands of the right type!");const e=c(this.visit(t.expr10())),r=c(this.visit(t.expr11()));if(e.length>0&&r.length>0&&e[0].length!==r[0].length)throw new Error("arity mismatch in relational override!");const n=new Set(r.map(t=>t[0]));return g([e.filter(t=>!n.has(t[0])),r])}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");const e=this.visit(t.expr11()),r=this.visit(t.expr12());if(a(e)&&a(r))return e===r?e:[];if(a(e)&&l(r)){if(0===r.length)return[];if(1===r[0].length)return r.some(t=>t[0]===e)?e:[];throw new Error("arity mismatch in set intersection!")}if(l(e)&&a(r)){if(0===e.length)return[];if(1===e[0].length)return e.some(t=>t[0]===r)?r:[];throw new Error("arity mismatch in set intersection!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length){const t=new Set(y(r)),n=y(e),i=[],s=[];for(let r=0;r<e.length;r++)t.has(n[r])&&(i.push(e[r]),s.push(n[r]));return i.length>=T&&_.set(i,s),i}}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");const e=t.arrowOp();if(e.mult().length>0||e.SET_TOK().length>0)throw new Error(`Cannot evaluate the multiplicity annotations in '${e.text}': they are declaration and constraint syntax, not part of an expression. Write a plain '->' for the cross product.`);const r=this.visit(t.expr12()),n=this.visit(t.expr13()),i=c(r),s=c(n),o=[];for(const t of i)for(const e of s)o.push([...t,...e]);return E(o)}return this.visitChildren(t)}visitExpr13(t){const e=void 0!==t.SUBT_TOK();if(e||t.SUPT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the restriction operator to have 2 operands of the right type!");const r=this.visit(t.expr13()),n=this.visit(t.expr14()),[i,s]=e?[r,n]:[n,r],o=c(i),a=o.find(t=>1!==t.length);if(void 0!==a)throw new Error(`The ${e?"<:":":>"} operator restricts by a set of arity 1, but its ${e?"left":"right"} operand has arity ${a.length}`);const l=new Set(o.map(t=>t[0]));return c(s).filter(t=>l.has(e?t[0]:t[t.length-1]))}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){const e=this.visit(t.expr14()),r=this.visit(t.exprList());if(d(e)){if(S.includes(e))return this.evaluateBinaryOperation(e,r);if(N.includes(e))return this.evaluateUnaryOperation(e,r);if(R.includes(e))return this.evaluateSetOperation(e,r)}return this.dotJoin(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr16())throw new Error("Expected the dot operator to have 2 operands of the right type!");const e=this.visit(t.expr15()),r=this.visit(t.expr16());let n;if(l(r)&&this.relationCache)for(const[t,e]of this.relationCache.entries())if(e===r){n=t;break}return this.dotJoin(e,r,n)}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr16(t){let e=[];return t.PRIME_TOK()?(this.visit(t.expr16()),e.push(["**UNIMPLEMENTED** Primed Expression _'"]),e):this.visitChildren(t)}visitExpr17(t){if(t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()){const e=t.expr17();if(!e)throw new Error("Label operator requires an expression");let r,n;if(t.GET_LABEL_TOK())r=t=>this.getLabelAsString(t),n="@:";else if(t.GET_LABEL_STR_TOK())r=t=>this.getLabelAsString(t),n="@str:";else if(t.GET_LABEL_BOOL_TOK())r=t=>this.getLabelAsBoolean(t),n="@bool:";else{if(!t.GET_LABEL_NUM_TOK())throw new Error("Unknown label operator");r=t=>this.getLabelAsNumber(t),n="@num:"}const i=this.visit(e);if(a(i))return r(i);if(l(i))return 1===i.length&&1===i[0].length?r(i[0][0]):i.map(t=>t.map(t=>r(t)));throw new Error(`${n} operator can only be applied to single values or tuple arrays`)}const e=this.visitChildren(t);if(t.TILDE_TOK()){if(l(e)){if(0===e.length)return[];if(2===e[0].length)return e.map(t=>[t[1],t[0]])}throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(l(e))return v(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&l(e)){const t=v(e);return E(this.getIden().concat(t))}return e}getNameListValues(t){return t.COMMA_TOK()?[(0,i.getIdentifierName)(t.name()),...this.getNameListValues(t.nameList())]:[(0,i.getIdentifierName)(t.name())]}getQuantDeclValues(t){const e=t.nameList(),r=this.getNameListValues(e),n=t.expr();let i=this.visitExpr(n);a(i)&&(i=[[i]]);const s={};for(const t of r)s[t]=i;return s}getQuantDeclListValues(t){if(t.COMMA_TOK()){const e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){if(t.const()){const e=t.const();if(void 0!==e.number()){const t=Number(e.number().text);return void 0!==e.MINUS_TOK()?-t:t}if(void 0!==e.NONE_TOK())return[];if(void 0!==e.IDEN_TOK()){const t=this.instanceData.getAtoms(),e=[];for(const r of t){const t=this.atomValue(r.id);e.push([t,t])}return e}if(void 0!==e.UNIV_TOK()){const t=this.instanceData.getAtoms(),e=[];for(const r of t)e.push([this.atomValue(r.id)]);return e}return void 0!==e.STRING_TOK()?C(e.STRING_TOK().text):"true"===e.text||"false"!==e.text&&`${e.text}`}if(t.qualName())return this.visitQualName(t.qualName());if(t.AT_TOK())throw new Error("`@` operator is Alloy specific; it is not supported by Forge!");if(t.BACKQUOTE_TOK()){const e=(0,i.getIdentifierName)(t.name()),r=this.instanceData.getAtoms().find(t=>t.id===e);return void 0===r?(this.reportUnresolvedName(e),[]):[[this.atomValue(r.id)]]}if(t.THIS_TOK())throw new Error("`this` is Alloy specific; it is not supported by Forge!");if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");const e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);const r=this.getQuantDeclListValues(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");const i=n.expr(),s=[],a=[];for(const t in r)s.push(t),a.push(r[t]);let l,c=!1;if(s.length>=2&&(0,o.areAllNumericSets)(a)){const t=(0,o.detectNumericComparisonPattern)(i,s);t&&"none"!==t.type?(l=(0,o.generateOptimizedNumericCombinations)(s,a,t),c=!0):l=m(a)}else l=m(a);const h=[],p={env:{},type:"quantDecl"};this.environmentStack.push(p);for(let t=0;t<l.length;t++){const e=l[t];for(let t=0;t<s.length;t++)p.env[s[t]]=e[t];let r;if(c)r=!0;else{const t=this.visit(i);if(!u(t))throw new Error("Expected the expression after the bar to be a boolean value!");r=t}r&&h.push(e)}return this.environmentStack.pop(),E(h)}if(t.LEFT_PAREN_TOK())return this.visit(t.expr());if(t.block())return this.visitBlock(t.block());if(t.sexpr())throw new Error("**NOT IMPLEMENTING FOR NOW** S-Expression");return this.visitChildren(t)}visitExprList(t){let e=[];if(t.COMMA_TOK()){const r=this.visit(t.expr());if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");const n=this.visit(t.exprList());return a(r)?e.push([r]):e=r,l(n)?e=e.concat(n):e.push([n]),e}return this.visitChildren(t)}visitName(t){const r=(0,i.getIdentifierName)(t);if("true"===r)return!0;if("false"===r)return!1;for(let t=this.environmentStack.length-1;t>=0;t--){const e=this.environmentStack[t];if(void 0!==e.env[r])return e.env[r];if("predArgs"===e.type)break}let n;if(this.instanceData.getTypes().map(t=>t.id).includes(r)){const t=this.instanceData.getTypes().find(t=>t.id===r)?.atoms||[],e=new Set,i=[];for(const r of t)e.has(r.id)||(e.add(r.id),i.push(r.id));n=i.map(t=>[t])}for(const t of this.instanceData.getTypes())if(t.atoms.map(t=>t.id).includes(r)){n=[[r]];break}this.instanceData.getTypes().map(t=>t.id);const s=[r],o=new Set;for(;s.length>0;){const t=s.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");if(!o.has(t)){o.add(t);for(const e of this.instanceData.getTypes())if(e.id!==t&&e.types&&e.types.includes(t)){void 0===n&&(n=[]);for(const t of e.atoms)n.push([t.id]);s.push(e.id)}}}return this.buildRelationCache(),this.relationCache.has(r)?this.relationCache.get(r):void 0!==n?n.map(t=>t.map(t=>this.atomValue(t))):e.SUPPORTED_BUILTINS.includes(r)?r:(this.reportUnresolvedName(r),[])}visitQualName(t){if(t.SUM_TOK())return"sum";if(t.INT_TOK()){const t=this.instanceData.getTypes().find(t=>"Int"===t.id);if(!t)throw new Error('Type "Int" not found in instance data');const e=new Set,r=[];for(const n of t.atoms)e.has(n.id)||(e.add(n.id),r.push([Number(n.id)]));return r}return this.visitChildren(t)}evaluateBinaryOperation(t,e){if(a(e))throw new Error(`Expected 2 arguments for ${t}`);let r,n,i;if(Array.isArray(e[0])){if(!h(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0][0]}else{if(!h(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0]}if(Array.isArray(e[1])){if(!h(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1][0]}else{if(!h(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1]}if(("divide"===t||"remainder"===t)&&0===n)throw new Error("Division by zero is not allowed");switch(t){case"add":i=r+n;break;case"subtract":i=r-n;break;case"multiply":i=r*n;break;case"divide":i=r/n;break;case"remainder":i=r%n;break;default:throw new Error(`Unsupported operation: ${t}`)}return i}evaluateUnaryOperation(t,e){const r=p(e);if(void 0===r)throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);if("abs"===t)return Math.abs(r);if("sign"===t)return r>0?1:r<0?-1:0;if("floor"===t)return Math.floor(r);if("ceil"===t)return Math.ceil(r);throw new Error(`Unsupported operation: ${t}`)}setOperandAsNumber(t,e){if(this.isConvertibleToNumber(e))return Number(e);throw new Error(`${t} expects all elements to be numbers, got: ${JSON.stringify(e)}`)}evaluateSetOperation(t,e){let r=[];if(a(e))r=[this.setOperandAsNumber(t,e)];else{if(!l(e))throw new Error(`Expected a set of numbers for ${t}`);for(const n of e){if(1!==n.length)throw new Error(`${t} expects a set of arity 1 (single column)`);r.push(this.setOperandAsNumber(t,n[0]))}}if("sum"===t)return r.reduce((t,e)=>t+e,0);if(0===r.length)throw new Error(`${t} requires a non-empty set`);if("min"===t)return Math.min(...r);if("max"===t)return Math.max(...r);throw new Error(`Unsupported set operation: ${t}`)}}e.ForgeExprEvaluator=L;class I extends Error{constructor(t){super(t),this.name="NameNotFoundError"}}e.NameNotFoundError=I},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6737:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;const s=r(4148),o=r(8291),a=r(7477),l=r(2807),c=r(2399),u=r(7760);let h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===u.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){s(t>=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){let t=this.tokenSource.nextToken();if(this.isWritableToken(t)&&(t.tokenIndex=this.tokens.length),this.tokens.push(t),t.type===u.Token.EOF)return this.fetchedEOF=!0,e+1}return t}get(t){if(t<0||t>=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===u.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:u.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return s(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter(t=>n.has(t.type)),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===u.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===u.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===u.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof o.CommonToken}isToken(t){return t instanceof o.CommonToken}};n([c.NotNull],h.prototype,"_tokenSource",void 0),n([c.Override],h.prototype,"tokenSource",null),n([c.Override],h.prototype,"index",null),n([c.Override],h.prototype,"mark",null),n([c.Override],h.prototype,"release",null),n([c.Override],h.prototype,"seek",null),n([c.Override],h.prototype,"size",null),n([c.Override],h.prototype,"consume",null),n([c.Override],h.prototype,"get",null),n([c.Override],h.prototype,"LA",null),n([c.NotNull,c.Override],h.prototype,"LT",null),n([c.Override],h.prototype,"sourceName",null),n([c.NotNull,c.Override],h.prototype,"getText",null),n([c.NotNull,c.Override],h.prototype,"getTextFromRange",null),h=n([i(0,c.NotNull)],h),e.BufferedTokenStream=h},6739:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;const i=r(1097),s=r(2399),o=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of o.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([s.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},6743:(t,e,r)=>{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6776:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;const n=r(5866),i=r(328),s=r(1492);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=s.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),o=new Uint16Array(t.length);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return r.append(o),i.CodePointCharStream.fromBuffer(r.build(),e)}},6869:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;const i=r(2399);class s{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],s.prototype,"toString",null),e.XPathElement=s},6889:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;const n=r(537),i=r(5636),s=new Uint16Array(0);function o(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!==(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function c(t){let e=32768;for(let r=15;r>=0;r--){if(0!==(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function u(t,e){return(t&=15)==(e&=15)?1<<t>>>0:65535>>>15-e^65535>>>16-t}const h=new Uint8Array(65536);for(let t=0;t<16;t++){const e=1<<t>>>0;let r=0;for(;r<h.length;){r+=e;for(let t=0;t<e;t++)h[r]++,r++}}class p{constructor(t){if(t)if("number"==typeof t){if(t<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(o(t-1)+1)}else if(t instanceof p)this.data=t.data.slice(0);else{let e=-1;for(let r of t)e<r&&(e=r);this.data=new Uint16Array(o(e-1)+1);for(let e of t)this.set(e)}else this.data=s}and(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!==(e[t]&=r[t])&&(i=t);-1===i&&(this.data=s),i<e.length-1&&(this.data=e.slice(0,i+1))}andNot(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!=(e[t]&=65535^r[t])&&(i=t);-1===i&&(this.data=s),i<e.length-1&&(this.data=e.slice(0,i+1))}cardinality(){if(this.isEmpty)return 0;const t=this.data,e=t.length;let r=0;for(let n=0;n<e;n++)r+=h[t[n]];return r}clear(t,e){null==t?this.data.fill(0):null==e?this.set(t,!1):this.set(t,e,!1)}flip(t,e){if(null==e&&(e=t),t<0||e<t)throw new RangeError;let r=o(t);const n=o(e);if(r===n)this.data[r]^=u(t,e);else{for(this.data[r++]^=u(t,15);r<n;)this.data[r++]^=65535;this.data[r++]^=u(0,e)}}get(t,e){if(void 0===e)return!!(this.data[o(t)]&u(t,t));{let r=new p(e+1);for(let n=t;n<=e;n++)r.set(n,this.get(n));return r}}intersects(t){let e=Math.min(this.length(),t.length());if(0===e)return!1;let r=o(e-1);for(let e=0;e<=r;e++)if(0!==(this.data[e]&t.data[e]))return!0;return!1}get isEmpty(){return 0===this.length()}length(){return this.data.length?this.previousSetBit(a(this.data.length)-1)+1:0}nextClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);if(n>r)return-1;let i=65535^u(t,15);if(65535===(e[n]|i)){for(n++,i=0;n<r&&65535===e[n];n++);if(n===r)return-1}return a(n)+l(65535^(e[n]|i))}nextSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);if(n>r)return-1;let i=u(t,15);if(0===(e[n]&i)){for(n++,i=65535;n<r&&0===e[n];n++);if(n>=r)return-1}return a(n)+l(e[n]&i)}or(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),o=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!==(o[t]=e[t]|r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=s:o.length===a+1?this.data=o:this.data=o.slice(0,a)}previousClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);n>=r&&(n=r-1);let i=65535^u(0,t);if(65535===(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+c(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);n>=r&&(n=r-1);let i=u(0,t);if(0===(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+c(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=o(t),i=o(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach((e,r)=>t[r]=e),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,u(t,e));else{for(this._setBits(n++,r,u(t,15));n<i;)this.data[n++]=r?65535:0;this._setBits(n,r,u(0,e))}}_setBits(t,e,r){e?this.data[t]|=r:this.data[t]&=65535^r}get size(){return 8*this.data.byteLength}hashCode(){return i.MurmurHash.hashCode(this.data,22)}equals(t){if(t===this)return!0;if(!(t instanceof p))return!1;const e=this.length();if(e!==t.length())return!1;if(0===e)return!0;let r=o(e-1);for(let e=0;e<=r;e++)if(this.data[e]!==t.data[e])return!1;return!0}toString(){let t="{",e=!0;for(let r=this.nextSetBit(0);r>=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),o=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!==(o[t]=e[t]^r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=s:o.length===a+1?this.data=o:this.data=o.slice(0,a+1)}clone(){return new p(this)}[Symbol.iterator](){return new d(this.data)}[n.inspect.custom](){return"BitSet "+this.toString()}}e.BitSet=p;class d{constructor(t){this.data=t,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const t=this.data[this.index]&this.mask;if(0!==t){const e=a(this.index)+l(t);return this.mask=u(e+1,15),{done:!1,value:e}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}},6897:(t,e,r)=>{"use strict";var n=r(453),i=r(41),s=r(592)(),o=r(5795),a=r(9675),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},6947:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;const s=r(934),o=r(2399);let a=class extends s.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([o.NotNull],a.prototype,"_text",void 0),n([o.NotNull],a.prototype,"text",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.TextChunk=a},7004:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s,o,a){super(e,t,r,n,i,t.useContext),this.semctx=s,this.evalResult=o,this.predictedAlt=a}};a=n([i(0,o.NotNull),i(2,o.NotNull),i(5,o.NotNull)],a),e.PredicateEvalInfo=a},7037:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},7059:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s,o){super(t,e,n,i,s,o),this.predictedAlt=r}};a=n([i(3,o.NotNull)],a),e.LookaheadEventInfo=a},7115:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;const s=r(2399);class o{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,s){this.delegates.forEach(o=>{o.syntaxError&&o.syntaxError(t,e,r,n,i,s)})}}n([s.Override,i(0,s.NotNull),i(4,s.NotNull)],o.prototype,"syntaxError",null),e.ProxyErrorListener=o},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(t,e,r)=>{"use strict";var n,i=r(3126),s=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var o=!!n&&s&&s(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=o&&"function"==typeof o.get?i([o.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},7239:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;const s=r(4274),o=r(8291),a=r(1964),l=r(2399),c=r(5922),u=r(1097),h=r(5378),p=r(360),d=r(7760),f=r(659);class _{static toStringTree(t,e){let r;r=e instanceof c.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e<t.childCount;e++)e>0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof c.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==s.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof p.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r<t.childCount;r++)e.push(t.getChild(r));return e}static getAncestors(t){let e=[],r=t.parent;for(;r;)e.unshift(r),r=r.parent;return e}static isAncestorOf(t,e){if(!t||!e||!t.parent)return!1;let r=e.parent;for(;r;){if(t===r)return!0;r=r.parent}return!1}static findAllTokenNodes(t,e){return _.findAllNodes(t,e,!0)}static findAllRuleNodes(t,e){return _.findAllNodes(t,e,!1)}static findAllNodes(t,e,r){let n=[];return _._findAllNodes(t,e,r,n),n}static _findAllNodes(t,e,r,n){r&&t instanceof p.TerminalNode?t.symbol.type===e&&n.push(t):!r&&t instanceof u.ParserRuleContext&&t.ruleIndex===e&&n.push(t);for(let i=0;i<t.childCount;i++)_._findAllNodes(t.getChild(i),e,r,n)}static getDescendants(t){let e=[];return function t(r){e.push(r);const n=r.childCount;for(let e=0;e<n;e++)t(r.getChild(e))}(t),e}static getRootOfSubtreeEnclosingRegion(t,e,r){let n=t.childCount;for(let i=0;i<n;i++){let n=t.getChild(i),s=_.getRootOfSubtreeEnclosingRegion(n,e,r);if(s)return s}if(t instanceof u.ParserRuleContext){let n=t.stop;if(e>=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let s=0;s<i;s++){let i=t.getChild(s),a=i.sourceInterval;if(i instanceof u.ParserRuleContext&&(a.b<r||a.a>n)&&_.isAncestorOf(i,e)){let e=new o.CommonToken(d.Token.INVALID_TYPE,"...");t.children[s]=new p.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n<r;n++){let r=_.findNodeSuchThat(t.getChild(n),e);if(void 0!==r)return r}}}n([i(0,l.NotNull)],_,"toStringTree",null),n([l.NotNull,i(0,l.NotNull)],_,"getAncestors",null),n([i(0,l.NotNull)],_,"getRootOfSubtreeEnclosingRegion",null),e.Trees=_},7244:(t,e,r)=>{"use strict";var n=r(9092)(),i=r(6556)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},7404:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;const i=r(4148),s=r(2399),o=r(1492);class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===o.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(t){return 0===t?0:t<0&&(t++,this.p+t-1<0)||this.p+t-1>=this.n?o.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p<t;)this.consume()}getText(t){let e=t.a,r=t.b;r>=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:o.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([s.Override],a.prototype,"consume",null),n([s.Override],a.prototype,"LA",null),n([s.Override],a.prototype,"index",null),n([s.Override],a.prototype,"size",null),n([s.Override],a.prototype,"mark",null),n([s.Override],a.prototype,"release",null),n([s.Override],a.prototype,"seek",null),n([s.Override],a.prototype,"getText",null),n([s.Override],a.prototype,"sourceName",null),n([s.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},7435:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;const i=r(2399),s=r(7760);class o{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===s.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e||(this.getSymbolicName(t)||String(t))}}o.EMPTY_VOCABULARY=new o([],[],[]),n([i.NotNull],o.prototype,"literalNames",void 0),n([i.NotNull],o.prototype,"symbolicNames",void 0),n([i.NotNull],o.prototype,"displayNames",void 0),n([i.Override],o.prototype,"maxTokenType",null),n([i.Override],o.prototype,"getLiteralName",null),n([i.Override],o.prototype,"getSymbolicName",null),n([i.Override,i.NotNull],o.prototype,"getDisplayName",null),n([i.NotNull],o,"EMPTY_VOCABULARY",void 0),e.VocabularyImpl=o},7442:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;const i=r(3361),s=r(2468),o=r(2399),a=r(9278);class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new s.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([o.Override],l.prototype,"recover",null),n([o.Override],l.prototype,"recoverInline",null),n([o.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},7477:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;const i=r(2399);class s{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return s._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new s(t,e):(null==s.cache[t]&&(s.cache[t]=new s(t,t)),s.cache[t])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(t){return t===this||t instanceof s&&this.a===t.a&&this.b===t.b}hashCode(){let t=23;return t=31*t+this.a,t=31*t+this.b,t}startsBeforeDisjoint(t){return this.a<t.a&&this.b<t.a}startsBeforeNonDisjoint(t){return this.a<=t.a&&this.b>=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return s.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return s.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=s.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=s.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}s._INVALID=new s(-1,-2),s.cache=new Array(1001),n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"toString",null),e.Interval=s},7653:(t,e,r)=>{"use strict";var n=r(8452),i=r(487),s=r(9211),o=r(9394),a=r(6576),l=i(o(),Object);n(l,{getPolyfill:o,implementation:s,shim:a}),t.exports=l},7654:(t,e)=>{"use strict";function r(t){return t.map(t=>t[0])}function n(t){if(0===t.length)return[[]];if(t.some(t=>0===t.length))return[];let e=[[]];for(const r of t){const t=[];for(const n of e)for(const e of r)t.push([...n,e]);e=t}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.detectNumericComparisonPattern=function(t,e){const r=t.text;for(const t of e)for(const n of e)if(t!==n){if(r===`${t}<${n}`)return{type:"less_than",leftVar:t,rightVar:n};if(r===`${t}>${n}`)return{type:"greater_than",leftVar:t,rightVar:n};if(r===`${t}<=${n}`)return{type:"less_equal",leftVar:t,rightVar:n};if(r===`${t}>=${n}`)return{type:"greater_equal",leftVar:t,rightVar:n};if(r===`${t}!=${n}`)return{type:"not_equal",leftVar:t,rightVar:n};if(r===`not${t}=${n}`)return{type:"not_equal",leftVar:t,rightVar:n}}return null},e.areAllNumericSets=function(t){for(const e of t)for(const t of e){if(1!==t.length)return!1;if("number"!=typeof t[0])return!1}return!0},e.generateOptimizedNumericCombinations=function(t,e,i){const s=new Map;t.forEach((t,e)=>{s.set(t,e)});const o=s.get(i.leftVar),a=s.get(i.rightVar);if(void 0===o||void 0===a)throw new Error(`Internal error: Pattern variables ${i.leftVar}, ${i.rightVar} not found in variable list`);const l=r(e[o]),c=r(e[a]),u=[],h=[];for(let n=0;n<t.length;n++)n!==o&&n!==a&&(u.push(n),h.push(r(e[n])));const p=[],d=e=>{for(const r of l)for(const i of c)if(e(r,i))if(0===u.length){const e=new Array(t.length);e[o]=r,e[a]=i,p.push(e)}else{const e=n(h);for(const n of e){const e=new Array(t.length);e[o]=r,e[a]=i;for(let t=0;t<u.length;t++)e[u[t]]=n[t];p.push(e)}}};switch(i.type){case"less_than":d((t,e)=>t<e);break;case"greater_than":d((t,e)=>t>e);break;case"less_equal":d((t,e)=>t<=e);break;case"greater_equal":d((t,e)=>t>=e);break;case"not_equal":d((t,e)=>t!==e);break;default:return[]}return p}},7712:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(o.XPath.WILDCARD)}evaluate(t){return this.invert?[]:s.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},7760:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;const n=r(1492);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},7862:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;const i=r(4274),s=r(2399),o=r(1097);class a extends o.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([s.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},7866:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;const s=r(6889),o=r(2399),a=r(7477);class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,s){}reportAmbiguity(t,e,r,n,i,s,o){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(s,o)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,s){let o=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(o)}reportContextSensitivity(t,e,r,n,i,s){let o=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(o)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let s=i[n];return s?`${r} (${s})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new s.BitSet;for(let t of e)r.set(t.alt);return r}}n([o.Override],l.prototype,"syntaxError",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(6,o.NotNull)],l.prototype,"reportAmbiguity",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(5,o.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(5,o.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,o.NotNull),i(1,o.NotNull)],l.prototype,"getDecisionDescription",null),n([o.NotNull,i(1,o.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},7886:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s){super(t,e,n,i,s,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([o.NotNull],a.prototype,"ambigAlts",void 0),n([o.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,o.NotNull),i(2,o.NotNull),i(3,o.NotNull)],a),e.AmbiguityInfo=a},7920:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._ruleIndex),t=s.MurmurHash.update(t,this._actionIndex),s.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),e.LexerCustomAction=a},7997:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},8002:t=>{"use strict";t.exports=Math.min},8016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;const n=r(2813);class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},8055:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;const i=r(2399);class s{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}s.INSTANCE=new s,n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"equals",null),e.ObjectEqualityComparator=s},8068:t=>{"use strict";t.exports=SyntaxError},8075:(t,e,r)=>{"use strict";var n=r(453),i=r(487),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},8151:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;const i=r(2399),s=r(5636),o=r(8055);class a{hashCode(t){return null==t?0:s.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e)return!1;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!o.ObjectEqualityComparator.INSTANCE.equals(t[r],e[r]))return!1;return!0}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.ArrayEqualityComparator=a},8184:(t,e,r)=>{"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),s=r(9092)(),o=r(3628),a=n("Object.prototype.toString"),l=n("Function.prototype.toString"),c=r(4233);t.exports=function(t){if("function"!=typeof t)return!1;if(i(l(t)))return!0;if(!s)return"[object GeneratorFunction]"===a(t);if(!o)return!1;var e=c();return e&&o(t)===e.prototype}},8195:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},8240:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;const i=r(5754),s=r(2399),o=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=o,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=o,this._size=0;for(let e of t)this.add(e)}else this._data=o,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e<this._size;e++)if(this._data[e]===t)return!0;return!1}set(t,e){if(t<0||t>=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size)throw RangeError();if(t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l))return!1;if(this._size!==t._size)return!1;for(let e=0;e<this._size;e++)if(this._data[e]!==t._data[e])return!1;return!0}hashCode(){let t=1;for(let e=0;e<this._size;e++)t=31*t+this._data[e];return t}toString(){return this._data.toString()}binarySearch(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this._size),e<0||r<0||e>this._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;e<t;)e*=2,(e<0||e>a)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n<this._size;n++){let i=this._data[n];if(i>=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let s=String.fromCodePoint(i);t[e]=s.charCodeAt(0),t[e+1]=s.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e<this._size;e++)t+=this._data[e]>=65536?2:1;return t}}n([s.NotNull],l.prototype,"_data",void 0),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"toString",null),e.IntegerList=l},8291:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;const s=r(7477),o=r(2399),a=r(7760);let l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,s=0,o=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=s,this.stop=o,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start<e&&this.stop<e?t.getText(s.Interval.of(this.start,this.stop)):"<EOF>"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="<no text>";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([o.NotNull],l.prototype,"source",void 0),n([o.Override],l.prototype,"type",null),n([o.Override],l.prototype,"line",null),n([o.Override],l.prototype,"text",null),n([o.Override],l.prototype,"charPositionInLine",null),n([o.Override],l.prototype,"channel",null),n([o.Override],l.prototype,"startIndex",null),n([o.Override],l.prototype,"stopIndex",null),n([o.Override],l.prototype,"tokenIndex",null),n([o.Override],l.prototype,"tokenSource",null),n([o.Override],l.prototype,"inputStream",null),n([o.Override],l.prototype,"toString",null),n([i(0,o.NotNull)],l,"fromToken",null),l=n([i(2,o.NotNull)],l),e.CommonToken=l},8344:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;const s=r(2399);let o=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r<t.length;r++)t[r].LL_Fallback>0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r<e.length;r++)t+=this.getDFASize(r);return t}}};n([s.NotNull],o.prototype,"getDecisionInfo",null),n([s.NotNull],o.prototype,"getLLDecisions",null),o=n([i(0,s.NotNull)],o),e.ParseInfo=o},8369:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8403:(t,e,r)=>{"use strict";var n=r(1189),i=r(1333)(),s=r(6556),o=r(9612),a=s("Array.prototype.push"),l=s("Object.prototype.propertyIsEnumerable"),c=i?o.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=o(t);if(1===arguments.length)return r;for(var s=1;s<arguments.length;++s){var u=o(arguments[s]),h=n(u),p=i&&(o.getOwnPropertySymbols||c);if(p)for(var d=p(u),f=0;f<d.length;++f){var _=d[f];l(u,_)&&a(h,_)}for(var T=0;T<h.length;++T){var y=h[T];if(l(u,y)){var O=u[y];r[y]=O}}}return r}},8452:(t,e,r)=>{"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,o=Array.prototype.concat,a=r(41),l=r(592)(),c=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==s.call(i)||!n())return;var i;l?a(t,e,r,!0):a(t,e,r)},u=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=o.call(s,Object.getOwnPropertySymbols(e)));for(var a=0;a<s.length;a+=1)c(t,s[a],e[s[a]],r[s[a]])};u.supportsDescriptors=!!l,t.exports=u},8567:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;const n=r(5636);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),s=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),o=parseInt(e[4].substr(-8),16);return new i(r,n,s,o)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},8571:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;const s=r(2399);let o=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([s.NotNull,i(0,s.NotNull)],o.prototype,"getAll",null),n([s.NotNull],o.prototype,"labels",null),n([s.NotNull],o.prototype,"pattern",null),n([s.NotNull],o.prototype,"tree",null),n([s.Override],o.prototype,"toString",null),o=n([i(0,s.NotNull),i(1,s.NotNull),i(2,s.NotNull)],o),e.ParseTreeMatch=o},8590:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;const i=r(6298),s=r(2399),o=r(8859),a=r(8831),l=r(7435);class c{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort((t,e)=>t.stateNumber-e.stateNumber);for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort((t,e)=>t-e),s=r.getContextEdgeMap(),o=[...s.keys()].sort((t,e)=>t-e);for(let s of n){let n=e.get(s);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(s))continue;let o=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(s)+"->",r.isContextSymbol(s)&&(t+="!",o=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":o&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of o)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(s.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===o.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===o.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===i.ATNSimulator.ERROR)return"ERROR";let e=t.stateNumber,r="s"+e;if(t.isAcceptState&&(r=t.predicates?":s"+e+"=>"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([s.NotNull],c.prototype,"dfa",void 0),n([s.NotNull],c.prototype,"vocabulary",void 0),n([s.Override],c.prototype,"toString",null),e.DFASerializer=c},8644:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;const i=r(7037),s=r(8016),o=r(2399);class a extends s.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([o.Override],a.prototype,"stateType",null),e.TokensStartState=a},8648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8744:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.BASIC}}n([o.Override],a.prototype,"stateType",null),e.BasicState=a},8749:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},8831:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;const s=r(3196),o=r(7115),a=r(2399),l=r(7760),c=r(659);class u{constructor(){this._listeners=[s.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=u.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,u.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=u.ruleIndexMapCache.get(t);return null==e&&(e=c.toMap(t),u.ruleIndexMapCache.set(t,e)),e}getTokenType(t){let e=this.getTokenTypeMap().get(t);return null!=e?e:l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new o.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}u.EOF=-1,u.tokenTypeMapCache=new WeakMap,u.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],u.prototype,"_listeners",void 0),n([a.NotNull],u.prototype,"getTokenTypeMap",null),n([a.NotNull],u.prototype,"getRuleIndexMap",null),n([a.NotNull],u.prototype,"serializedATN",null),n([a.NotNull],u.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],u.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],u.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],u.prototype,"addErrorListener",null),n([i(0,a.NotNull)],u.prototype,"removeErrorListener",null),n([a.NotNull],u.prototype,"getErrorListeners",null),e.Recognizer=u},8840:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return s.ATNStateType.RULE_STOP}}n([o.Override],a.prototype,"nonStopStateNumber",null),n([o.Override],a.prototype,"stateType",null),e.RuleStopState=a},8859:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;const s=r(3907),o=r(1533),a=r(5754),l=r(5636),c=r(2399),u=r(6409),h=r(4148);class p{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?p.EMPTY_FULL:p.EMPTY_LOCAL;let n;n=e._parent?p.fromRuleContext(t,e._parent,r):r?p.EMPTY_FULL:p.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=u.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return p.isEmptyLocal(t)?t:p.addEmptyContext(e);if(e.isEmpty)return p.isEmptyLocal(e)?e:p.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let s=0,o=new Array(n+i),a=new Array(o.length),l=0,c=0,d=!0,T=!0;for(;l<n&&c<i;)t.getReturnState(l)===e.getReturnState(c)?(o[s]=r.join(t.getParent(l),e.getParent(c)),a[s]=t.getReturnState(l),d=d&&o[s]===t.getParent(l),T=T&&o[s]===e.getParent(c),l++,c++):t.getReturnState(l)<e.getReturnState(c)?(o[s]=t.getParent(l),a[s]=t.getReturnState(l),T=!1,l++):(h(e.getReturnState(c)<t.getReturnState(l)),o[s]=e.getParent(c),a[s]=e.getReturnState(c),d=!1,c++),s++;for(;l<n;)o[s]=t.getParent(l),a[s]=t.getReturnState(l),l++,T=!1,s++;for(;c<i;)o[s]=e.getParent(c),a[s]=e.getReturnState(c),c++,d=!1,s++;return d?t:T?e:(s<o.length&&(o=o.slice(0,s),a=a.slice(0,s)),0===o.length?p.EMPTY_FULL:1===o.length?new _(o[0],a[0]):new f(o,a))}static isEmptyLocal(t){return t===p.EMPTY_LOCAL}static getCachedContext(t,e,r){if(t.isEmpty)return t;let n=r.get(t);if(n)return n;if(n=e.get(t),n)return r.put(t,n),n;let i,s=!1,o=new Array(t.size);for(let n=0;n<o.length;n++){let i=p.getCachedContext(t.getParent(n),e,r);if(s||i!==t.getParent(n)){if(!s){o=new Array(t.size);for(let e=0;e<t.size;e++)o[e]=t.getParent(e);s=!0}o[n]=i}}if(!s)return n=e.putIfAbsent(t,t),r.put(t,null!=n?n:t),t;if(1===o.length)i=new _(o[0],t.getReturnState(0));else{let e=new Array(t.size);for(let r=0;r<t.size;r++)e[r]=t.getReturnState(r);i=new f(o,e,t.hashCode())}return n=e.putIfAbsent(i,i),r.put(i,n||i),r.put(t,n||i),i}appendSingleContext(t,e){return this.appendContext(p.EMPTY_FULL.getChild(t),e)}getChild(t){return new _(this,t)}hashCode(){return this.cachedHashCode}toStrings(t,e,r=p.EMPTY_FULL){let n=[];t:for(let i=0;;i++){let s=0,o=!0,a=this,l=e,c="";for(c+="[";!a.isEmpty&&a!==r;){let e=0;if(a.size>0){let t=1;for(;1<<t>>>0<a.size;)t++;if(e=i>>s&(1<<t>>>0)-1,o=o&&e>=a.size-1,e>=a.size)continue t;s+=t}if(t){c.length>1&&(c+=" ");let e=t.atn.states[l];c+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==p.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(c.length>1&&(c+=" "),c+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(c+="]",n.push(c),o)break}return n}}n([c.Override],p.prototype,"hashCode",null),n([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],p,"join",null),n([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],p,"getCachedContext",null),e.PredictionContext=p;class d extends p{constructor(t){super(p.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([c.Override],d.prototype,"addEmptyContext",null),n([c.Override],d.prototype,"removeEmptyContext",null),n([c.Override],d.prototype,"getParent",null),n([c.Override],d.prototype,"getReturnState",null),n([c.Override],d.prototype,"findReturnState",null),n([c.Override],d.prototype,"size",null),n([c.Override],d.prototype,"appendSingleContext",null),n([c.Override],d.prototype,"appendContext",null),n([c.Override],d.prototype,"isEmpty",null),n([c.Override],d.prototype,"hasEmpty",null),n([c.Override],d.prototype,"equals",null),n([c.Override],d.prototype,"toStrings",null);let f=class t extends p{constructor(t,e,r){super(r||p.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==p.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===p.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(p.EMPTY_FULL),r.push(p.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new _(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new p.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(p.isEmptyLocal(r)){if(e.hasEmpty)return p.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let s=e.size;e.hasEmpty&&s--;let o=new Array(s),a=new Array(s);for(let t=0;t<s;t++)a[t]=e.getReturnState(t);for(let i=0;i<s;i++)o[i]=t.appendContextImpl(e.getParent(i),r,n);1===o.length?i=new _(o[0],a[0]):(h(o.length>1),i=new t(o,a)),e.hasEmpty&&(i=p.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t))return!1;if(this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new o.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let s=new u.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(s))continue;let o=s.x.size;if(0!==o){if(o!==s.y.size)return!1;for(let t=0;t<o;t++){if(s.x.getReturnState(t)!==s.y.getReturnState(t))return!1;let e=s.x.getParent(t),i=s.y.getParent(t);if(e.hashCode()!==i.hashCode())return!1;e!==i&&(r.push(e),n.push(i))}}else if(!s.x.equals(s.y))return!1}return!0}};n([c.NotNull],f.prototype,"parents",void 0),n([c.NotNull],f.prototype,"returnStates",void 0),n([c.Override],f.prototype,"getParent",null),n([c.Override],f.prototype,"getReturnState",null),n([c.Override],f.prototype,"findReturnState",null),n([c.Override],f.prototype,"size",null),n([c.Override],f.prototype,"isEmpty",null),n([c.Override],f.prototype,"hasEmpty",null),n([c.Override],f.prototype,"addEmptyContext",null),n([c.Override],f.prototype,"removeEmptyContext",null),n([c.Override],f.prototype,"appendContext",null),n([c.Override],f.prototype,"equals",null),f=n([i(0,c.NotNull)],f);let _=class t extends p{constructor(t,e){super(p.calculateSingleHashCode(t,e)),this.parent=t,this.returnState=e}getParent(t){return this.parent}getReturnState(t){return this.returnState}findReturnState(t){return this.returnState===t?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(t,e){return e.getChild(this.parent.appendContext(t,e),this.returnState)}addEmptyContext(){let t=[this.parent,p.EMPTY_FULL],e=[this.returnState,p.EMPTY_FULL_STATE_KEY];return new f(t,e)}removeEmptyContext(){return this}equals(e){if(e===this)return!0;if(!(e instanceof t))return!1;let r=e;return this.hashCode()===r.hashCode()&&this.returnState===r.returnState&&this.parent.equals(r.parent)}};n([c.NotNull],_.prototype,"parent",void 0),n([c.Override],_.prototype,"getParent",null),n([c.Override],_.prototype,"getReturnState",null),n([c.Override],_.prototype,"findReturnState",null),n([c.Override],_.prototype,"size",null),n([c.Override],_.prototype,"isEmpty",null),n([c.Override],_.prototype,"hasEmpty",null),n([c.Override],_.prototype,"appendContext",null),n([c.Override],_.prototype,"addEmptyContext",null),n([c.Override],_.prototype,"removeEmptyContext",null),n([c.Override],_.prototype,"equals",null),_=n([i(0,c.NotNull)],_),e.SingletonPredictionContext=_,function(t){t.EMPTY_LOCAL=new d(!1),t.EMPTY_FULL=new d(!0),t.EMPTY_LOCAL_STATE_KEY=-2147483648,t.EMPTY_FULL_STATE_KEY=2147483647;class e extends s.Array2DHashMap{constructor(){super(r.INSTANCE)}}t.IdentityHashMap=e;class r{IdentityEqualityComparator(){}hashCode(t){return t.hashCode()}equals(t,e){return t===e}}r.INSTANCE=new r,n([c.Override],r.prototype,"hashCode",null),n([c.Override],r.prototype,"equals",null),t.IdentityEqualityComparator=r}(p=e.PredictionContext||(e.PredictionContext={}))},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,o=r(1093),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===s.call(t),n=o(t),a=e&&"[object String]"===s.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!i.call(t,0))for(var _=0;_<t.length;++_)p.push(String(_));if(n&&t.length>0)for(var T=0;T<t.length;++T)p.push(String(T));else for(var y in t)f&&"prototype"===y||!i.call(t,y)||p.push(String(y));if(l)for(var O=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),x=0;x<u.length;++x)O&&"constructor"===u[x]||!i.call(t,u[x])||p.push(u[x]);return p}}t.exports=n},8880:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;const s=r(3907),o=r(8016),a=r(5636),l=r(2399),c=r(8055),u=r(8859),h=r(2356),p=r(4148),d=2147483648;let f=class t{constructor(t,e,r){"number"==typeof e?(p((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,s){return i!==h.SemanticContext.NONE?null!=s?new y(s,i,e,r,n,!1):new _(i,e,r,n):null!=s?new T(s,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){p(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof u.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,s){let o=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=s||o?new y(s,n,e,this,r,o):new _(n,e,this,r):null!=s||o?new T(s,e,this,r,o):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof o.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size<n.size)return!1;if(n.isEmpty)return t.hasEmpty;for(let i=0;i<n.size;i++){let s=t.findReturnState(n.getReturnState(i));if(s<0)return!1;e.push(t.getParent(s)),r.push(n.getParent(i))}}return!1}get isPrecedenceFilterSuppressed(){return 0!==(this.altAndOuterContextDepth&d)}set isPrecedenceFilterSuppressed(t){t?this.altAndOuterContextDepth|=d:this.altAndOuterContextDepth&=2147483647}equals(e){return this===e||e instanceof t&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.reachesIntoOuterContext===e.reachesIntoOuterContext&&this.context.equals(e.context)&&this.semanticContext.equals(e.semanticContext)&&this.isPrecedenceFilterSuppressed===e.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===e.hasPassedThroughNonGreedyDecision&&c.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,e.lexerActionExecutor)}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.state.stateNumber),t=a.MurmurHash.update(t,this.alt),t=a.MurmurHash.update(t,this.reachesIntoOuterContext?1:0),t=a.MurmurHash.update(t,this.context),t=a.MurmurHash.update(t,this.semanticContext),t=a.MurmurHash.update(t,this.hasPassedThroughNonGreedyDecision?1:0),t=a.MurmurHash.update(t,this.lexerActionExecutor),t=a.MurmurHash.finish(t,7),t}toDotString(){let t="";t+="digraph G {\n",t+="rankdir=LR;\n";let e=new s.Array2DHashMap(u.PredictionContext.IdentityEqualityComparator.INSTANCE),r=[];function n(t){let n=e.size,i=e.putIfAbsent(t,n);return null!=i?i:(r.push(t),n)}for(r.push(this.context),e.put(this.context,0);;){let e=r.pop();if(!e)break;for(let r=0;r<e.size;r++)t+=" s"+n(e),t+="->",t+="s"+n(e.getParent(r)),t+='[label="'+e.getReturnState(r)+'"];\n'}return t+="}\n",t.toString()}toString(t,e,r){null==r&&(r=null!=e),null==e&&(e=!0);let n,i="";n=r?this.context.toStrings(t,this.state.stateNumber):["?"];let s=!0;for(let t of n)s?s=!1:i+=", ",i+="(",i+=this.state,e&&(i+=",",i+=this.alt),this.context&&(i+=",",i+=t),this.semanticContext!==h.SemanticContext.NONE&&(i+=",",i+=this.semanticContext),this.reachesIntoOuterContext&&(i+=",up="+this.outerContextDepth),i+=")";return i.toString()}};n([l.NotNull],f.prototype,"_state",void 0),n([l.NotNull],f.prototype,"_context",void 0),n([l.NotNull],f.prototype,"state",null),n([l.NotNull,i(0,l.NotNull)],f.prototype,"context",null),n([l.NotNull],f.prototype,"semanticContext",null),n([l.Override],f.prototype,"clone",null),n([i(0,l.NotNull),i(2,l.NotNull)],f.prototype,"transformImpl",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([i(0,l.NotNull),i(3,l.NotNull)],f,"create",null),f=n([i(0,l.NotNull),i(2,l.NotNull)],f),e.ATNConfig=f;let _=class extends f{constructor(t,e,r,n){super(e,r,n),this._semanticContext=t}get semanticContext(){return this._semanticContext}};n([l.NotNull],_.prototype,"_semanticContext",void 0),n([l.Override],_.prototype,"semanticContext",null),_=n([i(1,l.NotNull),i(2,l.NotNull)],_);let T=class extends f{constructor(t,e,r,n,i){if("number"==typeof r)super(e,r,n);else if(super(e,r,n),r.semanticContext!==h.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=i}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],T.prototype,"lexerActionExecutor",null),n([l.Override],T.prototype,"hasPassedThroughNonGreedyDecision",null),T=n([i(1,l.NotNull),i(2,l.NotNull)],T);let y=class extends _{constructor(t,e,r,n,i,s){super(e,r,n,i),this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=s}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],y.prototype,"lexerActionExecutor",null),n([l.Override],y.prototype,"hasPassedThroughNonGreedyDecision",null),y=n([i(1,l.NotNull),i(2,l.NotNull)],y)},8897:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;const n=r(1072);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},8955:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;const i=r(2399);class s{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==s._defaultOptions&&(s._defaultOptions=new s,s._defaultOptions.makeReadOnly()),s._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],s,"defaultOptions",null),e.ATNDeserializationOptions=s},8968:t=>{"use strict";t.exports=Math.floor},9032:(t,e,r)=>{"use strict";var n=r(7244),i=r(8184),s=r(5767),o=r(5680);function a(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(c)var _=a(Symbol.prototype.valueOf);function T(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function O(t){return"[object Set]"===u(t)}function x(t){return"[object WeakMap]"===u(t)}function g(t){return"[object WeakSet]"===u(t)}function E(t){return"[object ArrayBuffer]"===u(t)}function m(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function v(t){return"[object DataView]"===u(t)}function S(t){return"undefined"!=typeof DataView&&(v.working?v(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||S(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},O.working="undefined"!=typeof Set&&O(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(O.working?O(t):t instanceof Set)},x.working="undefined"!=typeof WeakMap&&x(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(x.working?x(t):t instanceof WeakMap)},g.working="undefined"!=typeof WeakSet&&g(new WeakSet),e.isWeakSet=function(t){return g(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=m,v.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S;var N="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function R(t){return"[object SharedArrayBuffer]"===u(t)}function b(t){return void 0!==N&&(void 0===R.working&&(R.working=R(new N)),R.working?R(t):t instanceof N)}function A(t){return T(t,h)}function C(t){return T(t,p)}function L(t){return T(t,d)}function I(t){return l&&T(t,f)}function P(t){return c&&T(t,_)}e.isSharedArrayBuffer=b,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=A,e.isStringObject=C,e.isBooleanObject=L,e.isBigIntObject=I,e.isSymbolObject=P,e.isBoxedPrimitive=function(t){return A(t)||C(t)||L(t)||I(t)||P(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(m(t)||b(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})},9057:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;const s=r(5636),o=r(2399);let a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this._offset),t=s.MurmurHash.update(t,this._action),s.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([o.NotNull],a.prototype,"action",null),n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),a=n([i(1,o.NotNull)],a),e.LexerIndexedCustomAction=a},9086:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;const i=r(934),s=r(2399);class o extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([s.NotNull],o.prototype,"tag",null),n([s.Override],o.prototype,"toString",null),e.TagChunk=o},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),s="";for(var o in i)s+=o;return t!==s}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9202:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.ActionTransition=a},9209:(t,e,r)=>{"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},9211:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9240:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return s.ATNStateType.RULE_START}}n([o.Override],a.prototype,"stateType",null),e.RuleStartState=a},9250:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.EpsilonTransition=a},9274:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;const s=r(2813),o=r(7037),a=r(6889),l=r(2262),c=r(2468),u=r(3714),h=r(6251),p=r(2399),d=r(2399),f=r(5922),_=r(3161),T=r(9449),y=r(4016),O=r(7760);let x=class t extends f.Parser{constructor(e,r,n,i,s){if(super(e instanceof t?e.inputStream:s),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new _.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new _.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,s.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===o.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof T.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),O.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let s=r;if(!this.sempred(this._ctx,s.ruleIndex,s.predIndex))throw new l.FailedPredicateException(this);break;case 6:let o=r;this.action(this._ctx,o.ruleIndex,o.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new u.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof c.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=O.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let s=this.tokenFactory.create(n,i,e.text,O.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,s))}else{e.tokenSource;let t=this.tokenFactory.create(n,O.Token.INVALID_TYPE,e.text,O.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([p.NotNull],x.prototype,"_vocabulary",void 0),n([d.Override],x.prototype,"reset",null),n([d.Override],x.prototype,"atn",null),n([d.Override],x.prototype,"vocabulary",null),n([d.Override],x.prototype,"ruleNames",null),n([d.Override],x.prototype,"grammarFileName",null),n([d.Override],x.prototype,"enterRecursionRule",null),x=n([i(1,p.NotNull)],x),e.ParserInterpreter=x},9278:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},9290:t=>{"use strict";t.exports=RangeError},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,o=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),a=r(0,i.length-o.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(s=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var e=i.apply(this,n(o,arguments));return Object(e)===e?e:this}return i.apply(t,n(o,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,s.prototype=new u,u.prototype=null}return s}},9383:t=>{"use strict";t.exports=Error},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9449:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},9462:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;const s=r(8939),o=r(1533),a=r(8880),l=r(6889),c=r(3357),u=r(2399),h=r(3575),p=r(8055),d=r(8859),f=r(8840),_=r(3334),T=r(7760),y=r(4650);let O=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n<e.numberOfTransitions;n++){let i=new c.IntervalSet;r[n]=i;let s=new o.Array2DHashSet(p.ObjectEqualityComparator.INSTANCE),a=!1;this._LOOK(e.transition(n).target,void 0,d.PredictionContext.EMPTY_LOCAL,i,s,new l.BitSet,a,!1),(0===i.size||i.contains(t.HIT_PRED))&&(i=void 0,r[n]=i)}return r}LOOK(t,e,r){if(void 0===r){if(null==t.atn)throw new Error("Illegal state");r=t.atn.ruleToStopState[t.ruleIndex]}else null===r&&(r=void 0);let n=new c.IntervalSet;return this._LOOK(t,r,e,n,new o.Array2DHashSet,new l.BitSet,!0,!0),n}_LOOK(e,r,n,i,o,l,u,p){let O=a.ATNConfig.create(e,0,n);if(!o.add(O))return;if(e===r){if(d.PredictionContext.isEmptyLocal(n))return void i.add(T.Token.EPSILON);if(n.isEmpty)return void(p&&i.add(T.Token.EOF))}if(e instanceof f.RuleStopState){if(n.isEmpty&&!d.PredictionContext.isEmptyLocal(n))return void(p&&i.add(T.Token.EOF));let t=l.get(e.ruleIndex);try{l.clear(e.ruleIndex);for(let t=0;t<n.size;t++){if(n.getReturnState(t)===d.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let e=this.atn.states[n.getReturnState(t)];this._LOOK(e,r,n.getParent(t),i,o,l,u,p)}}finally{t&&l.set(e.ruleIndex)}}let x=e.numberOfTransitions;for(let a=0;a<x;a++){let d=e.transition(a);if(d instanceof _.RuleTransition){if(l.get(d.ruleIndex))continue;let t=n.getChild(d.followState.stateNumber);try{l.set(d.ruleIndex),this._LOOK(d.target,r,t,i,o,l,u,p)}finally{l.clear(d.ruleIndex)}}else if(d instanceof s.AbstractPredicateTransition)u?this._LOOK(d.target,r,n,i,o,l,u,p):i.add(t.HIT_PRED);else if(d.isEpsilon)this._LOOK(d.target,r,n,i,o,l,u,p);else if(d instanceof y.WildcardTransition)i.addAll(c.IntervalSet.of(T.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let t=d.label;null!=t&&(d instanceof h.NotSetTransition&&(t=t.complement(c.IntervalSet.of(T.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),i.addAll(t))}}}};O.HIT_PRED=T.Token.INVALID_TYPE,n([u.NotNull],O.prototype,"atn",void 0),n([u.NotNull,i(0,u.NotNull),i(1,u.NotNull)],O.prototype,"LOOK",null),n([i(0,u.NotNull),i(2,u.NotNull),i(3,u.NotNull),i(4,u.NotNull),i(5,u.NotNull)],O.prototype,"_LOOK",null),O=n([i(0,u.NotNull)],O),e.LL1Analyzer=O},9538:t=>{"use strict";t.exports=ReferenceError},9597:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var o,a,l={};function c(t,e,r){r||(r=Error);var o=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,r);var o,a,l,c=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=s(a);if(l){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(r,n,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s=c.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i)),s.code=t,s}return o=u,Object.defineProperty(o,"prototype",{writable:!1}),o}(r);l[t]=o}function u(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(t,e,i){var s,a,l,c,h;if(void 0===o&&(o=r(4148)),o("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,4)===a)?(s="must not be",e=e.replace(/^not /,"")):s="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))l="The ".concat(t," ").concat(s," ").concat(u(e,"type"));else{var p=("number"!=typeof h&&(h=0),h+1>(c=t).length||-1===c.indexOf(".",h)?"argument":"property");l='The "'.concat(t,'" ').concat(p," ").concat(s," ").concat(u(e,"type"))}return l+". Received type ".concat(n(i))},TypeError),c("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(537));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===o&&(o=r(4148)),o(e.length>0,"At least one arg needs to be specified");var i="The ",s=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),s){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,s-1).join(", "),i+=", and ".concat(e[s-1]," arguments")}return"".concat(i," must be specified")},TypeError),t.exports.codes=l},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;l.call(p)===l.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return a(t);if(o(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},9612:t=>{"use strict";t.exports=Object},9616:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._mode),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerModeAction=a},9675:t=>{"use strict";t.exports=TypeError},9700:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectorSynthesisError=void 0,e.synthesizeSelector=function(t,e=3){return s(_(t.map(t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map(t=>t.id))})),l,e))},e.synthesizeBinaryRelation=function(t,e=3){return s(_(t.map(t=>{const e=new Set(Array.from(t.pairs).map(([t,e])=>`${t.id}\0${e.id}`));return{datum:t.datum,target:e}}),c,e))},e.synthesizeSelectorWithWhy=function(t,e=3){const r=t.map(t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map(t=>t.id))})),n=_(r,l,e),i=s(n),o=new Map;return{expression:i,examples:r.map(t=>{const e=d(t.datum,o);return{datum:t.datum,target:t.target,result:u(n,e,l),why:T(n,e,l)}})}},e.synthesizeBinaryRelationWithWhy=function(t,e=3){const r=t.map(t=>{const e=new Set(Array.from(t.pairs).map(([t,e])=>`${t.id}\0${e.id}`));return{datum:t.datum,target:e}}),n=_(r,c,e),i=s(n),o=new Map;return{expression:i,examples:r.map(t=>{const e=d(t.datum,o);return{datum:t.datum,target:t.target,result:u(n,e,c),why:T(n,e,c)}})}};const n=r(1229);class i extends Error{}function s(t){switch(t.kind){case"identifier":return t.name;case"closure":return`^${a(s(t.child))}`;case"reflexive-closure":return`*${a(s(t.child))}`;case"transpose":return`~${a(s(t.child))}`;case"join":return`${o(t.left)}.${o(t.right)}`;case"union":return`(${s(t.left)} + ${s(t.right)})`;case"intersection":return`(${s(t.left)} & ${s(t.right)})`;case"difference":return`(${s(t.left)} - ${s(t.right)})`;case"comprehension":return`{${t.varName}: ${s(t.domain)} | ${s(t.body)}}`;case"all":return`(all ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"some":return`(some ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"no":return`(no ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"one":return`(one ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"lone":return`(lone ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"and":return`(${s(t.left)} and ${s(t.right)})`;case"or":return`(${s(t.left)} or ${s(t.right)})`;case"implies":return`(${s(t.left)} => ${s(t.right)})`;case"iff":return`(${s(t.left)} <=> ${s(t.right)})`;case"not":return`!${a(s(t.child))}`;case"in":return`(${s(t.left)} in ${s(t.right)})`;case"eq":return`(${s(t.left)} = ${s(t.right)})`;case"neq":return`(${s(t.left)} != ${s(t.right)})`;case"lt":return`(${s(t.left)} < ${s(t.right)})`;case"gt":return`(${s(t.left)} > ${s(t.right)})`;case"lte":return`(${s(t.left)} <= ${s(t.right)})`;case"gte":return`(${s(t.left)} >= ${s(t.right)})`;case"box-join":return`${s(t.base)}[${t.args.map(s).join(", ")}]`}}function o(t){return"identifier"===t.kind||"closure"===t.kind||"reflexive-closure"===t.kind||"transpose"===t.kind||"box-join"===t.kind?s(t):`(${s(t)})`}function a(t){return t.startsWith("(")&&t.endsWith(")")?t:`(${t})`}function l(t){if("string"==typeof t)return new Set([t]);if(!Array.isArray(t))return null;const e=t,r=new Set;for(const t of e){if(!Array.isArray(t)||1!==t.length)return null;const e=t[0];if("string"==typeof e)r.add(e);else{if("number"!=typeof e)return null;r.add(String(e))}}return r}function c(t){if(!Array.isArray(t))return null;const e=t,r=new Set;for(const t of e){if(!Array.isArray(t)||2!==t.length)return null;const[e,n]=t,i="string"==typeof e?e:"number"==typeof e?String(e):null,s="string"==typeof n?n:"number"==typeof n?String(n):null;if(null===i||null===s)return null;r.add(`${i}\0${s}`)}return r}function u(t,e,r){const n=s(t);return r(e.evaluateExpression(n))}function h(t,e){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}function p(t,e){if("univ"===t||"iden"===t)return"builtin";for(const r of e){if(r.getRelations().some(e=>e.name===t))return"relation";if(r.getTypes().some(e=>e.id===t))return"type"}return"other"}function d(t,e){const r=e.get(t);if(r)return r;const i=new n.SimpleGraphQueryEvaluator(t);return e.set(t,i),i}function f(t,e,r){for(const n of e){const e=u(t,n.evaluator,r);if(!e)return!1;if(!h(e,n.target))return!1}return!0}function _(t,e,r=3){if(0===t.length)throw new i("No examples provided for synthesis");const n=new Map,o=t.map(t=>({...t,evaluator:d(t.datum,n)})),a=o.map(t=>t.datum),l=function(t){const e=function(t){const e=t.map(t=>{const e=t.getTypes().map(t=>t.id),r=t.getRelations().map(t=>t.name);return new Set([...e,...r])});if(0===e.length)return new Set;const[r,...n]=e,i=new Set;for(const t of r)n.every(e=>e.has(t))&&i.add(t);return i}(t);return["univ","iden"].forEach(t=>e.add(t)),Array.from(e).sort((e,r)=>{const n={relation:0,type:1,builtin:2,other:3},i=n[p(e,t)],s=n[p(r,t)];return i!==s?i-s:e.localeCompare(r)}).map(t=>({kind:"identifier",name:t}))}(a);if(0===l.length)throw new i("No shared identifiers available across provided data instances");for(const t of l)if(f(t,o,e))return t;const c=function(t){const e=[],r=new Set,n=new Set,i=new Set;if(0===t.length)return e;const o=t[0];o.getRelations().forEach(t=>n.add(t.name)),o.getTypes().forEach(t=>i.add(t.id));for(let e=1;e<t.length;e++){const r=t[e],s=new Set(r.getRelations().map(t=>t.name)),o=new Set(r.getTypes().map(t=>t.id));for(const t of n)s.has(t)||n.delete(t);for(const t of i)o.has(t)||i.delete(t)}for(const t of n){const n=o.getRelations().find(e=>e.name===t);if(!n||n.types.length<2)continue;const a=n.types[0];for(const n of i){const i=o.getTypes().find(t=>t.id===n);if(i&&(n===a||i.types.includes(a)||o.getTypes().find(t=>t.id===a)?.types.includes(n))){const i={kind:"join",left:{kind:"identifier",name:n},right:{kind:"identifier",name:t}},o=s(i);r.has(o)||(r.add(o),e.push(i))}}}for(const t of n){const n=o.getRelations().find(e=>e.name===t);if(!n||n.types.length<2)continue;const a=n.types[n.types.length-1];for(const n of i){const i=o.getTypes().find(t=>t.id===n);if(i&&(n===a||i.types.includes(a)||o.getTypes().find(t=>t.id===a)?.types.includes(n))){const i={kind:"join",left:{kind:"identifier",name:t},right:{kind:"identifier",name:n}},o=s(i);r.has(o)||(r.add(o),e.push(i))}}}return e}(a);for(const t of c)if(f(t,o,e))return t;const u=[],h=new Set,_=new Set,T=[...l],y=(t,e)=>{const r=s(t);_.has(r)||h.has(r)||(u.push({node:t,depth:e}),h.add(r))};for(const t of c)_.add(s(t));for(l.forEach(t=>y(t,0));u.length>0;){const t=u.shift(),n=s(t.node);if(h.delete(n),!_.has(n)){if(_.add(n),f(t.node,o,e))return t.node;if(!(t.depth>=r)){y({kind:"closure",child:t.node},t.depth+1),y({kind:"reflexive-closure",child:t.node},t.depth+1),y({kind:"transpose",child:t.node},t.depth+1);for(const e of T){const r=s(t.node),n=s(e),[i,o]=r<n?[t.node,e]:[e,t.node];y({kind:"union",left:i,right:o},t.depth+1);const[a,l]=r<n?[t.node,e]:[e,t.node];y({kind:"intersection",left:a,right:l},t.depth+1),y({kind:"difference",left:t.node,right:e},t.depth+1),r!==n&&y({kind:"difference",left:e,right:t.node},t.depth+1),y({kind:"join",left:t.node,right:e},t.depth+1),y({kind:"join",left:e,right:t.node},t.depth+1)}if(t.depth+2<=r)for(const e of T){if("identifier"!==e.kind)continue;if("type"!==p(e.name,a))continue;const r="v",n={kind:"identifier",name:r};y({kind:"comprehension",varName:r,domain:e,body:{kind:"in",left:n,right:t.node}},t.depth+2);for(const i of T)"identifier"===i.kind&&"relation"===p(i.name,a)&&y({kind:"comprehension",varName:r,domain:e,body:{kind:"in",left:{kind:"join",left:n,right:i},right:t.node}},t.depth+2)}}}}throw new i("Unable to synthesize an expression matching all examples")}function T(t,e,r){const n=u(t,e,r),i={kind:t.kind,expression:s(t),result:n};switch(t.kind){case"identifier":default:return i;case"closure":case"reflexive-closure":case"transpose":case"not":return{...i,children:[T(t.child,e,r)]};case"join":case"union":case"intersection":case"difference":case"and":case"or":case"implies":case"iff":case"in":case"eq":case"neq":case"lt":case"gt":case"lte":case"gte":return{...i,children:[T(t.left,e,r),T(t.right,e,r)]};case"all":case"some":case"no":case"one":case"lone":case"comprehension":return{...i,children:[T(t.domain,e,r),T(t.body,e,r)]};case"box-join":return{...i,children:[T(t.base,e,r),...t.args.map(t=>T(t,e,r))]}}}e.SelectorSynthesisError=i},9709:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;const s=r(4274),o=r(6889),a=r(5636),l=r(2399),c=r(8859),u=r(4148);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){u(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){u(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new o.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:s.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===c.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===c.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(c.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(c.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},9721:(t,e,r)=>{"use strict";var n=r(6556),i=r(4035),s=n("RegExp.prototype.exec"),o=r(9675);t.exports=function(t){if(!i(t))throw new o("`regex` must be a RegExp");return function(e){return null!==s(t,e)}}},9803:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;const i=r(7037),s=r(8744),o=r(2399);class a extends s.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([o.Override],a.prototype,"stateType",null),e.InvalidState=a},9939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;const n=r(493),i=r(2807),s=r(1088),o=r(7435),a=r(659);class l extends i.Lexer{constructor(t){super(t),this._interp=new s.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new o.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(6743);t.exports=s.call(n,i)},9984:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;const i=r(4274),s=r(8831),o=r(5378),a=r(7477),l=r(2399),c=r(7239),u=r(1097);class h extends o.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=null!=e?e:-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e<this.childCount;e++)t+=this.getChild(e).text;return t.toString()}get ruleIndex(){return-1}get altNumber(){return i.ATN.INVALID_ALT_NUMBER}set altNumber(t){}getChild(t){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t){return c.Trees.toStringTree(this,t)}toString(t,e){const r=t instanceof s.Recognizer?t.ruleNames:t;e=e||u.ParserRuleContext.emptyContext();let n="",i=this;for(n+="[";i&&i!==e;){if(r){let t=i.ruleIndex;n+=t>=0&&t<r.length?r[t]:t.toString()}else i.isEmpty||(n+=i.invokingState);!i._parent||!r&&i._parent.isEmpty||(n+=" "),i=i._parent}return n+="]",n.toString()}}n([l.Override],h.prototype,"sourceInterval",null),n([l.Override],h.prototype,"ruleContext",null),n([l.Override],h.prototype,"parent",null),n([l.Override],h.prototype,"setParent",null),n([l.Override],h.prototype,"payload",null),n([l.Override],h.prototype,"text",null),n([l.Override],h.prototype,"getChild",null),n([l.Override],h.prototype,"childCount",null),n([l.Override],h.prototype,"accept",null),n([l.Override],h.prototype,"toStringTree",null),e.RuleContext=h}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,r),s.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(1229)})());
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SimpleGraphQuery=e():t.SimpleGraphQuery=e()}(this,()=>(()=>{var t={41:(t,e,r)=>{"use strict";var n=r(655),i=r(8068),s=r(9675),o=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!o&&o(t,e);if(n)n(t,e,{configurable:null===c&&h?h.configurable:!c,enumerable:null===a&&h?h.enumerable:!a,value:r,writable:null===l&&h?h.writable:!l});else{if(!u&&(a||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{"use strict";t.exports=Function.prototype.call},309:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;const s=r(5629),o=r(2399),a=r(7760);let l=class{constructor(t,e){if(this.i=0,this._factory=s.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(null!=this.eofToken)return this.eofToken.charPositionInLine;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!=this.eofToken)return this.eofToken.line;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t<r.length;t++)"\n"===r.charAt(t)&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!=this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([o.Override],l.prototype,"charPositionInLine",null),n([o.Override],l.prototype,"nextToken",null),n([o.Override],l.prototype,"line",null),n([o.Override],l.prototype,"inputStream",null),n([o.Override],l.prototype,"sourceName",null),n([o.Override,o.NotNull,i(0,o.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,o.NotNull)],l),e.ListTokenSource=l},324:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;const s=r(8590),o=r(2399),a=r(7435);let l=class extends s.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([o.Override,o.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,o.NotNull)],l),e.LexerDFASerializer=l},328:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;const i=r(4148),s=r(1492),o=r(7477),a=r(2399);class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=s.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position===0)throw i(this.LA(1)===s.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(o.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?s.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?s.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){const e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},333:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;const i=r(3907),s=r(5636),o=r(2399),a=r(8840);var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){i.Array2DHashMap;class e{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=s.MurmurHash.initialize(7);return e=s.MurmurHash.update(e,t.state.stateNumber),e=s.MurmurHash.update(e,t.context),e=s.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}e.INSTANCE=new e,n([o.Override],e.prototype,"hashCode",null),n([o.Override],e.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},360:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;const i=r(7477),s=r(2399),o=r(7760);class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===o.Token.EOF?"<EOF>":this._symbol.text||""}}n([s.Override],a.prototype,"getChild",null),n([s.Override],a.prototype,"parent",null),n([s.Override],a.prototype,"setParent",null),n([s.Override],a.prototype,"payload",null),n([s.Override],a.prototype,"sourceInterval",null),n([s.Override],a.prototype,"childCount",null),n([s.Override],a.prototype,"accept",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toStringTree",null),n([s.Override],a.prototype,"toString",null),e.TerminalNode=a},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,i=r(9612),s=r(9383),o=r(1237),a=r(9290),l=r(9538),c=r(8068),u=r(9675),h=r(5345),p=r(1514),d=r(8968),f=r(6188),_=r(8002),T=r(5880),y=r(414),O=r(3093),x=Function,g=function(t){try{return x('"use strict"; return ('+t+").constructor;")()}catch(t){}},E=r(5795),m=r(655),v=function(){throw new u},S=E?function(){try{return v}catch(t){try{return E(arguments,"callee").get}catch(t){return v}}}():v,N=r(4039)(),R=r(3628),b=r(1064),A=r(8648),C=r(1002),L=r(76),I={},w="undefined"!=typeof Uint8Array&&R?R(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":N&&R?R([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&R?R(R([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&N&&R?R((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&N&&R?R((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&R?R(""[Symbol.iterator]()):n,"%Symbol%":N?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":C,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":b,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":_,"%Math.pow%":T,"%Math.round%":y,"%Math.sign%":O,"%Reflect.getPrototypeOf%":A};if(R)try{null.error}catch(t){var K=R(R(t));P["%Error.prototype%"]=K}var k=function t(e){var r;if("%AsyncFunction%"===e)r=g("async function () {}");else if("%GeneratorFunction%"===e)r=g("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=g("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&R&&(r=R(i.prototype))}return P[e]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(6743),U=r(9957),F=M.call(L,Array.prototype.concat),j=M.call(C,Array.prototype.splice),H=M.call(L,String.prototype.replace),B=M.call(L,String.prototype.slice),G=M.call(L,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,V=function(t,e){var r,n=t;if(U(D,n)&&(n="%"+(r=D[n])[0]+"%"),U(P,n)){var i=P[n];if(i===I&&(i=k(n)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return H(t,z,function(t,e,r,i){n[n.length]=r?H(i,q,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=V("%"+n+"%",e),s=i.name,o=i.value,a=!1,l=i.alias;l&&(n=l[0],j(r,F([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],f=B(d,0,1),_=B(d,-1);if(('"'===f||"'"===f||"`"===f||'"'===_||"'"===_||"`"===_)&&f!==_)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(a=!0),U(P,s="%"+(n+="."+d)+"%"))o=P[s];else if(null!=o){if(!(d in o)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(E&&h+1>=r.length){var T=E(o,d);o=(p=!!T)&&"get"in T&&!("originalValue"in T.get)?T.get:o[d]}else p=U(o,d),o=o[d];p&&!a&&(P[s]=o)}}return o}},487:(t,e,r)=>{"use strict";var n=r(6897),i=r(655),s=r(3126),o=r(2205);t.exports=function(t){var e=s(arguments),r=1+t.length-(arguments.length-1);return n(e,r>0?r:0,!0)},i?i(t.exports,"apply",{value:o}):t.exports.apply=o},493:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;const s=r(9202),o=r(1533),a=r(4274),l=r(8955),c=r(7037),u=r(5369),h=r(8749),p=r(8744),d=r(6889),f=r(760),_=r(3099),T=r(8016),y=r(3074),O=r(9250),x=r(3357),g=r(9803),E=r(3972),m=r(7920),v=r(9616),S=r(6474),N=r(4283),R=r(4520),b=r(5859),A=r(6479),C=r(6251),L=r(2399),I=r(3575),w=r(3161),P=r(4891),K=r(6305),k=r(6061),D=r(6369),M=r(3053),U=r(9240),F=r(8840),j=r(3334),H=r(1384),B=r(8195),G=r(5481),z=r(4016),q=r(7760),V=r(8644),Y=r(8567),$=r(4650);var Q;!function(t){t[t.UNICODE_BMP=0]="UNICODE_BMP",t[t.UNICODE_SMP=1]="UNICODE_SMP"}(Q||(Q={}));class W{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=W.SUPPORTED_UUIDS.findIndex(e=>e.equals(t));return!(r<0)&&W.SUPPORTED_UUIDS.findIndex(t=>t.equals(e))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>W.toInt(t[e]),size:1}:{readUnicode:(t,e)=>W.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;e<t.length;e++)t[e]=t[e]-2&65535;let e=0,r=W.toInt(t[e++]);if(r!==W.SERIALIZED_VERSION){let t=`Could not deserialize ATN with version ${r} (expected ${W.SERIALIZED_VERSION}).`;throw new Error(t)}let n=W.toUUID(t,e);if(e+=8,W.SUPPORTED_UUIDS.findIndex(t=>t.equals(n))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${W.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=W.isFeatureSupported(W.ADDED_LEXER_ACTIONS,n),l=W.toInt(t[e++]),d=W.toInt(t[e++]),T=new a.ATN(l,d),x=[],E=[],v=W.toInt(t[e++]);for(let r=0;r<v;r++){let r=W.toInt(t[e++]);if(r===c.ATNStateType.INVALID_TYPE){T.addState(new g.InvalidState);continue}let n=W.toInt(t[e++]);65535===n&&(n=-1);let i=this.stateFactory(r,n);if(r===c.ATNStateType.LOOP_END){let r=W.toInt(t[e++]);x.push([i,r])}else if(i instanceof _.BlockStartState){let r=W.toInt(t[e++]);E.push([i,r])}T.addState(i)}for(let t of x)t[0].loopBackState=T.states[t[1]];for(let t of E)t[0].endState=T.states[t[1]];let S=W.toInt(t[e++]);for(let r=0;r<S;r++){let r=W.toInt(t[e++]);T.states[r].nonGreedy=!0}let N=W.toInt(t[e++]);for(let r=0;r<N;r++){let r=W.toInt(t[e++]);T.states[r].sll=!0}let R=W.toInt(t[e++]);for(let r=0;r<R;r++){let r=W.toInt(t[e++]);T.states[r].isPrecedenceRule=!0}let b=W.toInt(t[e++]);0===T.grammarType&&(T.ruleToTokenType=new Int32Array(b)),T.ruleToStartState=new Array(b);for(let r=0;r<b;r++){let i=W.toInt(t[e++]),s=T.states[i];if(s.leftFactored=0!==W.toInt(t[e++]),T.ruleToStartState[r]=s,0===T.grammarType){let i=W.toInt(t[e++]);if(65535===i&&(i=q.Token.EOF),T.ruleToTokenType[r]=i,!W.isFeatureSupported(W.ADDED_LEXER_ACTIONS,n)){let r=W.toInt(t[e++]);65535===r&&(r=-1)}}}T.ruleToStopState=new Array(b);for(let t of T.states)t instanceof F.RuleStopState&&(T.ruleToStopState[t.ruleIndex]=t,T.ruleToStartState[t.ruleIndex].stopState=t);let A=W.toInt(t[e++]);for(let r=0;r<A;r++){let r=W.toInt(t[e++]);T.modeToStartState.push(T.states[r])}T.modeToDFA=new Array(A);for(let t=0;t<A;t++)T.modeToDFA[t]=new y.DFA(T.modeToStartState[t]);let L=[];e=this.deserializeSets(t,e,L,W.getUnicodeDeserializer(0)),W.isFeatureSupported(W.ADDED_UNICODE_SMP,n)&&(e=this.deserializeSets(t,e,L,W.getUnicodeDeserializer(1)));let I=W.toInt(t[e++]);for(let r=0;r<I;r++){let r=W.toInt(t[e]),n=W.toInt(t[e+1]),i=W.toInt(t[e+2]),s=W.toInt(t[e+3]),o=W.toInt(t[e+4]),a=W.toInt(t[e+5]),l=this.edgeFactory(T,i,r,n,s,o,a,L);T.states[r].addTransition(l),e+=6}let w=new o.Array2DHashSet({hashCode:t=>t.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),k=[];for(let t of T.states){let e=t.ruleIndex>=0&&T.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r<t.numberOfTransitions;r++){let n=t.transition(r);if(!(n instanceof j.RuleTransition))continue;let i=n;if(!T.ruleToStartState[i.target.ruleIndex].leftFactored&&e)continue;let s=-1;T.ruleToStartState[i.target.ruleIndex].isPrecedenceRule&&0===i.precedence&&(s=i.target.ruleIndex);let o={stopState:i.target.ruleIndex,returnState:i.followState.stateNumber,outermostPrecedenceReturn:s};w.add(o)&&k.push(o)}}for(let t of k){let e=new O.EpsilonTransition(T.states[t.returnState],t.outermostPrecedenceReturn);T.ruleToStopState[t.stopState].addTransition(e)}for(let t of T.states){if(t instanceof _.BlockStartState){if(void 0===t.endState)throw new Error("IllegalStateException");if(void 0!==t.endState.startState)throw new Error("IllegalStateException");t.endState.startState=t}if(t instanceof K.PlusLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof P.PlusBlockStartState&&(r.loopBackState=e)}}else if(t instanceof G.StarLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof z.StarLoopEntryState&&(r.loopBackState=e)}}}let D=W.toInt(t[e++]);for(let r=1;r<=D;r++){let n=W.toInt(t[e++]),i=T.states[n];T.decisionToState.push(i),i.decision=r-1}if(0===T.grammarType)if(i){T.lexerActions=new Array(W.toInt(t[e++]));for(let r=0;r<T.lexerActions.length;r++){let n=W.toInt(t[e++]),i=W.toInt(t[e++]);65535===i&&(i=-1);let s=W.toInt(t[e++]);65535===s&&(s=-1);let o=this.lexerActionFactory(n,i,s);T.lexerActions[r]=o}}else{let t=[];for(let e of T.states)for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);if(!(n instanceof s.ActionTransition))continue;let i=n.ruleIndex,o=n.actionIndex,a=new m.LexerCustomAction(i,o);e.setTransition(r,new s.ActionTransition(n.target,i,t.length,!1)),t.push(a)}T.lexerActions=t}this.markPrecedenceDecisions(T),T.decisionToDFA=new Array(D);for(let t=0;t<D;t++)T.decisionToDFA[t]=new y.DFA(T.decisionToState[t],t);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(T),this.deserializationOptions.isGenerateRuleBypassTransitions&&1===T.grammarType){T.ruleToTokenType=new Int32Array(T.ruleToStartState.length);for(let t=0;t<T.ruleToStartState.length;t++)T.ruleToTokenType[t]=T.maxTokenType+t+1;for(let t=0;t<T.ruleToStartState.length;t++){let e=new h.BasicBlockStartState;e.ruleIndex=t,T.addState(e);let r,n,i=new f.BlockEndState;if(i.ruleIndex=t,T.addState(i),e.endState=i,T.defineDecisionState(e),i.startState=e,T.ruleToStartState[t].isPrecedenceRule){r=void 0;for(let e of T.states){if(e.ruleIndex!==t)continue;if(!(e instanceof z.StarLoopEntryState))continue;let n=e.transition(e.numberOfTransitions-1).target;if(n instanceof C.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof F.RuleStopState){r=e;break}}if(!r)throw new Error("Couldn't identify final state of the precedence rule prefix section.");n=r.loopBackState.transition(0)}else r=T.ruleToStopState[t];for(let t of T.states)for(let e=0;e<t.numberOfTransitions;e++){let s=t.transition(e);s!==n&&s.target===r&&(s.target=i)}for(;T.ruleToStartState[t].numberOfTransitions>0;){let r=T.ruleToStartState[t].removeTransition(T.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}T.ruleToStartState[t].addTransition(new O.EpsilonTransition(e)),i.addTransition(new O.EpsilonTransition(r));let s=new p.BasicState;T.addState(s),s.addTransition(new u.AtomTransition(i,T.ruleToTokenType[t])),e.addTransition(new O.EpsilonTransition(s))}this.deserializationOptions.isVerifyATN&&this.verifyATN(T)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=W.inlineSetRules(T),t+=W.combineChainedEpsilons(T);let e=0===T.grammarType;if(t+=W.optimizeSets(T,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(T)}return W.identifyTailCalls(T),T}deserializeSets(t,e,r,n){let i=W.toInt(t[e++]);for(let s=0;s<i;s++){let i=W.toInt(t[e]);e++;let s=new x.IntervalSet;r.push(s),0!==W.toInt(t[e++])&&s.add(-1);for(let r=0;r<i;r++){let r=n.readUnicode(t,e);e+=n.size;let i=n.readUnicode(t,e);e+=n.size,s.add(r,i)}}return e}markPrecedenceDecisions(t){let e=new Map;for(let r of t.states)if(r instanceof z.StarLoopEntryState&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){let n=r.transition(r.numberOfTransitions-1).target;n instanceof C.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof F.RuleStopState&&(e.set(r.ruleIndex,r),r.precedenceRuleDecision=!0,r.precedenceLoopbackStates=new d.BitSet(t.states.length))}for(let r of e)for(let e of t.ruleToStopState[r[0]].getTransitions())1===e.serializationType&&-1===e.outermostPrecedenceReturn&&r[1].precedenceLoopbackStates.set(e.target.stateNumber)}verifyATN(t){for(let e of t.states)if(this.checkCondition(void 0!==e,"ATN states should not be undefined."),e.stateType!==c.ATNStateType.INVALID_TYPE){if(this.checkCondition(e.onlyHasEpsilonTransitions||e.numberOfTransitions<=1),e instanceof P.PlusBlockStartState&&this.checkCondition(void 0!==e.loopBackState),e instanceof z.StarLoopEntryState){let t=e;if(this.checkCondition(void 0!==t.loopBackState),this.checkCondition(2===t.numberOfTransitions),t.transition(0).target instanceof B.StarBlockStartState)this.checkCondition(t.transition(1).target instanceof C.LoopEndState),this.checkCondition(!t.nonGreedy);else{if(!(t.transition(0).target instanceof C.LoopEndState))throw new Error("IllegalStateException");this.checkCondition(t.transition(1).target instanceof B.StarBlockStartState),this.checkCondition(t.nonGreedy)}}if(e instanceof G.StarLoopbackState&&(this.checkCondition(1===e.numberOfTransitions),this.checkCondition(e.transition(0).target instanceof z.StarLoopEntryState)),e instanceof C.LoopEndState&&this.checkCondition(void 0!==e.loopBackState),e instanceof U.RuleStartState&&this.checkCondition(void 0!==e.stopState),e instanceof _.BlockStartState&&this.checkCondition(void 0!==e.endState),e instanceof f.BlockEndState&&this.checkCondition(void 0!==e.startState),e instanceof T.DecisionState){let t=e;this.checkCondition(t.numberOfTransitions<=1||t.decision>=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof F.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e<t.ruleToStartState.length;e++){let n=t.ruleToStartState[e];for(;n.onlyHasEpsilonTransitions&&1===n.numberOfOptimizedTransitions&&1===n.getOptimizedTransition(0).serializationType;)n=n.getOptimizedTransition(0).target;if(1!==n.numberOfOptimizedTransitions)continue;let i=n.getOptimizedTransition(0),s=i.target;if(!i.isEpsilon&&s.onlyHasEpsilonTransitions&&1===s.numberOfOptimizedTransitions&&s.getOptimizedTransition(0).target instanceof F.RuleStopState)switch(i.serializationType){case 5:case 2:case 7:r[e]=i;break;default:continue}}for(let n of t.states){if(n.ruleIndex<0)continue;let i;for(let s=0;s<n.numberOfOptimizedTransitions;s++){let o=n.getOptimizedTransition(s);if(!(o instanceof j.RuleTransition)){void 0!==i&&i.push(o);continue}let a=o,l=r[a.target.ruleIndex];if(void 0===l){void 0!==i&&i.push(o);continue}if(void 0===i){i=[];for(let t=0;t<s;t++)i.push(n.getOptimizedTransition(s))}e++;let c=a.followState,h=new p.BasicState;switch(h.setRuleIndex(c.ruleIndex),t.addState(h),i.push(new O.EpsilonTransition(h)),l.serializationType){case 5:h.addTransition(new u.AtomTransition(c,l._label));break;case 2:h.addTransition(new M.RangeTransition(c,l.from,l.to));break;case 7:h.addTransition(new H.SetTransition(c,l.label));break;default:throw new Error("UnsupportedOperationException")}}if(void 0!==i){if(n.isOptimized)for(;n.numberOfOptimizedTransitions>0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof F.RuleStopState)continue;let t;t:for(let n=0;n<r.numberOfOptimizedTransitions;n++){let i=r.getOptimizedTransition(n),s=i.target;if(1===i.serializationType&&-1===i.outermostPrecedenceReturn&&s.stateType===c.ATNStateType.BASIC&&s.onlyHasEpsilonTransitions){for(let e=0;e<s.numberOfOptimizedTransitions;e++)if(1!==s.getOptimizedTransition(e).serializationType||-1!==s.getOptimizedTransition(e).outermostPrecedenceReturn){void 0!==t&&t.push(i);continue t}if(e++,void 0===t){t=[];for(let e=0;e<n;e++)t.push(r.getOptimizedTransition(e))}for(let e=0;e<s.numberOfOptimizedTransitions;e++){let r=s.getOptimizedTransition(e).target;t.push(new O.EpsilonTransition(r))}}else void 0!==t&&t.push(i)}if(void 0!==t){if(r.isOptimized)for(;r.numberOfOptimizedTransitions>0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new x.IntervalSet;for(let t=0;t<e.numberOfOptimizedTransitions;t++){let r=e.getOptimizedTransition(t);if(!(r instanceof O.EpsilonTransition))continue;if(1!==r.target.numberOfOptimizedTransitions)continue;let i=r.target.getOptimizedTransition(0);i.target instanceof f.BlockEndState&&(i instanceof I.NotSetTransition||(i instanceof u.AtomTransition||i instanceof M.RangeTransition||i instanceof H.SetTransition)&&n.add(t))}if(n.size<=1)continue;let i=[];for(let t=0;t<e.numberOfOptimizedTransitions;t++)n.contains(t)||i.push(e.getOptimizedTransition(t));let s,o=e.getOptimizedTransition(n.minElement).target.getOptimizedTransition(0).target,a=new x.IntervalSet;for(let t of n.intervals)for(let r=t.a;r<=t.b;r++){let t=e.getOptimizedTransition(r).target.getOptimizedTransition(0);if(t instanceof I.NotSetTransition)throw new Error("Not yet implemented.");a.addAll(t.label)}if(1===a.intervals.length)if(1===a.size)s=new u.AtomTransition(o,a.minElement);else{let t=a.intervals[0];s=new M.RangeTransition(o,t.a,t.b)}else s=new H.SetTransition(o,a);let l=new p.BasicState;if(l.setRuleIndex(e.ruleIndex),t.addState(l),l.addTransition(s),i.push(new O.EpsilonTransition(l)),r+=e.numberOfOptimizedTransitions-i.length,e.isOptimized)for(;e.numberOfOptimizedTransitions>0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return w.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);n instanceof j.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}if(e.isOptimized)for(let r=0;r<e.numberOfOptimizedTransitions;r++){let n=e.getOptimizedTransition(r);n instanceof j.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}}}static testTailCall(t,e,r){if(!r&&e.tailCall)return!0;if(r&&e.optimizedTailCall)return!0;let n=new d.BitSet(t.states.length),i=[];for(i.push(e.followState);;){let t=i.pop();if(!t)break;if(n.get(t.stateNumber))continue;if(t instanceof F.RuleStopState)continue;if(!t.onlyHasEpsilonTransitions)return!1;let e=r?t.numberOfOptimizedTransitions:t.numberOfTransitions;for(let n=0;n<e;n++){let e=r?t.getOptimizedTransition(n):t.transition(n);if(1!==e.serializationType)return!1;i.push(e.target)}}return!0}static toInt(t){return t}static toInt32(t,e){return(t[e]|t[e+1]<<16)>>>0}static toUUID(t,e){let r=W.toInt32(t,e),n=W.toInt32(t,e+2),i=W.toInt32(t,e+4),s=W.toInt32(t,e+6);return new Y.UUID(s,i,n,r)}edgeFactory(t,e,r,n,i,o,a,l){let c=t.states[n];switch(e){case 1:return new O.EpsilonTransition(c);case 2:return 0!==a?new M.RangeTransition(c,q.Token.EOF,o):new M.RangeTransition(c,i,o);case 3:return new j.RuleTransition(t.states[i],o,a,c);case 4:return new D.PredicateTransition(c,i,o,0!==a);case 10:return new k.PrecedencePredicateTransition(c,i);case 5:return 0!==a?new u.AtomTransition(c,q.Token.EOF):new u.AtomTransition(c,i);case 6:return new s.ActionTransition(c,i,o,0!==a);case 7:return new H.SetTransition(c,l[i]);case 8:return new I.NotSetTransition(c,l[i]);case 9:return new $.WildcardTransition(c)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case c.ATNStateType.INVALID_TYPE:return new g.InvalidState;case c.ATNStateType.BASIC:r=new p.BasicState;break;case c.ATNStateType.RULE_START:r=new U.RuleStartState;break;case c.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case c.ATNStateType.PLUS_BLOCK_START:r=new P.PlusBlockStartState;break;case c.ATNStateType.STAR_BLOCK_START:r=new B.StarBlockStartState;break;case c.ATNStateType.TOKEN_START:r=new V.TokensStartState;break;case c.ATNStateType.RULE_STOP:r=new F.RuleStopState;break;case c.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case c.ATNStateType.STAR_LOOP_BACK:r=new G.StarLoopbackState;break;case c.ATNStateType.STAR_LOOP_ENTRY:r=new z.StarLoopEntryState;break;case c.ATNStateType.PLUS_LOOP_BACK:r=new K.PlusLoopbackState;break;case c.ATNStateType.LOOP_END:r=new C.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new E.LexerChannelAction(e);case 1:return new m.LexerCustomAction(e,r);case 2:return new v.LexerModeAction(e);case 3:return S.LexerMoreAction.INSTANCE;case 4:return N.LexerPopModeAction.INSTANCE;case 5:return new R.LexerPushModeAction(e);case 6:return b.LexerSkipAction.INSTANCE;case 7:return new A.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}W.BASE_SERIALIZED_UUID=Y.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),W.ADDED_LEXER_ACTIONS=Y.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),W.ADDED_UNICODE_SMP=Y.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),W.SUPPORTED_UUIDS=[W.BASE_SERIALIZED_UUID,W.ADDED_LEXER_ACTIONS,W.ADDED_UNICODE_SMP],W.SERIALIZED_UUID=W.ADDED_UNICODE_SMP,n([L.NotNull],W.prototype,"deserializationOptions",void 0),n([i(0,L.NotNull)],W.prototype,"deserialize",null),n([i(0,L.NotNull)],W.prototype,"markPrecedenceDecisions",null),n([L.NotNull,i(0,L.NotNull)],W.prototype,"edgeFactory",null),e.ATNDeserializer=W},534:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=void 0,e.getIdentifierName=function(t){const e=t.IDENTIFIER_TOK();if(e)return e.text;const r=t.QUOTED_IDENTIFIER_TOK();return r?r.text.slice(1,-1).replace(/\\(.)/g,"$1"):t.text},e.quoteIfReserved=function(t,e){return e.has(t)?"`"+t.replace(/([`\\])/g,"\\$1")+"`":t},e.FORGE_RESERVED_KEYWORDS=new Set(["/","open","as","var","abstract","sig","extends","in","lone","some","one","two","set","func","pfunc","disj","wheat","pred","fun","assert","run","check","for","but","exactly","none","univ","iden","is","sat","unsat","theorem","forge_error","checked","test","expect","suite","all","sufficient","necessary","consistent","inconsistent","with","let","bind","or","xor","iff","implies","else","and","not","this","sexpr","inst","eval","example","ni","no","sum","Int","option"])},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},s=/%[sdj%]/g;e.format=function(t){if(!x(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])y(a)||!m(a)?o+=" "+a:o+=" "+c(a);return o},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var o={},a=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function c(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),T(r)?n.showHidden=r:r&&e._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,t,n.depth)}function u(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&N(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return x(i)||(i=p(t,i,n)),i}var s=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return O(e)?t.stylize(""+e,"number"):T(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),S(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(N(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(v(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var c,u="",h=!1,m=["{","}"];return _(r)&&(h=!0,m=["[","]"]),N(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),v(r)&&(u=" "+Date.prototype.toUTCString.call(r)),S(r)&&(u=" "+d(r)),0!==o.length||h&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o<a;++o)C(e,String(o))?s.push(f(t,e,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(f(t,e,r,n,i,!0))}),s}(t,r,n,a,o):o.map(function(e){return f(t,r,n,a,e,h)}),t.seen.pop(),function(t,e,r){return t.reduce(function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,u,m)):m[0]+u+m[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?p(t,l.value,null):p(t,l.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),g(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function _(t){return Array.isArray(t)}function T(t){return"boolean"==typeof t}function y(t){return null===t}function O(t){return"number"==typeof t}function x(t){return"string"==typeof t}function g(t){return void 0===t}function E(t){return m(t)&&"[object RegExp]"===R(t)}function m(t){return"object"==typeof t&&null!==t}function v(t){return m(t)&&"[object Date]"===R(t)}function S(t){return m(t)&&("[object Error]"===R(t)||t instanceof Error)}function N(t){return"function"==typeof t}function R(t){return Object.prototype.toString.call(t)}function b(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=_,e.isBoolean=T,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=O,e.isString=x,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=E,e.types.isRegExp=E,e.isObject=m,e.isDate=v,e.types.isDate=v,e.isError=S,e.types.isNativeError=S,e.isFunction=N,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[b((t=new Date).getHours()),b(t.getMinutes()),b(t.getSeconds())].join(":"),[t.getDate(),A[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!m(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push(function(t,n){t?r(t):e(n)});try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),L&&Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=L,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return i.apply(s,arguments)};t.apply(this,e).then(function(t){n.nextTick(o.bind(null,null,t))},function(t){n.nextTick(I.bind(null,t,o))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},585:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;const i=r(2399);class s{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],s.prototype,"toString",null),e.DecisionInfo=s},592:(t,e,r)=>{"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},659:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r<t.length;r++)e.set(t[r],r);return e},e.toCharArray=function(t){if("string"==typeof t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}return t.toCharArray()}},754:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},755:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;const i=r(5922),s=r(9449),o=r(2399);class a extends s.RecognitionException{constructor(t,e,r,n,s,o){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===o&&(o=t.context)),super(t,e,o),this._deadEndConfigs=s,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([o.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},760:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.BLOCK_END}}n([o.Override],a.prototype,"stateType",null),e.BlockEndState=a},821:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach((e,r)=>{e.forEach(e=>{t.push([r,e])})}),t}}e.MultiMap=r},934:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},996:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6869);class a extends o.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return s.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1072:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;const s=r(2399);let o=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};o.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([s.NotNull],o.prototype,"target",void 0),o=n([i(0,s.NotNull)],o),e.Transition=o},1088:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;const s=r(2962),o=r(4274),a=r(8880),l=r(3258),c=r(6298),u=r(9709),h=r(7477),p=r(1492),d=r(2807),f=r(2662),_=r(6181),T=r(2399),y=r(5895),O=r(8859),x=r(8840),g=r(7760),E=r(4148);let m=class t extends c.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let r=this.atn.modeToDFA[e].s0;return null==r?this.matchATN(t):this.execATN(t,r)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),s=i.hasSemanticContext;s&&(i.hasSemanticContext=!1);let o=this.addDFAState(i);if(!s){let t=this.atn.modeToDFA[this.mode];t.s0?o=t.s0:t.s0=o}let a=this.execATN(e,o);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===c.ATNSimulator.ERROR)break;if(n!==p.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===p.IntStream.EOF))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,c.ATNSimulator.ERROR),c.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===p.IntStream.EOF&&e.index===this.startIndex)return g.Token.EOF;throw new _.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let s=o.ATN.INVALID_ALT_NUMBER;for(let o of r){let r=o.alt===s;if(r&&o.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${o.toString(this.recog,!0)}`);let a=o.state.numberOfOptimizedTransitions;for(let t=0;t<a;t++){let a=o.state.getOptimizedTransition(t),l=this.getReachableTarget(a,i);if(null!=l){let t,a=o.lexerActionExecutor;null!=a?(a=a.fixOffsetBeforeMatch(e.index-this.startIndex),t=o.transform(l,!0,a)):(E(null==o.lexerActionExecutor),t=o.transform(l,!0));let c=i===p.IntStream.EOF;if(this.closure(e,t,n,r,!0,c)){s=o.alt;break}}}}}accept(e,r,n,i,s,o){t.debug&&console.log(`ACTION ${r}`),e.seek(i),this._line=s,this._charPositionInLine=o,null!=r&&null!=this.recog&&r.execute(this.recog,e,n)}getReachableTarget(t,e){if(t.matches(e,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE))return t.target}computeStartState(t,e){let r=O.PredictionContext.EMPTY_FULL,n=new y.OrderedATNConfigSet;for(let i=0;i<e.numberOfTransitions;i++){let s=e.transition(i).target,o=a.ATNConfig.create(s,i+1,r);this.closure(t,o,n,!1,!1,!1)}return n}closure(e,r,n,i,s,o){if(t.debug&&console.log("closure("+r.toString(this.recog,!0)+")"),r.state instanceof x.RuleStopState){t.debug&&(null!=this.recog?console.log(`closure at ${this.recog.ruleNames[r.state.ruleIndex]} rule stop ${r}`):console.log(`closure at rule stop ${r}`));let a=r.context;if(a.isEmpty)return n.add(r),!0;a.hasEmpty&&(n.add(r.transform(r.state,!0,O.PredictionContext.EMPTY_FULL)),i=!0);for(let t=0;t<a.size;t++){let l=a.getReturnState(t);if(l===O.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let c=a.getParent(t),u=this.atn.states[l],h=r.transform(u,!1,c);i=this.closure(e,h,n,i,s,o)}return i}r.state.onlyHasEpsilonTransitions||i&&r.hasPassedThroughNonGreedyDecision||n.add(r);let a=r.state;for(let t=0;t<a.numberOfOptimizedTransitions;t++){let l=a.getOptimizedTransition(t),c=this.getEpsilonTarget(e,r,l,n,s,o);null!=c&&(i=this.closure(e,c,n,i,s,o))}return i}getEpsilonTarget(e,r,n,i,s,o){let a;switch(n.serializationType){case 3:let l=n;if(this.optimize_tail_calls&&l.optimizedTailCall&&!r.context.hasEmpty)a=r.transform(n.target,!0);else{let t=r.context.getChild(l.followState.stateNumber);a=r.transform(n.target,!0,t)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let c=n;t.debug&&console.log("EVAL rule "+c.ruleIndex+":"+c.predIndex),i.hasSemanticContext=!0,a=this.evaluatePredicate(e,c.ruleIndex,c.predIndex,s)?r.transform(n.target,!0):void 0;break;case 6:if(r.context.hasEmpty){let t=f.LexerActionExecutor.append(r.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);a=r.transform(n.target,!0,t);break}a=r.transform(n.target,!0);break;case 1:a=r.transform(n.target,!0);break;case 5:case 2:case 7:if(o&&n.matches(p.IntStream.EOF,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE)){a=r.transform(n.target,!1);break}a=void 0;break;default:a=void 0}return a}evaluatePredicate(t,e,r,n){if(null==this.recog)return!0;if(!n)return this.recog.sempred(void 0,e,r);let i=this._charPositionInLine,s=this._line,o=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(void 0,e,r)}finally{this._charPositionInLine=i,this._line=s,t.seek(o),t.release(a)}}captureSimState(t,e,r){t.index=e.index,t.line=this._line,t.charPos=this._charPositionInLine,t.dfaState=r}addDFAEdge(e,r,n){if(n instanceof l.ATNConfigSet){let t=n.hasSemanticContext;t&&(n.hasSemanticContext=!1);let i=this.addDFAState(n);return t||this.addDFAEdge(e,r,i),i}t.debug&&console.log("EDGE "+e+" -> "+n+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,n)}addDFAState(t){E(!t.hasSemanticContext);let e=new u.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new u.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof x.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new s.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};n([T.NotNull],m.prototype,"prevAccept",void 0),n([i(0,T.NotNull)],m.prototype,"copyState",null),n([i(0,T.NotNull)],m.prototype,"match",null),n([T.Override],m.prototype,"reset",null),n([i(0,T.NotNull)],m.prototype,"matchATN",null),n([i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"execATN",null),n([i(0,T.NotNull)],m.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"computeTargetState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"getReachableConfigSet",null),n([i(0,T.NotNull)],m.prototype,"accept",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],m.prototype,"computeStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull),i(3,T.NotNull)],m.prototype,"getEpsilonTarget",null),n([i(0,T.NotNull)],m.prototype,"evaluatePredicate",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],m.prototype,"captureSimState",null),n([T.NotNull,i(0,T.NotNull)],m.prototype,"addDFAState",null),n([T.NotNull],m.prototype,"getDFA",null),n([T.NotNull,i(0,T.NotNull)],m.prototype,"getText",null),n([i(0,T.NotNull)],m.prototype,"consume",null),n([T.NotNull],m.prototype,"getTokenName",null),m=n([i(0,T.NotNull)],m),e.LexerATNSimulator=m,function(t){t.debug=!1,t.dfa_debug=!1,t.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}}(m=e.LexerATNSimulator||(e.LexerATNSimulator={})),e.LexerATNSimulator=m},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1097:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;const i=r(1964),s=r(7477),o=r(2399),a=r(9984),l=r(360);class c extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return c.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){const e=t;return e.setParent(this),this.addAnyChild(e)}{const e=t;let r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof c)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?s.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):s.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):s.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}}c.EMPTY=new c,n([o.Override],c.prototype,"parent",null),n([o.Override],c.prototype,"childCount",null),n([o.Override],c.prototype,"sourceInterval",null),e.ParserRuleContext=c},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1173:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;const s=r(2399);let o=class{constructor(t,e,r,n,i,s){this.decision=t,this.fullCtx=s,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([s.NotNull],o.prototype,"input",void 0),o=n([i(2,s.NotNull)],o),e.DecisionEventInfo=o},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),s=Object.keys,o=s?function(t){return s(t)}:r(8875),a=Object.keys;o.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=o;return Object.keys||o},t.exports=o},1229:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORGE_RESERVED_KEYWORDS=e.quoteIfReserved=e.getIdentifierName=e.SelectorSynthesisError=e.synthesizeSelectorWithWhy=e.synthesizeBinaryRelationWithWhy=e.synthesizeBinaryRelation=e.synthesizeSelector=e.ForgeExprStaticAnalyzer=e.SimpleGraphQueryEvaluator=void 0,e.analyzeForgeExpression=function(t,e){try{const r=h(t).parseExpr();return r&&0!==r.childCount?new c.ForgeExprStaticAnalyzer(e).analyze(r):{status:"unknown"}}catch{return{status:"unknown"}}};const n=r(2221),i=r(5395),s=r(5288),o=r(3274),a=r(2219),l=r(6684),c=r(2569);Object.defineProperty(e,"ForgeExprStaticAnalyzer",{enumerable:!0,get:function(){return c.ForgeExprStaticAnalyzer}});const u=r(3651);function h(t){const e=n.CharStreams.fromString(t),r=new s.ForgeLexer(e);r.removeErrorListeners(),r.addErrorListener(new u.ParseErrorListener);const o=new n.CommonTokenStream(r),a=new i.ForgeParser(o);return a.buildParseTree=!0,a.removeErrorListeners(),a.addErrorListener(new u.ParseErrorListener),a}e.SimpleGraphQueryEvaluator=class{constructor(t){this.forgeListener=new o.ForgeListenerImpl,this.walker=new a.ParseTreeWalker,this.parseTreeCache=new Map,this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,this.lastDiagnostics=[],this.datum=t}invalidate(){this.cachedEvaluator=null,this.cachedEvaluatorDatum=null}getExpressionParseTree(t){const e=h(t).parseExpr();if(!e||0===e.childCount)throw new Error(`Parse error in ${t}`);return e}evaluateExpressionWithDiagnostics(t){return{value:this.evaluateExpression(t),diagnostics:this.lastDiagnostics}}evaluateExpression(t){let e;if(this.parseTreeCache.has(t))e=this.parseTreeCache.get(t);else try{const r=this.getExpressionParseTree(t);e=r instanceof i.ExprContext?r:r.getChild(0),this.parseTreeCache.set(t,e)}catch(e){return this.lastDiagnostics=[],{error:new Error(`Error parsing expression "${t}"`)}}null!==this.cachedEvaluator&&this.cachedEvaluatorDatum===this.datum||(this.cachedEvaluator=new l.ForgeExprEvaluator(this.datum),this.cachedEvaluatorDatum=this.datum);const r=this.cachedEvaluator;r.resetDiagnostics();try{let t=r.visit(e);return this.lastDiagnostics=r.getDiagnostics(),t}catch(e){if(this.lastDiagnostics=r.getDiagnostics(),this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,e instanceof l.NameNotFoundError)return[];if(e instanceof Error){const r=e.stack,n=e.message;return{error:new Error(`Error evaluating expression "${t}": ${n}`),stackTrace:r}}return{error:new Error(`Error evaluating expression "${t}"`)}}}};var p=r(9700);Object.defineProperty(e,"synthesizeSelector",{enumerable:!0,get:function(){return p.synthesizeSelector}}),Object.defineProperty(e,"synthesizeBinaryRelation",{enumerable:!0,get:function(){return p.synthesizeBinaryRelation}}),Object.defineProperty(e,"synthesizeBinaryRelationWithWhy",{enumerable:!0,get:function(){return p.synthesizeBinaryRelationWithWhy}}),Object.defineProperty(e,"synthesizeSelectorWithWhy",{enumerable:!0,get:function(){return p.synthesizeSelectorWithWhy}}),Object.defineProperty(e,"SelectorSynthesisError",{enumerable:!0,get:function(){return p.SelectorSynthesisError}});var d=r(534);Object.defineProperty(e,"getIdentifierName",{enumerable:!0,get:function(){return d.getIdentifierName}}),Object.defineProperty(e,"quoteIfReserved",{enumerable:!0,get:function(){return d.quoteIfReserved}}),Object.defineProperty(e,"FORGE_RESERVED_KEYWORDS",{enumerable:!0,get:function(){return d.FORGE_RESERVED_KEYWORDS}})},1237:t=>{"use strict";t.exports=EvalError},1284:function(t,e,r){"use strict";var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;const o=r(7886),a=r(4274),l=r(6298),c=r(2433),u=r(585),h=r(4241),p=r(2399),d=r(7059),f=r(3161),_=r(7004),T=r(2356),y=r(4364);class O extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;t<this.numDecisions;t++)this.decisions.push(new u.DecisionInfo(t))}adaptivePredict(t,e,r,i){if(void 0!==i)return super.adaptivePredict(t,e,r,i);try{this._input=t,this._startIndex=t.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=e,this.currentState=void 0,this.conflictingAltResolvedBySLL=a.ATN.INVALID_ALT_NUMBER;let i=n.hrtime(),s=super.adaptivePredict(t,e,r),o=n.hrtime(),l=1e9*(o[0]-i[0]);0===l?l=o[1]-i[1]:l+=1e9-i[1]+o[1],this.decisions[e].timeInPrediction+=l,this.decisions[e].invocations++;let c=this._sllStopIndex-this._startIndex+1;if(this.decisions[e].SLL_TotalLook+=c,this.decisions[e].SLL_MinLook=0===this.decisions[e].SLL_MinLook?c:Math.min(this.decisions[e].SLL_MinLook,c),c>this.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=c,this.decisions[e].SLL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,s,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,s,t,this._startIndex,this._llStopIndex,!0))}return s}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new y.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new y.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,s){let o=super.computeTargetState(t,e,r,n,i,s);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,o}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof T.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new _.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new c.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,s,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let u;u=null!=s?s.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&u!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new c.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new o.AmbiguityInfo(this.currentDecision,this.currentState,s,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,s,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([p.Override,s(0,p.NotNull)],O.prototype,"adaptivePredict",null),i([p.Override],O.prototype,"getStartState",null),i([p.Override],O.prototype,"computeStartState",null),i([p.Override],O.prototype,"computeReachSet",null),i([p.Override],O.prototype,"getExistingTargetState",null),i([p.Override],O.prototype,"computeTargetState",null),i([p.Override],O.prototype,"evalSemanticContextImpl",null),i([p.Override],O.prototype,"reportContextSensitivity",null),i([p.Override],O.prototype,"reportAttemptingFullContext",null),i([p.Override,s(0,p.NotNull),s(5,p.NotNull),s(6,p.NotNull)],O.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=O},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},1384:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;const s=r(3357),o=r(2399),a=r(7760),l=r(1072);let c=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=s.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([o.NotNull],c.prototype,"set",void 0),n([o.Override],c.prototype,"serializationType",null),n([o.Override,o.NotNull],c.prototype,"label",null),n([o.Override],c.prototype,"matches",null),n([o.Override,o.NotNull],c.prototype,"toString",null),c=n([i(0,o.NotNull),i(1,o.Nullable)],c),e.SetTransition=c},1405:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;const i=r(2399),s=r(659);class o{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof o&&this.isExact===t.isExact&&s.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),e.ConflictInfo=o},1492:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME="<unknown>"},1514:t=>{"use strict";t.exports=Math.abs},1533:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;const s=r(4148),o=r(5643),a=r(2399),l=r(5636);class c{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof c){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;t<this.buckets.length;t++){let e=this.buckets[t];e&&(this.buckets[t]=e.slice(0))}this.n=t.n,this.threshold=t.threshold}else this.comparator=t||o.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(e)}getOrAdd(t){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof c&&(t.size===this.size&&this.containsAll(t))}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}s(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof c){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],c.prototype,"comparator",void 0),n([a.Override],c.prototype,"hashCode",null),n([a.Override],c.prototype,"equals",null),n([a.Override],c.prototype,"add",null),n([a.Override],c.prototype,"size",null),n([a.Override],c.prototype,"isEmpty",null),n([a.Override],c.prototype,"contains",null),n([i(0,a.Nullable)],c.prototype,"containsFast",null),n([a.Override],c.prototype,Symbol.iterator,null),n([a.Override],c.prototype,"toArray",null),n([a.Override],c.prototype,"containsAll",null),n([a.Override],c.prototype,"addAll",null),n([a.Override],c.prototype,"clear",null),n([a.Override],c.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],c.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],c.prototype,"createBuckets",null),e.Array2DHashSet=c},1668:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1862:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;const n=r(8240);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},1964:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;const i=r(2399),s=r(360);class o extends s.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],o.prototype,"accept",null),e.ErrorNode=o},2193:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6869);class a extends o.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return s.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},2205:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),s=r(3144);t.exports=function(){return s(n,i,arguments)}},2219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;const n=r(1964),i=r(360),s=r(5378);class o{walk(t,e){let r=[],o=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),o.push(l),l=0,a=a.getChild(0);else do{if(a instanceof s.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l<e.childCount?e.getChild(l):void 0,a)break;a=r.pop(),l=o.pop()}while(a)}enterRule(t,e){let r=e.ruleContext;t.enterEveryRule&&t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){let r=e.ruleContext;r.exitRule(t),t.exitEveryRule&&t.exitEveryRule(r)}}e.ParseTreeWalker=o,function(t){t.DEFAULT=new t}(o=e.ParseTreeWalker||(e.ParseTreeWalker={}))},2221:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(2666),e),i(r(5635),e),i(r(7404),e),i(r(7442),e),i(r(6737),e),i(r(2781),e),i(r(6776),e),i(r(5866),e),i(r(328),e),i(r(8291),e),i(r(5629),e),i(r(5411),e),i(r(3196),e),i(r(3361),e),i(r(7997),e),i(r(7866),e),i(r(2262),e),i(r(2468),e),i(r(3714),e),i(r(1492),e),i(r(2807),e),i(r(6145),e),i(r(6181),e),i(r(309),e),i(r(755),e),i(r(5922),e),i(r(754),e),i(r(9274),e),i(r(1097),e),i(r(7115),e),i(r(6142),e),i(r(9449),e),i(r(8831),e),i(r(9984),e),i(r(7862),e),i(r(3530),e),i(r(4275),e),i(r(7760),e),i(r(1668),e),i(r(8369),e),i(r(3696),e),i(r(2806),e),i(r(8897),e),i(r(7435),e),i(r(5116),e)},2262:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;const s=r(9449),o=r(2399),a=r(6369);let l=class t extends s.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([o.NotNull],l,"formatMessage",null),l=n([i(0,o.NotNull)],l),e.FailedPredicateException=l},2299:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var o=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach(function(t){return e.push(t)}),e},l=function(t){var e=[];return t.forEach(function(t,r){return e.push([r,t])}),e},c=Object.is?Object.is:r(7653),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(4133);function p(t){return t.call.bind(t)}var d=p(Object.prototype.hasOwnProperty),f=p(Object.prototype.propertyIsEnumerable),_=p(Object.prototype.toString),T=r(537).types,y=T.isAnyArrayBuffer,O=T.isArrayBufferView,x=T.isDate,g=T.isMap,E=T.isRegExp,m=T.isSet,v=T.isNativeError,S=T.isBoxedPrimitive,N=T.isNumberObject,R=T.isStringObject,b=T.isBooleanObject,A=T.isBigIntObject,C=T.isSymbolObject,L=T.isFloat32Array,I=T.isFloat64Array;function w(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function P(t){return Object.keys(t).filter(w).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function K(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function k(t,e,r,n){if(t===e)return 0!==t||!r||c(t,e);if(r){if("object"!==s(t))return"number"==typeof t&&h(t)&&h(e);if("object"!==s(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==s(t))return(null===e||"object"!==s(e))&&t==e;if(null===e||"object"!==s(e))return!1}var i,a,l,u,p=_(t);if(p!==_(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=P(t),f=P(e);return d.length===f.length&&M(t,e,r,n,1,d)}if("[object Object]"===p&&(!g(t)&&g(e)||!m(t)&&m(e)))return!1;if(x(t)){if(!x(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(E(t)){if(!E(e)||(l=t,u=e,!(o?l.source===u.source&&l.flags===u.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(u))))return!1}else if(v(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(O(t)){if(r||!L(t)&&!I(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===K(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var T=P(t),w=P(e);return T.length===w.length&&M(t,e,r,n,0,T)}if(m(t))return!(!m(e)||t.size!==e.size)&&M(t,e,r,n,2);if(g(t))return!(!g(e)||t.size!==e.size)&&M(t,e,r,n,3);if(y(t)){if(a=e,(i=t).byteLength!==a.byteLength||0!==K(new Uint8Array(i),new Uint8Array(a)))return!1}else if(S(t)&&!function(t,e){return N(t)?N(e)&&c(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):R(t)?R(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):b(t)?b(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):A(t)?A(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):C(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return M(t,e,r,n,0)}function D(t,e){return e.filter(function(e){return f(t,e)})}function M(t,e,r,i,o,c){if(5===arguments.length){c=Object.keys(t);var h=Object.keys(e);if(c.length!==h.length)return!1}for(var p=0;p<c.length;p++)if(!d(e,c[p]))return!1;if(r&&5===arguments.length){var _=u(t);if(0!==_.length){var T=0;for(p=0;p<_.length;p++){var y=_[p];if(f(t,y)){if(!f(e,y))return!1;c.push(y),T++}else if(f(e,y))return!1}var O=u(e);if(_.length!==O.length&&D(e,O).length!==T)return!1}else{var x=u(e);if(0!==x.length&&0!==D(e,x).length)return!1}}if(0===c.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var g=i.val1.get(t);if(void 0!==g){var E=i.val2.get(e);if(void 0!==E)return g===E}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var m=function(t,e,r,i,o,c){var u=0;if(2===c){if(!function(t,e,r,n){for(var i=null,o=a(t),l=0;l<o.length;l++){var c=o[l];if("object"===s(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!j(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var u=a(e),h=0;h<u.length;h++){var p=u[h];if("object"===s(p)&&null!==p){if(!U(i,p,r,n))return!1}else if(!r&&!t.has(p)&&!U(i,p,r,n))return!1}return 0===i.size}return!0}(t,e,r,o))return!1}else if(3===c){if(!function(t,e,r,i){for(var o=null,a=l(t),c=0;c<a.length;c++){var u=n(a[c],2),h=u[0],p=u[1];if("object"===s(h)&&null!==h)null===o&&(o=new Set),o.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!k(p,d,r,i)){if(r)return!1;if(!H(t,e,h,p,i))return!1;null===o&&(o=new Set),o.add(h)}}}if(null!==o){for(var f=l(e),_=0;_<f.length;_++){var T=n(f[_],2),y=T[0],O=T[1];if("object"===s(y)&&null!==y){if(!B(o,t,y,O,r,i))return!1}else if(!(r||t.has(y)&&k(t.get(y),O,!1,i)||B(o,t,y,O,!1,i)))return!1}return 0===o.size}return!0}(t,e,r,o))return!1}else if(1===c)for(;u<t.length;u++){if(!d(t,u)){if(d(e,u))return!1;for(var h=Object.keys(t);u<h.length;u++){var p=h[u];if(!d(e,p)||!k(t[p],e[p],r,o))return!1}return h.length===Object.keys(e).length}if(!d(e,u)||!k(t[u],e[u],r,o))return!1}for(u=0;u<i.length;u++){var f=i[u];if(!k(t[f],e[f],r,o))return!1}return!0}(t,e,r,c,i,o);return i.val1.delete(t),i.val2.delete(e),m}function U(t,e,r,n){for(var i=a(t),s=0;s<i.length;s++){var o=i[s];if(k(e,o,r,n))return t.delete(o),!0}return!1}function F(t){switch(s(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(h(t))return!1}return!0}function j(t,e,r){var n=F(r);return null!=n?n:e.has(n)&&!t.has(n)}function H(t,e,r,n,i){var s=F(r);if(null!=s)return s;var o=e.get(s);return!(void 0===o&&!e.has(s)||!k(n,o,!1,i))&&!t.has(s)&&k(n,o,!1,i)}function B(t,e,r,n,i,s){for(var o=a(t),l=0;l<o.length;l++){var c=o[l];if(k(r,c,i,s)&&k(n,e.get(c),i,s))return t.delete(c),!0}return!1}t.exports={isDeepEqual:function(t,e){return k(t,e,!1)},isDeepStrictEqual:function(t,e){return k(t,e,!0)}}},2356:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;const s=r(1533),o=r(8151),a=r(5636),l=r(2399),c=r(8055),u=r(659);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n<e.length;n++){let i=e[n];i instanceof t.PrecedencePredicate&&(r.push(i),e.splice(n,1),n--)}return r}class r extends t{constructor(t=-1,e=-1,r=!1){super(),this.ruleIndex=t,this.predIndex=e,this.isCtxDependent=r}eval(t,e){let r=this.isCtxDependent?e:void 0;return t.sempred(r,this.ruleIndex,this.predIndex)}hashCode(){let t=a.MurmurHash.initialize();return t=a.MurmurHash.update(t,this.ruleIndex),t=a.MurmurHash.update(t,this.predIndex),t=a.MurmurHash.update(t,this.isCtxDependent?1:0),t=a.MurmurHash.finish(t,3),t}equals(t){return t instanceof r&&(this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent)}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}n([l.Override],r.prototype,"eval",null),n([l.Override],r.prototype,"hashCode",null),n([l.Override],r.prototype,"equals",null),n([l.Override],r.prototype,"toString",null),t.Predicate=r;class h extends t{constructor(t){super(),this.precedence=t}eval(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,r){return e.precpred(r,this.precedence)?t.NONE:void 0}compareTo(t){return this.precedence-t.precedence}hashCode(){let t=1;return t=31*t+this.precedence,t}equals(t){return t instanceof h&&(this===t||this.precedence===t.precedence)}toString(){return"{"+this.precedence+">=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class p extends t{}t.Operator=p;let d=class r extends p{constructor(t,n){super();let i=new s.Array2DHashSet(c.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let o=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));o&&this.opnds.push(o)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&o.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,null==o)return;o!==t.NONE&&i.push(o)}if(!n)return this;if(0===i.length)return t.NONE;let s=i[0];for(let e=1;e<i.length;e++)s=t.and(s,i[e]);return s}toString(){return u.join(this.opnds,"&&")}};n([l.Override],d.prototype,"operands",null),n([l.Override],d.prototype,"equals",null),n([l.Override],d.prototype,"hashCode",null),n([l.Override],d.prototype,"eval",null),n([l.Override],d.prototype,"evalPrecedence",null),n([l.Override],d.prototype,"toString",null),d=n([i(0,l.NotNull),i(1,l.NotNull)],d),t.AND=d;let f=class r extends p{constructor(t,n){super();let i=new s.Array2DHashSet(c.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let o=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)<0&&(e=r):e=r;return e}(e(this.opnds));o&&this.opnds.push(o)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&o.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,486279973)}eval(t,e){for(let r of this.opnds)if(r.eval(t,e))return!0;return!1}evalPrecedence(e,r){let n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,o===t.NONE)return t.NONE;o&&i.push(o)}if(!n)return this;if(0===i.length)return;let s=i[0];for(let e=1;e<i.length;e++)s=t.or(s,i[e]);return s}toString(){return u.join(this.opnds,"||")}};n([l.Override],f.prototype,"operands",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([l.Override],f.prototype,"eval",null),n([l.Override],f.prototype,"evalPrecedence",null),n([l.Override],f.prototype,"toString",null),f=n([i(0,l.NotNull),i(1,l.NotNull)],f),t.OR=f}(h=e.SemanticContext||(e.SemanticContext={}))},2399:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},2431:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;const i=r(2399),s=r(7239),o=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(o.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of s.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},2433:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,o.NotNull),i(2,o.NotNull)],a),e.ContextSensitivityInfo=a},2464:(t,e,r)=>{"use strict";var n=r(8452),i=r(6642);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2468:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;const s=r(9449),o=r(2399);let a=class extends s.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,o.NotNull)],a),e.InputMismatchException=a},2569:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprStaticAnalyzer=void 0;const n=r(5585),i=r(5395),s=r(534),o=r(6684),a={kind:"unknown"};class l{constructor(t){this.typesById=new Map(t.getTypes().map(t=>[t.id,t])),this.relationsByName=new Map;for(const e of t.getRelations()){const t=this.relationsByName.get(e.name);t?t.push(e):this.relationsByName.set(e.name,[e])}}getType(t){return this.typesById.get(t)}getRelations(t){return this.relationsByName.get(t)??[]}isSubtypeOf(t,e){if(t===e)return!0;const r=this.typesById.get(t);return!!r&&r.types.includes(e)}areDisjoint(t,e){if(t===e)return!1;for(const r of this.typesById.values())if(r.types.includes(t)&&r.types.includes(e))return!1;return!0}}function c(t,e){return!(!t||!e)&&t.text===e.text}function u(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?u(r.expr(),e):!!(r instanceof i.Expr8Context&&r.MINUS_TOK())&&(r.expr10().text===e||u(r.expr8(),e))}function h(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?h(r.expr(),e):!!(r instanceof i.Expr11Context&&r.AMP_TOK())&&(r.expr11().text===e||r.expr12().text===e||h(r.expr11(),e)||h(r.expr12(),e))}function p(t,e){if(!t)return!1;let r=t;for(;1===r.childCount;)r=r.getChild(0);return r instanceof i.Expr18Context&&r.LEFT_PAREN_TOK()?p(r.expr(),e):!!(r instanceof i.Expr8Context&&r.PLUS_TOK())&&(r.expr8().text===e||r.expr10().text===e||p(r.expr8(),e)||p(r.expr10(),e))}function d(t){if(!t)return;let e=t;for(;1===e.childCount;)e=e.getChild(0);if(e instanceof i.Expr5Context&&e.NEG_TOK()){const t=e.expr5();return t?t.text:void 0}return e instanceof i.Expr18Context&&e.LEFT_PAREN_TOK()?d(e.expr()):void 0}class f extends n.AbstractParseTreeVisitor{constructor(t){super(),this.boundScopes=[],this.unresolved=new Set,t&&(this.schema=new l(t))}isBound(t){return this.boundScopes.some(e=>e.has(t))}withBoundScope(t,e){this.boundScopes.push(t);try{return e()}finally{this.boundScopes.pop()}}collectNamesFromList(t,e){e.add((0,s.getIdentifierName)(t.name()));const r=t.nameList();r&&this.collectNamesFromList(r,e)}collectBoundNames(t,e){this.collectNamesFromList(t.quantDecl().nameList(),e);const r=t.quantDeclList();r&&this.collectBoundNames(r,e)}illTypedIfBindsReservedName(t){if(this.schema)for(const e of t)if(this.schema.getType(e)||this.schema.getRelations(e).length>0)return{kind:"ill-typed",reason:`cannot bind variable named '${e}': it is a reserved schema `+(this.schema.getType(e)?"type":"relation")+" name"}}analyze(t){this.unresolved.clear(),this.boundScopes.length=0;const e=this.visit(t);this.boundScopes.length=0,this.collectUnresolvedNames(t);const r=this.unresolved.size>0?{unresolvedNames:Array.from(this.unresolved)}:{};return"bool"===e.kind?e.value?{status:"tautology",reason:"expression folds to literal true",...r}:{status:"unsat",reason:"expression folds to literal false",...r}:"empty"===e.kind?{status:"empty",reason:"expression is provably the empty set",...r}:"ill-typed"===e.kind?{status:"ill-typed",reason:e.reason,...r}:{status:"unknown",...r}}static arityOf(t){return"typed"===t.kind?t.arity:"bool"===t.kind||"num"===t.kind?1:(t.kind,-1)}defaultResult(){return a}static bailIfIllTyped(...t){for(const e of t)if("ill-typed"===e.kind)return e}aggregateResult(t,e){return"ill-typed"===t.kind?t:"ill-typed"===e.kind||"unknown"===t.kind?e:t}visitExpr(t){if(t.LET_TOK()||t.BIND_TOK())return a;const e=t.quant();return e?this.foldQuantifier(t,e):this.visitChildren(t)}foldQuantifier(t,e){const r=t.blockOrBar();if(!r)return a;const n=t.quantDeclList(),i=new Set;if(n){this.collectBoundNames(n,i);const t=this.illTypedIfBindsReservedName(i);if(t)return t}let s=!1,o=t.quantDeclList();for(;o;){const t=o.quantDecl().expr(),e=this.visit(t);if("ill-typed"===e.kind)return e;if("empty"===e.kind){s=!0;break}const r=o.quantDeclList();if(!r)break;o=r}let l=a;r.BAR_TOK()&&r.expr()&&(l=this.withBoundScope(i,()=>this.visit(r.expr())));const c=e.mult(),u=void 0!==e.ALL_TOK(),h=void 0!==e.NO_TOK(),p=void 0!==c?.SOME_TOK(),d=void 0!==c?.ONE_TOK(),f=void 0!==c?.TWO_TOK(),_=void 0!==c?.LONE_TOK();if(s){if(u||h||_)return{kind:"bool",value:!0};if(p||d||f)return{kind:"bool",value:!1}}if("bool"===l.kind)if(l.value){if(u)return{kind:"bool",value:!0}}else{if(h||_)return{kind:"bool",value:!0};if(p||d||f)return{kind:"bool",value:!1}}return a}visitBlock(t){let e={kind:"bool",value:!0};for(const r of t.expr()){const t=this.visit(r);if("ill-typed"===t.kind)return t;if("bool"===t.kind&&!t.value)return t;"bool"!==t.kind&&(e=a)}return e}visitExpr1(t){if(t.OR_TOK()){const e=t.expr1(),r=t.expr1_5(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("bool"===n.kind&&n.value)return n;if("bool"===i.kind&&i.value)return i;if("bool"===n.kind&&"bool"===i.kind)return{kind:"bool",value:n.value||i.value};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!0}:a}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){const e=t.expr1_5(),r=t.expr2(),n=this.visit(e),i=this.visit(r);return f.bailIfIllTyped(n,i)||(c(e,r)?{kind:"bool",value:!1}:"bool"===n.kind&&"bool"===i.kind?{kind:"bool",value:n.value!==i.value}:a)}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){const e=t.expr2(),r=t.expr3(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return{kind:"bool",value:!0};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!1}:"bool"===n.kind&&"bool"===i.kind?{kind:"bool",value:n.value===i.value}:a}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){const e=this.visit(t.expr4()),r=t.expr3();if(t.ELSE_TOK()){const t=this.visit(r[0]),n=this.visit(r[1]);return f.bailIfIllTyped(e,t,n)||("bool"===e.kind?e.value?t:n:a)}const n=r[0],i=this.visit(n);return f.bailIfIllTyped(e,i)||("bool"!==e.kind||e.value?"bool"===e.kind&&e.value||"bool"===i.kind&&i.value?i:a:{kind:"bool",value:!0})}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){const e=t.expr4(),r=t.expr5(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("bool"===n.kind&&!n.value)return n;if("bool"===i.kind&&!i.value)return i;if("bool"===n.kind&&"bool"===i.kind)return{kind:"bool",value:n.value&&i.value};const o=d(e),l=d(r);return void 0!==o&&o===r.text||void 0!==l&&l===e.text?{kind:"bool",value:!1}:a}return this.visitChildren(t)}visitExpr5(t){if(t.NEG_TOK()){const e=this.visit(t.expr5());return"ill-typed"===e.kind?e:"bool"===e.kind?{kind:"bool",value:!e.value}:a}return this.visitChildren(t)}visitExpr6(t){const e=t.compareOp();if(!e)return this.visitChildren(t);const r=void 0!==t.NEG_TOK(),n=(0,o.compareOpKind)(e),i="ni"===n,s=i?"in":n,l=i?t.expr7():t.expr6(),u=i?t.expr6():t.expr7(),h=this.visit(l),p=this.visit(u),d=f.bailIfIllTyped(h,p);if(d)return d;const _=t=>({kind:"bool",value:r?!t:t});if(c(l,u))switch(s){case"=":case"<=":case">=":case"in":return _(!0);case"<":case">":return _(!1)}if("num"===h.kind&&"num"===p.kind)switch(s){case"=":return _(h.value===p.value);case"<":return _(h.value<p.value);case">":return _(h.value>p.value);case"<=":return _(h.value<=p.value);case">=":return _(h.value>=p.value)}if("bool"===h.kind&&"bool"===p.kind&&"="===s)return _(h.value===p.value);const T="num"===h.kind||"bool"===h.kind,y="num"===p.kind||"bool"===p.kind;if("="===s){if("empty"===h.kind&&"empty"===p.kind)return _(!0);if("empty"===h.kind&&y)return _(!1);if(T&&"empty"===p.kind)return _(!1)}if("in"===s){if("empty"===h.kind)return _(!0);if(T&&"empty"===p.kind)return _(!1)}if("="===n||"in"===n||"ni"===n){const t=f.arityOf(i?p:h),e=f.arityOf(i?h:p);if(t>0&&e>0&&t!==e)return{kind:"ill-typed",reason:`arity mismatch in '${n}': left has arity ${t}, right has arity ${e}`}}if(this.schema&&"typed"===h.kind&&"typed"===p.kind&&h.exact&&p.exact){const t=h.columnTypes,e=p.columnTypes;if(t&&e&&t.length===e.length){const r=t.every((t,r)=>this.schema.isSubtypeOf(t,e[r]));if("in"===s&&r)return _(!0)}}return a}visitExpr7(t){const e=this.visit(t.expr8());if("ill-typed"===e.kind)return e;if(t.SET_TOK())return e;if("empty"===e.kind){if(t.NO_TOK())return{kind:"bool",value:!0};if(t.LONE_TOK())return{kind:"bool",value:!0};if(t.SOME_TOK())return{kind:"bool",value:!1};if(t.ONE_TOK())return{kind:"bool",value:!1};if(t.TWO_TOK())return{kind:"bool",value:!1}}return t.NO_TOK()||t.LONE_TOK()||t.SOME_TOK()||t.ONE_TOK()||t.TWO_TOK()?a:e}visitExpr8(t){if(t.MINUS_TOK()){const e=t.expr8(),r=t.expr10(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return"num"===n.kind?{kind:"num",value:0}:{kind:"empty"};if("num"===n.kind&&"num"===i.kind)return{kind:"num",value:n.value-i.value};if("empty"===n.kind)return{kind:"empty"};if("empty"===i.kind)return n;if(h(e,r.text))return{kind:"empty"};if(p(r,e.text))return{kind:"empty"};const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '-': left has arity ${o}, right has arity ${l}`}:a}if(t.PLUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10()),n=f.bailIfIllTyped(e,r);if(n)return n;if("num"===e.kind&&"num"===r.kind)return{kind:"num",value:e.value+r.value};if("empty"===e.kind&&"empty"===r.kind)return{kind:"empty"};if("empty"===e.kind)return r;if("empty"===r.kind)return e;const i=f.arityOf(e),s=f.arityOf(r);return i>0&&s>0&&i!==s?{kind:"ill-typed",reason:`arity mismatch in '+': left has arity ${i}, right has arity ${s}`}:i>0&&s>0?{kind:"typed",arity:i}:a}return this.visitChildren(t)}visitExpr9(t){if(t.CARD_TOK()){const e=this.visit(t.expr9());return"ill-typed"===e.kind?e:"empty"===e.kind?{kind:"num",value:0}:a}return this.visitChildren(t)}visitExpr10(t){if(t.PPLUS_TOK()){const e=t.expr10(),r=t.expr11(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("empty"===n.kind&&"empty"===i.kind)return{kind:"empty"};if("empty"===n.kind)return i;if("empty"===i.kind)return n;const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '++': left has arity ${o}, right has arity ${l}`}:o>0&&l>0?{kind:"typed",arity:o}:a}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){const e=t.arrowOp();if(e.mult().length>0||e.SET_TOK().length>0)return{kind:"ill-typed",reason:`multiplicity annotations in '${e.text}' are declaration and constraint syntax, not part of an expression`};const r=this.visit(t.expr12()),n=this.visit(t.expr13()),i=f.bailIfIllTyped(r,n);if(i)return i;if("empty"===r.kind||"empty"===n.kind)return{kind:"empty"};if("typed"===r.kind&&"typed"===n.kind){const t=r.columnTypes&&n.columnTypes?[...r.columnTypes,...n.columnTypes]:void 0;return{kind:"typed",arity:r.arity+n.arity,columnTypes:t,exact:!0===r.exact&&!0===n.exact}}const s=f.arityOf(r),o=f.arityOf(n);return s>0&&o>0?{kind:"typed",arity:s+o}:a}return this.visitChildren(t)}visitExpr13(t){const e=void 0!==t.SUBT_TOK();if(e||t.SUPT_TOK()){const r=this.visit(t.expr13()),n=this.visit(t.expr14()),i=f.bailIfIllTyped(r,n);if(i)return i;const[s,o]=e?[r,n]:[n,r],l=f.arityOf(s);if(l>1)return{kind:"ill-typed",reason:`the '${e?"<:":":>"}' operator restricts by a set of arity 1, but its ${e?"left":"right"} operand has arity ${l}`};if("empty"===s.kind)return{kind:"empty"};if(1!==l)return a;if("empty"===o.kind)return{kind:"empty"};const c=f.arityOf(o);return c>0?{kind:"typed",arity:c}:a}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){const e=t.expr11(),r=t.expr12(),n=this.visit(e),i=this.visit(r),s=f.bailIfIllTyped(n,i);if(s)return s;if(c(e,r))return n;if("empty"===n.kind||"empty"===i.kind)return{kind:"empty"};if("num"===n.kind&&"num"===i.kind&&n.value!==i.value)return{kind:"empty"};if(u(r,e.text))return{kind:"empty"};if(u(e,r.text))return{kind:"empty"};const o=f.arityOf(n),l=f.arityOf(i);return o>0&&l>0&&o!==l?{kind:"ill-typed",reason:`arity mismatch in '&': left has arity ${o}, right has arity ${l}`}:this.schema&&"typed"===n.kind&&"typed"===i.kind&&n.columnTypes&&i.columnTypes&&n.columnTypes.length===i.columnTypes.length&&n.columnTypes.some((t,e)=>this.schema.areDisjoint(t,i.columnTypes[e]))?{kind:"empty"}:a}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){const e=t.expr14(),r=this.visit(e);if("ill-typed"===r.kind)return r;const n=[];let i=t.exprList();for(;i;)n.push(this.visit(i.expr())),i=i.exprList();return f.bailIfIllTyped(...n)||(o.SUPPORTED_BUILTINS.includes(e.text)?"sum"===e.text&&1===n.length&&"empty"===n[0].kind?{kind:"num",value:0}:a:"empty"===r.kind||n.some(t=>"empty"===t.kind)?{kind:"empty"}:a)}return this.visitChildren(t)}visitExpr15(t){if(t.DOT_TOK()){const e=this.visit(t.expr15()),r=this.visit(t.expr17()),n=f.bailIfIllTyped(e,r);if(n)return n;if("empty"===e.kind||"empty"===r.kind)return{kind:"empty"};const i=f.arityOf(e),s=f.arityOf(r);if(1===i&&1===s)return{kind:"ill-typed",reason:"dot join of two unary expressions produces arity 0"};if(this.schema&&"typed"===e.kind&&"typed"===r.kind&&e.columnTypes&&r.columnTypes&&e.columnTypes.length>0&&r.columnTypes.length>0){const t=e.columnTypes[e.columnTypes.length-1],n=r.columnTypes[0];if(this.schema.areDisjoint(t,n))return{kind:"empty"};const i=[...e.columnTypes.slice(0,-1),...r.columnTypes.slice(1)];if(i.length>0)return{kind:"typed",arity:i.length,columnTypes:i}}return i>0&&s>0?{kind:"typed",arity:i+s-2}:a}return t.LEFT_SQUARE_TOK()?a:this.visitChildren(t)}visitExpr17(t){if(t.TILDE_TOK()||t.EXP_TOK()){const e=this.visit(t.expr17());return"ill-typed"===e.kind?e:"empty"===e.kind?{kind:"empty"}:a}return t.STAR_TOK()||t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()?a:this.visitChildren(t)}visitExpr18(t){if(t.LEFT_PAREN_TOK())return this.visit(t.expr());if(t.const()){const e=t.const();if(e.NONE_TOK())return{kind:"empty"};if(e.number()){const t=Number(e.number().text);return{kind:"num",value:e.MINUS_TOK()?-t:t}}return a}if(t.qualName())return this.visit(t.qualName());if(t.LEFT_CURLY_TOK()){const e=t.quantDeclList(),r=new Set;if(e){let t=e;for(;t;){const e=t.quantDecl().expr(),n=this.visit(e);if("empty"===n.kind)return{kind:"empty"};if("ill-typed"===n.kind)return n;this.collectNamesFromList(t.quantDecl().nameList(),r);const i=t.quantDeclList();if(!i)break;t=i}}const n=this.illTypedIfBindsReservedName(r);if(n)return n;const i=t.blockOrBar();if(i&&i.BAR_TOK()&&i.expr()){const t=this.withBoundScope(r,()=>this.visit(i.expr()));if("ill-typed"===t.kind)return t;if("bool"===t.kind&&!t.value)return{kind:"empty"}}return a}return t.block()?this.visit(t.block()):a}visitName(t){const e=(0,s.getIdentifierName)(t);if("true"===e)return{kind:"bool",value:!0};if("false"===e)return{kind:"bool",value:!1};if(this.schema){const t=this.schema.getType(e);if(t)return{kind:"typed",arity:1,columnTypes:[t.id],exact:!0};const r=this.schema.getRelations(e);if(1===r.length){const t=r[0].types;return{kind:"typed",arity:t.length,columnTypes:t}}if(r.length>1){const t=r[0].types.length;if(r.every(e=>e.types.length===t)){const e=r[0].types.map((t,e)=>r.every(r=>r.types[e]===t)?t:void 0);return e.every(t=>void 0!==t)?{kind:"typed",arity:t,columnTypes:e}:{kind:"typed",arity:t}}return a}}return a}collectUnresolvedNames(t){if(!this.schema)return;if(t instanceof i.NameContext)return void this.recordIfUnresolved((0,s.getIdentifierName)(t));const e=this.asBinder(t);if(e){const t=new Set;let r=e.declList;for(;r;)this.collectUnresolvedNames(r.quantDecl().expr()),this.collectNamesFromList(r.quantDecl().nameList(),t),r=r.quantDeclList();return void(e.body&&this.withBoundScope(t,()=>this.collectUnresolvedNames(e.body)))}for(let e=0;e<t.childCount;e++)this.collectUnresolvedNames(t.getChild(e))}asBinder(t){const e=t instanceof i.ExprContext&&void 0!==t.quant(),r=t instanceof i.Expr18Context&&void 0!==t.LEFT_CURLY_TOK();if(!e&&!r)return;const n=t,s=n.quantDeclList();return s?{declList:s,body:n.blockOrBar()}:void 0}recordIfUnresolved(t){"true"!==t&&"false"!==t&&(this.isBound(t)||o.SUPPORTED_BUILTINS.includes(t)||this.schema.getType(t)||this.schema.getRelations(t).length>0||this.unresolved.add(t))}}e.ForgeExprStaticAnalyzer=f},2593:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;const i=r(2399);class s{syntaxError(t,e,r,n,i,s){}}n([i.Override],s.prototype,"syntaxError",null),e.XPathLexerErrorListener=s},2662:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;const s=r(8151),o=r(9057),a=r(5636),l=r(2399);let c=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t<this._lexerActions.length;t++)!this._lexerActions[t].isPositionDependent||this._lexerActions[t]instanceof o.LexerIndexedCustomAction||(r||(r=this._lexerActions.slice(0)),r[t]=new o.LexerIndexedCustomAction(e,this._lexerActions[t]));return r?new t(r):this}get lexerActions(){return this._lexerActions}execute(t,e,r){let n=!1,i=e.index;try{for(let s of this._lexerActions){if(s instanceof o.LexerIndexedCustomAction){let t=s.offset;e.seek(r+t),s=s.action,n=r+t!==i}else s.isPositionDependent&&(e.seek(i),n=!1);s.execute(t)}}finally{n&&e.seek(i)}}hashCode(){return this.cachedHashCode}equals(e){return e===this||e instanceof t&&this.cachedHashCode===e.cachedHashCode&&s.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,e._lexerActions)}};n([l.NotNull],c.prototype,"_lexerActions",void 0),n([l.NotNull],c.prototype,"lexerActions",null),n([i(0,l.NotNull)],c.prototype,"execute",null),n([l.Override],c.prototype,"hashCode",null),n([l.Override],c.prototype,"equals",null),n([l.NotNull,i(1,l.NotNull)],c,"append",null),c=n([i(0,l.NotNull)],c),e.LexerActionExecutor=c},2666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2682:(t,e,r)=>{"use strict";var n=r(9600),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o,a;arguments.length>=3&&(o=r),a=t,"[object Array]"===i.call(a)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,o):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,o):function(t,e,r){for(var n in t)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,o)}},2781:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2806:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;const i=r(7477),s=r(2399),o=r(7760);class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),s=new u(this.tokens,n,i.length,e);i.push(s)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),s=new c(this.tokens,n,i.length,e);i.push(s)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),s=new h(this.tokens,t,e,i.length,r);i.push(s)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){let e=this.lastRewriteTokenIndexes.get(t);return null==e?-1:e}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),s=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),s<0&&(s=0),null==n||0===n.length)return this.tokens.getText(r);let c=[],u=this.reduceToSingleOperationPerIndex(n),h=s;for(;h<=l&&h<this.tokens.size;){let t=u.get(h);u.delete(h);let e=this.tokens.get(h);null==t?(e.type!==o.Token.EOF&&c.push(String(e.text)),h++):h=t.execute(c)}if(l===this.tokens.size-1)for(let t of u.values())t.index>=this.tokens.size-1&&c.push(t.text.toString());return c.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof h))continue;let n=r,i=this.getKindOfOps(t,c,e);for(let e of i)e.index===n.index?(t[e.instructionIndex]=void 0,n.text=e.text.toString()+(null!=n.text?n.text.toString():"")):e.index>n.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let s=this.getKindOfOps(t,h,e);for(let e of s){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<n.index||e.index>n.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof c))continue;let n=r,i=this.getKindOfOps(t,c,e);for(let e of i)e.index===n.index&&(e instanceof u?(n.text=this.catOpText(e.text,n.text),t[e.instructionIndex]=void 0):e instanceof c&&(n.text=this.catOpText(n.text,e.text),t[e.instructionIndex]=void 0));let s=this.getKindOfOps(t,h,e);for(let r of s)if(n.index!==r.index){if(n.index>=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i<r&&i<t.length;i++){let r=t[i];null!=r&&r instanceof e&&n.push(r)}return n}}e.TokenStreamRewriter=a,a.DEFAULT_PROGRAM_NAME="default",a.PROGRAM_INIT_SIZE=100,a.MIN_TOKEN_INDEX=0;class l{constructor(t,e,r,n){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===n?"":n}execute(t){return this.index}toString(){let t=this.constructor.name,e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}n([s.Override],l.prototype,"toString",null),e.RewriteOperation=l;class c extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==o.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([s.Override],c.prototype,"execute",null);class u extends c{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}n([s.Override],h.prototype,"execute",null),n([s.Override],h.prototype,"toString",null)},2807:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;const i=r(5629),s=r(1862),o=r(7477),a=r(1492),l=r(1088),c=r(6181),u=r(2399),h=r(8831),p=r(7760);class d extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new s.IntegerStack,this._mode=d.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return p.Token.DEFAULT_CHANNEL}static get HIDDEN(){return p.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=p.Token.INVALID_TYPE,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=d.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=p.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof c.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=d.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===p.Token.INVALID_TYPE&&(this._type=t),this._type===d.SKIP)continue t}while(this._type===d.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=d.SKIP}more(){this._type=d.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,p.Token.EOF,void 0,p.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==p.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(o.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case p.Token.EOF:return"<EOF>";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof c.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}d.DEFAULT_MODE=0,d.MORE=-2,d.SKIP=-3,d.MIN_CHAR_VALUE=0,d.MAX_CHAR_VALUE=1114111,n([u.Override],d.prototype,"nextToken",null),n([u.Override],d.prototype,"tokenFactory",null),n([u.Override],d.prototype,"inputStream",null),n([u.Override],d.prototype,"sourceName",null),n([u.Override],d.prototype,"line",null),n([u.Override],d.prototype,"charPositionInLine",null),e.Lexer=d},2813:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;const i=r(2399);class s{constructor(){this.stateNumber=s.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof s&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"toString",null),e.ATNState=s,function(t){t.INVALID_STATE_NUMBER=-1}(s=e.ATNState||(e.ATNState={}))},2962:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},3003:t=>{"use strict";t.exports=function(t){return t!=t}},3053:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;const s=r(3357),o=r(2399),a=r(1072);let l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return s.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([o.Override],l.prototype,"serializationType",null),n([o.Override,o.NotNull],l.prototype,"label",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.RangeTransition=l},3074:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;const s=r(1533),o=r(3258),a=r(8590),l=r(9709),c=r(324),u=r(2399),h=r(8055),p=r(4016),d=r(7435);let f=class{constructor(t,e=0){if(this.states=new s.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof p.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new o.ATNConfigSet),this.s0full=new l.DFAState(new o.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=d.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new c.LexerDFASerializer(this).toString():""}};n([u.NotNull],f.prototype,"states",void 0),n([u.NotNull],f.prototype,"atnStartState",void 0),n([u.NotNull],f.prototype,"atn",void 0),f=n([i(0,u.NotNull)],f),e.DFA=f},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;const n=r(8016);class i extends n.DecisionState{}e.BlockStartState=i},3126:(t,e,r)=>{"use strict";var n=r(6743),i=r(9675),s=r(76),o=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return o(n,s,t)}},3144:(t,e,r)=>{"use strict";var n=r(6743),i=r(1002),s=r(76),o=r(7119);t.exports=o||n.call(s,i)},3161:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;const s=r(2962),o=r(9202),a=r(1533),l=r(5754),c=r(4274),u=r(8880),h=r(3258),p=r(6298),d=r(7037),f=r(5369),_=r(6889),T=r(1405),y=r(8016),O=r(9709),x=r(8240),g=r(7477),E=r(1492),m=r(2399),v=r(3575),S=r(755),N=r(8055),R=r(1097),b=r(8859),A=r(6409),C=r(333),L=r(8840),I=r(3334),w=r(2356),P=r(1384),K=r(4364),k=r(7760),D=r(7435),M=r(4148),U=-2147483648;let F=class t extends p.ATNSimulator{constructor(t,e){super(t),this.predictionMode=C.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let s,o=this.atn.decisionToDFA[r];if(M(null!=o),this.optimize_ll1&&!o.isPrecedenceDfa&&!o.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=o,this.force_global_context?i=!0:this.always_try_local_context||(i=i||o.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==C.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=R.ParserRuleContext.emptyContext()),o.isEmpty||(s=this.getStartState(o,e,n,i)),null==s&&(null==n&&(n=R.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+o.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),s=this.computeStartState(o,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(o,e,l,s);return t.debug&&console.log("DFA after predictATN: "+o.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);if(null==e)return;return new K.SimulatorState(r,e,!1,r)}if(null==t.s0)return;return new K.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,s=r;for(M(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=s&&null!=i&&i.isContextSensitive;)s=this.skipTailCalls(s),i=i.getContextTarget(this.getReturnState(s)),s.isEmpty?M(null==i||!i.isContextSensitive):s=s.parent;return null!=i?new K.SimulatorState(r,i,n,s):void 0}execDFA(e,r,n,i){let s=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+s.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let o=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+o.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;o.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=o.getContextTarget(this.getReturnState(l))),null==t){let t=new K.SimulatorState(i.outerContext,o,i.useContext,l);return this.execATN(e,r,n,t)}M(null!=l),l=l.parent,o=t}if(this.isAcceptState(o,i.useContext)){null!=o.predicates?t.dfa_debug&&console.log("accept "+o):t.dfa_debug&&console.log("accept; predict "+o.prediction+" in state "+o.stateNumber);break}M(!this.isAcceptState(o,i.useContext));let c=this.getExistingTargetState(o,a);if(null==c){let c;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=g.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+o.stateNumber)}let u=new K.SimulatorState(s,o,i.useContext,l);return c=this.execATN(e,r,n,u),t.dfa_debug&&console.log("back from DFA update, alt="+c+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+c),c}if(c===p.ATNSimulator.ERROR){let t=new K.SimulatorState(s,o,i.useContext,l);return this.handleNoViableAlt(r,n,t)}o=c,this.isAcceptState(o,i.useContext)||a===E.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=o.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!o.configs.dipsIntoOuterContext&&o.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;M(!i.useContext);let a=o.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,s,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new K.SimulatorState(s,o,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,s,!0)}let c=o.predicates;if(null!=c){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(c,s,this.reportAmbiguities&&this.predictionMode===C.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,s,o.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,o,n,t,o.configs.isExactConflict,i,o.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+o.prediction),o.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==C.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let s=i.outerContext,o=i.useContext,a=r.LA(1),l=i,u=new A.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,u);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),p.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(M(h.isAcceptState||h.prediction===c.ATN.INVALID_ALT_NUMBER),M(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,o)){let l=h.configs.conflictingAlts,u=null==l?h.prediction:c.ATN.INVALID_ALT_NUMBER;if(u!==c.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,u)}o&&this.always_try_local_context&&this.reportContextSensitivity(e,u,i,n,r.index)}u=h.prediction;let p=null!=l&&this.userWantsCtxSensitive;if(p&&(p=!o&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,s,p||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,s,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(p){M(!o),M(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+s);let a=this.computeStartState(e,s,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),u=l.nextSetBit(0)),u}l=i,a!==E.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new _.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof L.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let s=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof L.RuleStopState)&&s.add(t);let o=this.getPredsForAmbigAlts(n,s,i);if(null!=o){let i=this.getPredicatePredictions(n,o);if(null!=i){let n=t.index;try{t.seek(e);let n=this.evalSemanticContext(i,r.outerContext,!1);if(!n.isEmpty)return n.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,s=e.remainingOuterContext,o=e.s0;if(i)for(;o.isContextSymbol(r);){let t;if(null!=s&&(s=this.skipTailCalls(s),t=o.getContextTarget(this.getReturnState(s))),null==t)break;M(null!=s),s=s.parent,o=t}if(M(!this.isAcceptState(o,i)),this.isAcceptState(o,i))return new K.SimulatorState(e.outerContext,o,i,s);let a=o,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,s,r,i,n);l=e[0],s=e[1]}return l!==p.ATNSimulator.ERROR?(M(!i||!l.configs.dipsIntoOuterContext),new K.SimulatorState(e.outerContext,l,i,s)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,s,o){let a,l,u=r.configs.toArray(),d=new h.ATNConfigSet;do{let e=!s||null!=n;e||(d.isOutermostConfigSet=!0);let r,p=new h.ATNConfigSet;for(let e of u){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof L.RuleStopState){M(e.context.isEmpty),(s&&!e.reachesIntoOuterContext||i===E.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t<n;t++){let r=e.state.getOptimizedTransition(t),n=this.getReachableTarget(e,r,i);null!=n&&p.add(e.transform(n,!1),o)}}if(this.optimize_unique_closure&&null==r&&i!==k.Token.EOF&&p.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER){p.isOutermostConfigSet=d.isOutermostConfigSet,d=p;break}let f=!1,_=i===k.Token.EOF;if(this.closure(p,d,f,e,o,_),l=d.dipsIntoOuterContext,i===E.IntStream.EOF&&(d=this.removeAllConfigsNotInRuleStopState(d,o)),!(null==r||s&&C.PredictionMode.hasConfigInRuleStopState(d))){M(r.length>0);for(let t of r)d.add(t,o)}if(s&&l){d.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new x.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==b.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e<u.length;e++)u[e]=u[e].appendContext(t,o)}}while(s&&l);return d.isEmpty?(this.setDFAEdge(r,i,p.ATNSimulator.ERROR),[p.ATNSimulator.ERROR,n]):[this.addDFAEdge(e,r,i,a,d,o),n]}removeAllConfigsNotInRuleStopState(t,e){if(C.PredictionMode.allConfigsInRuleStopStates(t))return t;let r=new h.ATNConfigSet;for(let n of t)n.state instanceof L.RuleStopState&&r.add(n,e);return r}computeStartState(t,e,r){let n=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,r):r?t.s0full:t.s0;if(null!=n){if(!r)return new K.SimulatorState(e,n,r,e);n.setContextSensitive(this.atn)}t.decision;let i=t.atnStartState,s=0,o=e,a=r?b.PredictionContext.EMPTY_FULL:b.PredictionContext.EMPTY_LOCAL,l=new A.PredictionContextCache;if(r){if(!this.enable_global_context_dfa)for(;null!=o;)o.isEmpty?(s=b.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),a=a.appendSingleContext(s,l),o=o.parent);for(;null!=n&&n.isContextSensitive&&null!=o;){let t;if(o=this.skipTailCalls(o),o.isEmpty?(t=n.getContextTarget(b.PredictionContext.EMPTY_FULL_STATE_KEY),s=b.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),t=n.getContextTarget(s),a=a.appendSingleContext(s,l),o=o.parent),null==t)break;n=t}}if(null!=n&&!n.isContextSensitive)return new K.SimulatorState(e,n,r,o);let c=new h.ATNConfigSet;for(;;){let p=new h.ATNConfigSet,d=i.numberOfTransitions;for(let t=0;t<d;t++){let e=i.transition(t).target;p.add(u.ATNConfig.create(e,t+1,a))}let f=null!=o;f||(c.isOutermostConfigSet=!0);let _=!0;this.closure(p,c,_,f,l,!1);let T,y=c.dipsIntoOuterContext;if(r&&!this.enable_global_context_dfa){n=this.addDFAState(t,c,l);break}if(null==n?t.isPrecedenceDfa?(c=this.applyPrecedenceFilter(c,e,l),T=this.addDFAState(t,c,l),t.setPrecedenceStartState(this._parser.precedence,r,T)):(T=this.addDFAState(t,c,l),r?t.s0full?T=t.s0full:t.s0full=T:t.s0?T=t.s0:t.s0=T):(t.isPrecedenceDfa&&(c=this.applyPrecedenceFilter(c,e,l)),T=this.addDFAState(t,c,l),n.setContextTarget(s,T)),n=T,!r||!y)break;T.setContextSensitive(this.atn),c.clear(),o=this.skipTailCalls(o);let O=this.getReturnState(o);o=o.isEmpty?void 0:o.parent,O!==b.PredictionContext.EMPTY_FULL_STATE_KEY&&(a=a.appendSingleContext(O,l)),s=O}return new K.SimulatorState(e,n,r,o)}applyPrecedenceFilter(t,e,r){let n=new Map,i=new h.ATNConfigSet;for(let s of t){if(1!==s.alt)continue;let t=s.semanticContext.evalPrecedence(this._parser,e);null!=t&&(n.set(s.state.stateNumber,s.context),t!==s.semanticContext?i.add(s.transform(s.state,!1,t),r):i.add(s,r))}for(let e of t)if(1!==e.alt){if(!e.isPrecedenceFilterSuppressed){let t=n.get(e.state.stateNumber);if(null!=t&&t.equals(e.context))continue}i.add(e,r)}return i}getReachableTarget(t,e,r){if(e.matches(r,0,this.atn.maxTokenType))return e.target}predicateDFAState(e,r,n){let i=this.getConflictingAltsFromConfigSet(r);if(!i)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");t.debug&&console.log("predicateDFAState "+e);let s,o=this.getPredsForAmbigAlts(i,r,n);return null!=o&&(s=this.getPredicatePredictions(i,o),e.predicates=s),s}getPredsForAmbigAlts(e,r,n){let i=new Array(n+1),s=i.length;for(let t of r)e.get(t.alt)&&(i[t.alt]=w.SemanticContext.or(i[t.alt],t.semanticContext));let o=0;for(let t=0;t<s;t++)null==i[t]?i[t]=w.SemanticContext.NONE:i[t]!==w.SemanticContext.NONE&&o++;let a=i;return 0===o&&(a=void 0),t.debug&&console.log("getPredsForAmbigAlts result "+(a?l.Arrays.toString(a):"undefined")),a}getPredicatePredictions(t,e){let r=[],n=!1;for(let i=1;i<e.length;i++){let s=e[i];M(null!=s),null!=t&&t.get(i)&&s===w.SemanticContext.NONE?r.push(new O.DFAState.PredPrediction(s,i)):s!==w.SemanticContext.NONE&&(n=!0,r.push(new O.DFAState.PredPrediction(s,i)))}if(n)return r}evalSemanticContext(e,r,n){let i=new _.BitSet;for(let s of e){if(s.pred===w.SemanticContext.NONE){if(i.set(s.alt),!n)break;continue}let e=this.evalSemanticContextImpl(s.pred,r,s.alt);if((t.debug||t.dfa_debug)&&console.log("eval pred "+s+"="+e),e&&((t.debug||t.dfa_debug)&&console.log("PREDICT "+s.alt),i.set(s.alt),!n))break}return i}evalSemanticContextImpl(t,e,r){return t.eval(this._parser,e)}closure(t,e,r,n,i,s){null==i&&(i=A.PredictionContextCache.UNCACHED);let o=t,l=new a.Array2DHashSet(N.ObjectEqualityComparator.INSTANCE);for(;o.size>0;){let t=new h.ATNConfigSet;for(let a of o)this.closureImpl(a,e,t,l,r,n,i,0,s);o=t}}closureImpl(e,r,n,i,s,a,l,c,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof L.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===b.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,b.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&b.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,o=e.context.size-(t?1:0);for(let t=0;t<o;t++){let o=e.context.getParent(t),p=this.atn.states[e.context.getReturnState(t)],d=u.ATNConfig.create(p,e.alt,o,e.semanticContext);d.outerContextDepth=e.outerContextDepth,d.isPrecedenceFilterSuppressed=e.isPrecedenceFilterSuppressed,M(c>U),this.closureImpl(d,r,n,i,s,a,l,c-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,b.PredictionContext.EMPTY_LOCAL)}let p=e.state;p.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let u=0;u<p.numberOfOptimizedTransitions;u++){if(0===u&&p.stateType===d.ATNStateType.STAR_LOOP_ENTRY&&p.precedenceRuleDecision&&!e.context.hasEmpty){let t=p,r=!0;for(let n=0;n<e.context.size;n++)if(!t.precedenceLoopbackStates.get(e.context.getReturnState(n))){r=!1;break}if(r)continue}let f=p.getOptimizedTransition(u),_=!(f instanceof o.ActionTransition)&&s,T=this.getEpsilonTarget(e,f,_,0===c,l,h);if(null!=T){if(f instanceof I.RuleTransition&&null!=n&&!s){n.add(T,l);continue}let o=c;if(e.state instanceof L.RuleStopState){if(null!=this.dfa&&this.dfa.isPrecedenceDfa&&f.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(T.isPrecedenceFilterSuppressed=!0),T.outerContextDepth=T.outerContextDepth+1,!i.add(T))continue;M(o>U),o--,t.debug&&console.log("dips into outer ctx: "+T)}else if(f instanceof I.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)?o>=0&&o++:(M(T.context===e.context),0===o&&(o--,!this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)&&(T.outerContextDepth=T.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(T))continue;this.closureImpl(T,r,n,i,_,a,l,o,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,n,i,s){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return s&&e.matches(k.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=w.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}predTransition(e,r,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=w.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,s=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&b.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,s.stateNumber):e.context.getChild(s.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,s=new _.BitSet,o=n[0].alt;s.set(o);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==o)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new _.BitSet;let t=o;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=o;for(let r of n){let n=r.state.nonStopStateNumber,s=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=o}else if(s!==e){if(s!==a.nextSetBit(e+1)){i=!1;break}e=s}}}l=n[0].state.nonStopStateNumber;let u=0,h=0,p=n[0].context;for(let t=1;t<n.length;t++){let e=n[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,n[t].context)}for(let t=h+1;t<n.length;t++){let e=n[t],a=e.state;if(s.set(e.alt),a.nonStopStateNumber!==l){l=a.nonStopStateNumber,u=t,h=t,p=e.context;for(let t=u+1;t<n.length;t++){let e=n[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,e.context)}t=h;continue}let c=e.context,d=e.alt,f=t;for(let t=f+1;t<n.length;t++){let e=n[t];if(e.alt!==d)break;if(e.state.nonStopStateNumber!==l)break;f=t,c=r.join(c,e.context)}t=f;let _=r.join(p,c);if(!p.equals(_))return;i=i&&p.equals(c)}return new T.ConflictInfo(s,i)}getConflictingAltsFromConfigSet(t){let e=t.conflictingAlts;return null==e&&t.uniqueAlt!==c.ATN.INVALID_ALT_NUMBER&&(e=new _.BitSet,e.set(t.uniqueAlt)),e}getTokenName(t){if(t===k.Token.EOF)return"EOF";let e=(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(t);return e===String(t)?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof P.SetTransition&&(e=(r instanceof v.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new S.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=c.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===c.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return c.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof L.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,s,o){M(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,s,o);if(null!=i)for(let t of i.toArray()){if(t===b.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,o),M(t!==b.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){null!=t&&t.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==b.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return M(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let o=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==c.ATN.INVALID_ALT_NUMBER)o.acceptStateInfo=new s.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(o.acceptStateInfo=new s.AcceptStateInfo(t.nextSetBit(0)))}if(o.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(o,r,a.numberOfTransitions),!i)return o;let u=e.addState(o);return t.debug&&u===o&&console.log("adding new DFA state: "+o),u}createDFAState(t,e){return new O.DFAState(e)}reportAttemptingFullContext(e,r,n,i,s){if(t.debug||t.retry_debug){let t=g.Interval.of(i,s);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,s,r,n)}}reportContextSensitivity(e,r,n,i,s){if(t.debug||t.retry_debug){let t=g.Interval.of(i,s);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,s,r,n)}}reportAmbiguity(e,r,n,i,s,o,a){if(t.debug||t.retry_debug){let t=g.Interval.of(n,i);console.log("reportAmbiguity "+o+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,s,o,a)}}getReturnState(t){return t.isEmpty?b.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(M(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};F.debug=!1,F.dfa_debug=!1,F.retry_debug=!1,F.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([m.NotNull],F.prototype,"predictionMode",void 0),n([m.NotNull],F.prototype,"getPredictionMode",null),n([i(0,m.NotNull)],F.prototype,"setPredictionMode",null),n([m.Override],F.prototype,"reset",null),n([i(0,m.NotNull)],F.prototype,"adaptivePredict",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],F.prototype,"getStartState",null),n([i(0,m.NotNull),i(1,m.NotNull),i(3,m.NotNull)],F.prototype,"execDFA",null),n([i(0,m.NotNull),i(1,m.NotNull),i(3,m.NotNull)],F.prototype,"execATN",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"handleNoViableAlt",null),n([i(0,m.NotNull)],F.prototype,"getExistingTargetState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"computeTargetState",null),n([m.NotNull,i(0,m.NotNull)],F.prototype,"removeAllConfigsNotInRuleStopState",null),n([m.NotNull],F.prototype,"computeStartState",null),n([m.NotNull,i(0,m.NotNull)],F.prototype,"applyPrecedenceFilter",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getReachableTarget",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getPredsForAmbigAlts",null),n([i(0,m.NotNull)],F.prototype,"evalSemanticContext",null),n([i(0,m.NotNull)],F.prototype,"evalSemanticContextImpl",null),n([i(1,m.NotNull),i(4,m.Nullable)],F.prototype,"closure",null),n([i(0,m.NotNull),i(1,m.NotNull),i(2,m.Nullable),i(3,m.NotNull),i(6,m.NotNull)],F.prototype,"closureImpl",null),n([m.NotNull],F.prototype,"getRuleName",null),n([i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"getEpsilonTarget",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"actionTransition",null),n([m.Nullable,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"precedenceTransition",null),n([m.Nullable,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"predTransition",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(2,m.Nullable)],F.prototype,"ruleTransition",null),n([i(0,m.NotNull)],F.prototype,"isConflicted",null),n([m.NotNull],F.prototype,"getTokenName",null),n([i(0,m.NotNull)],F.prototype,"dumpDeadEndConfigs",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(2,m.NotNull)],F.prototype,"noViableAlt",null),n([i(0,m.NotNull)],F.prototype,"getUniqueAlt",null),n([i(0,m.NotNull)],F.prototype,"configWithAltAtStopState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull),i(4,m.NotNull)],F.prototype,"addDFAEdge",null),n([i(0,m.Nullable),i(2,m.Nullable)],F.prototype,"setDFAEdge",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"addDFAContextState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"addDFAState",null),n([m.NotNull,i(0,m.NotNull),i(1,m.NotNull)],F.prototype,"createDFAState",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"reportAttemptingFullContext",null),n([i(0,m.NotNull),i(2,m.NotNull)],F.prototype,"reportContextSensitivity",null),n([i(0,m.NotNull),i(5,m.NotNull),i(6,m.NotNull)],F.prototype,"reportAmbiguity",null),F=n([i(0,m.NotNull)],F),e.ParserATNSimulator=F},3196:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,s){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},3258:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;const i=r(3907),s=r(1533),o=r(8151),a=r(4274),l=r(8880),c=r(6889),u=r(2399),h=r(8055),p=r(8859),d=r(6409),f=r(2356),_=r(4148),T=r(659);class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function O(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class x{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=O(),this.unmerged=[]):(this.mergedConfigs=O(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=O(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new c.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");_(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new s.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new x(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;_(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=d.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=p.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;i<this.unmerged.length;i++){let s=this.unmerged[i];if(this.canMerge(t,n,s)){s.outerContextDepth=Math.max(s.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(s.isPrecedenceFilterSuppressed=!0);let o=p.PredictionContext.join(s.context,t.context,e);return this.updatePropertiesForMergedConfig(t),s.context!==o&&(s.context=o,r&&(this.mergedConfigs.put(n,s),this.unmerged.splice(i,1)),!0)}}return this.configs.push(t),r?this.mergedConfigs.put(n,t):this.unmerged.push(t),this.updatePropertiesForAddedConfig(t),!0}updatePropertiesForMergedConfig(t){this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,_(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(t){1===this.configs.length?this._uniqueAlt=t.alt:this._uniqueAlt!==t.alt&&(this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!f.SemanticContext.NONE.equals(t.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,_(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(t,e,r){return t.state.stateNumber===r.state.stateNumber&&e.alt===r.alt&&t.semanticContext.equals(r.semanticContext)}getKey(t){return{state:t.state.stateNumber,alt:t.alt}}containsAll(t){for(let e of t){if(!(e instanceof l.ATNConfig))return!1;if(!this.contains(e))return!1}return!0}addAll(t,e){this.ensureWritable();let r=!1;for(let n of t)this.add(n,e)&&(r=!0);return r}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(t){return this===t||t instanceof x&&this.outermostConfigSet===t.outermostConfigSet&&T.equals(this._conflictInfo,t._conflictInfo)&&o.ArrayEqualityComparator.INSTANCE.equals(this.configs,t.configs)}hashCode(){if(this.isReadOnly&&-1!==this.cachedHashCode)return this.cachedHashCode;let t=1;return t=5*t^(this.outermostConfigSet?1:0),t=5*t^o.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=t),t}toString(t){null==t&&(t=!1);let e="",r=this.configs.slice(0);r.sort((t,e)=>t.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString())),e+="[";for(let n=0;n<r.length;n++)n>0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([u.NotNull],x.prototype,"getRepresentedAlternatives",null),n([u.Override],x.prototype,"size",null),n([u.Override],x.prototype,"isEmpty",null),n([u.Override],x.prototype,"contains",null),n([u.Override],x.prototype,Symbol.iterator,null),n([u.Override],x.prototype,"toArray",null),n([u.Override],x.prototype,"containsAll",null),n([u.Override],x.prototype,"clear",null),n([u.Override],x.prototype,"equals",null),n([u.Override],x.prototype,"hashCode",null),e.ATNConfigSet=x},3274:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeListenerImpl=void 0;const n=r(534),i=r(5577);function s(t){return{startLine:t.start.line,startColumn:t.start.charPositionInLine,endLine:t.stop?t.stop.line:-1,endColumn:t.stop?t.stop.charPositionInLine+(t.stop.text?.length||0):0}}function o(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t);return new i.Block(e,r,n,o,[])}function a(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t);return new i.Expr(e,r,n,o,"")}e.ForgeListenerImpl=class{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[]}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(t){const{startLine:e,startColumn:r,endLine:n,endColumn:a}=s(t),l=this.getAllNames(t.nameList()),c=t.mult()?.toStringTree(),u=t.sigExt()?.toStringTree(),h=t.block(),p=h?o(h):void 0;for(const t of l){let s=new i.Sig(e,r,n,a,t,p,u,c);this._sigs.push(s)}}exitPredDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=(0,n.getIdentifierName)(t.name()),u=t.paraDecls(),h=u?o(u):void 0;let p=o(t.block()),d=new i.Predicate(e,r,a,l,c,h,p);this._predicates.push(d)}exitFunDecl(t){const{startLine:e,startColumn:r,endLine:i,endColumn:o}=s(t),a=(0,n.getIdentifierName)(t.name());let l=new Function(e,r,i,o,a);this._functions.push(l)}exitTestDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=t.name(),u=c?(0,n.getIdentifierName)(c):Math.random().toString(36).substring(7),h=t.block(),p=h?o(h):void 0,d=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),_=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.THEOREM_TOK()?"theorem":t.FORGE_ERROR_TOK()?"forge_error":t.CHECKED_TOK()?"checked":"unknown";let T=new i.Test(e,r,a,l,u,_,p,f,d);this._tests.push(T)}exitSatisfiabilityDecl(t){const{startLine:e,startColumn:r,endLine:n,endColumn:o}=s(t),l=a(t.expr()),c=t.scope()?.toStringTree(),u=t.bounds()?.toStringTree(),h=t.SAT_TOK()?"sat":t.UNSAT_TOK()?"unsat":t.FORGE_ERROR_TOK()?"forge_error":"unknown",p=new i.SatisfiabilityAssertionTest(e,r,n,o,l,h,u,c);this._satisfiabilityAssertions.push(p)}exitPropertyDecl(t){const{startLine:e,startColumn:r,endLine:o,endColumn:l}=s(t),c=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===c)throw new Error("Property relation must be either necessary or sufficient.");const u=a(t.expr()),h=(0,n.getIdentifierName)(t.name()),p=t.scope()?.toStringTree(),d=t.bounds()?.toStringTree(),f=new i.AssertionTest(e,r,o,l,h,u,c,d,p);this._assertions.push(f)}exitQuantifiedPropertyDecl(t){const{startLine:e,startColumn:r,endLine:l,endColumn:c}=s(t),u=!!t.DISJ_TOK(),h=t.SUFFICIENT_TOK()?"sufficient":t.NECESSARY_TOK()?"necessary":"unknown";if("unknown"===h)throw new Error("Property relation must be either necessary or sufficient.");const p=(0,n.getIdentifierName)(t.name()),d=a(t.expr());let f=t.exprList(),_=f?o(f):void 0;const T=t.scope()?.toStringTree(),y=t.bounds()?.toStringTree(),O=t.quantDeclList(),x=O?o(O):void 0;let g=new i.QuantifiedAssertionTest(e,r,l,c,p,d,h,u,x,y,T,_);this._quantifiedAssertions.push(g)}exitConsistencyDecl(t){const{startLine:e,startColumn:r,endLine:o,endColumn:l}=s(t);let c=t.CONSISTENT_TOK()?"consistent":t.INCONSISTENT_TOK()?"inconsistent":"unknown";if("unknown"===c)throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let u="consistent"===c;const h=(0,n.getIdentifierName)(t.name()),p=a(t.expr()),d=t.scope()?.toStringTree(),f=t.bounds()?.toStringTree(),_=new i.ConsistencyAssertionTest(e,r,o,l,h,p,u,f,d);this._consistencyAssertions.push(_)}exitExampleDecl(t){const{startLine:e,startColumn:r,endLine:a,endColumn:l}=s(t),c=(0,n.getIdentifierName)(t.name()),u=o(t.expr()),h=o(t.bounds());let p=new i.Example(e,r,a,l,c,u,h);this._examples.push(p)}getAllNames(t){const e=[];return function t(r){r.name()&&e.push(r.name());const n=r.nameList();n&&t(n)}(t),e.map(t=>(0,n.getIdentifierName)(t))}}},3303:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;const s=r(8291),o=r(2399);let a=class extends s.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([o.NotNull],a.prototype,"_tokenName",void 0),n([o.NotNull],a.prototype,"tokenName",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.TokenTagToken=a},3334:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([s.NotNull],a.prototype,"followState",void 0),n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),a=n([i(0,s.NotNull),i(3,s.NotNull)],a),e.RuleTransition=a},3357:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;const s=r(8151),o=r(8240),a=r(7477),l=r(2807),c=r(5636),u=r(2399),h=r(7760);class p{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===p._COMPLETE_CHAR_SET&&(p._COMPLETE_CHAR_SET=p.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),p._COMPLETE_CHAR_SET.setReadonly(!0)),p._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==p._EMPTY_SET&&(p._EMPTY_SET=new p,p._EMPTY_SET.setReadonly(!0)),p._EMPTY_SET}static of(t,e=t){let r=new p;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.b<t.a)){for(let e=0;e<this._intervals.length;e++){let r=this._intervals[e];if(t.equals(r))return;if(t.adjacent(r)||!t.disjoint(r)){let n=t.union(r);for(this._intervals[e]=n;e<this._intervals.length-1;){e++;let t=this._intervals[e];if(!n.adjacent(t)&&n.disjoint(t))break;this._intervals.splice(e,1),e--,this._intervals[e]=n.union(t)}return}if(t.startsBeforeDisjoint(r))return void this._intervals.splice(e,0,t)}this._intervals.push(t)}}static or(t){let e=new p;for(let r of t)e.addAll(r);return e}addAll(t){if(null==t)return this;if(t instanceof p){let e=t,r=e._intervals.length;for(let t=0;t<r;t++){let r=e._intervals[t];this.add(r.a,r.b)}}else for(let e of t.toArray())this.add(e);return this}complementRange(t,e){return this.complement(p.of(t,e))}complement(t){if(t.isNil)return p.EMPTY_SET;let e;return t instanceof p?e=t:(e=new p,e.addAll(t)),e.subtract(this)}subtract(t){if(null==t||t.isNil)return new p(this._intervals);if(t instanceof p)return p.subtract(this,t);let e=new p;return e.addAll(t),p.subtract(this,e)}static subtract(t,e){if(t.isNil)return new p;let r=new p(t._intervals);if(e.isNil)return r;let n=0,i=0;for(;n<r._intervals.length&&i<e._intervals.length;){let t,s,o=r._intervals[n],l=e._intervals[i];if(l.b<o.a)i++;else if(l.a>o.b)n++;else if(l.a>o.a&&(t=new a.Interval(o.a,l.a-1)),l.b<o.b&&(s=new a.Interval(l.b+1,o.b)),t){if(s){r._intervals[n]=t,r._intervals.splice(n+1,0,s),n++,i++;continue}r._intervals[n]=t,n++}else s?(r._intervals[n]=s,i++):r._intervals.splice(n,1)}return r}or(t){let e=new p;return e.addAll(this),e.addAll(t),e}and(t){if(t.isNil)return new p;let e,r=this._intervals,n=t._intervals,i=r.length,s=n.length,o=0,a=0;for(;o<i&&a<s;){let t=r[o],i=n[a];t.startsBeforeDisjoint(i)?o++:i.startsBeforeDisjoint(t)?a++:t.properlyContains(i)?(e||(e=new p),e.addRange(t.intersection(i)),a++):i.properlyContains(t)?(e||(e=new p),e.addRange(t.intersection(i)),o++):t.disjoint(i)||(e||(e=new p),e.addRange(t.intersection(i)),t.startsAfterNonDisjoint(i)?a++:i.startsAfterNonDisjoint(t)&&o++)}return e||new p}contains(t){let e=0,r=this._intervals.length-1;for(;e<=r;){let n=e+r>>1,i=this._intervals[n],s=i.a;if(i.b<t)e=n+1;else{if(!(s>t))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=c.MurmurHash.initialize();for(let e of this._intervals)t=c.MurmurHash.update(t,e.a),t=c.MurmurHash.update(t,e.b);return t=c.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof p&&s.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;i===s?i===h.Token.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(s)+"'":i+".."+s}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;if(i===s)e+=this.elementName(t,i);else for(let r=i;r<=s;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"<EOF>":e===h.Token.EPSILON?"<EPSILON>":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;r<e;r++){let e=this._intervals[r];t+=e.b-e.a+1}return t}toIntegerList(){let t=new o.IntegerList(this.size),e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.add(e)}return t}toSet(){let t=new Set;for(let e of this._intervals){let r=e.a,n=e.b;for(let e=r;e<=n;e++)t.add(e)}return t}toArray(){let t=new Array,e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.push(e)}return t}remove(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;if(t<n)break;if(t===n&&t===i){this._intervals.splice(r,1);break}if(t===n){this._intervals[r]=a.Interval.of(e.a+1,e.b);break}if(t===i){this._intervals[r]=a.Interval.of(e.a,e.b-1);break}if(t>n&&t<i){let n=e.b;this._intervals[r]=a.Interval.of(e.a,t-1),this.add(t+1,n)}}}get isReadonly(){return this.readonly}setReadonly(t){if(this.readonly&&!t)throw new Error("can't alter readonly IntervalSet");this.readonly=t}}n([u.Override],p.prototype,"addAll",null),n([u.Override],p.prototype,"complement",null),n([u.Override],p.prototype,"subtract",null),n([u.Override],p.prototype,"or",null),n([u.Override],p.prototype,"and",null),n([u.Override],p.prototype,"contains",null),n([u.Override],p.prototype,"isNil",null),n([u.Override],p.prototype,"hashCode",null),n([u.Override],p.prototype,"equals",null),n([i(0,u.NotNull)],p.prototype,"toStringVocabulary",null),n([u.NotNull,i(0,u.NotNull)],p.prototype,"elementName",null),n([u.Override],p.prototype,"size",null),n([u.Override],p.prototype,"remove",null),n([u.NotNull],p,"of",null),n([u.NotNull],p,"subtract",null),e.IntervalSet=p},3361:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;const s=r(2813),o=r(7037),a=r(2262),l=r(2468),c=r(3357),u=r(755),h=r(8859),p=r(7760),d=r(2399);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=s.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof u.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new c.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=s.ATNState.INVALID_STATE_NUMBER);if(n.contains(p.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case o.ATNStateType.BLOCK_START:case o.ATNStateType.STAR_BLOCK_START:case o.ATNStateType.PLUS_BLOCK_START:case o.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case o.ATNStateType.PLUS_LOOP_BACK:case o.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===p.Token.EOF?"<EOF>":n.getTextFromRange(e.startToken,e.getOffendingToken()):"<unknown input>";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=p.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===p.Token.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let s=r,o=t.inputStream.tryLT(-1);return s.type===p.Token.EOF&&null!=o&&(s=o),this.constructToken(t.inputStream.tokenSource,i,e,s)}constructToken(t,e,r,n){let i=t.tokenFactory,s=n.tokenSource,o=s?s.inputStream:void 0;return i.create({source:t,stream:o},e,r,p.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"<no token>";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===p.Token.EOF?"<EOF>":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new c.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(p.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==p.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([d.Override],f.prototype,"reset",null),n([i(0,d.NotNull)],f.prototype,"beginErrorCondition",null),n([d.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,d.NotNull)],f.prototype,"endErrorCondition",null),n([d.Override],f.prototype,"reportMatch",null),n([d.Override],f.prototype,"reportError",null),n([i(0,d.NotNull)],f.prototype,"notifyErrorListeners",null),n([d.Override],f.prototype,"recover",null),n([d.Override],f.prototype,"sync",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,d.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,d.NotNull)],f.prototype,"reportMissingToken",null),n([d.Override],f.prototype,"recoverInline",null),n([i(0,d.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,d.NotNull)],f.prototype,"singleTokenDeletion",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getMissingSymbol",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,d.NotNull)],f.prototype,"getSymbolText",null),n([i(0,d.NotNull)],f.prototype,"getSymbolType",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"escapeWSAndQuote",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},3530:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},3575:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;const s=r(2399),o=r(1384);let a=class extends o.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"matches",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull),i(1,s.Nullable)],a),e.NotSetTransition=a},3628:(t,e,r)=>{"use strict";var n=r(8648),i=r(1064),s=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:s?function(t){return s(t)}:null},3651:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseErrorListener=void 0,e.ParseErrorListener=class{syntaxError(t,e,r,n,i,s){throw new Error(`Parse error at ${r}:${n}: ${i}`)}}},3696:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3714:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;const i=r(2399),s=r(1097);class o extends s.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],o.prototype,"ruleIndex",null),e.InterpreterRuleContext=o},3907:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;const n=r(1533);class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class s{constructor(t){this.backingStore=t instanceof s?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof s&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=s},3918:(t,e,r)=>{"use strict";var n=r(5606);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n,i,s;n=t,i=e,s=r[e],(i=a(i))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!==_(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}function l(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){var e="function"==typeof Map?new Map:void 0;return u=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return h(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},u(t)}function h(t,e,r){return h=p()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&d(i,r.prototype),i},h.apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var T=r(537).inspect,y=r(9597).codes.ERR_INVALID_ARG_TYPE;function O(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var x="",g="",E="",m="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function N(t){return T(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var R=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(R,t);var r,i,a,u,h=(r=R,i=p(),function(){var t,e=f(r);if(i){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return l(this,t)});function R(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,R),"object"!==_(t)||null===t)throw new y("options","Object",t);var r=t.message,i=t.operator,s=t.stackStartFn,o=t.actual,a=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=h.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(x="",g="",m="",E=""):(x="",g="",m="",E="")),"object"===_(o)&&null!==o&&"object"===_(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=S(o),a=S(a)),"deepStrictEqual"===i||"strictEqual"===i)e=h.call(this,function(t,e,r){var i="",s="",o=0,a="",l=!1,c=N(t),u=c.split("\n"),h=N(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===_(t)&&"object"===_(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===u.length&&1===h.length&&u[0]!==h[0]){var f=u[0].length+h[0].length;if(f<=10){if(!("object"===_(t)&&null!==t||"object"===_(e)&&null!==e||0===t&&0===e))return"".concat(v[r],"\n\n")+"".concat(u[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&f<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][p]===h[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var T=u[u.length-1],y=h[h.length-1];T===y&&(p++<2?a="\n ".concat(T).concat(a):i=T,u.pop(),h.pop(),0!==u.length&&0!==h.length);)T=u[u.length-1],y=h[h.length-1];var S=Math.max(u.length,h.length);if(0===S){var R=c.split("\n");if(R.length>30)for(R[26]="".concat(x,"...").concat(m);R.length>27;)R.pop();return"".concat(v.notIdentical,"\n\n").concat(R.join("\n"),"\n")}p>3&&(a="\n".concat(x,"...").concat(m).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var b=0,A=v[r]+"\n".concat(g,"+ actual").concat(m," ").concat(E,"- expected").concat(m),C=" ".concat(x,"...").concat(m," Lines skipped");for(p=0;p<S;p++){var L=p-o;if(u.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(h[p-2]),b++),s+="\n ".concat(h[p-1]),b++),o=p,i+="\n".concat(E,"-").concat(m," ").concat(h[p]),b++;else if(h.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(u[p-2]),b++),s+="\n ".concat(u[p-1]),b++),o=p,s+="\n".concat(g,"+").concat(m," ").concat(u[p]),b++;else{var I=h[p],w=u[p],P=w!==I&&(!O(w,",")||w.slice(0,-1)!==I);P&&O(I,",")&&I.slice(0,-1)===w&&(P=!1,w+=","),P?(L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(m),l=!0):L>3&&(s+="\n ".concat(u[p-2]),b++),s+="\n ".concat(u[p-1]),b++),o=p,s+="\n".concat(g,"+").concat(m," ").concat(w),i+="\n".concat(E,"-").concat(m," ").concat(I),b+=2):(s+=i,i="",1!==L&&0!==p||(s+="\n ".concat(w),b++))}if(b>20&&p<S-2)return"".concat(A).concat(C,"\n").concat(s,"\n").concat(x,"...").concat(m).concat(i,"\n")+"".concat(x,"...").concat(m)}return"".concat(A).concat(l?C:"","\n").concat(s).concat(i).concat(a).concat(d)}(o,a,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var p=v[i],d=N(o).split("\n");if("notStrictEqual"===i&&"object"===_(o)&&null!==o&&(p=v.notStrictEqualObject),d.length>30)for(d[26]="".concat(x,"...").concat(m);d.length>27;)d.pop();e=1===d.length?h.call(this,"".concat(p," ").concat(d[0])):h.call(this,"".concat(p,"\n\n").concat(d.join("\n"),"\n"))}else{var f=N(o),T="",b=v[i];"notDeepEqual"===i||"notEqual"===i?(f="".concat(v[i],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(T="".concat(N(a)),f.length>512&&(f="".concat(f.slice(0,509),"...")),T.length>512&&(T="".concat(T.slice(0,509),"...")),"deepEqual"===i||"equal"===i?f="".concat(b,"\n\n").concat(f,"\n\nshould equal\n\n"):T=" ".concat(i," ").concat(T)),e=h.call(this,"".concat(f).concat(T))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=o,e.expected=a,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(e),s),e.stack,e.name="AssertionError",l(e)}return a=R,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return T(this,s(s({},e),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),R}(u(Error),T.custom);t.exports=R},3972:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._channel),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerChannelAction=a},4016:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;const i=r(7037),s=r(6889),o=r(8016),a=r(2399);class l extends o.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new s.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},4035:(t,e,r)=>{"use strict";var n,i=r(6556),s=r(9092)(),o=r(9957),a=r(5795);if(s){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},h={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=u),n=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!o(e,"value"))return!1;try{l(t,h)}catch(t){return t===c}}}else{var p=i("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===p(t)}}t.exports=n},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4133:(t,e,r)=>{"use strict";var n=r(487),i=r(8452),s=r(3003),o=r(6642),a=r(2464),l=n(o(),Number);i(l,{getPolyfill:o,implementation:s,shim:a}),t.exports=l},4148:(t,e,r)=>{"use strict";var n=r(5606);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t){if("object"!==i(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}var l,c,u=r(9597).codes,h=u.ERR_AMBIGUOUS_ARGUMENT,p=u.ERR_INVALID_ARG_TYPE,d=u.ERR_INVALID_ARG_VALUE,f=u.ERR_INVALID_RETURN_VALUE,_=u.ERR_MISSING_ARGS,T=r(3918),y=r(537).inspect,O=r(537).types,x=O.isPromise,g=O.isRegExp,E=r(9133)(),m=r(9394)(),v=r(8075)("RegExp.prototype.test");function S(){var t=r(2299);l=t.isDeepEqual,c=t.isDeepStrictEqual}new Map;var N=!1,R=t.exports=L,b={};function A(t){if(t.message instanceof Error)throw t.message;throw new T(t)}function C(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var s=new T({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw s.generatedMessage=i,s}}function L(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[L,e.length].concat(e))}R.fail=function t(e,r,i,s,o){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=e,e=void 0):(!1===N&&(N=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(s="!=")),i instanceof Error)throw i;var c={actual:e,expected:r,operator:void 0===s?"fail":s,stackStartFn:o||t};void 0!==i&&(c.message=i);var u=new T(c);throw a&&(u.message=a,u.generatedMessage=!0),u},R.AssertionError=T,R.ok=L,R.equal=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");e!=r&&A({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},R.notEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");e==r&&A({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},R.deepEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),l(e,r)||A({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},R.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),l(e,r)&&A({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},R.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),c(e,r)||A({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},R.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");void 0===l&&S(),c(e,r)&&A({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},R.strictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");m(e,r)||A({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},R.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new _("actual","expected");m(e,r)&&A({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var I=o(function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach(function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&g(e[t])&&v(e[t],n[t])?i[t]=n[t]:i[t]=e[t])})});function w(t,e,r,n){if("function"!=typeof e){if(g(e))return v(e,t);if(2===arguments.length)throw new p("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new T({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw s.operator=n.name,s}var o=Object.keys(e);if(e instanceof Error)o.push("name","message");else if(0===o.length)throw new d("error",e,"may not be an empty object");return void 0===l&&S(),o.forEach(function(i){"string"==typeof t[i]&&g(e[i])&&v(e[i],t[i])||function(t,e,r,n,i,s){if(!(r in t)||!c(t[r],e[r])){if(!n){var o=new I(t,i),a=new I(e,i,t),l=new T({actual:o,expected:a,operator:"deepStrictEqual",stackStartFn:s});throw l.actual=t,l.expected=e,l.operator=s.name,l}A({actual:t,expected:e,message:n,operator:s.name,stackStartFn:s})}}(t,e,i,r,o,n)}),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function P(t){if("function"!=typeof t)throw new p("fn","Function",t);try{t()}catch(t){return t}return b}function K(t){return x(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function k(t){return Promise.resolve().then(function(){var e;if("function"==typeof t){if(!K(e=t()))throw new f("instance of Promise","promiseFn",e)}else{if(!K(t))throw new p("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then(function(){return e}).then(function(){return b}).catch(function(t){return t})})}function D(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new h("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new h("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(e===b){var s="";r&&r.name&&(s+=" (".concat(r.name,")")),s+=n?": ".concat(n):".";var o="rejects"===t.name?"rejection":"exception";A({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(o).concat(s),stackStartFn:t})}if(r&&!w(e,r,n,t))throw e}function M(t,e,r,n){if(e!==b){if("string"==typeof r&&(n=r,r=void 0),!r||w(e,r)){var i=n?": ".concat(n):".",s="doesNotReject"===t.name?"rejection":"exception";A({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(s).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function U(t,e,r,n,s){if(!g(e))throw new p("regexp","RegExp",e);var o="match"===s;if("string"!=typeof t||v(e,t)!==o){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(i(t)," (").concat(y(t),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(e),". Input:\n\n").concat(y(t),"\n"));var l=new T({actual:t,expected:e,message:r,operator:s,stackStartFn:n});throw l.generatedMessage=a,l}}function F(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];C.apply(void 0,[F,e.length].concat(e))}R.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];D.apply(void 0,[t,P(e)].concat(n))},R.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(e).then(function(e){return D.apply(void 0,[t,e].concat(n))})},R.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];M.apply(void 0,[t,P(e)].concat(n))},R.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(e).then(function(e){return M.apply(void 0,[t,e].concat(n))})},R.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=y(e);var n=new T({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),s=e.stack;if("string"==typeof s){var o=s.split("\n");o.shift();for(var a=n.stack.split("\n"),l=0;l<o.length;l++){var c=a.indexOf(o[l]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw n}},R.match=function t(e,r,n){U(e,r,n,t,"match")},R.doesNotMatch=function t(e,r,n){U(e,r,n,t,"doesNotMatch")},R.strict=E(F,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict},4197:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;const i=r(2399),s=r(360),o=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of o.Trees.getChildren(t))r instanceof s.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},4233:t=>{"use strict";const e=function*(){}.constructor;t.exports=()=>e},4241:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,o.NotNull),i(2,o.NotNull)],a),e.ErrorInfo=a},4274:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;const s=r(3907),o=r(3074),a=r(3357),l=r(9803),c=r(9462),u=r(2399),h=r(8055),p=r(8859),d=r(7760),f=r(4148);let _=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new s.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new o.DFA(this.decisionToState[t],t);this.modeToDFA=new Array(this.modeToStartState.length);for(let t=0;t<this.modeToDFA.length;t++)this.modeToDFA[t]=new o.DFA(this.modeToStartState[t]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(t){return p.PredictionContext.getCachedContext(t,this.contextCache,new p.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return f(null!=this.decisionToDFA&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(t,e){return e?new c.LL1Analyzer(this).LOOK(t,e):(t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokens(t,p.PredictionContext.EMPTY_LOCAL),t.nextTokenWithinRule.setReadonly(!0)),t.nextTokenWithinRule)}addState(t){t.atn=this,t.stateNumber=this.states.length,this.states.push(t)}removeState(t){let e=new l.InvalidState;e.atn=this,e.stateNumber=t.stateNumber,this.states[t.stateNumber]=e}defineMode(t,e){this.modeNameToStartState.set(t,e),this.modeToStartState.push(e),this.modeToDFA.push(new o.DFA(e)),this.defineDecisionState(e)}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new o.DFA(t,t.decision)),t.decision}getDecisionState(t){if(this.decisionToState.length>0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(d.Token.EPSILON))return i;let s=new a.IntervalSet;for(s.addAll(i),s.remove(d.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(d.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),s.addAll(i),s.remove(d.Token.EPSILON),r=r._parent}return i.contains(d.Token.EPSILON)&&s.add(d.Token.EOF),s}};n([u.NotNull],_.prototype,"states",void 0),n([u.NotNull],_.prototype,"decisionToState",void 0),n([u.NotNull],_.prototype,"modeNameToStartState",void 0),n([u.NotNull],_.prototype,"modeToStartState",void 0),n([u.NotNull],_.prototype,"decisionToDFA",void 0),n([u.NotNull],_.prototype,"modeToDFA",void 0),n([u.NotNull],_.prototype,"nextTokens",null),n([i(0,u.NotNull)],_.prototype,"removeState",null),n([i(0,u.NotNull),i(1,u.NotNull)],_.prototype,"defineMode",null),n([i(0,u.NotNull)],_.prototype,"defineDecisionState",null),n([u.NotNull],_.prototype,"getExpectedTokens",null),_=n([i(0,u.NotNull)],_),e.ATN=_,function(t){t.INVALID_ALT_NUMBER=0}(_=e.ATN||(e.ATN={})),e.ATN=_},4275:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},4283:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,function(t){t.INSTANCE=new t}(a=e.LexerPopModeAction||(e.LexerPopModeAction={}))},4364:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;const s=r(2399),o=r(1097);let a=class{constructor(t,e,r,n){this.outerContext=null!=t?t:o.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,s.NotNull)],a),e.SimulatorState=a},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4520:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._mode),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},4605:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},4650:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.WildcardTransition=a},4699:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeExprFreeVariableFinder=void 0;const n=r(5585),i=r(534),s=r(6684);function o(t){const e=new Set;for(const r of t.values())for(const t of r)e.add(t);return e}class a extends n.AbstractParseTreeVisitor{constructor(t){super(),this.instanceData=t}aggregateResult(t,e){if(!t)return e;if(!e)return t;for(const[r,n]of e.entries()){t.has(r)||t.set(r,new Set);const e=t.get(r);for(const t of n)e.add(t)}return t}addCtxToFreeVariableMap(t,e,r){e.has(t)||e.set(t,o(e));const n=e.get(t);if(void 0!==r)for(const t in r)n.add(t);return e}defaultResult(){return new Map}visitPredDecl(t){const e=this.visit(t.block());return this.addCtxToFreeVariableMap(t,e)}visitBlock(t){let e=this.defaultResult();for(const r of t.expr()){const t=this.visit(r);e=this.aggregateResult(e,t)}return this.addCtxToFreeVariableMap(t,e)}getNameListValues(t){if(t.COMMA_TOK()){const e=(0,i.getIdentifierName)(t.name()),r=this.getNameListValues(t.nameList());return r.add(e),r}return new Set([(0,i.getIdentifierName)(t.name())])}getQuantDeclVarNames(t){const e=t.nameList();return this.getNameListValues(e)}getQuantDeclListVarNames(t){if(t.COMMA_TOK()){const e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");const n=this.getQuantDeclVarNames(e),i=this.getQuantDeclListVarNames(r);for(const t of n)i.add(t);return i}return this.getQuantDeclVarNames(t.quantDecl())}visitExpr(t){if(t.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList");const e=this.getQuantDeclListVarNames(t.quantDeclList()),r=this.visit(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected to quantify over something!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");let i;i=void 0!==n.block()?this.visit(n.block()):this.visit(n.expr());const s=this.aggregateResult(i,r),a=o(s),l=new Set;for(const t of a)e.has(t)||l.add(t);return s.set(t,l),s}const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr1_5(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr2(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr3(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr4(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr5(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr6(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr7(t){const e=this.visit(t.expr8());return this.addCtxToFreeVariableMap(t,e)}visitExpr8(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr9(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr10(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr11(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr12(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr13(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr14(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr15(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr17(t){const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExpr18(t){if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");const e=this.getQuantDeclListVarNames(t.quantDeclList()),r=t.blockOrBar();if(void 0===r)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===r.BAR_TOK()||void 0===r.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");let n;n=void 0!==r.block()?this.visit(r.block()):this.visit(r.expr());const i=o(n),s=new Set;for(const t of i)e.has(t)||s.add(t);return n.set(t,s),n}const e=this.visitChildren(t);return this.addCtxToFreeVariableMap(t,e)}visitExprList(t){let e=this.defaultResult();if(t.COMMA_TOK()){if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");const r=this.visit(t.expr()),n=this.visit(t.exprList());e=this.aggregateResult(e,r),e=this.aggregateResult(e,n)}else{const r=this.visit(t.expr());e=this.aggregateResult(e,r)}return this.addCtxToFreeVariableMap(t,e)}visitName(t){const e=(0,i.getIdentifierName)(t);if("true"===e||"false"===e)return this.defaultResult();if(this.instanceData.getTypes().map(t=>t.id).includes(e))return this.defaultResult();for(const t of this.instanceData.getTypes())if(t.atoms.map(t=>t.id).includes(e))return this.defaultResult();for(const t of this.instanceData.getRelations())if(t.name===e)return this.defaultResult();if(s.SUPPORTED_BUILTINS.includes(e))return this.defaultResult();const r=this.defaultResult();return r.set(t,new Set([e])),r}}e.ForgeExprFreeVariableFinder=a},4776:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;const s=r(2399),o=r(7760);let a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return o.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([s.NotNull],a.prototype,"ruleName",null),n([s.Override],a.prototype,"channel",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"type",null),n([s.Override],a.prototype,"line",null),n([s.Override],a.prototype,"charPositionInLine",null),n([s.Override],a.prototype,"tokenIndex",null),n([s.Override],a.prototype,"startIndex",null),n([s.Override],a.prototype,"stopIndex",null),n([s.Override],a.prototype,"tokenSource",null),n([s.Override],a.prototype,"inputStream",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.RuleTagToken=a},4864:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;const s=r(7442),o=r(6776),a=r(5411),l=r(309),c=r(821),u=r(2399),h=r(9278),p=r(9274),d=r(1097),f=r(8571),_=r(5920),T=r(9449),y=r(5378),O=r(4776),x=r(9086),g=r(360),E=r(6947),m=r(7760),v=r(3303);class S{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new c.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new c.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r=this.tokenize(t),n=new l.ListTokenSource(r),i=new a.CommonTokenStream(n);const o=this._parser;let c,u=new p.ParserInterpreter(o.grammarFileName,o.vocabulary,o.ruleNames,o.getATNWithBypassAlts(),i);try{u.errorHandler=new s.BailErrorStrategy,c=u.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof T.RecognitionException?t:t instanceof Error?new S.CannotInvokeStartRule(t):t}if(i.LA(1)!==m.Token.EOF)throw new S.StartRuleDoesNotConsumeFullPattern;return new _.ParseTreePattern(this,t,e,c)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof g.TerminalNode&&e instanceof g.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof v.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);const i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof d.ParserRuleContext&&e instanceof d.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);const e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let s=t.childCount;for(let n=0;n<s;n++){let i=this.matchImpl(t.getChild(n),e.getChild(n),r);if(i)return i}return n}return t}getRuleTagToken(t){if(t instanceof y.RuleNode&&1===t.childCount&&t.getChild(0)instanceof g.TerminalNode){let e=t.getChild(0);if(e.symbol instanceof O.RuleTagToken)return e.symbol}}tokenize(t){let e=this.split(t),r=[];for(let n of e)if(n instanceof x.TagChunk){let e=n;const i=e.tag.substr(0,1);if(i===i.toUpperCase()){let n=this._parser.getTokenType(e.tag);if(n===m.Token.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);let i=new v.TokenTagToken(e.tag,n,e.label);r.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{let n=this._parser.getRuleIndex(e.tag);if(-1===n)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);let i=this._parser.getATNWithBypassAlts().ruleToTokenType[n];r.push(new O.RuleTagToken(e.tag,i,e.label))}}}else{let t=n;this._lexer.inputStream=o.CharStreams.fromString(t.text);let e=this._lexer.nextToken();for(;e.type!==m.Token.EOF;)r.push(e),e=this._lexer.nextToken()}return r}split(t){let e=0,r=t.length,n=[],i=[],s=[];for(;e<r;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(s.push(e),e+=this.stop.length):e++;if(i.length>s.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<s.length)throw new Error("missing start tag in pattern: "+t);let o=i.length;for(let e=0;e<o;e++)if(i[e]>=s[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===o){let e=t.substring(0,r);n.push(new E.TextChunk(e))}if(o>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new E.TextChunk(e))}for(let e=0;e<o;e++){let r,a=t.substring(i[e]+this.start.length,s[e]),l=a,c=a.indexOf(":");if(c>=0&&(r=a.substring(0,c),l=a.substring(c+1,a.length)),n.push(new x.TagChunk(l,r)),e+1<o){let r=t.substring(s[e]+this.stop.length,i[e+1]);n.push(new E.TextChunk(r))}}if(o>0){let e=s[o-1]+this.stop.length;if(e<r){let i=t.substring(e,r);n.push(new E.TextChunk(i))}}for(let t=0;t<n.length;t++){let e=n[t];if(e instanceof E.TextChunk){let r=e.text.replace(this.escapeRE,"");r.length<e.text.length&&(n[t]=new E.TextChunk(r))}}return n}}n([u.NotNull,i(1,u.NotNull)],S.prototype,"match",null),n([u.NotNull],S.prototype,"lexer",null),n([u.NotNull],S.prototype,"parser",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],S.prototype,"matchImpl",null),e.ParseTreePatternMatcher=S,function(t){class e extends Error{constructor(t){super(`CannotInvokeStartRule: ${t}`),this.error=t}}t.CannotInvokeStartRule=e;class r extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}t.StartRuleDoesNotConsumeFullPattern=r}(S=e.ParseTreePatternMatcher||(e.ParseTreePatternMatcher={}))},4891:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},5116:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5288:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),o=0;o<r.length;o++)"default"!==r[o]&&i(e,t,r[o]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.ForgeLexer=void 0;const a=r(493),l=r(2807),c=r(1088),u=r(7435),h=o(r(659));class p extends l.Lexer{get vocabulary(){return p.VOCABULARY}constructor(t){super(t),this._interp=new c.LexerATNSimulator(p._ATN,this)}get grammarFileName(){return"ForgeLexer.g4"}get ruleNames(){return p.ruleNames}get serializedATN(){return p._serializedATN}get channelNames(){return p.channelNames}get modeNames(){return p.modeNames}static get _ATN(){return p.__ATN||(p.__ATN=(new a.ATNDeserializer).deserialize(h.toCharArray(p._serializedATN))),p.__ATN}}e.ForgeLexer=p,p.OPEN_TOK=1,p.LEFT_SQUARE_TOK=2,p.RIGHT_SQUARE_TOK=3,p.AS_TOK=4,p.STRING_TOK=5,p.VAR_TOK=6,p.ABSTRACT_TOK=7,p.SIG_TOK=8,p.LEFT_CURLY_TOK=9,p.RIGHT_CURLY_TOK=10,p.EXTENDS_TOK=11,p.IN_TOK=12,p.PLUS_TOK=13,p.LONE_TOK=14,p.SOME_TOK=15,p.ONE_TOK=16,p.TWO_TOK=17,p.SET_TOK=18,p.FUNC_TOK=19,p.PFUNC_TOK=20,p.DISJ_TOK=21,p.COLON_TOK=22,p.WHEAT_TOK=23,p.PRED_TOK=24,p.DOT_TOK=25,p.FUN_TOK=26,p.LEFT_PAREN_TOK=27,p.RIGHT_PAREN_TOK=28,p.ASSERT_TOK=29,p.RUN_TOK=30,p.CHECK_TOK=31,p.FOR_TOK=32,p.BUT_TOK=33,p.EXACTLY_TOK=34,p.NONE_TOK=35,p.UNIV_TOK=36,p.IDEN_TOK=37,p.MINUS_TOK=38,p.IS_TOK=39,p.SAT_TOK=40,p.UNSAT_TOK=41,p.THEOREM_TOK=42,p.FORGE_ERROR_TOK=43,p.CHECKED_TOK=44,p.TEST_TOK=45,p.EXPECT_TOK=46,p.SUITE_TOK=47,p.BAR_TOK=48,p.ALL_TOK=49,p.SUFFICIENT_TOK=50,p.NECESSARY_TOK=51,p.CONSISTENT_TOK=52,p.INCONSISTENT_TOK=53,p.WITH_TOK=54,p.LET_TOK=55,p.BIND_TOK=56,p.OR_TOK=57,p.XOR_TOK=58,p.IFF_TOK=59,p.IMP_TOK=60,p.ELSE_TOK=61,p.AND_TOK=62,p.NEG_TOK=63,p.CARD_TOK=64,p.PPLUS_TOK=65,p.AMP_TOK=66,p.SUBT_TOK=67,p.SUPT_TOK=68,p.TILDE_TOK=69,p.EXP_TOK=70,p.STAR_TOK=71,p.AT_TOK=72,p.BACKQUOTE_TOK=73,p.THIS_TOK=74,p.SEXPR_TOK=75,p.INST_TOK=76,p.EVAL_TOK=77,p.EXAMPLE_TOK=78,p.ARROW_TOK=79,p.GET_LABEL_TOK=80,p.GET_LABEL_STR_TOK=81,p.GET_LABEL_BOOL_TOK=82,p.GET_LABEL_NUM_TOK=83,p.EQ_TOK=84,p.LT_TOK=85,p.GT_TOK=86,p.LEQ_TOK=87,p.GEQ_TOK=88,p.NI_TOK=89,p.NO_TOK=90,p.SUM_TOK=91,p.INT_TOK=92,p.OPTION_TOK=93,p.COMMA_TOK=94,p.SLASH_TOK=95,p.NUM_CONST_TOK=96,p.QUOTED_IDENTIFIER_TOK=97,p.IDENTIFIER_TOK=98,p.WS=99,p.CCOMMENT=100,p.COMMENT=101,p.MULTCOMMENT=102,p.LANG_DECL=103,p.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],p.modeNames=["DEFAULT_MODE"],p.ruleNames=["OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","NEG_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],p._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,void 0,"'#'","'++'","'&'","'<:'","':>'","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],p._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","NEG_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],p.VOCABULARY=new u.VocabularyImpl(p._LITERAL_NAMES,p._SYMBOLIC_NAMES,[]),p._serializedATNSegments=2,p._serializedATNSegment0='줝쪺֍꾺体؇쉁i˰\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thâ\n\få\v\b\b\b\b\b\b\b\b\b\t\t\t\t\n\n\v\v\f\f\f\f\f\f\f\f\r\r\r      !!!!""""########$$$$$%%%%%&&&&&\'\'((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::Ǻ\n:;;;;<<<<<<<Ȇ\n<==========ȑ\n=>>>>>??????ȝ\n?@@@@@ȣ\n@AABBBCCDDDEEEFFGGHHIIJJKKKKKLLLLLLMMMMMNNNNNOOOOOOOOPPPQQQRRRRRRSSSSSSSTTTTTTUUVVWWXXXXXɼ\nXYYYZZZ[[[\\\\\\\\]]]]^^^^^^^__``aaʛ\na\raaʜaaaʡ\na\raaʢaʥ\nabbbbbʫ\nb\rbbʬbbcccʳ\nc\fccʶ\vcddʹ\nd\rddʺddeeeee˃\ne\feeˆ\veeefffffˎ\nf\fffˑ\vfffggggg˙\ng\fgg˜\vgggggghhhhhhhh˪\nh\fhh˭\vhhh˚i\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u<w=y>{?}@ABƒC…D‡E‰F‹GHI‘J“K•L—M™N›OPŸQ¡R£S¥T§U©V«W­X¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍhÏi\t$$^^2;^^bb&&11C\\aac|&&1;C\\aac|\v\f""\f\f̂\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÑÖØ\tÚ\vÝ\rèìõùûýąĈĊď!Ĕ#Ę%Ĝ\'Ġ)ĥ+ī-İ/IJ1ĸ3Ľ5Ŀ7Ń9Ņ;Ň=Ŏ?ŒAŘCŜEŠGŨIŭKŲMŷOŹQżSƀUƆWƎYƚ[Ƣ]Ƨ_ƮaƴcƶeƺgDžiǏkǚmǧoǬqǰsǹuǻwȅyȐ{Ȓ}ȜȢȤƒȦ…ȩ‡ȫ‰Ȯ‹ȱȳȵ‘ȷ“ȹ•Ȼ—ɀ™Ɇ›ɋɐŸɘ¡ɛ£ɞ¥ɤ§ɫ©ɱ«ɳ­ɵ¯ɻ±ɽ³ʀµʃ·ʆ¹ʊ»ʎ½ʕ¿ʗÁʚÃʦÅʰÇʸÉʾËˉÍ˔ÏˢÑÒqÒÓrÓÔgÔÕpÕÖ×]רÙ_Ù\bÚÛcÛÜuÜ\nÝã$Þâ\nßà^àâ\váÞáßâåãáãääæåãæç$ç\fèéxéêcêëtëìícíîdîïuïðvðñtñòcòóeóôvôõöuö÷k÷øiøùú}úûüüýþgþÿzÿĀvĀāgāĂpĂăfăĄuĄąĆkĆćpćĈĉ-ĉĊċnċČqČčpčĎgĎďĐuĐđqđĒoĒēgē ĔĕqĕĖpĖėgė"ĘęvęĚyĚěqě$ĜĝuĝĞgĞğvğ&ĠġhġĢwĢģpģĤeĤ(ĥĦrĦħhħĨwĨĩpĩĪeĪ*īĬfĬĭkĭĮuĮįlį,İı<ı.IJijyijĴjĴĵgĵĶcĶķvķ0ĸĹrĹĺtĺĻgĻļfļ2Ľľ0ľ4ĿŀhŀŁwŁłpł6Ńń*ń8Ņņ+ņ:ŇňcňʼnuʼnŊuŊŋgŋŌtŌōvō<ŎŏtŏŐwŐőpő>ŒœeœŔjŔŕgŕŖeŖŗmŗ@ŘřhřŚqŚśtśBŜŝdŝŞwŞşvşDŠšgšŢzŢţcţŤeŤťvťŦnŦŧ{ŧFŨũpũŪqŪūpūŬgŬHŭŮwŮůpůŰkŰűxűJŲųkųŴfŴŵgŵŶpŶLŷŸ/ŸNŹźkźŻuŻPżŽuŽžcžſvſRƀƁwƁƂpƂƃuƃƄcƄƅvƅTƆƇvƇƈjƈƉgƉƊqƊƋtƋƌgƌƍoƍVƎƏhƏƐqƐƑtƑƒiƒƓgƓƔaƔƕgƕƖtƖƗtƗƘqƘƙtƙXƚƛeƛƜjƜƝgƝƞeƞƟmƟƠgƠơfơZƢƣvƣƤgƤƥuƥƦvƦ\\ƧƨgƨƩzƩƪrƪƫgƫƬeƬƭvƭ^ƮƯuƯưwưƱkƱƲvƲƳgƳ`ƴƵ~ƵbƶƷcƷƸnƸƹnƹdƺƻuƻƼwƼƽhƽƾhƾƿkƿǀeǀǁkǁǂgǂǃpǃDŽvDŽfDždžpdžLJgLJLjeLjljgljNJuNJNjuNjnjcnjǍtǍǎ{ǎhǏǐeǐǑqǑǒpǒǓuǓǔkǔǕuǕǖvǖǗgǗǘpǘǙvǙjǚǛkǛǜpǜǝeǝǞqǞǟpǟǠuǠǡkǡǢuǢǣvǣǤgǤǥpǥǦvǦlǧǨyǨǩkǩǪvǪǫjǫnǬǭnǭǮgǮǯvǯpǰDZdDZDzkDzdzpdzǴfǴrǵǶ~ǶǺ~ǷǸqǸǺtǹǵǹǷǺtǻǼzǼǽqǽǾtǾvǿȀ>Ȁȁ?ȁȆ@Ȃȃk',p._serializedATNSegment1="ȃȄhȄȆhȅǿȅȂȆxȇȈkȈȉoȉȊrȊȋnȋȌkȌȍgȍȑuȎȏ?ȏȑ@ȐȇȐȎȑzȒȓgȓȔnȔȕuȕȖgȖ|ȗȘ(Șȝ(șȚcȚțpțȝfȜȗȜșȝ~Ȟȣ#ȟȠpȠȡqȡȣvȢȞȢȟȣ€Ȥȥ%ȥ‚Ȧȧ-ȧȨ-Ȩ„ȩȪ(Ȫ†ȫȬ>Ȭȭ<ȭˆȮȯ<ȯȰ@ȰŠȱȲ€ȲŒȳȴ`ȴŽȵȶ,ȶȷȸBȸ’ȹȺbȺ”ȻȼvȼȽjȽȾkȾȿuȿ–ɀɁuɁɂgɂɃzɃɄrɄɅtɅ˜ɆɇkɇɈpɈɉuɉɊvɊšɋɌgɌɍxɍɎcɎɏnɏœɐɑgɑɒzɒɓcɓɔoɔɕrɕɖnɖɗgɗžɘə/əɚ@ɚ ɛɜBɜɝ<ɝ¢ɞɟBɟɠuɠɡvɡɢtɢɣ<ɣ¤ɤɥBɥɦdɦɧqɧɨqɨɩnɩɪ<ɪ¦ɫɬBɬɭpɭɮwɮɯoɯɰ<ɰ¨ɱɲ?ɲªɳɴ>ɴ¬ɵɶ@ɶ®ɷɸ>ɸɼ?ɹɺ?ɺɼ>ɻɷɻɹɼ°ɽɾ@ɾɿ?ɿ²ʀʁpʁʂkʂ´ʃʄpʄʅqʅ¶ʆʇuʇʈwʈʉoʉ¸ʊʋKʋʌpʌʍvʍºʎʏqʏʐrʐʑvʑʒkʒʓqʓʔpʔ¼ʕʖ.ʖ¾ʗʘ1ʘÀʙʛ\tʚʙʛʜʜʚʜʝʝʤʞʠ0ʟʡ\tʠʟʡʢʢʠʢʣʣʥʤʞʤʥʥÂʦʪbʧʫ\nʨʩ^ʩʫ\vʪʧʪʨʫʬʬʪʬʭʭʮʮʯbʯÄʰʴ\tʱʳ\tʲʱʳʶʴʲʴʵʵÆʶʴʷʹ\tʸʷʹʺʺʸʺʻʻʼʼʽ\bdʽÈʾʿ1ʿˀ1ˀ˄ˁ˃\n\b˂ˁ˃ˆ˄˂˄˅˅ˇˆ˄ˇˈ\beˈÊˉˊ/ˊˋ/ˋˏˌˎ\n\bˍˌˎˑˏˍˏːː˒ˑˏ˒˓\bf˓Ì˔˕1˕˖,˖˚˗˙\v˘˗˙˜˚˛˚˘˛˝˜˚˝˞,˞˟1˟ˠˠˡ\bgˡÎˢˣ%ˣˤnˤ˥c˥˦p˦˧i˧˫˨˪\n\b˩˨˪˭˫˩˫ˬˬˮ˭˫ˮ˯\bh˯ÐáãǹȅȐȜȢɻʜʢʤʪʬʴʺ˄ˏ˚˫\b",p._serializedATN=h.join([p._serializedATNSegment0,p._serializedATNSegment1],"")},5345:t=>{"use strict";t.exports=URIError},5369:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;const s=r(3357),o=r(2399),a=r(1072);let l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return s.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([o.Override],l.prototype,"serializationType",null),n([o.Override,o.NotNull],l.prototype,"label",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.AtomTransition=l},5378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},5395:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),o=0;o<r.length;o++)"default"!==r[o]&&i(e,t,r[o]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.Expr1Context=e.ExprContext=e.ExprListContext=e.TypescopeListContext=e.LetDeclListContext=e.ArrowDeclListContext=e.QuantDeclListContext=e.ParaDeclListContext=e.QualNameListContext=e.NameListContext=e.NameContext=e.OptionDeclContext=e.QualNameContext=e.QuantContext=e.BlockOrBarContext=e.BlockContext=e.LetDeclContext=e.CompareOpContext=e.ArrowOpContext=e.TestConstructContext=e.TestSuiteDeclContext=e.ConsistencyDeclContext=e.PropertyDeclContext=e.QuantifiedPropertyDeclContext=e.SatisfiabilityDeclContext=e.ConstContext=e.TypescopeContext=e.ScopeContext=e.TestBlockContext=e.TestExpectDeclContext=e.TestDeclContext=e.CmdDeclContext=e.AssertDeclContext=e.ParaDeclsContext=e.FunDeclContext=e.PredTypeContext=e.ArrowDeclContext=e.QuantDeclContext=e.ParaDeclContext=e.HelperMultContext=e.ArrowMultContext=e.MultContext=e.SigExtContext=e.SigDeclContext=e.ParagraphContext=e.ImportDeclContext=e.AlloyModuleContext=e.ParseExprContext=e.PredDeclContext=e.ForgeParser=void 0,e.BindRHSProductBaseContext=e.BindRHSProductContext=e.BindRHSUnionContext=e.BoundLHSContext=e.BoundContext=e.AtomNameOrNumberContext=e.BoundsContext=e.NumberContext=e.NumberListContext=e.QueryDeclContext=e.ExampleDeclContext=e.EvalDeclContext=e.EvalRelDeclContext=e.InstDeclContext=e.SexprContext=e.SexprDeclContext=e.ArrowExprContext=e.Expr18Context=e.Expr17Context=e.Expr15Context=e.Expr14Context=e.Expr13Context=e.Expr12Context=e.Expr11Context=e.Expr10Context=e.Expr9Context=e.Expr8Context=e.Expr7Context=e.Expr6Context=e.Expr5Context=e.Expr4Context=e.Expr3Context=e.Expr2Context=e.Expr1_5Context=void 0;const a=r(4274),l=r(493),c=r(2262),u=r(755),h=r(5922),p=r(1097),d=r(3161),f=r(9449),_=r(7760),T=r(7435),y=o(r(659));class O extends h.Parser{get vocabulary(){return O.VOCABULARY}get grammarFileName(){return"Forge.g4"}get ruleNames(){return O.ruleNames}get serializedATN(){return O._serializedATN}createFailedPredicateException(t,e){return new c.FailedPredicateException(this,t,e)}constructor(t){super(t),this._interp=new d.ParserATNSimulator(O._ATN,this)}predDecl(){let t,e=new x(this._ctx,this.state);this.enterRule(e,0,O.RULE_predDecl);try{this.enterOuterAlt(e,1),this.state=166,this.match(O.PRED_TOK),this.state=168,this._errHandler.sync(this),t=this._input.LA(1),t===O.WHEAT_TOK&&(this.state=167,this.predType()),this.state=173,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,1,this._ctx)&&(this.state=170,this.qualName(),this.state=171,this.match(O.DOT_TOK)),this.state=175,this.name(),this.state=177,this._errHandler.sync(this),t=this._input.LA(1),t!==O.LEFT_SQUARE_TOK&&t!==O.LEFT_PAREN_TOK||(this.state=176,this.paraDecls()),this.state=179,this.block()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parseExpr(){let t=new g(this._ctx,this.state);this.enterRule(t,2,O.RULE_parseExpr);try{this.enterOuterAlt(t,1),this.state=181,this.expr(),this.state=182,this.match(O.EOF)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}alloyModule(){let t,e=new E(this._ctx,this.state);this.enterRule(e,4,O.RULE_alloyModule);try{switch(this.state=202,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,6,this._ctx)){case 1:for(this.enterOuterAlt(e,1),this.state=187,this._errHandler.sync(this),t=this._input.LA(1);t===O.OPEN_TOK;)this.state=184,this.importDecl(),this.state=189,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=193,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&(1<<O.VAR_TOK|1<<O.ABSTRACT_TOK|1<<O.SIG_TOK|1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.PRED_TOK|1<<O.FUN_TOK|1<<O.ASSERT_TOK|1<<O.RUN_TOK|1<<O.CHECK_TOK)||!(t-45&-32)&&1<<t-45&(1<<O.TEST_TOK-45|1<<O.EXPECT_TOK-45|1<<O.SEXPR_TOK-45|1<<O.INST_TOK-45)||!(t-78&-32)&&1<<t-78&(1<<O.EXAMPLE_TOK-78|1<<O.OPTION_TOK-78|1<<O.QUOTED_IDENTIFIER_TOK-78|1<<O.IDENTIFIER_TOK-78);)this.state=190,this.paragraph(),this.state=195,this._errHandler.sync(this),t=this._input.LA(1);break;case 2:for(this.enterOuterAlt(e,2),this.state=199,this._errHandler.sync(this),t=this._input.LA(1);t===O.EVAL_TOK;)this.state=196,this.evalDecl(),this.state=201,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDecl(){let t,e=new m(this._ctx,this.state);this.enterRule(e,6,O.RULE_importDecl);try{switch(this.state=222,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,10,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=204,this.match(O.OPEN_TOK),this.state=205,this.qualName(),this.state=210,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_SQUARE_TOK&&(this.state=206,this.match(O.LEFT_SQUARE_TOK),this.state=207,this.qualNameList(),this.state=208,this.match(O.RIGHT_SQUARE_TOK)),this.state=214,this._errHandler.sync(this),t=this._input.LA(1),t===O.AS_TOK&&(this.state=212,this.match(O.AS_TOK),this.state=213,this.name());break;case 2:this.enterOuterAlt(e,2),this.state=216,this.match(O.OPEN_TOK),this.state=217,this.match(O.STRING_TOK),this.state=220,this._errHandler.sync(this),t=this._input.LA(1),t===O.AS_TOK&&(this.state=218,this.match(O.AS_TOK),this.state=219,this.name())}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paragraph(){let t=new v(this._ctx,this.state);this.enterRule(t,8,O.RULE_paragraph);try{switch(this.state=241,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,11,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=224,this.sigDecl();break;case 2:this.enterOuterAlt(t,2),this.state=225,this.predDecl();break;case 3:this.enterOuterAlt(t,3),this.state=226,this.funDecl();break;case 4:this.enterOuterAlt(t,4),this.state=227,this.assertDecl();break;case 5:this.enterOuterAlt(t,5),this.state=228,this.cmdDecl();break;case 6:this.enterOuterAlt(t,6),this.state=229,this.testExpectDecl();break;case 7:this.enterOuterAlt(t,7),this.state=230,this.sexprDecl();break;case 8:this.enterOuterAlt(t,8),this.state=231,this.queryDecl();break;case 9:this.enterOuterAlt(t,9),this.state=232,this.evalRelDecl();break;case 10:this.enterOuterAlt(t,10),this.state=233,this.optionDecl();break;case 11:this.enterOuterAlt(t,11),this.state=234,this.instDecl();break;case 12:this.enterOuterAlt(t,12),this.state=235,this.exampleDecl();break;case 13:this.enterOuterAlt(t,13),this.state=236,this.propertyDecl();break;case 14:this.enterOuterAlt(t,14),this.state=237,this.quantifiedPropertyDecl();break;case 15:this.enterOuterAlt(t,15),this.state=238,this.satisfiabilityDecl();break;case 16:this.enterOuterAlt(t,16),this.state=239,this.consistencyDecl();break;case 17:this.enterOuterAlt(t,17),this.state=240,this.testSuiteDecl()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sigDecl(){let t,e=new S(this._ctx,this.state);this.enterRule(e,10,O.RULE_sigDecl);try{this.enterOuterAlt(e,1),this.state=244,this._errHandler.sync(this),t=this._input.LA(1),t===O.VAR_TOK&&(this.state=243,this.match(O.VAR_TOK)),this.state=247,this._errHandler.sync(this),t=this._input.LA(1),t===O.ABSTRACT_TOK&&(this.state=246,this.match(O.ABSTRACT_TOK)),this.state=250,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK)&&(this.state=249,this.mult()),this.state=252,this.match(O.SIG_TOK),this.state=253,this.nameList(),this.state=255,this._errHandler.sync(this),t=this._input.LA(1),t!==O.EXTENDS_TOK&&t!==O.IN_TOK||(this.state=254,this.sigExt()),this.state=257,this.match(O.LEFT_CURLY_TOK),this.state=259,this._errHandler.sync(this),t=this._input.LA(1),t!==O.VAR_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=258,this.arrowDeclList()),this.state=261,this.match(O.RIGHT_CURLY_TOK),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_CURLY_TOK&&(this.state=262,this.block())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sigExt(){let t,e=new N(this._ctx,this.state);this.enterRule(e,12,O.RULE_sigExt);try{switch(this.state=276,this._errHandler.sync(this),this._input.LA(1)){case O.EXTENDS_TOK:this.enterOuterAlt(e,1),this.state=265,this.match(O.EXTENDS_TOK),this.state=266,this.qualName();break;case O.IN_TOK:for(this.enterOuterAlt(e,2),this.state=267,this.match(O.IN_TOK),this.state=268,this.qualName(),this.state=273,this._errHandler.sync(this),t=this._input.LA(1);t===O.PLUS_TOK;)this.state=269,this.match(O.PLUS_TOK),this.state=270,this.qualName(),this.state=275,this._errHandler.sync(this),t=this._input.LA(1);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mult(){let t,e=new R(this._ctx,this.state);this.enterRule(e,14,O.RULE_mult);try{this.enterOuterAlt(e,1),this.state=278,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}arrowMult(){let t,e=new b(this._ctx,this.state);this.enterRule(e,16,O.RULE_arrowMult);try{this.enterOuterAlt(e,1),this.state=280,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK|1<<O.FUNC_TOK|1<<O.PFUNC_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}helperMult(){let t,e=new A(this._ctx,this.state);this.enterRule(e,18,O.RULE_helperMult);try{this.enterOuterAlt(e,1),this.state=282,t=this._input.LA(1),-32&t||!(1<<t&(1<<O.LONE_TOK|1<<O.ONE_TOK|1<<O.SET_TOK|1<<O.FUNC_TOK|1<<O.PFUNC_TOK))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paraDecl(){let t,e=new C(this._ctx,this.state);this.enterRule(e,20,O.RULE_paraDecl);try{this.enterOuterAlt(e,1),this.state=285,this._errHandler.sync(this),t=this._input.LA(1),t===O.DISJ_TOK&&(this.state=284,this.match(O.DISJ_TOK)),this.state=287,this.nameList(),this.state=288,this.match(O.COLON_TOK),this.state=290,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,21,this._ctx)&&(this.state=289,this.helperMult()),this.state=292,this.expr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}quantDecl(){let t,e=new L(this._ctx,this.state);this.enterRule(e,22,O.RULE_quantDecl);try{this.enterOuterAlt(e,1),this.state=295,this._errHandler.sync(this),t=this._input.LA(1),t===O.DISJ_TOK&&(this.state=294,this.match(O.DISJ_TOK)),this.state=297,this.nameList(),this.state=298,this.match(O.COLON_TOK),this.state=300,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,23,this._ctx)&&(this.state=299,this.match(O.SET_TOK)),this.state=302,this.expr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}arrowDecl(){let t,e=new I(this._ctx,this.state);this.enterRule(e,24,O.RULE_arrowDecl);try{this.enterOuterAlt(e,1),this.state=305,this._errHandler.sync(this),t=this._input.LA(1),t===O.VAR_TOK&&(this.state=304,this.match(O.VAR_TOK)),this.state=307,this.nameList(),this.state=308,this.match(O.COLON_TOK),this.state=309,this.arrowMult(),this.state=310,this.arrowExpr()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}predType(){let t=new w(this._ctx,this.state);this.enterRule(t,26,O.RULE_predType);try{this.enterOuterAlt(t,1),this.state=312,this.match(O.WHEAT_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}funDecl(){let t,e=new P(this._ctx,this.state);this.enterRule(e,28,O.RULE_funDecl);try{this.enterOuterAlt(e,1),this.state=314,this.match(O.FUN_TOK),this.state=318,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,25,this._ctx)&&(this.state=315,this.qualName(),this.state=316,this.match(O.DOT_TOK)),this.state=320,this.name(),this.state=322,this._errHandler.sync(this),t=this._input.LA(1),t!==O.LEFT_SQUARE_TOK&&t!==O.LEFT_PAREN_TOK||(this.state=321,this.paraDecls()),this.state=324,this.match(O.COLON_TOK),this.state=326,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,27,this._ctx)&&(this.state=325,this.helperMult()),this.state=328,this.expr(),this.state=329,this.match(O.LEFT_CURLY_TOK),this.state=330,this.expr(),this.state=331,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paraDecls(){let t,e=new K(this._ctx,this.state);this.enterRule(e,30,O.RULE_paraDecls);try{switch(this.state=343,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_PAREN_TOK:this.enterOuterAlt(e,1),this.state=333,this.match(O.LEFT_PAREN_TOK),this.state=335,this._errHandler.sync(this),t=this._input.LA(1),t!==O.DISJ_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=334,this.paraDeclList()),this.state=337,this.match(O.RIGHT_PAREN_TOK);break;case O.LEFT_SQUARE_TOK:this.enterOuterAlt(e,2),this.state=338,this.match(O.LEFT_SQUARE_TOK),this.state=340,this._errHandler.sync(this),t=this._input.LA(1),t!==O.DISJ_TOK&&t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=339,this.paraDeclList()),this.state=342,this.match(O.RIGHT_SQUARE_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assertDecl(){let t,e=new k(this._ctx,this.state);this.enterRule(e,32,O.RULE_assertDecl);try{this.enterOuterAlt(e,1),this.state=345,this.match(O.ASSERT_TOK),this.state=347,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=346,this.name()),this.state=349,this.block()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}cmdDecl(){let t,e=new D(this._ctx,this.state);this.enterRule(e,34,O.RULE_cmdDecl);try{switch(this.enterOuterAlt(e,1),this.state=354,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=351,this.name(),this.state=352,this.match(O.COLON_TOK)),this.state=356,t=this._input.LA(1),t!==O.RUN_TOK&&t!==O.CHECK_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=359,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,33,this._ctx)){case 1:this.state=357,this.qualName();break;case 2:this.state=358,this.block()}this.state=362,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,34,this._ctx)&&(this.state=361,this.scope()),this.state=366,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=364,this.match(O.FOR_TOK),this.state=365,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testDecl(){let t,e=new M(this._ctx,this.state);this.enterRule(e,36,O.RULE_testDecl);try{switch(this.enterOuterAlt(e,1),this.state=371,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,36,this._ctx)&&(this.state=368,this.name(),this.state=369,this.match(O.COLON_TOK)),this.state=375,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.state=373,this.qualName();break;case O.LEFT_CURLY_TOK:this.state=374,this.block();break;default:throw new u.NoViableAltException(this)}this.state=378,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,38,this._ctx)&&(this.state=377,this.scope()),this.state=382,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=380,this.match(O.FOR_TOK),this.state=381,this.bounds()),this.state=384,this.match(O.IS_TOK),this.state=385,t=this._input.LA(1),t-40&-32||!(1<<t-40&(1<<O.SAT_TOK-40|1<<O.UNSAT_TOK-40|1<<O.THEOREM_TOK-40|1<<O.FORGE_ERROR_TOK-40|1<<O.CHECKED_TOK-40))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testExpectDecl(){let t,e=new U(this._ctx,this.state);this.enterRule(e,38,O.RULE_testExpectDecl);try{this.enterOuterAlt(e,1),this.state=388,this._errHandler.sync(this),t=this._input.LA(1),t===O.TEST_TOK&&(this.state=387,this.match(O.TEST_TOK)),this.state=390,this.match(O.EXPECT_TOK),this.state=392,this._errHandler.sync(this),t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK||(this.state=391,this.name()),this.state=394,this.testBlock()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testBlock(){let t,e=new F(this._ctx,this.state);this.enterRule(e,40,O.RULE_testBlock);try{for(this.enterOuterAlt(e,1),this.state=396,this.match(O.LEFT_CURLY_TOK),this.state=400,this._errHandler.sync(this),t=this._input.LA(1);t===O.LEFT_CURLY_TOK||!(t-74&-32)&&1<<t-74&(1<<O.THIS_TOK-74|1<<O.SUM_TOK-74|1<<O.INT_TOK-74|1<<O.QUOTED_IDENTIFIER_TOK-74|1<<O.IDENTIFIER_TOK-74);)this.state=397,this.testDecl(),this.state=402,this._errHandler.sync(this),t=this._input.LA(1);this.state=403,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}scope(){let t,e=new j(this._ctx,this.state);this.enterRule(e,42,O.RULE_scope);try{switch(this.state=413,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,44,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=405,this.match(O.FOR_TOK),this.state=406,this.number(),this.state=409,this._errHandler.sync(this),t=this._input.LA(1),t===O.BUT_TOK&&(this.state=407,this.match(O.BUT_TOK),this.state=408,this.typescopeList());break;case 2:this.enterOuterAlt(e,2),this.state=411,this.match(O.FOR_TOK),this.state=412,this.typescopeList()}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typescope(){let t,e=new H(this._ctx,this.state);this.enterRule(e,44,O.RULE_typescope);try{this.enterOuterAlt(e,1),this.state=416,this._errHandler.sync(this),t=this._input.LA(1),t===O.EXACTLY_TOK&&(this.state=415,this.match(O.EXACTLY_TOK)),this.state=418,this.number(),this.state=419,this.qualName()}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}const(){let t,e=new B(this._ctx,this.state);this.enterRule(e,46,O.RULE_const);try{switch(this.state=429,this._errHandler.sync(this),this._input.LA(1)){case O.NONE_TOK:this.enterOuterAlt(e,1),this.state=421,this.match(O.NONE_TOK);break;case O.UNIV_TOK:this.enterOuterAlt(e,2),this.state=422,this.match(O.UNIV_TOK);break;case O.IDEN_TOK:this.enterOuterAlt(e,3),this.state=423,this.match(O.IDEN_TOK);break;case O.MINUS_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(e,4),this.state=425,this._errHandler.sync(this),t=this._input.LA(1),t===O.MINUS_TOK&&(this.state=424,this.match(O.MINUS_TOK)),this.state=427,this.number();break;case O.STRING_TOK:this.enterOuterAlt(e,5),this.state=428,this.match(O.STRING_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}satisfiabilityDecl(){let t,e=new G(this._ctx,this.state);this.enterRule(e,48,O.RULE_satisfiabilityDecl);try{this.enterOuterAlt(e,1),this.state=431,this.match(O.ASSERT_TOK),this.state=432,this.expr(),this.state=433,this.match(O.IS_TOK),this.state=434,t=this._input.LA(1),t-40&-32||!(1<<t-40&(1<<O.SAT_TOK-40|1<<O.UNSAT_TOK-40|1<<O.FORGE_ERROR_TOK-40))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=436,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,48,this._ctx)&&(this.state=435,this.scope()),this.state=440,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=438,this.match(O.FOR_TOK),this.state=439,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}quantifiedPropertyDecl(){let t,e=new z(this._ctx,this.state);this.enterRule(e,50,O.RULE_quantifiedPropertyDecl);try{this.enterOuterAlt(e,1),this.state=442,this.match(O.ASSERT_TOK),this.state=443,this.match(O.ALL_TOK),this.state=445,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,50,this._ctx)&&(this.state=444,this.match(O.DISJ_TOK)),this.state=447,this.quantDeclList(),this.state=448,this.match(O.BAR_TOK),this.state=449,this.expr(),this.state=450,this.match(O.IS_TOK),this.state=451,t=this._input.LA(1),t!==O.SUFFICIENT_TOK&&t!==O.NECESSARY_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=452,this.match(O.FOR_TOK),this.state=453,this.name(),this.state=458,this._errHandler.sync(this),t=this._input.LA(1),t===O.LEFT_SQUARE_TOK&&(this.state=454,this.match(O.LEFT_SQUARE_TOK),this.state=455,this.exprList(),this.state=456,this.match(O.RIGHT_SQUARE_TOK)),this.state=461,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,52,this._ctx)&&(this.state=460,this.scope()),this.state=465,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=463,this.match(O.FOR_TOK),this.state=464,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}propertyDecl(){let t,e=new q(this._ctx,this.state);this.enterRule(e,52,O.RULE_propertyDecl);try{this.enterOuterAlt(e,1),this.state=467,this.match(O.ASSERT_TOK),this.state=468,this.expr(),this.state=469,this.match(O.IS_TOK),this.state=470,t=this._input.LA(1),t!==O.SUFFICIENT_TOK&&t!==O.NECESSARY_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=471,this.match(O.FOR_TOK),this.state=472,this.name(),this.state=474,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,54,this._ctx)&&(this.state=473,this.scope()),this.state=478,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=476,this.match(O.FOR_TOK),this.state=477,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}consistencyDecl(){let t,e=new V(this._ctx,this.state);this.enterRule(e,54,O.RULE_consistencyDecl);try{this.enterOuterAlt(e,1),this.state=480,this.match(O.ASSERT_TOK),this.state=481,this.expr(),this.state=482,this.match(O.IS_TOK),this.state=483,t=this._input.LA(1),t!==O.CONSISTENT_TOK&&t!==O.INCONSISTENT_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=484,this.match(O.WITH_TOK),this.state=485,this.name(),this.state=487,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,56,this._ctx)&&(this.state=486,this.scope()),this.state=491,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=489,this.match(O.FOR_TOK),this.state=490,this.bounds())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testSuiteDecl(){let t,e=new Y(this._ctx,this.state);this.enterRule(e,56,O.RULE_testSuiteDecl);try{for(this.enterOuterAlt(e,1),this.state=493,this.match(O.TEST_TOK),this.state=494,this.match(O.SUITE_TOK),this.state=495,this.match(O.FOR_TOK),this.state=496,this.name(),this.state=497,this.match(O.LEFT_CURLY_TOK),this.state=501,this._errHandler.sync(this),t=this._input.LA(1);!(t-29&-32)&&1<<t-29&(1<<O.ASSERT_TOK-29|1<<O.TEST_TOK-29|1<<O.EXPECT_TOK-29)||t===O.EXAMPLE_TOK;)this.state=498,this.testConstruct(),this.state=503,this._errHandler.sync(this),t=this._input.LA(1);this.state=504,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}testConstruct(){let t=new $(this._ctx,this.state);this.enterRule(t,58,O.RULE_testConstruct);try{switch(this.state=512,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,59,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=506,this.exampleDecl();break;case 2:this.enterOuterAlt(t,2),this.state=507,this.testExpectDecl();break;case 3:this.enterOuterAlt(t,3),this.state=508,this.quantifiedPropertyDecl();break;case 4:this.enterOuterAlt(t,4),this.state=509,this.propertyDecl();break;case 5:this.enterOuterAlt(t,5),this.state=510,this.satisfiabilityDecl();break;case 6:this.enterOuterAlt(t,6),this.state=511,this.consistencyDecl()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowOp(){let t=new Q(this._ctx,this.state);this.enterRule(t,60,O.RULE_arrowOp);try{switch(this.enterOuterAlt(t,1),this.state=516,this._errHandler.sync(this),this._input.LA(1)){case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.state=514,this.mult();break;case O.SET_TOK:this.state=515,this.match(O.SET_TOK);case O.ARROW_TOK:}switch(this.state=518,this.match(O.ARROW_TOK),this.state=521,this._errHandler.sync(this),this._input.LA(1)){case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.state=519,this.mult();break;case O.SET_TOK:this.state=520,this.match(O.SET_TOK);case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}compareOp(){let t,e=new W(this._ctx,this.state);this.enterRule(e,62,O.RULE_compareOp);try{this.enterOuterAlt(e,1),this.state=523,t=this._input.LA(1),t===O.IN_TOK||t===O.IS_TOK||!(t-84&-32)&&1<<t-84&(1<<O.EQ_TOK-84|1<<O.LT_TOK-84|1<<O.GT_TOK-84|1<<O.LEQ_TOK-84|1<<O.GEQ_TOK-84|1<<O.NI_TOK-84)?(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}letDecl(){let t=new X(this._ctx,this.state);this.enterRule(t,64,O.RULE_letDecl);try{this.enterOuterAlt(t,1),this.state=525,this.name(),this.state=526,this.match(O.EQ_TOK),this.state=527,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}block(){let t,e=new J(this._ctx,this.state);this.enterRule(e,66,O.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=529,this.match(O.LEFT_CURLY_TOK),this.state=533,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&(1<<O.STRING_TOK|1<<O.LEFT_CURLY_TOK|1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK|1<<O.LEFT_PAREN_TOK)||!(t-35&-32)&&1<<t-35&(1<<O.NONE_TOK-35|1<<O.UNIV_TOK-35|1<<O.IDEN_TOK-35|1<<O.MINUS_TOK-35|1<<O.ALL_TOK-35|1<<O.LET_TOK-35|1<<O.BIND_TOK-35|1<<O.NEG_TOK-35|1<<O.CARD_TOK-35)||!(t-69&-32)&&1<<t-69&(1<<O.TILDE_TOK-69|1<<O.EXP_TOK-69|1<<O.STAR_TOK-69|1<<O.AT_TOK-69|1<<O.BACKQUOTE_TOK-69|1<<O.THIS_TOK-69|1<<O.SEXPR_TOK-69|1<<O.GET_LABEL_TOK-69|1<<O.GET_LABEL_STR_TOK-69|1<<O.GET_LABEL_BOOL_TOK-69|1<<O.GET_LABEL_NUM_TOK-69|1<<O.NO_TOK-69|1<<O.SUM_TOK-69|1<<O.INT_TOK-69|1<<O.NUM_CONST_TOK-69|1<<O.QUOTED_IDENTIFIER_TOK-69|1<<O.IDENTIFIER_TOK-69);)this.state=530,this.expr(),this.state=535,this._errHandler.sync(this),t=this._input.LA(1);this.state=536,this.match(O.RIGHT_CURLY_TOK)}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}blockOrBar(){let t=new Z(this._ctx,this.state);this.enterRule(t,68,O.RULE_blockOrBar);try{switch(this.state=541,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_CURLY_TOK:this.enterOuterAlt(t,1),this.state=538,this.block();break;case O.BAR_TOK:this.enterOuterAlt(t,2),this.state=539,this.match(O.BAR_TOK),this.state=540,this.expr();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}quant(){let t=new tt(this._ctx,this.state);this.enterRule(t,70,O.RULE_quant);try{switch(this.state=547,this._errHandler.sync(this),this._input.LA(1)){case O.ALL_TOK:this.enterOuterAlt(t,1),this.state=543,this.match(O.ALL_TOK);break;case O.NO_TOK:this.enterOuterAlt(t,2),this.state=544,this.match(O.NO_TOK);break;case O.SUM_TOK:this.enterOuterAlt(t,3),this.state=545,this.match(O.SUM_TOK);break;case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:this.enterOuterAlt(t,4),this.state=546,this.mult();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}qualName(){let t,e=new et(this._ctx,this.state);this.enterRule(e,72,O.RULE_qualName);try{let r;switch(this.state=564,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:for(this.enterOuterAlt(e,1),this.state=551,this._errHandler.sync(this),t=this._input.LA(1),t===O.THIS_TOK&&(this.state=549,this.match(O.THIS_TOK),this.state=550,this.match(O.SLASH_TOK)),this.state=558,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,66,this._ctx);2!==r&&r!==a.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=553,this.name(),this.state=554,this.match(O.SLASH_TOK)),this.state=560,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,66,this._ctx);this.state=561,this.name();break;case O.INT_TOK:this.enterOuterAlt(e,2),this.state=562,this.match(O.INT_TOK);break;case O.SUM_TOK:this.enterOuterAlt(e,3),this.state=563,this.match(O.SUM_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}optionDecl(){let t,e=new rt(this._ctx,this.state);this.enterRule(e,74,O.RULE_optionDecl);try{switch(this.enterOuterAlt(e,1),this.state=566,this.match(O.OPTION_TOK),this.state=567,this.qualName(),this.state=574,this._errHandler.sync(this),this._input.LA(1)){case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.state=568,this.qualName();break;case O.STRING_TOK:this.state=569,this.match(O.STRING_TOK);break;case O.MINUS_TOK:case O.NUM_CONST_TOK:this.state=571,this._errHandler.sync(this),t=this._input.LA(1),t===O.MINUS_TOK&&(this.state=570,this.match(O.MINUS_TOK)),this.state=573,this.number();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}name(){let t,e=new nt(this._ctx,this.state);this.enterRule(e,76,O.RULE_name);try{this.enterOuterAlt(e,1),this.state=576,t=this._input.LA(1),t!==O.QUOTED_IDENTIFIER_TOK&&t!==O.IDENTIFIER_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameList(){let t=new it(this._ctx,this.state);this.enterRule(t,78,O.RULE_nameList);try{switch(this.state=583,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=578,this.name();break;case 2:this.enterOuterAlt(t,2),this.state=579,this.name(),this.state=580,this.match(O.COMMA_TOK),this.state=581,this.nameList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}qualNameList(){let t=new st(this._ctx,this.state);this.enterRule(t,80,O.RULE_qualNameList);try{switch(this.state=590,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=585,this.qualName();break;case 2:this.enterOuterAlt(t,2),this.state=586,this.qualName(),this.state=587,this.match(O.COMMA_TOK),this.state=588,this.qualNameList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}paraDeclList(){let t=new ot(this._ctx,this.state);this.enterRule(t,82,O.RULE_paraDeclList);try{switch(this.state=597,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,72,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=592,this.paraDecl();break;case 2:this.enterOuterAlt(t,2),this.state=593,this.paraDecl(),this.state=594,this.match(O.COMMA_TOK),this.state=595,this.paraDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}quantDeclList(){let t=new at(this._ctx,this.state);this.enterRule(t,84,O.RULE_quantDeclList);try{switch(this.state=604,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,73,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=599,this.quantDecl();break;case 2:this.enterOuterAlt(t,2),this.state=600,this.quantDecl(),this.state=601,this.match(O.COMMA_TOK),this.state=602,this.quantDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowDeclList(){let t=new lt(this._ctx,this.state);this.enterRule(t,86,O.RULE_arrowDeclList);try{switch(this.state=611,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,74,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=606,this.arrowDecl();break;case 2:this.enterOuterAlt(t,2),this.state=607,this.arrowDecl(),this.state=608,this.match(O.COMMA_TOK),this.state=609,this.arrowDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}letDeclList(){let t=new ct(this._ctx,this.state);this.enterRule(t,88,O.RULE_letDeclList);try{switch(this.state=618,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,75,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=613,this.letDecl();break;case 2:this.enterOuterAlt(t,2),this.state=614,this.letDecl(),this.state=615,this.match(O.COMMA_TOK),this.state=616,this.letDeclList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typescopeList(){let t=new ut(this._ctx,this.state);this.enterRule(t,90,O.RULE_typescopeList);try{switch(this.state=625,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=620,this.typescope();break;case 2:this.enterOuterAlt(t,2),this.state=621,this.typescope(),this.state=622,this.match(O.COMMA_TOK),this.state=623,this.typescopeList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}exprList(){let t=new ht(this._ctx,this.state);this.enterRule(t,92,O.RULE_exprList);try{switch(this.state=632,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,77,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=627,this.expr();break;case 2:this.enterOuterAlt(t,2),this.state=628,this.expr(),this.state=629,this.match(O.COMMA_TOK),this.state=630,this.exprList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr(){let t=new pt(this._ctx,this.state);this.enterRule(t,94,O.RULE_expr);try{switch(this.state=650,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,79,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=634,this.expr1(0);break;case 2:this.enterOuterAlt(t,2),this.state=635,this.match(O.LET_TOK),this.state=636,this.letDeclList(),this.state=637,this.blockOrBar();break;case 3:this.enterOuterAlt(t,3),this.state=639,this.match(O.BIND_TOK),this.state=640,this.letDeclList(),this.state=641,this.blockOrBar();break;case 4:this.enterOuterAlt(t,4),this.state=643,this.quant(),this.state=645,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,78,this._ctx)&&(this.state=644,this.match(O.DISJ_TOK)),this.state=647,this.quantDeclList(),this.state=648,this.blockOrBar()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr1(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new dt(this._ctx,r),i=n;this.enterRecursionRule(n,96,O.RULE_expr1,t);try{let t;for(this.enterOuterAlt(n,1),this.state=653,this.expr1_5(0),this._ctx._stop=this._input.tryLT(-1),this.state=660,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,80,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new dt(e,r),this.pushNewRecursionContext(n,96,O.RULE_expr1),this.state=655,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=656,this.match(O.OR_TOK),this.state=657,this.expr1_5(0)}this.state=662,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,80,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr1_5(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new ft(this._ctx,r),i=n;this.enterRecursionRule(n,98,O.RULE_expr1_5,t);try{let t;for(this.enterOuterAlt(n,1),this.state=664,this.expr2(0),this._ctx._stop=this._input.tryLT(-1),this.state=671,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,81,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new ft(e,r),this.pushNewRecursionContext(n,98,O.RULE_expr1_5),this.state=666,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=667,this.match(O.XOR_TOK),this.state=668,this.expr2(0)}this.state=673,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,81,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr2(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new _t(this._ctx,r),i=n;this.enterRecursionRule(n,100,O.RULE_expr2,t);try{let t;for(this.enterOuterAlt(n,1),this.state=675,this.expr3(),this._ctx._stop=this._input.tryLT(-1),this.state=682,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,82,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new _t(e,r),this.pushNewRecursionContext(n,100,O.RULE_expr2),this.state=677,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=678,this.match(O.IFF_TOK),this.state=679,this.expr3()}this.state=684,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,82,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr3(){let t=new Tt(this._ctx,this.state);this.enterRule(t,102,O.RULE_expr3);try{switch(this.state=693,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,84,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=685,this.expr4(0);break;case 2:this.enterOuterAlt(t,2),this.state=686,this.expr4(0),this.state=687,this.match(O.IMP_TOK),this.state=688,this.expr3(),this.state=691,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,83,this._ctx)&&(this.state=689,this.match(O.ELSE_TOK),this.state=690,this.expr3())}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr4(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new yt(this._ctx,r),i=n;this.enterRecursionRule(n,104,O.RULE_expr4,t);try{let t;for(this.enterOuterAlt(n,1),this.state=696,this.expr5(),this._ctx._stop=this._input.tryLT(-1),this.state=703,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,85,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new yt(e,r),this.pushNewRecursionContext(n,104,O.RULE_expr4),this.state=698,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=699,this.match(O.AND_TOK),this.state=700,this.expr5()}this.state=705,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,85,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr5(){let t=new Ot(this._ctx,this.state);this.enterRule(t,106,O.RULE_expr5);try{switch(this.state=709,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:case O.SET_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.CARD_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.NO_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,1),this.state=706,this.expr6(0);break;case O.NEG_TOK:this.enterOuterAlt(t,2),this.state=707,this.match(O.NEG_TOK),this.state=708,this.expr5();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr6(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new xt(this._ctx,n),s=i;this.enterRecursionRule(i,108,O.RULE_expr6,t);try{let t;for(this.enterOuterAlt(i,1),this.state=712,this.expr7(),this._ctx._stop=this._input.tryLT(-1),this.state=723,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,88,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new xt(r,n),this.pushNewRecursionContext(i,108,O.RULE_expr6),this.state=714,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=716,this._errHandler.sync(this),e=this._input.LA(1),e===O.NEG_TOK&&(this.state=715,this.match(O.NEG_TOK)),this.state=718,this.compareOp(),this.state=719,this.expr7()}this.state=725,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,88,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr7(){let t,e=new gt(this._ctx,this.state);this.enterRule(e,110,O.RULE_expr7);try{switch(this.state=729,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.CARD_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,1),this.state=726,this.expr8(0);break;case O.LONE_TOK:case O.SOME_TOK:case O.ONE_TOK:case O.TWO_TOK:case O.SET_TOK:case O.NO_TOK:this.enterOuterAlt(e,2),this.state=727,t=this._input.LA(1),!(-32&t)&&1<<t&(1<<O.LONE_TOK|1<<O.SOME_TOK|1<<O.ONE_TOK|1<<O.TWO_TOK|1<<O.SET_TOK)||t===O.NO_TOK?(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=728,this.expr8(0);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expr8(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new Et(this._ctx,n),s=i;this.enterRecursionRule(i,112,O.RULE_expr8,t);try{let t;for(this.enterOuterAlt(i,1),this.state=732,this.expr9(),this._ctx._stop=this._input.tryLT(-1),this.state=739,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,90,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new Et(r,n),this.pushNewRecursionContext(i,112,O.RULE_expr8),this.state=734,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=735,e=this._input.LA(1),e!==O.PLUS_TOK&&e!==O.MINUS_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=736,this.expr10(0)}this.state=741,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,90,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr9(){let t=new mt(this._ctx,this.state);this.enterRule(t,114,O.RULE_expr9);try{switch(this.state=745,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,1),this.state=742,this.expr10(0);break;case O.CARD_TOK:this.enterOuterAlt(t,2),this.state=743,this.match(O.CARD_TOK),this.state=744,this.expr9();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expr10(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new vt(this._ctx,r),i=n;this.enterRecursionRule(n,116,O.RULE_expr10,t);try{let t;for(this.enterOuterAlt(n,1),this.state=748,this.expr11(0),this._ctx._stop=this._input.tryLT(-1),this.state=755,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,92,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new vt(e,r),this.pushNewRecursionContext(n,116,O.RULE_expr10),this.state=750,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=751,this.match(O.PPLUS_TOK),this.state=752,this.expr11(0)}this.state=757,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,92,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr11(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new St(this._ctx,r),i=n;this.enterRecursionRule(n,118,O.RULE_expr11,t);try{let t;for(this.enterOuterAlt(n,1),this.state=759,this.expr12(0),this._ctx._stop=this._input.tryLT(-1),this.state=766,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new St(e,r),this.pushNewRecursionContext(n,118,O.RULE_expr11),this.state=761,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=762,this.match(O.AMP_TOK),this.state=763,this.expr12(0)}this.state=768,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr12(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new Nt(this._ctx,r),i=n;this.enterRecursionRule(n,120,O.RULE_expr12,t);try{let t;for(this.enterOuterAlt(n,1),this.state=770,this.expr13(0),this._ctx._stop=this._input.tryLT(-1),this.state=778,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new Nt(e,r),this.pushNewRecursionContext(n,120,O.RULE_expr12),this.state=772,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=773,this.arrowOp(),this.state=774,this.expr13(0)}this.state=780,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr13(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new Rt(this._ctx,n),s=i;this.enterRecursionRule(i,122,O.RULE_expr13,t);try{let t;for(this.enterOuterAlt(i,1),this.state=782,this.expr14(0),this._ctx._stop=this._input.tryLT(-1),this.state=789,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,95,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new Rt(r,n),this.pushNewRecursionContext(i,122,O.RULE_expr13),this.state=784,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=785,e=this._input.LA(1),e!==O.SUBT_TOK&&e!==O.SUPT_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=786,this.expr14(0)}this.state=791,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,95,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}expr14(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new bt(this._ctx,r),i=n;this.enterRecursionRule(n,124,O.RULE_expr14,t);try{let t;for(this.enterOuterAlt(n,1),this.state=793,this.expr15(0),this._ctx._stop=this._input.tryLT(-1),this.state=802,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,96,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new bt(e,r),this.pushNewRecursionContext(n,124,O.RULE_expr14),this.state=795,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=796,this.match(O.LEFT_SQUARE_TOK),this.state=797,this.exprList(),this.state=798,this.match(O.RIGHT_SQUARE_TOK)}this.state=804,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,96,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr15(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new At(this._ctx,r),i=n;this.enterRecursionRule(n,126,O.RULE_expr15,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=812,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,97,this._ctx)){case 1:this.state=806,this.expr17();break;case 2:this.state=807,this.name(),this.state=808,this.match(O.LEFT_SQUARE_TOK),this.state=809,this.exprList(),this.state=810,this.match(O.RIGHT_SQUARE_TOK)}for(this._ctx._stop=this._input.tryLT(-1),this.state=819,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,98,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new At(e,r),this.pushNewRecursionContext(n,126,O.RULE_expr15),this.state=814,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=815,this.match(O.DOT_TOK),this.state=816,this.expr17()}this.state=821,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,98,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}expr17(){let t,e=new Ct(this._ctx,this.state);this.enterRule(e,128,O.RULE_expr17);try{switch(this.state=825,this._errHandler.sync(this),this._input.LA(1)){case O.STRING_TOK:case O.LEFT_CURLY_TOK:case O.LEFT_PAREN_TOK:case O.NONE_TOK:case O.UNIV_TOK:case O.IDEN_TOK:case O.MINUS_TOK:case O.AT_TOK:case O.BACKQUOTE_TOK:case O.THIS_TOK:case O.SEXPR_TOK:case O.SUM_TOK:case O.INT_TOK:case O.NUM_CONST_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,1),this.state=822,this.expr18();break;case O.TILDE_TOK:case O.EXP_TOK:case O.STAR_TOK:case O.GET_LABEL_TOK:case O.GET_LABEL_STR_TOK:case O.GET_LABEL_BOOL_TOK:case O.GET_LABEL_NUM_TOK:this.enterOuterAlt(e,2),this.state=823,t=this._input.LA(1),t-69&-32||!(1<<t-69&(1<<O.TILDE_TOK-69|1<<O.EXP_TOK-69|1<<O.STAR_TOK-69|1<<O.GET_LABEL_TOK-69|1<<O.GET_LABEL_STR_TOK-69|1<<O.GET_LABEL_BOOL_TOK-69|1<<O.GET_LABEL_NUM_TOK-69))?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=824,this.expr17();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expr18(){let t=new Lt(this._ctx,this.state);this.enterRule(t,130,O.RULE_expr18);try{switch(this.state=845,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,100,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=827,this.const();break;case 2:this.enterOuterAlt(t,2),this.state=828,this.qualName();break;case 3:this.enterOuterAlt(t,3),this.state=829,this.match(O.AT_TOK),this.state=830,this.name();break;case 4:this.enterOuterAlt(t,4),this.state=831,this.match(O.BACKQUOTE_TOK),this.state=832,this.name();break;case 5:this.enterOuterAlt(t,5),this.state=833,this.match(O.THIS_TOK);break;case 6:this.enterOuterAlt(t,6),this.state=834,this.match(O.LEFT_CURLY_TOK),this.state=835,this.quantDeclList(),this.state=836,this.blockOrBar(),this.state=837,this.match(O.RIGHT_CURLY_TOK);break;case 7:this.enterOuterAlt(t,7),this.state=839,this.match(O.LEFT_PAREN_TOK),this.state=840,this.expr(),this.state=841,this.match(O.RIGHT_PAREN_TOK);break;case 8:this.enterOuterAlt(t,8),this.state=843,this.block();break;case 9:this.enterOuterAlt(t,9),this.state=844,this.sexpr()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}arrowExpr(){let t=new It(this._ctx,this.state);this.enterRule(t,132,O.RULE_arrowExpr);try{switch(this.state=852,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,101,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=847,this.qualName();break;case 2:this.enterOuterAlt(t,2),this.state=848,this.qualName(),this.state=849,this.match(O.ARROW_TOK),this.state=850,this.arrowExpr()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sexprDecl(){let t=new wt(this._ctx,this.state);this.enterRule(t,134,O.RULE_sexprDecl);try{this.enterOuterAlt(t,1),this.state=854,this.sexpr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sexpr(){let t=new Pt(this._ctx,this.state);this.enterRule(t,136,O.RULE_sexpr);try{this.enterOuterAlt(t,1),this.state=856,this.match(O.SEXPR_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}instDecl(){let t,e=new Kt(this._ctx,this.state);this.enterRule(e,138,O.RULE_instDecl);try{this.enterOuterAlt(e,1),this.state=858,this.match(O.INST_TOK),this.state=859,this.name(),this.state=860,this.bounds(),this.state=862,this._errHandler.sync(this),t=this._input.LA(1),t===O.FOR_TOK&&(this.state=861,this.scope())}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}evalRelDecl(){let t=new kt(this._ctx,this.state);this.enterRule(t,140,O.RULE_evalRelDecl);try{this.enterOuterAlt(t,1),this.state=864,this.arrowDecl()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}evalDecl(){let t=new Dt(this._ctx,this.state);this.enterRule(t,142,O.RULE_evalDecl);try{this.enterOuterAlt(t,1),this.state=866,this.match(O.EVAL_TOK),this.state=867,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}exampleDecl(){let t=new Mt(this._ctx,this.state);this.enterRule(t,144,O.RULE_exampleDecl);try{this.enterOuterAlt(t,1),this.state=869,this.match(O.EXAMPLE_TOK),this.state=870,this.name(),this.state=871,this.match(O.IS_TOK),this.state=872,this.expr(),this.state=873,this.match(O.FOR_TOK),this.state=874,this.bounds()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}queryDecl(){let t=new Ut(this._ctx,this.state);this.enterRule(t,146,O.RULE_queryDecl);try{this.enterOuterAlt(t,1),this.state=876,this.name(),this.state=877,this.match(O.COLON_TOK),this.state=878,this.arrowExpr(),this.state=879,this.match(O.EQ_TOK),this.state=880,this.expr()}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}numberList(){let t=new Ft(this._ctx,this.state);this.enterRule(t,148,O.RULE_numberList);try{switch(this.state=887,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=882,this.number();break;case 2:this.enterOuterAlt(t,2),this.state=883,this.number(),this.state=884,this.match(O.COMMA_TOK),this.state=885,this.numberList()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}number(){let t=new jt(this._ctx,this.state);this.enterRule(t,150,O.RULE_number);try{this.enterOuterAlt(t,1),this.state=889,this.match(O.NUM_CONST_TOK)}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}bounds(){let t,e=new Ht(this._ctx,this.state);this.enterRule(e,152,O.RULE_bounds);try{switch(this.state=903,this._errHandler.sync(this),this._input.LA(1)){case O.LEFT_CURLY_TOK:for(this.enterOuterAlt(e,1),this.state=891,this.match(O.LEFT_CURLY_TOK),this.state=895,this._errHandler.sync(this),t=this._input.LA(1);t===O.MINUS_TOK||t===O.CARD_TOK||!(t-73&-32)&&1<<t-73&(1<<O.BACKQUOTE_TOK-73|1<<O.THIS_TOK-73|1<<O.NO_TOK-73|1<<O.SUM_TOK-73|1<<O.INT_TOK-73|1<<O.NUM_CONST_TOK-73|1<<O.QUOTED_IDENTIFIER_TOK-73|1<<O.IDENTIFIER_TOK-73);)this.state=892,this.bound(),this.state=897,this._errHandler.sync(this),t=this._input.LA(1);this.state=898,this.match(O.RIGHT_CURLY_TOK);break;case O.EXACTLY_TOK:case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,2),this.state=900,this._errHandler.sync(this),t=this._input.LA(1),t===O.EXACTLY_TOK&&(this.state=899,this.match(O.EXACTLY_TOK)),this.state=902,this.qualName();break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}atomNameOrNumber(){let t=new Bt(this._ctx,this.state);this.enterRule(t,154,O.RULE_atomNameOrNumber);try{switch(this.state=910,this._errHandler.sync(this),this._input.LA(1)){case O.BACKQUOTE_TOK:this.enterOuterAlt(t,1),this.state=905,this.match(O.BACKQUOTE_TOK),this.state=906,this.name();break;case O.NUM_CONST_TOK:this.enterOuterAlt(t,2),this.state=907,this.number();break;case O.MINUS_TOK:this.enterOuterAlt(t,3),this.state=908,this.match(O.MINUS_TOK),this.state=909,this.number();break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}bound(){let t=new Gt(this._ctx,this.state);this.enterRule(t,156,O.RULE_bound);try{switch(this.state=919,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,108,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=912,this.boundLHS(),this.state=913,this.compareOp(),this.state=914,this.bindRHSUnion(0);break;case 2:this.enterOuterAlt(t,2),this.state=916,this.match(O.NO_TOK),this.state=917,this.boundLHS();break;case 3:this.enterOuterAlt(t,3),this.state=918,this.qualName()}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}boundLHS(){let t,e=new zt(this._ctx,this.state);this.enterRule(e,158,O.RULE_boundLHS);try{switch(this.state=931,this._errHandler.sync(this),this._input.LA(1)){case O.CARD_TOK:this.enterOuterAlt(e,1),this.state=921,this.match(O.CARD_TOK),this.state=922,this.qualName();break;case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(e,2),this.state=923,this.qualName();break;case O.MINUS_TOK:case O.BACKQUOTE_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(e,3),this.state=924,this.atomNameOrNumber(),this.state=927,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=925,this.match(O.DOT_TOK),this.state=926,this.qualName(),this.state=929,this._errHandler.sync(this),t=this._input.LA(1)}while(t===O.DOT_TOK);break;default:throw new u.NoViableAltException(this)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}bindRHSUnion(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new qt(this._ctx,r),i=n;this.enterRecursionRule(n,160,O.RULE_bindRHSUnion,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=939,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,111,this._ctx)){case 1:this.state=934,this.bindRHSProduct(0);break;case 2:this.state=935,this.match(O.LEFT_PAREN_TOK),this.state=936,this.bindRHSUnion(0),this.state=937,this.match(O.RIGHT_PAREN_TOK)}for(this._ctx._stop=this._input.tryLT(-1),this.state=946,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,112,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new qt(e,r),this.pushNewRecursionContext(n,160,O.RULE_bindRHSUnion),this.state=941,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=942,this.match(O.PLUS_TOK),this.state=943,this.bindRHSProduct(0)}this.state=948,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,112,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}bindRHSProduct(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new Vt(this._ctx,n),s=i;this.enterRecursionRule(i,162,O.RULE_bindRHSProduct,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=955,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,113,this._ctx)){case 1:this.state=950,this.match(O.LEFT_PAREN_TOK),this.state=951,this.bindRHSProduct(0),this.state=952,this.match(O.RIGHT_PAREN_TOK);break;case 2:this.state=954,this.bindRHSProductBase()}for(this._ctx._stop=this._input.tryLT(-1),this.state=962,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,114,this._ctx);2!==t&&t!==a.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new Vt(r,n),this.pushNewRecursionContext(i,162,O.RULE_bindRHSProduct),this.state=957,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=958,e=this._input.LA(1),e!==O.ARROW_TOK&&e!==O.COMMA_TOK?this._errHandler.recoverInline(this):(this._input.LA(1)===_.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=959,this.bindRHSProductBase()}this.state=964,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,114,this._ctx)}}catch(t){if(!(t instanceof f.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}bindRHSProductBase(){let t=new Yt(this._ctx,this.state);this.enterRule(t,164,O.RULE_bindRHSProductBase);try{switch(this.state=971,this._errHandler.sync(this),this._input.LA(1)){case O.MINUS_TOK:case O.BACKQUOTE_TOK:case O.NUM_CONST_TOK:this.enterOuterAlt(t,1),this.state=965,this.atomNameOrNumber();break;case O.THIS_TOK:case O.SUM_TOK:case O.INT_TOK:case O.QUOTED_IDENTIFIER_TOK:case O.IDENTIFIER_TOK:this.enterOuterAlt(t,2),this.state=966,this.qualName();break;case O.LEFT_PAREN_TOK:this.enterOuterAlt(t,3),this.state=967,this.match(O.LEFT_PAREN_TOK),this.state=968,this.bindRHSUnion(0),this.state=969,this.match(O.RIGHT_PAREN_TOK);break;default:throw new u.NoViableAltException(this)}}catch(e){if(!(e instanceof f.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,r){switch(e){case 48:return this.expr1_sempred(t,r);case 49:return this.expr1_5_sempred(t,r);case 50:return this.expr2_sempred(t,r);case 52:return this.expr4_sempred(t,r);case 54:return this.expr6_sempred(t,r);case 56:return this.expr8_sempred(t,r);case 58:return this.expr10_sempred(t,r);case 59:return this.expr11_sempred(t,r);case 60:return this.expr12_sempred(t,r);case 61:return this.expr13_sempred(t,r);case 62:return this.expr14_sempred(t,r);case 63:return this.expr15_sempred(t,r);case 80:return this.bindRHSUnion_sempred(t,r);case 81:return this.bindRHSProduct_sempred(t,r)}return!0}expr1_sempred(t,e){return 0!==e||this.precpred(this._ctx,1)}expr1_5_sempred(t,e){return 1!==e||this.precpred(this._ctx,1)}expr2_sempred(t,e){return 2!==e||this.precpred(this._ctx,1)}expr4_sempred(t,e){return 3!==e||this.precpred(this._ctx,1)}expr6_sempred(t,e){return 4!==e||this.precpred(this._ctx,1)}expr8_sempred(t,e){return 5!==e||this.precpred(this._ctx,1)}expr10_sempred(t,e){return 6!==e||this.precpred(this._ctx,1)}expr11_sempred(t,e){return 7!==e||this.precpred(this._ctx,1)}expr12_sempred(t,e){return 8!==e||this.precpred(this._ctx,1)}expr13_sempred(t,e){return 9!==e||this.precpred(this._ctx,1)}expr14_sempred(t,e){return 10!==e||this.precpred(this._ctx,1)}expr15_sempred(t,e){return 11!==e||this.precpred(this._ctx,2)}bindRHSUnion_sempred(t,e){return 12!==e||this.precpred(this._ctx,2)}bindRHSProduct_sempred(t,e){return 13!==e||this.precpred(this._ctx,2)}static get _ATN(){return O.__ATN||(O.__ATN=(new l.ATNDeserializer).deserialize(y.toCharArray(O._serializedATN))),O.__ATN}}e.ForgeParser=O,O.OPEN_TOK=1,O.LEFT_SQUARE_TOK=2,O.RIGHT_SQUARE_TOK=3,O.AS_TOK=4,O.STRING_TOK=5,O.VAR_TOK=6,O.ABSTRACT_TOK=7,O.SIG_TOK=8,O.LEFT_CURLY_TOK=9,O.RIGHT_CURLY_TOK=10,O.EXTENDS_TOK=11,O.IN_TOK=12,O.PLUS_TOK=13,O.LONE_TOK=14,O.SOME_TOK=15,O.ONE_TOK=16,O.TWO_TOK=17,O.SET_TOK=18,O.FUNC_TOK=19,O.PFUNC_TOK=20,O.DISJ_TOK=21,O.COLON_TOK=22,O.WHEAT_TOK=23,O.PRED_TOK=24,O.DOT_TOK=25,O.FUN_TOK=26,O.LEFT_PAREN_TOK=27,O.RIGHT_PAREN_TOK=28,O.ASSERT_TOK=29,O.RUN_TOK=30,O.CHECK_TOK=31,O.FOR_TOK=32,O.BUT_TOK=33,O.EXACTLY_TOK=34,O.NONE_TOK=35,O.UNIV_TOK=36,O.IDEN_TOK=37,O.MINUS_TOK=38,O.IS_TOK=39,O.SAT_TOK=40,O.UNSAT_TOK=41,O.THEOREM_TOK=42,O.FORGE_ERROR_TOK=43,O.CHECKED_TOK=44,O.TEST_TOK=45,O.EXPECT_TOK=46,O.SUITE_TOK=47,O.BAR_TOK=48,O.ALL_TOK=49,O.SUFFICIENT_TOK=50,O.NECESSARY_TOK=51,O.CONSISTENT_TOK=52,O.INCONSISTENT_TOK=53,O.WITH_TOK=54,O.LET_TOK=55,O.BIND_TOK=56,O.OR_TOK=57,O.XOR_TOK=58,O.IFF_TOK=59,O.IMP_TOK=60,O.ELSE_TOK=61,O.AND_TOK=62,O.NEG_TOK=63,O.CARD_TOK=64,O.PPLUS_TOK=65,O.AMP_TOK=66,O.SUBT_TOK=67,O.SUPT_TOK=68,O.TILDE_TOK=69,O.EXP_TOK=70,O.STAR_TOK=71,O.AT_TOK=72,O.BACKQUOTE_TOK=73,O.THIS_TOK=74,O.SEXPR_TOK=75,O.INST_TOK=76,O.EVAL_TOK=77,O.EXAMPLE_TOK=78,O.ARROW_TOK=79,O.GET_LABEL_TOK=80,O.GET_LABEL_STR_TOK=81,O.GET_LABEL_BOOL_TOK=82,O.GET_LABEL_NUM_TOK=83,O.EQ_TOK=84,O.LT_TOK=85,O.GT_TOK=86,O.LEQ_TOK=87,O.GEQ_TOK=88,O.NI_TOK=89,O.NO_TOK=90,O.SUM_TOK=91,O.INT_TOK=92,O.OPTION_TOK=93,O.COMMA_TOK=94,O.SLASH_TOK=95,O.NUM_CONST_TOK=96,O.QUOTED_IDENTIFIER_TOK=97,O.IDENTIFIER_TOK=98,O.WS=99,O.CCOMMENT=100,O.COMMENT=101,O.MULTCOMMENT=102,O.LANG_DECL=103,O.RULE_predDecl=0,O.RULE_parseExpr=1,O.RULE_alloyModule=2,O.RULE_importDecl=3,O.RULE_paragraph=4,O.RULE_sigDecl=5,O.RULE_sigExt=6,O.RULE_mult=7,O.RULE_arrowMult=8,O.RULE_helperMult=9,O.RULE_paraDecl=10,O.RULE_quantDecl=11,O.RULE_arrowDecl=12,O.RULE_predType=13,O.RULE_funDecl=14,O.RULE_paraDecls=15,O.RULE_assertDecl=16,O.RULE_cmdDecl=17,O.RULE_testDecl=18,O.RULE_testExpectDecl=19,O.RULE_testBlock=20,O.RULE_scope=21,O.RULE_typescope=22,O.RULE_const=23,O.RULE_satisfiabilityDecl=24,O.RULE_quantifiedPropertyDecl=25,O.RULE_propertyDecl=26,O.RULE_consistencyDecl=27,O.RULE_testSuiteDecl=28,O.RULE_testConstruct=29,O.RULE_arrowOp=30,O.RULE_compareOp=31,O.RULE_letDecl=32,O.RULE_block=33,O.RULE_blockOrBar=34,O.RULE_quant=35,O.RULE_qualName=36,O.RULE_optionDecl=37,O.RULE_name=38,O.RULE_nameList=39,O.RULE_qualNameList=40,O.RULE_paraDeclList=41,O.RULE_quantDeclList=42,O.RULE_arrowDeclList=43,O.RULE_letDeclList=44,O.RULE_typescopeList=45,O.RULE_exprList=46,O.RULE_expr=47,O.RULE_expr1=48,O.RULE_expr1_5=49,O.RULE_expr2=50,O.RULE_expr3=51,O.RULE_expr4=52,O.RULE_expr5=53,O.RULE_expr6=54,O.RULE_expr7=55,O.RULE_expr8=56,O.RULE_expr9=57,O.RULE_expr10=58,O.RULE_expr11=59,O.RULE_expr12=60,O.RULE_expr13=61,O.RULE_expr14=62,O.RULE_expr15=63,O.RULE_expr17=64,O.RULE_expr18=65,O.RULE_arrowExpr=66,O.RULE_sexprDecl=67,O.RULE_sexpr=68,O.RULE_instDecl=69,O.RULE_evalRelDecl=70,O.RULE_evalDecl=71,O.RULE_exampleDecl=72,O.RULE_queryDecl=73,O.RULE_numberList=74,O.RULE_number=75,O.RULE_bounds=76,O.RULE_atomNameOrNumber=77,O.RULE_bound=78,O.RULE_boundLHS=79,O.RULE_bindRHSUnion=80,O.RULE_bindRHSProduct=81,O.RULE_bindRHSProductBase=82,O.ruleNames=["predDecl","parseExpr","alloyModule","importDecl","paragraph","sigDecl","sigExt","mult","arrowMult","helperMult","paraDecl","quantDecl","arrowDecl","predType","funDecl","paraDecls","assertDecl","cmdDecl","testDecl","testExpectDecl","testBlock","scope","typescope","const","satisfiabilityDecl","quantifiedPropertyDecl","propertyDecl","consistencyDecl","testSuiteDecl","testConstruct","arrowOp","compareOp","letDecl","block","blockOrBar","quant","qualName","optionDecl","name","nameList","qualNameList","paraDeclList","quantDeclList","arrowDeclList","letDeclList","typescopeList","exprList","expr","expr1","expr1_5","expr2","expr3","expr4","expr5","expr6","expr7","expr8","expr9","expr10","expr11","expr12","expr13","expr14","expr15","expr17","expr18","arrowExpr","sexprDecl","sexpr","instDecl","evalRelDecl","evalDecl","exampleDecl","queryDecl","numberList","number","bounds","atomNameOrNumber","bound","boundLHS","bindRHSUnion","bindRHSProduct","bindRHSProductBase"],O._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,void 0,"'#'","'++'","'&'","'<:'","':>'","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],O._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","STRING_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","NEG_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],O.VOCABULARY=new T.VocabularyImpl(O._LITERAL_NAMES,O._SYMBOLIC_NAMES,[]),O._serializedATNSegments=2,O._serializedATNSegment0="줝쪺֍꾺体؇쉁iϐ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tT«\n°\n´\n¼\n\f¿\vÂ\n\fÅ\vÈ\n\fË\vÍ\nÕ\nÙ\nß\ná\nô\n÷\nú\ný\nĂ\nĆ\nĊ\n\b\b\b\b\b\b\bĒ\n\b\f\b\bĕ\v\b\bė\n\b\t\t\n\n\v\v\f\fĠ\n\f\f\f\f\fĥ\n\f\f\f\r\rĪ\n\r\r\r\r\rį\n\r\r\rĴ\nŁ\nŅ\nʼn\nŒ\nŗ\nŚ\nŞ\nť\nŪ\nŭ\nű\nŶ\nź\nŽ\nƁ\nƇ\nƋ\nƑ\n\fƔ\vƜ\nƠ\nƣ\nƬ\nư\nƷ\nƻ\nǀ\nǍ\nǐ\nǔ\nǝ\nǡ\nǪ\nǮ\nǶ\n\fǹ\vȃ\n   ȇ\n     Ȍ\n !!\"\"\"\"###Ȗ\n#\f##ș\v###$$$$Ƞ\n$%%%%%Ȧ\n%&&&Ȫ\n&&&&&ȯ\n&\f&&Ȳ\v&&&&&ȷ\n&''''''Ⱦ\n'''Ɂ\n'(())))))Ɋ\n)******ɑ\n*++++++ɘ\n+,,,,,,ɟ\n,------ɦ\n-......ɭ\n.//////ɴ\n/000000ɻ\n0111111111111ʈ\n11111ʍ\n12222222ʕ\n2\f22ʘ\v23333333ʠ\n3\f33ʣ\v34444444ʫ\n4\f44ʮ\v45555555ʶ\n55ʸ\n56666666ˀ\n6\f66˃\v67777ˈ\n7888888ˏ\n88888˔\n8\f88˗\v89999˜\n9:::::::ˤ\n:\f::˧\v:;;;;ˬ\n;<<<<<<<˴\n<\f<<˷\v<=======˿\n=\f==̂\v=>>>>>>>>̋\n>\f>>̎\v>???????̖\n?\f??̙\v?@@@@@@@@@̣\n@\f@@̦\v@AAAAAAAA̯\nAAAAA̴\nA\fAA̷\vABBBB̼\nBCCCCCCCCCCCCCCCCCCC͐\nCDDDDDD͗\nDEEFFGGGGG͡\nGHHIIIJJJJJJJKKKKKKLLLLLLͺ\nLMMNNN΀\nN\fNN΃\vNNNN·\nNNNΊ\nNOOOOOOΑ\nOPPPPPPPPΚ\nPQQQQQQQ΢\nQ\rQQΣQΦ\nQRRRRRRRή\nRRRRRγ\nR\fRRζ\vRSSSSSSSξ\nSSSSSσ\nS\fSSφ\vSTTTTTTTώ\nTTbdfjnrvxz|~€¢¤U\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦ !*.*+--4567))V[cd\\\\((EFGIRUQQ``К¨·Ì\bà\nó\föĖĘĚĜğĩijĺļ ř\"ś$Ť&ŵ(Ɔ*Ǝ,Ɵ.Ƣ0Ư2Ʊ4Ƽ6Ǖ8Ǣ:ǯ<Ȃ>Ȇ@ȍBȏDȓFȟHȥJȶLȸNɂPɉRɐTɗVɞXɥZɬ\\ɳ^ɺ`ʌbʎdʙfʤhʷjʹlˇnˉp˛r˝t˫v˭x˸z̃|̏~̚€̮‚̻„͏†͖ˆ͘Š͚Œ͜Ž͢ͤ’ͧ”ͮ–͹˜ͻšΉœΐžΙ Υ¢έ¤ν¦ύ¨ª©«ª©ª««¯¬­J&­®®°¯¬¯°°±±³N(²´ ³²³´´µµ¶D#¶·¸`1¸¹¹º¼\b»º¼¿½»½¾¾Ã¿½ÀÂ\nÁÀÂÅÃÁÃÄÄÍÅÃÆÈIÇÆÈËÉÇÉÊÊÍËÉ̽ÌÉÍÎÏÏÔJ&ÐÑÑÒR*ÒÓÓÕÔÐÔÕÕØÖ××ÙN(ØÖØÙÙáÚÛÛÞÜÝÝßN(ÞÜÞßßáàÎàÚá\tâô\fãôäôåô\"æô$çô(èôˆEéô”KêôŽHëôL'ìôŒGíô’Jîô6ïô4ðô2ñô8òô:óâóãóäóåóæóçóèóéóêóëóìóíóîóïóðóñóòô\võ÷\böõö÷÷ùøú\tùøùúúüûý\tüûüýýþþÿ\nÿāP)ĀĂ\bāĀāĂĂăăą\vĄĆX-ąĄąĆĆććĉ\fĈĊD#ĉĈĉĊĊ\rċČ\rČėJ&čĎĎēJ&ďĐĐĒJ&đďĒĕēđēĔĔėĕēĖċĖčėĘę\tęĚě\těĜĝ\tĝĞĠğĞğĠĠġġĢP)ĢĤģĥ\vĤģĤĥĥĦĦħ`1ħĨĪĩĨĩĪĪīīĬP)ĬĮĭįĮĭĮįįİİı`1ıIJĴ\bijIJijĴĴĵĵĶP)Ķķķĸ\nĸņDĹĺĻĻļŀĽľJ&ľĿĿŁŀĽŀŁŁłłńN(ŃŅ ńŃńŅŅņņňŇʼn\vňŇňʼnʼnŊŊŋ`1ŋŌ\vŌō`1ōŎ\fŎŏőŐŒT+őŐőŒŒœœŚŔŖŕŗT+ŖŕŖŗŗŘŘŚřŏřŔŚ!śŝŜŞN(ŝŜŝŞŞşşŠD#Š#šŢN(ŢţţťŤšŤťťŦŦũ\tŧŪJ&ŨŪD#ũŧũŨũŪŪŬūŭ,ŬūŬŭŭŰŮů\"ůűšNŰŮŰűű%ŲųN(ųŴŴŶŵŲŵŶŶŹŷźJ&ŸźD#ŹŷŹŸźżŻŽ,żŻżŽŽƀžſ\"ſƁšNƀžƀƁƁƂƂƃ)ƃƄ\tƄ'ƅƇ/ƆƅƆƇƇƈƈƊ0ƉƋN(ƊƉƊƋƋƌƌƍ*ƍ)Ǝƒ\vƏƑ&ƐƏƑƔƒƐƒƓƓƕƔƒƕƖ\fƖ+ƗƘ\"Ƙƛ˜Mƙƚ#ƚƜ\\/ƛƙƛƜƜƠƝƞ\"ƞƠ\\/ƟƗƟƝƠ-ơƣ$ƢơƢƣƣƤƤƥ˜MƥƦJ&Ʀ/Ƨư%ƨư&Ʃư'ƪƬ(ƫƪƫƬƬƭƭư˜MƮưƯƧƯƨƯƩƯƫƯƮư1ƱƲƲƳ`1Ƴƴ)ƴƶ\tƵƷ,ƶƵƶƷƷƺƸƹ\"ƹƻšNƺƸƺƻƻ3Ƽƽƽƿ3ƾǀƿƾƿǀǀǁǁǂV,ǂǃ2ǃDŽ`1DŽDž)Dždž\t\b",O._serializedATNSegment1='džLJ"LJnjN(LjljljNJ^0NJNjNjǍnjLjnjǍǍǏǎǐ,ǏǎǏǐǐǓǑǒ"ǒǔšNǓǑǓǔǔ5ǕǖǖǗ`1Ǘǘ)ǘǙ\t\bǙǚ"ǚǜN(Ǜǝ,ǜǛǜǝǝǠǞǟ"ǟǡšNǠǞǠǡǡ7ǢǣǣǤ`1Ǥǥ)ǥǦ\t\tǦǧ8ǧǩN(ǨǪ,ǩǨǩǪǪǭǫǬ"ǬǮšNǭǫǭǮǮ9ǯǰ/ǰDZ1DZDz"DzdzN(dzǷ\vǴǶ<ǵǴǶǹǷǵǷǸǸǺǹǷǺǻ\fǻ;Ǽȃ’Jǽȃ(Ǿȃ4ǿȃ6Ȁȃ2ȁȃ8ȂǼȂǽȂǾȂǿȂȀȂȁȃ=Ȅȇ\tȅȇȆȄȆȅȆȇȇȈȈȋQȉȌ\tȊȌȋȉȋȊȋȌȌ?ȍȎ\t\nȎAȏȐN(ȐȑVȑȒ`1ȒCȓȗ\vȔȖ`1ȕȔȖșȗȕȗȘȘȚșȗȚț\fțEȜȠD#ȝȞ2ȞȠ`1ȟȜȟȝȠGȡȦ3ȢȦ\\ȣȦ]ȤȦ\tȥȡȥȢȥȣȥȤȦIȧȨLȨȪaȩȧȩȪȪȰȫȬN(ȬȭaȭȯȮȫȯȲȰȮȰȱȱȳȲȰȳȷN(ȴȷ^ȵȷ]ȶȩȶȴȶȵȷKȸȹ_ȹɀJ&ȺɁJ&ȻɁȼȾ(ȽȼȽȾȾȿȿɁ˜MɀȺɀȻɀȽɁMɂɃ\t\vɃOɄɊN(ɅɆN(Ɇɇ`ɇɈP)ɈɊɉɄɉɅɊQɋɑJ&ɌɍJ&ɍɎ`ɎɏR*ɏɑɐɋɐɌɑSɒɘ\fɓɔ\fɔɕ`ɕɖT+ɖɘɗɒɗɓɘUəɟ\rɚɛ\rɛɜ`ɜɝV,ɝɟɞəɞɚɟWɠɦɡɢɢɣ`ɣɤX-ɤɦɥɠɥɡɦYɧɭB"ɨɩB"ɩɪ`ɪɫZ.ɫɭɬɧɬɨɭ[ɮɴ.ɯɰ.ɰɱ`ɱɲ\\/ɲɴɳɮɳɯɴ]ɵɻ`1ɶɷ`1ɷɸ`ɸɹ^0ɹɻɺɵɺɶɻ_ɼʍb2ɽɾ9ɾɿZ.ɿʀF$ʀʍʁʂ:ʂʃZ.ʃʄF$ʄʍʅʇH%ʆʈʇʆʇʈʈʉʉʊV,ʊʋF$ʋʍʌɼʌɽʌʁʌʅʍaʎʏ\b2ʏʐd3ʐʖʑʒ\fʒʓ;ʓʕd3ʔʑʕʘʖʔʖʗʗcʘʖʙʚ\b3ʚʛf4ʛʡʜʝ\fʝʞ<ʞʠf4ʟʜʠʣʡʟʡʢʢeʣʡʤʥ\b4ʥʦh5ʦʬʧʨ\fʨʩ=ʩʫh5ʪʧʫʮʬʪʬʭʭgʮʬʯʸj6ʰʱj6ʱʲ>ʲʵh5ʳʴ?ʴʶh5ʵʳʵʶʶʸʷʯʷʰʸiʹʺ\b6ʺʻl7ʻˁʼʽ\fʽʾ@ʾˀl7ʿʼˀ˃ˁʿˁ˂˂k˃ˁ˄ˈn8˅ˆAˆˈl7ˇ˄ˇ˅ˈmˉˊ\b8ˊˋp9ˋ˕ˌˎ\fˍˏAˎˍˎˏˏːːˑ@!ˑ˒p9˒˔˓ˌ˔˗˕˓˕˖˖o˗˕˘˜r:˙˚\t\f˚˜r:˛˘˛˙˜q˝˞\b:˞˟t;˟˥ˠˡ\fˡˢ\t\rˢˤv<ˣˠˤ˧˥ˣ˥˦˦s˧˥˨ˬv<˩˪B˪ˬt;˫˨˫˩ˬu˭ˮ\b<ˮ˯x=˯˵˰˱\f˱˲C˲˴x=˳˰˴˷˵˳˵˶˶w˷˵˸˹\b=˹˺z>˺̀˻˼\f˼˽D˽˿z>˾˻˿̂̀˾̀́́ŷ̀̃̄\b>̄̅|?̅̌̆̇\ḟ̈> ̈̉|?̉̋̊̆̋̎̌̊̌̍̍{̎̌̏̐\b?̐̑~@̗̑̒̓\f̓̔\t̖̔~@̖̙̗̗̘̘̒̕̕}̛̙̗̚\b@̛̜€A̜̤̝̞\f̞̟̟̠^0̡̡̢̢̧̨̠̣̝̣̦̤̤̥̥̦̤\bĄ̯‚B̩̪N(̪̫̫̬^0̵̧̬̭̭̯̮̮̩̯̰̱\f̴̱̲̲‚B̴̷̵̵̶̶̳̰̳̷̵̸̼„C̹̺\t̺̼‚B̸̻̻̹̼ƒ̽͐0̾͐J&̿̀J̀͐N(́͂K͂͐N(̓͐L̈́ͅ\v͆ͅV,͇͆F$͇͈\f͈͉͐͊͊͋`1͍͋͌͌͐͐D#͎͐ŠF͏̽͏̾͏̿͏́͏̓͏̈́͏͉͏͍͏͎͐…͑͗J&͓͒J&͓͔Q͔͕†D͕͖͖͗͑͒͗‡͙͘ŠF͙‰͚͛M͛‹͜͝N͝͞N(͞͠šN͟͡,͟͠͠͡͡ͣͣ͢ͤͥOͥͦ`1ͦ‘ͧͨPͨͩN(ͩͪ)ͪͫ`1ͫͬ"ͬͭšNͭ“ͮͯN(ͯͰͰͱ†DͱͲVͲͳ`1ͳ•ʹͺ˜M͵Ͷ˜MͶͷ`ͷ͸–L͸ͺ͹ʹ͹͵ͺ—ͻͼbͼ™ͽ΁\v;΀žPͿ;΀΃΁Ϳ΁΂΂΄΃΁΄Ί\f΅·$Ά΅Ά··ΈΈΊJ&ΉͽΉΆΊ›΋ΌKΌΑN(΍Α˜MΎΏ(ΏΑ˜Mΐ΋ΐ΍ΐΎΑΒΓ QΓΔ@!ΔΕ¢RΕΚΖΗ\\ΗΚ QΘΚJ&ΙΒΙΖΙΘʟΛΜBΜΦJ&ΝΦJ&ΞΡœOΟΠΠ΢J&ΡΟ΢ΣΣΡΣΤΤΦΥΛΥΝΥΞΦ¡ΧΨ\bRΨή¤SΩΪΪΫ¢RΫάάήέΧέΩήδίΰ\fΰααγ¤Sβίγζδβδεε£ζδηθ\bSθιικ¤Sκλλξμξ¦Tνηνμξτοπ\fπρ\tρσ¦Tςοσφτςτυυ¥φτχώœOψώJ&ωϊϊϋ¢Rϋόόώύχύψύωώ§vª¯³½ÃÉÌÔØÞàóöùüāąĉēĖğĤĩĮijŀńňőŖřŝŤũŬŰŵŹżƀƆƊƒƛƟƢƫƯƶƺƿnjǏǓǜǠǩǭǷȂȆȋȗȟȥȩȰȶȽɀɉɐɗɞɥɬɳɺʇʌʖʡʬʵʷˁˇˎ˕˛˥˫˵̵̗̤̮̻̀̌͏͖͠͹΁ΆΉΐΙΣΥέδντύ',O._serializedATN=y.join([O._serializedATNSegment0,O._serializedATNSegment1],"");class x extends p.ParserRuleContext{PRED_TOK(){return this.getToken(O.PRED_TOK,0)}name(){return this.getRuleContext(0,nt)}block(){return this.getRuleContext(0,J)}predType(){return this.tryGetRuleContext(0,w)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,K)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_predDecl}enterRule(t){t.enterPredDecl&&t.enterPredDecl(this)}exitRule(t){t.exitPredDecl&&t.exitPredDecl(this)}accept(t){return t.visitPredDecl?t.visitPredDecl(this):t.visitChildren(this)}}e.PredDeclContext=x;class g extends p.ParserRuleContext{expr(){return this.getRuleContext(0,pt)}EOF(){return this.getToken(O.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_parseExpr}enterRule(t){t.enterParseExpr&&t.enterParseExpr(this)}exitRule(t){t.exitParseExpr&&t.exitParseExpr(this)}accept(t){return t.visitParseExpr?t.visitParseExpr(this):t.visitChildren(this)}}e.ParseExprContext=g;class E extends p.ParserRuleContext{importDecl(t){return void 0===t?this.getRuleContexts(m):this.getRuleContext(t,m)}paragraph(t){return void 0===t?this.getRuleContexts(v):this.getRuleContext(t,v)}evalDecl(t){return void 0===t?this.getRuleContexts(Dt):this.getRuleContext(t,Dt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_alloyModule}enterRule(t){t.enterAlloyModule&&t.enterAlloyModule(this)}exitRule(t){t.exitAlloyModule&&t.exitAlloyModule(this)}accept(t){return t.visitAlloyModule?t.visitAlloyModule(this):t.visitChildren(this)}}e.AlloyModuleContext=E;class m extends p.ParserRuleContext{OPEN_TOK(){return this.getToken(O.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,st)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(O.AS_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_importDecl}enterRule(t){t.enterImportDecl&&t.enterImportDecl(this)}exitRule(t){t.exitImportDecl&&t.exitImportDecl(this)}accept(t){return t.visitImportDecl?t.visitImportDecl(this):t.visitChildren(this)}}e.ImportDeclContext=m;class v extends p.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,S)}predDecl(){return this.tryGetRuleContext(0,x)}funDecl(){return this.tryGetRuleContext(0,P)}assertDecl(){return this.tryGetRuleContext(0,k)}cmdDecl(){return this.tryGetRuleContext(0,D)}testExpectDecl(){return this.tryGetRuleContext(0,U)}sexprDecl(){return this.tryGetRuleContext(0,wt)}queryDecl(){return this.tryGetRuleContext(0,Ut)}evalRelDecl(){return this.tryGetRuleContext(0,kt)}optionDecl(){return this.tryGetRuleContext(0,rt)}instDecl(){return this.tryGetRuleContext(0,Kt)}exampleDecl(){return this.tryGetRuleContext(0,Mt)}propertyDecl(){return this.tryGetRuleContext(0,q)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,z)}satisfiabilityDecl(){return this.tryGetRuleContext(0,G)}consistencyDecl(){return this.tryGetRuleContext(0,V)}testSuiteDecl(){return this.tryGetRuleContext(0,Y)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paragraph}enterRule(t){t.enterParagraph&&t.enterParagraph(this)}exitRule(t){t.exitParagraph&&t.exitParagraph(this)}accept(t){return t.visitParagraph?t.visitParagraph(this):t.visitChildren(this)}}e.ParagraphContext=v;class S extends p.ParserRuleContext{SIG_TOK(){return this.getToken(O.SIG_TOK,0)}nameList(){return this.getRuleContext(0,it)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(O.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(O.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,R)}sigExt(){return this.tryGetRuleContext(0,N)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}block(){return this.tryGetRuleContext(0,J)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sigDecl}enterRule(t){t.enterSigDecl&&t.enterSigDecl(this)}exitRule(t){t.exitSigDecl&&t.exitSigDecl(this)}accept(t){return t.visitSigDecl?t.visitSigDecl(this):t.visitChildren(this)}}e.SigDeclContext=S;class N extends p.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(O.EXTENDS_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}IN_TOK(){return this.tryGetToken(O.IN_TOK,0)}PLUS_TOK(t){return void 0===t?this.getTokens(O.PLUS_TOK):this.getToken(O.PLUS_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sigExt}enterRule(t){t.enterSigExt&&t.enterSigExt(this)}exitRule(t){t.exitSigExt&&t.exitSigExt(this)}accept(t){return t.visitSigExt?t.visitSigExt(this):t.visitChildren(this)}}e.SigExtContext=N;class R extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(O.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_mult}enterRule(t){t.enterMult&&t.enterMult(this)}exitRule(t){t.exitMult&&t.exitMult(this)}accept(t){return t.visitMult?t.visitMult(this):t.visitChildren(this)}}e.MultContext=R;class b extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(O.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(O.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowMult}enterRule(t){t.enterArrowMult&&t.enterArrowMult(this)}exitRule(t){t.exitArrowMult&&t.exitArrowMult(this)}accept(t){return t.visitArrowMult?t.visitArrowMult(this):t.visitChildren(this)}}e.ArrowMultContext=b;class A extends p.ParserRuleContext{LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(O.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(O.PFUNC_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_helperMult}enterRule(t){t.enterHelperMult&&t.enterHelperMult(this)}exitRule(t){t.exitHelperMult&&t.exitHelperMult(this)}accept(t){return t.visitHelperMult?t.visitHelperMult(this):t.visitChildren(this)}}e.HelperMultContext=A;class C extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(){return this.getRuleContext(0,pt)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,A)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDecl}enterRule(t){t.enterParaDecl&&t.enterParaDecl(this)}exitRule(t){t.exitParaDecl&&t.exitParaDecl(this)}accept(t){return t.visitParaDecl?t.visitParaDecl(this):t.visitChildren(this)}}e.ParaDeclContext=C;class L extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(){return this.getRuleContext(0,pt)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantDecl}enterRule(t){t.enterQuantDecl&&t.enterQuantDecl(this)}exitRule(t){t.exitQuantDecl&&t.exitQuantDecl(this)}accept(t){return t.visitQuantDecl?t.visitQuantDecl(this):t.visitChildren(this)}}e.QuantDeclContext=L;class I extends p.ParserRuleContext{nameList(){return this.getRuleContext(0,it)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,b)}arrowExpr(){return this.getRuleContext(0,It)}VAR_TOK(){return this.tryGetToken(O.VAR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowDecl}enterRule(t){t.enterArrowDecl&&t.enterArrowDecl(this)}exitRule(t){t.exitArrowDecl&&t.exitArrowDecl(this)}accept(t){return t.visitArrowDecl?t.visitArrowDecl(this):t.visitChildren(this)}}e.ArrowDeclContext=I;class w extends p.ParserRuleContext{WHEAT_TOK(){return this.getToken(O.WHEAT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_predType}enterRule(t){t.enterPredType&&t.enterPredType(this)}exitRule(t){t.exitPredType&&t.exitPredType(this)}accept(t){return t.visitPredType?t.visitPredType(this):t.visitChildren(this)}}e.PredTypeContext=w;class P extends p.ParserRuleContext{FUN_TOK(){return this.getToken(O.FUN_TOK,0)}name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(pt):this.getRuleContext(t,pt)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,K)}helperMult(){return this.tryGetRuleContext(0,A)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_funDecl}enterRule(t){t.enterFunDecl&&t.enterFunDecl(this)}exitRule(t){t.exitFunDecl&&t.exitFunDecl(this)}accept(t){return t.visitFunDecl?t.visitFunDecl(this):t.visitChildren(this)}}e.FunDeclContext=P;class K extends p.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,ot)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDecls}enterRule(t){t.enterParaDecls&&t.enterParaDecls(this)}exitRule(t){t.exitParaDecls&&t.exitParaDecls(this)}accept(t){return t.visitParaDecls?t.visitParaDecls(this):t.visitChildren(this)}}e.ParaDeclsContext=K;class k extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}block(){return this.getRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_assertDecl}enterRule(t){t.enterAssertDecl&&t.enterAssertDecl(this)}exitRule(t){t.exitAssertDecl&&t.exitAssertDecl(this)}accept(t){return t.visitAssertDecl?t.visitAssertDecl(this):t.visitChildren(this)}}e.AssertDeclContext=k;class D extends p.ParserRuleContext{RUN_TOK(){return this.tryGetToken(O.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(O.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(O.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_cmdDecl}enterRule(t){t.enterCmdDecl&&t.enterCmdDecl(this)}exitRule(t){t.exitCmdDecl&&t.exitCmdDecl(this)}accept(t){return t.visitCmdDecl?t.visitCmdDecl(this):t.visitChildren(this)}}e.CmdDeclContext=D;class M extends p.ParserRuleContext{IS_TOK(){return this.getToken(O.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(O.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(O.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(O.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(O.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(O.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}block(){return this.tryGetRuleContext(0,J)}name(){return this.tryGetRuleContext(0,nt)}COLON_TOK(){return this.tryGetToken(O.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testDecl}enterRule(t){t.enterTestDecl&&t.enterTestDecl(this)}exitRule(t){t.exitTestDecl&&t.exitTestDecl(this)}accept(t){return t.visitTestDecl?t.visitTestDecl(this):t.visitChildren(this)}}e.TestDeclContext=M;class U extends p.ParserRuleContext{EXPECT_TOK(){return this.getToken(O.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,F)}TEST_TOK(){return this.tryGetToken(O.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testExpectDecl}enterRule(t){t.enterTestExpectDecl&&t.enterTestExpectDecl(this)}exitRule(t){t.exitTestExpectDecl&&t.exitTestExpectDecl(this)}accept(t){return t.visitTestExpectDecl?t.visitTestExpectDecl(this):t.visitChildren(this)}}e.TestExpectDeclContext=U;class F extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}testDecl(t){return void 0===t?this.getRuleContexts(M):this.getRuleContext(t,M)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testBlock}enterRule(t){t.enterTestBlock&&t.enterTestBlock(this)}exitRule(t){t.exitTestBlock&&t.exitTestBlock(this)}accept(t){return t.visitTestBlock?t.visitTestBlock(this):t.visitChildren(this)}}e.TestBlockContext=F;class j extends p.ParserRuleContext{FOR_TOK(){return this.getToken(O.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,jt)}BUT_TOK(){return this.tryGetToken(O.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_scope}enterRule(t){t.enterScope&&t.enterScope(this)}exitRule(t){t.exitScope&&t.exitScope(this)}accept(t){return t.visitScope?t.visitScope(this):t.visitChildren(this)}}e.ScopeContext=j;class H extends p.ParserRuleContext{number(){return this.getRuleContext(0,jt)}qualName(){return this.getRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(O.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_typescope}enterRule(t){t.enterTypescope&&t.enterTypescope(this)}exitRule(t){t.exitTypescope&&t.exitTypescope(this)}accept(t){return t.visitTypescope?t.visitTypescope(this):t.visitChildren(this)}}e.TypescopeContext=H;class B extends p.ParserRuleContext{NONE_TOK(){return this.tryGetToken(O.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(O.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(O.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,jt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_const}enterRule(t){t.enterConst&&t.enterConst(this)}exitRule(t){t.exitConst&&t.exitConst(this)}accept(t){return t.visitConst?t.visitConst(this):t.visitChildren(this)}}e.ConstContext=B;class G extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(O.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(O.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(O.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_satisfiabilityDecl}enterRule(t){t.enterSatisfiabilityDecl&&t.enterSatisfiabilityDecl(this)}exitRule(t){t.exitSatisfiabilityDecl&&t.exitSatisfiabilityDecl(this)}accept(t){return t.visitSatisfiabilityDecl?t.visitSatisfiabilityDecl(this):t.visitChildren(this)}}e.SatisfiabilityDeclContext=G;class z extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(O.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,at)}BAR_TOK(){return this.getToken(O.BAR_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(O.FOR_TOK):this.getToken(O.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(O.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(O.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantifiedPropertyDecl}enterRule(t){t.enterQuantifiedPropertyDecl&&t.enterQuantifiedPropertyDecl(this)}exitRule(t){t.exitQuantifiedPropertyDecl&&t.exitQuantifiedPropertyDecl(this)}accept(t){return t.visitQuantifiedPropertyDecl?t.visitQuantifiedPropertyDecl(this):t.visitChildren(this)}}e.QuantifiedPropertyDeclContext=z;class q extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}FOR_TOK(t){return void 0===t?this.getTokens(O.FOR_TOK):this.getToken(O.FOR_TOK,t)}name(){return this.getRuleContext(0,nt)}SUFFICIENT_TOK(){return this.tryGetToken(O.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(O.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_propertyDecl}enterRule(t){t.enterPropertyDecl&&t.enterPropertyDecl(this)}exitRule(t){t.exitPropertyDecl&&t.exitPropertyDecl(this)}accept(t){return t.visitPropertyDecl?t.visitPropertyDecl(this):t.visitChildren(this)}}e.PropertyDeclContext=q;class V extends p.ParserRuleContext{ASSERT_TOK(){return this.getToken(O.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,pt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}WITH_TOK(){return this.getToken(O.WITH_TOK,0)}name(){return this.getRuleContext(0,nt)}CONSISTENT_TOK(){return this.tryGetToken(O.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(O.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,j)}FOR_TOK(){return this.tryGetToken(O.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_consistencyDecl}enterRule(t){t.enterConsistencyDecl&&t.enterConsistencyDecl(this)}exitRule(t){t.exitConsistencyDecl&&t.exitConsistencyDecl(this)}accept(t){return t.visitConsistencyDecl?t.visitConsistencyDecl(this):t.visitChildren(this)}}e.ConsistencyDeclContext=V;class Y extends p.ParserRuleContext{TEST_TOK(){return this.getToken(O.TEST_TOK,0)}SUITE_TOK(){return this.getToken(O.SUITE_TOK,0)}FOR_TOK(){return this.getToken(O.FOR_TOK,0)}name(){return this.getRuleContext(0,nt)}LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}testConstruct(t){return void 0===t?this.getRuleContexts($):this.getRuleContext(t,$)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testSuiteDecl}enterRule(t){t.enterTestSuiteDecl&&t.enterTestSuiteDecl(this)}exitRule(t){t.exitTestSuiteDecl&&t.exitTestSuiteDecl(this)}accept(t){return t.visitTestSuiteDecl?t.visitTestSuiteDecl(this):t.visitChildren(this)}}e.TestSuiteDeclContext=Y;class $ extends p.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Mt)}testExpectDecl(){return this.tryGetRuleContext(0,U)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,z)}propertyDecl(){return this.tryGetRuleContext(0,q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,G)}consistencyDecl(){return this.tryGetRuleContext(0,V)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_testConstruct}enterRule(t){t.enterTestConstruct&&t.enterTestConstruct(this)}exitRule(t){t.exitTestConstruct&&t.exitTestConstruct(this)}accept(t){return t.visitTestConstruct?t.visitTestConstruct(this):t.visitChildren(this)}}e.TestConstructContext=$;class Q extends p.ParserRuleContext{ARROW_TOK(){return this.getToken(O.ARROW_TOK,0)}mult(t){return void 0===t?this.getRuleContexts(R):this.getRuleContext(t,R)}SET_TOK(t){return void 0===t?this.getTokens(O.SET_TOK):this.getToken(O.SET_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowOp}enterRule(t){t.enterArrowOp&&t.enterArrowOp(this)}exitRule(t){t.exitArrowOp&&t.exitArrowOp(this)}accept(t){return t.visitArrowOp?t.visitArrowOp(this):t.visitChildren(this)}}e.ArrowOpContext=Q;class W extends p.ParserRuleContext{IN_TOK(){return this.tryGetToken(O.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(O.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(O.LT_TOK,0)}GT_TOK(){return this.tryGetToken(O.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(O.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(O.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(O.IS_TOK,0)}NI_TOK(){return this.tryGetToken(O.NI_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_compareOp}enterRule(t){t.enterCompareOp&&t.enterCompareOp(this)}exitRule(t){t.exitCompareOp&&t.exitCompareOp(this)}accept(t){return t.visitCompareOp?t.visitCompareOp(this):t.visitChildren(this)}}e.CompareOpContext=W;class X extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}EQ_TOK(){return this.getToken(O.EQ_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_letDecl}enterRule(t){t.enterLetDecl&&t.enterLetDecl(this)}exitRule(t){t.exitLetDecl&&t.exitLetDecl(this)}accept(t){return t.visitLetDecl?t.visitLetDecl(this):t.visitChildren(this)}}e.LetDeclContext=X;class J extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(O.RIGHT_CURLY_TOK,0)}expr(t){return void 0===t?this.getRuleContexts(pt):this.getRuleContext(t,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}}e.BlockContext=J;class Z extends p.ParserRuleContext{block(){return this.tryGetRuleContext(0,J)}BAR_TOK(){return this.tryGetToken(O.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_blockOrBar}enterRule(t){t.enterBlockOrBar&&t.enterBlockOrBar(this)}exitRule(t){t.exitBlockOrBar&&t.exitBlockOrBar(this)}accept(t){return t.visitBlockOrBar?t.visitBlockOrBar(this):t.visitChildren(this)}}e.BlockOrBarContext=Z;class tt extends p.ParserRuleContext{ALL_TOK(){return this.tryGetToken(O.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(O.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,R)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quant}enterRule(t){t.enterQuant&&t.enterQuant(this)}exitRule(t){t.exitQuant&&t.exitQuant(this)}accept(t){return t.visitQuant?t.visitQuant(this):t.visitChildren(this)}}e.QuantContext=tt;class et extends p.ParserRuleContext{name(t){return void 0===t?this.getRuleContexts(nt):this.getRuleContext(t,nt)}THIS_TOK(){return this.tryGetToken(O.THIS_TOK,0)}SLASH_TOK(t){return void 0===t?this.getTokens(O.SLASH_TOK):this.getToken(O.SLASH_TOK,t)}INT_TOK(){return this.tryGetToken(O.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(O.SUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_qualName}enterRule(t){t.enterQualName&&t.enterQualName(this)}exitRule(t){t.exitQualName&&t.exitQualName(this)}accept(t){return t.visitQualName?t.visitQualName(this):t.visitChildren(this)}}e.QualNameContext=et;class rt extends p.ParserRuleContext{OPTION_TOK(){return this.getToken(O.OPTION_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}STRING_TOK(){return this.tryGetToken(O.STRING_TOK,0)}number(){return this.tryGetRuleContext(0,jt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_optionDecl}enterRule(t){t.enterOptionDecl&&t.enterOptionDecl(this)}exitRule(t){t.exitOptionDecl&&t.exitOptionDecl(this)}accept(t){return t.visitOptionDecl?t.visitOptionDecl(this):t.visitChildren(this)}}e.OptionDeclContext=rt;class nt extends p.ParserRuleContext{IDENTIFIER_TOK(){return this.tryGetToken(O.IDENTIFIER_TOK,0)}QUOTED_IDENTIFIER_TOK(){return this.tryGetToken(O.QUOTED_IDENTIFIER_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_name}enterRule(t){t.enterName&&t.enterName(this)}exitRule(t){t.exitName&&t.exitName(this)}accept(t){return t.visitName?t.visitName(this):t.visitChildren(this)}}e.NameContext=nt;class it extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,it)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_nameList}enterRule(t){t.enterNameList&&t.enterNameList(this)}exitRule(t){t.exitNameList&&t.exitNameList(this)}accept(t){return t.visitNameList?t.visitNameList(this):t.visitChildren(this)}}e.NameListContext=it;class st extends p.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,st)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_qualNameList}enterRule(t){t.enterQualNameList&&t.enterQualNameList(this)}exitRule(t){t.exitQualNameList&&t.exitQualNameList(this)}accept(t){return t.visitQualNameList?t.visitQualNameList(this):t.visitChildren(this)}}e.QualNameListContext=st;class ot extends p.ParserRuleContext{paraDecl(){return this.getRuleContext(0,C)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,ot)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_paraDeclList}enterRule(t){t.enterParaDeclList&&t.enterParaDeclList(this)}exitRule(t){t.exitParaDeclList&&t.exitParaDeclList(this)}accept(t){return t.visitParaDeclList?t.visitParaDeclList(this):t.visitChildren(this)}}e.ParaDeclListContext=ot;class at extends p.ParserRuleContext{quantDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_quantDeclList}enterRule(t){t.enterQuantDeclList&&t.enterQuantDeclList(this)}exitRule(t){t.exitQuantDeclList&&t.exitQuantDeclList(this)}accept(t){return t.visitQuantDeclList?t.visitQuantDeclList(this):t.visitChildren(this)}}e.QuantDeclListContext=at;class lt extends p.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,I)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,lt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowDeclList}enterRule(t){t.enterArrowDeclList&&t.enterArrowDeclList(this)}exitRule(t){t.exitArrowDeclList&&t.exitArrowDeclList(this)}accept(t){return t.visitArrowDeclList?t.visitArrowDeclList(this):t.visitChildren(this)}}e.ArrowDeclListContext=lt;class ct extends p.ParserRuleContext{letDecl(){return this.getRuleContext(0,X)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ct)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_letDeclList}enterRule(t){t.enterLetDeclList&&t.enterLetDeclList(this)}exitRule(t){t.exitLetDeclList&&t.exitLetDeclList(this)}accept(t){return t.visitLetDeclList?t.visitLetDeclList(this):t.visitChildren(this)}}e.LetDeclListContext=ct;class ut extends p.ParserRuleContext{typescope(){return this.getRuleContext(0,H)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,ut)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_typescopeList}enterRule(t){t.enterTypescopeList&&t.enterTypescopeList(this)}exitRule(t){t.exitTypescopeList&&t.exitTypescopeList(this)}accept(t){return t.visitTypescopeList?t.visitTypescopeList(this):t.visitChildren(this)}}e.TypescopeListContext=ut;class ht extends p.ParserRuleContext{expr(){return this.getRuleContext(0,pt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_exprList}enterRule(t){t.enterExprList&&t.enterExprList(this)}exitRule(t){t.exitExprList&&t.exitExprList(this)}accept(t){return t.visitExprList?t.visitExprList(this):t.visitChildren(this)}}e.ExprListContext=ht;class pt extends p.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,dt)}LET_TOK(){return this.tryGetToken(O.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,ct)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(O.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,at)}DISJ_TOK(){return this.tryGetToken(O.DISJ_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr}enterRule(t){t.enterExpr&&t.enterExpr(this)}exitRule(t){t.exitExpr&&t.exitExpr(this)}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}}e.ExprContext=pt;class dt extends p.ParserRuleContext{expr1_5(){return this.getRuleContext(0,ft)}expr1(){return this.tryGetRuleContext(0,dt)}OR_TOK(){return this.tryGetToken(O.OR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr1}enterRule(t){t.enterExpr1&&t.enterExpr1(this)}exitRule(t){t.exitExpr1&&t.exitExpr1(this)}accept(t){return t.visitExpr1?t.visitExpr1(this):t.visitChildren(this)}}e.Expr1Context=dt;class ft extends p.ParserRuleContext{expr2(){return this.getRuleContext(0,_t)}expr1_5(){return this.tryGetRuleContext(0,ft)}XOR_TOK(){return this.tryGetToken(O.XOR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr1_5}enterRule(t){t.enterExpr1_5&&t.enterExpr1_5(this)}exitRule(t){t.exitExpr1_5&&t.exitExpr1_5(this)}accept(t){return t.visitExpr1_5?t.visitExpr1_5(this):t.visitChildren(this)}}e.Expr1_5Context=ft;class _t extends p.ParserRuleContext{expr3(){return this.getRuleContext(0,Tt)}expr2(){return this.tryGetRuleContext(0,_t)}IFF_TOK(){return this.tryGetToken(O.IFF_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr2}enterRule(t){t.enterExpr2&&t.enterExpr2(this)}exitRule(t){t.exitExpr2&&t.exitExpr2(this)}accept(t){return t.visitExpr2?t.visitExpr2(this):t.visitChildren(this)}}e.Expr2Context=_t;class Tt extends p.ParserRuleContext{expr4(){return this.getRuleContext(0,yt)}IMP_TOK(){return this.tryGetToken(O.IMP_TOK,0)}expr3(t){return void 0===t?this.getRuleContexts(Tt):this.getRuleContext(t,Tt)}ELSE_TOK(){return this.tryGetToken(O.ELSE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr3}enterRule(t){t.enterExpr3&&t.enterExpr3(this)}exitRule(t){t.exitExpr3&&t.exitExpr3(this)}accept(t){return t.visitExpr3?t.visitExpr3(this):t.visitChildren(this)}}e.Expr3Context=Tt;class yt extends p.ParserRuleContext{expr5(){return this.getRuleContext(0,Ot)}expr4(){return this.tryGetRuleContext(0,yt)}AND_TOK(){return this.tryGetToken(O.AND_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr4}enterRule(t){t.enterExpr4&&t.enterExpr4(this)}exitRule(t){t.exitExpr4&&t.exitExpr4(this)}accept(t){return t.visitExpr4?t.visitExpr4(this):t.visitChildren(this)}}e.Expr4Context=yt;class Ot extends p.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(O.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,Ot)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr5}enterRule(t){t.enterExpr5&&t.enterExpr5(this)}exitRule(t){t.exitExpr5&&t.exitExpr5(this)}accept(t){return t.visitExpr5?t.visitExpr5(this):t.visitChildren(this)}}e.Expr5Context=Ot;class xt extends p.ParserRuleContext{expr7(){return this.getRuleContext(0,gt)}expr6(){return this.tryGetRuleContext(0,xt)}compareOp(){return this.tryGetRuleContext(0,W)}NEG_TOK(){return this.tryGetToken(O.NEG_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr6}enterRule(t){t.enterExpr6&&t.enterExpr6(this)}exitRule(t){t.exitExpr6&&t.exitExpr6(this)}accept(t){return t.visitExpr6?t.visitExpr6(this):t.visitChildren(this)}}e.Expr6Context=xt;class gt extends p.ParserRuleContext{expr8(){return this.getRuleContext(0,Et)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(O.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(O.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(O.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(O.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(O.SET_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr7}enterRule(t){t.enterExpr7&&t.enterExpr7(this)}exitRule(t){t.exitExpr7&&t.exitExpr7(this)}accept(t){return t.visitExpr7?t.visitExpr7(this):t.visitChildren(this)}}e.Expr7Context=gt;class Et extends p.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,mt)}expr8(){return this.tryGetRuleContext(0,Et)}expr10(){return this.tryGetRuleContext(0,vt)}PLUS_TOK(){return this.tryGetToken(O.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr8}enterRule(t){t.enterExpr8&&t.enterExpr8(this)}exitRule(t){t.exitExpr8&&t.exitExpr8(this)}accept(t){return t.visitExpr8?t.visitExpr8(this):t.visitChildren(this)}}e.Expr8Context=Et;class mt extends p.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,vt)}CARD_TOK(){return this.tryGetToken(O.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,mt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr9}enterRule(t){t.enterExpr9&&t.enterExpr9(this)}exitRule(t){t.exitExpr9&&t.exitExpr9(this)}accept(t){return t.visitExpr9?t.visitExpr9(this):t.visitChildren(this)}}e.Expr9Context=mt;class vt extends p.ParserRuleContext{expr11(){return this.getRuleContext(0,St)}expr10(){return this.tryGetRuleContext(0,vt)}PPLUS_TOK(){return this.tryGetToken(O.PPLUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr10}enterRule(t){t.enterExpr10&&t.enterExpr10(this)}exitRule(t){t.exitExpr10&&t.exitExpr10(this)}accept(t){return t.visitExpr10?t.visitExpr10(this):t.visitChildren(this)}}e.Expr10Context=vt;class St extends p.ParserRuleContext{expr12(){return this.getRuleContext(0,Nt)}expr11(){return this.tryGetRuleContext(0,St)}AMP_TOK(){return this.tryGetToken(O.AMP_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr11}enterRule(t){t.enterExpr11&&t.enterExpr11(this)}exitRule(t){t.exitExpr11&&t.exitExpr11(this)}accept(t){return t.visitExpr11?t.visitExpr11(this):t.visitChildren(this)}}e.Expr11Context=St;class Nt extends p.ParserRuleContext{expr13(){return this.getRuleContext(0,Rt)}expr12(){return this.tryGetRuleContext(0,Nt)}arrowOp(){return this.tryGetRuleContext(0,Q)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr12}enterRule(t){t.enterExpr12&&t.enterExpr12(this)}exitRule(t){t.exitExpr12&&t.exitExpr12(this)}accept(t){return t.visitExpr12?t.visitExpr12(this):t.visitChildren(this)}}e.Expr12Context=Nt;class Rt extends p.ParserRuleContext{expr14(){return this.getRuleContext(0,bt)}expr13(){return this.tryGetRuleContext(0,Rt)}SUBT_TOK(){return this.tryGetToken(O.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(O.SUPT_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr13}enterRule(t){t.enterExpr13&&t.enterExpr13(this)}exitRule(t){t.exitExpr13&&t.exitExpr13(this)}accept(t){return t.visitExpr13?t.visitExpr13(this):t.visitChildren(this)}}e.Expr13Context=Rt;class bt extends p.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,At)}expr14(){return this.tryGetRuleContext(0,bt)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr14}enterRule(t){t.enterExpr14&&t.enterExpr14(this)}exitRule(t){t.exitExpr14&&t.exitExpr14(this)}accept(t){return t.visitExpr14?t.visitExpr14(this):t.visitChildren(this)}}e.Expr14Context=bt;class At extends p.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Ct)}expr15(){return this.tryGetRuleContext(0,At)}DOT_TOK(){return this.tryGetToken(O.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}LEFT_SQUARE_TOK(){return this.tryGetToken(O.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,ht)}RIGHT_SQUARE_TOK(){return this.tryGetToken(O.RIGHT_SQUARE_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr15}enterRule(t){t.enterExpr15&&t.enterExpr15(this)}exitRule(t){t.exitExpr15&&t.exitExpr15(this)}accept(t){return t.visitExpr15?t.visitExpr15(this):t.visitChildren(this)}}e.Expr15Context=At;class Ct extends p.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,Lt)}expr17(){return this.tryGetRuleContext(0,Ct)}TILDE_TOK(){return this.tryGetToken(O.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(O.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(O.STAR_TOK,0)}GET_LABEL_TOK(){return this.tryGetToken(O.GET_LABEL_TOK,0)}GET_LABEL_STR_TOK(){return this.tryGetToken(O.GET_LABEL_STR_TOK,0)}GET_LABEL_BOOL_TOK(){return this.tryGetToken(O.GET_LABEL_BOOL_TOK,0)}GET_LABEL_NUM_TOK(){return this.tryGetToken(O.GET_LABEL_NUM_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr17}enterRule(t){t.enterExpr17&&t.enterExpr17(this)}exitRule(t){t.exitExpr17&&t.exitExpr17(this)}accept(t){return t.visitExpr17?t.visitExpr17(this):t.visitChildren(this)}}e.Expr17Context=Ct;class Lt extends p.ParserRuleContext{const(){return this.tryGetRuleContext(0,B)}qualName(){return this.tryGetRuleContext(0,et)}AT_TOK(){return this.tryGetToken(O.AT_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}BACKQUOTE_TOK(){return this.tryGetToken(O.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(O.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(O.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,at)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(O.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,pt)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,J)}sexpr(){return this.tryGetRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_expr18}enterRule(t){t.enterExpr18&&t.enterExpr18(this)}exitRule(t){t.exitExpr18&&t.exitExpr18(this)}accept(t){return t.visitExpr18?t.visitExpr18(this):t.visitChildren(this)}}e.Expr18Context=Lt;class It extends p.ParserRuleContext{qualName(){return this.getRuleContext(0,et)}ARROW_TOK(){return this.tryGetToken(O.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,It)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_arrowExpr}enterRule(t){t.enterArrowExpr&&t.enterArrowExpr(this)}exitRule(t){t.exitArrowExpr&&t.exitArrowExpr(this)}accept(t){return t.visitArrowExpr?t.visitArrowExpr(this):t.visitChildren(this)}}e.ArrowExprContext=It;class wt extends p.ParserRuleContext{sexpr(){return this.getRuleContext(0,Pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sexprDecl}enterRule(t){t.enterSexprDecl&&t.enterSexprDecl(this)}exitRule(t){t.exitSexprDecl&&t.exitSexprDecl(this)}accept(t){return t.visitSexprDecl?t.visitSexprDecl(this):t.visitChildren(this)}}e.SexprDeclContext=wt;class Pt extends p.ParserRuleContext{SEXPR_TOK(){return this.getToken(O.SEXPR_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_sexpr}enterRule(t){t.enterSexpr&&t.enterSexpr(this)}exitRule(t){t.exitSexpr&&t.exitSexpr(this)}accept(t){return t.visitSexpr?t.visitSexpr(this):t.visitChildren(this)}}e.SexprContext=Pt;class Kt extends p.ParserRuleContext{INST_TOK(){return this.getToken(O.INST_TOK,0)}name(){return this.getRuleContext(0,nt)}bounds(){return this.getRuleContext(0,Ht)}scope(){return this.tryGetRuleContext(0,j)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_instDecl}enterRule(t){t.enterInstDecl&&t.enterInstDecl(this)}exitRule(t){t.exitInstDecl&&t.exitInstDecl(this)}accept(t){return t.visitInstDecl?t.visitInstDecl(this):t.visitChildren(this)}}e.InstDeclContext=Kt;class kt extends p.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,I)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_evalRelDecl}enterRule(t){t.enterEvalRelDecl&&t.enterEvalRelDecl(this)}exitRule(t){t.exitEvalRelDecl&&t.exitEvalRelDecl(this)}accept(t){return t.visitEvalRelDecl?t.visitEvalRelDecl(this):t.visitChildren(this)}}e.EvalRelDeclContext=kt;class Dt extends p.ParserRuleContext{EVAL_TOK(){return this.getToken(O.EVAL_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_evalDecl}enterRule(t){t.enterEvalDecl&&t.enterEvalDecl(this)}exitRule(t){t.exitEvalDecl&&t.exitEvalDecl(this)}accept(t){return t.visitEvalDecl?t.visitEvalDecl(this):t.visitChildren(this)}}e.EvalDeclContext=Dt;class Mt extends p.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(O.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,nt)}IS_TOK(){return this.getToken(O.IS_TOK,0)}expr(){return this.getRuleContext(0,pt)}FOR_TOK(){return this.getToken(O.FOR_TOK,0)}bounds(){return this.getRuleContext(0,Ht)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_exampleDecl}enterRule(t){t.enterExampleDecl&&t.enterExampleDecl(this)}exitRule(t){t.exitExampleDecl&&t.exitExampleDecl(this)}accept(t){return t.visitExampleDecl?t.visitExampleDecl(this):t.visitChildren(this)}}e.ExampleDeclContext=Mt;class Ut extends p.ParserRuleContext{name(){return this.getRuleContext(0,nt)}COLON_TOK(){return this.getToken(O.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,It)}EQ_TOK(){return this.getToken(O.EQ_TOK,0)}expr(){return this.getRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_queryDecl}enterRule(t){t.enterQueryDecl&&t.enterQueryDecl(this)}exitRule(t){t.exitQueryDecl&&t.exitQueryDecl(this)}accept(t){return t.visitQueryDecl?t.visitQueryDecl(this):t.visitChildren(this)}}e.QueryDeclContext=Ut;class Ft extends p.ParserRuleContext{number(){return this.getRuleContext(0,jt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,Ft)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_numberList}enterRule(t){t.enterNumberList&&t.enterNumberList(this)}exitRule(t){t.exitNumberList&&t.exitNumberList(this)}accept(t){return t.visitNumberList?t.visitNumberList(this):t.visitChildren(this)}}e.NumberListContext=Ft;class jt extends p.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(O.NUM_CONST_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_number}enterRule(t){t.enterNumber&&t.enterNumber(this)}exitRule(t){t.exitNumber&&t.exitNumber(this)}accept(t){return t.visitNumber?t.visitNumber(this):t.visitChildren(this)}}e.NumberContext=jt;class Ht extends p.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(O.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(O.RIGHT_CURLY_TOK,0)}bound(t){return void 0===t?this.getRuleContexts(Gt):this.getRuleContext(t,Gt)}qualName(){return this.tryGetRuleContext(0,et)}EXACTLY_TOK(){return this.tryGetToken(O.EXACTLY_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bounds}enterRule(t){t.enterBounds&&t.enterBounds(this)}exitRule(t){t.exitBounds&&t.exitBounds(this)}accept(t){return t.visitBounds?t.visitBounds(this):t.visitChildren(this)}}e.BoundsContext=Ht;class Bt extends p.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(O.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,nt)}number(){return this.tryGetRuleContext(0,jt)}MINUS_TOK(){return this.tryGetToken(O.MINUS_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_atomNameOrNumber}enterRule(t){t.enterAtomNameOrNumber&&t.enterAtomNameOrNumber(this)}exitRule(t){t.exitAtomNameOrNumber&&t.exitAtomNameOrNumber(this)}accept(t){return t.visitAtomNameOrNumber?t.visitAtomNameOrNumber(this):t.visitChildren(this)}}e.AtomNameOrNumberContext=Bt;class Gt extends p.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,zt)}compareOp(){return this.tryGetRuleContext(0,W)}bindRHSUnion(){return this.tryGetRuleContext(0,qt)}NO_TOK(){return this.tryGetToken(O.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,et)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bound}enterRule(t){t.enterBound&&t.enterBound(this)}exitRule(t){t.exitBound&&t.exitBound(this)}accept(t){return t.visitBound?t.visitBound(this):t.visitChildren(this)}}e.BoundContext=Gt;class zt extends p.ParserRuleContext{CARD_TOK(){return this.tryGetToken(O.CARD_TOK,0)}qualName(t){return void 0===t?this.getRuleContexts(et):this.getRuleContext(t,et)}atomNameOrNumber(){return this.tryGetRuleContext(0,Bt)}DOT_TOK(t){return void 0===t?this.getTokens(O.DOT_TOK):this.getToken(O.DOT_TOK,t)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_boundLHS}enterRule(t){t.enterBoundLHS&&t.enterBoundLHS(this)}exitRule(t){t.exitBoundLHS&&t.exitBoundLHS(this)}accept(t){return t.visitBoundLHS?t.visitBoundLHS(this):t.visitChildren(this)}}e.BoundLHSContext=zt;class qt extends p.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Vt)}bindRHSUnion(){return this.tryGetRuleContext(0,qt)}PLUS_TOK(){return this.tryGetToken(O.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSUnion}enterRule(t){t.enterBindRHSUnion&&t.enterBindRHSUnion(this)}exitRule(t){t.exitBindRHSUnion&&t.exitBindRHSUnion(this)}accept(t){return t.visitBindRHSUnion?t.visitBindRHSUnion(this):t.visitChildren(this)}}e.BindRHSUnionContext=qt;class Vt extends p.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Vt)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,Yt)}COMMA_TOK(){return this.tryGetToken(O.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(O.ARROW_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSProduct}enterRule(t){t.enterBindRHSProduct&&t.enterBindRHSProduct(this)}exitRule(t){t.exitBindRHSProduct&&t.exitBindRHSProduct(this)}accept(t){return t.visitBindRHSProduct?t.visitBindRHSProduct(this):t.visitChildren(this)}}e.BindRHSProductContext=Vt;class Yt extends p.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,Bt)}qualName(){return this.tryGetRuleContext(0,et)}LEFT_PAREN_TOK(){return this.tryGetToken(O.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,qt)}RIGHT_PAREN_TOK(){return this.tryGetToken(O.RIGHT_PAREN_TOK,0)}constructor(t,e){super(t,e)}get ruleIndex(){return O.RULE_bindRHSProductBase}enterRule(t){t.enterBindRHSProductBase&&t.enterBindRHSProductBase(this)}exitRule(t){t.exitBindRHSProductBase&&t.exitBindRHSProductBase(this)}accept(t){return t.visitBindRHSProductBase?t.visitBindRHSProductBase(this):t.visitChildren(this)}}e.BindRHSProductBaseContext=Yt},5411:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;const s=r(6737),o=r(2399),a=r(7760);let l=class extends s.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r++;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e of this.tokens)if(e.channel===this.channel&&t++,e.type===a.Token.EOF)break;return t}};n([o.Override],l.prototype,"adjustSeekIndex",null),n([o.Override],l.prototype,"tryLB",null),n([o.Override],l.prototype,"tryLT",null),l=n([i(0,o.NotNull)],l),e.CommonTokenStream=l},5481:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return s.ATNStateType.STAR_LOOP_BACK}}n([o.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},5577:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Expr=e.ConsistencyAssertionTest=e.SatisfiabilityAssertionTest=e.Example=e.QuantifiedAssertionTest=e.AssertionTest=e.Test=e.Function=e.Predicate=e.Sig=e.Block=e.SyntaxNode=void 0;class r{constructor(t,e,r,n){this.startRow=t,this.startColumn=e,this.endRow=r,this.endColumn=n}}e.SyntaxNode=r,e.Block=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.statements=i}},e.Sig=class extends r{constructor(t,e,r,n,i,s,o,a){super(t,e,r,n),this.name=i,this.body=s,this.inheritsFrom=o,this.annotation=a}},e.Expr=class extends r{constructor(t,e,r,n,i){super(t,e,r,n),this.expr=i}},e.Predicate=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.params=s,this.body=o}},e.Test=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.name=i,this.check=s,this.body=o,this.bounds=a,this.scope=l}},e.AssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.pred=i,this.prop=s,this.check=o,this.bounds=a,this.scope=l}},e.QuantifiedAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l,c,u,h){super(t,e,r,n),this.pred=i,this.prop=s,this.check=o,this.disj=a,this.quantDecls=l,this.bounds=c,this.scope=u,this.predArgs=h}},e.Example=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.testExpr=s,this.bounds=o}},e.Function=class extends r{constructor(t,e,r,n,i,s,o){super(t,e,r,n),this.name=i,this.params=s,this.body=o}},e.SatisfiabilityAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a){super(t,e,r,n),this.exp=i,this.check=s,this.bounds=o,this.scope=a}},e.ConsistencyAssertionTest=class extends r{constructor(t,e,r,n,i,s,o,a,l){super(t,e,r,n),this.pred=i,this.prop=s,this.consistent=o,this.bounds=a,this.scope=l}}},5585:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;const s=r(2399);class o{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n<r&&this.shouldVisitNextChild(t,e);n++){let r=t.getChild(n).accept(this);e=this.aggregateResult(e,r)}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}aggregateResult(t,e){return e}shouldVisitNextChild(t,e){return!0}}n([s.Override,i(0,s.NotNull)],o.prototype,"visit",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitChildren",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitTerminal",null),n([s.Override,i(0,s.NotNull)],o.prototype,"visitErrorNode",null),n([i(0,s.NotNull)],o.prototype,"shouldVisitNextChild",null),e.AbstractParseTreeVisitor=o},5606:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,l=[],c=!1,u=-1;function h(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&p())}function p(){if(!c){var t=o(h);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new d(t,e)),1!==l.length||c||o(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5629:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;const i=r(8291),s=r(7477),o=r(2399);class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,o,a,l,c){let u=new i.CommonToken(e,r,t,n,o,a);return u.line=l,u.charPositionInLine=c,null==r&&this.copyText&&null!=t.stream&&(u.text=t.stream.getText(s.Interval.of(o,a))),u}createSimple(t,e){return new i.CommonToken(t,e)}}n([o.Override],a.prototype,"create",null),n([o.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,function(t){t.DEFAULT=new t}(a=e.CommonTokenFactory||(e.CommonTokenFactory={}))},5635:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5636:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n<e;n++)r=(r<<5>>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let s=e(i),o=0;for(let e of t)s=r(s,e),o++;return s=n(s,o),s}}(e.MurmurHash||(e.MurmurHash={}))},5643:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;const i=r(2399),s=r(5636),o=r(8055);class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?s.MurmurHash.hashCode([t]):o.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:o.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},5680:(t,e,r)=>{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},5754:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,s=r-1;for(;i<=s;){let e=i+s>>>1,r=t[e];if(r<n)i=e+1;else{if(!(r>n))return e;s=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},5767:(t,e,r)=>{"use strict";var n=r(2682),i=r(9209),s=r(487),o=r(6556),a=r(5795),l=r(3628),c=o("Object.prototype.toString"),u=r(9092)(),h="undefined"==typeof globalThis?r.g:globalThis,p=i(),d=o("String.prototype.slice"),f=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},_={__proto__:null};n(p,u&&a&&l?function(t){var e=new h[t];if(Symbol.toStringTag in e&&l){var r=l(e),n=a(r,Symbol.toStringTag);if(!n&&r){var i=l(r);n=a(i,Symbol.toStringTag)}if(n&&n.get){var o=s(n.get);_["$"+t]=o}}}:function(t){var e=new h[t],r=e.slice||e.set;if(r){var n=s(r);_["$"+t]=n}}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!u){var e=d(c(t),8,-1);return function(t){return f(p,t)>-1}(e)?e:"Object"===e&&function(t){var e=!1;return n(_,function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}}),e}(t)}return a?function(t){var e=!1;return n(_,function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}}),e}(t):null}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5859:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerSkipAction=a,function(t){t.INSTANCE=new t}(a=e.LexerSkipAction||(e.LexerSkipAction={}))},5866:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;const n=r(4148),i=r(4605);class s{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new s(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new s.Builder(t)}}e.CodePointBuffer=s,function(t){let e;!function(t){t[t.BYTE=0]="BYTE",t[t.CHAR=1]="CHAR",t[t.INT=2]="INT"}(e||(e={}));class r{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint8Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 1:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint16Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 2:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Int32Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t)}}appendArrayByte(t){n(-1===this.prevHighSurrogate);let e=t,r=0,s=t.length,o=this.buffer,a=this.position;for(;r<s;){let n=e[r];if(!(n<=255))return t=t.subarray(r,s),this.position=a,i.isHighSurrogate(n)?(this.byteToIntBuffer(t.length),void this.appendArrayInt(t)):(this.byteToCharBuffer(t.length),void this.appendArrayChar(t));o[a]=n,r++,a++}this.position=a}appendArrayChar(t){n(-1===this.prevHighSurrogate);let e=t,r=0,s=t.length,o=this.buffer,a=this.position;for(;r<s;){let n=e[r];if(i.isHighSurrogate(n))return t=t.subarray(r,s),this.position=a,this.charToIntBuffer(t.length),void this.appendArrayInt(t);o[a]=n,r++,a++}this.position=a}appendArrayInt(t){let e=t,r=0,n=t.length,s=this.buffer,o=this.position;for(;r<n;){let t=e[r];r++,-1!==this.prevHighSurrogate?i.isLowSurrogate(t)?(s[o]=String.fromCharCode(this.prevHighSurrogate,t).codePointAt(0),o++,this.prevHighSurrogate=-1):(s[o]=this.prevHighSurrogate,o++,i.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++,this.prevHighSurrogate=-1)):i.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++)}-1!==this.prevHighSurrogate&&(s[o]=this.prevHighSurrogate,o++),this.position=o}byteToCharBuffer(t){let e=new Uint16Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=r}(s=e.CodePointBuffer||(e.CodePointBuffer={}))},5880:t=>{"use strict";t.exports=Math.pow},5895:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;const i=r(3258),s=r(2399);class o extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new o(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([s.Override],o.prototype,"clone",null),n([s.Override],o.prototype,"getKey",null),n([s.Override],o.prototype,"canMerge",null),e.OrderedATNConfigSet=o},5920:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;const s=r(2399),o=r(6605);let a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=o.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([s.NotNull],a.prototype,"_pattern",void 0),n([s.NotNull],a.prototype,"_patternTree",void 0),n([s.NotNull],a.prototype,"_matcher",void 0),n([s.NotNull,i(0,s.NotNull)],a.prototype,"match",null),n([i(0,s.NotNull)],a.prototype,"matches",null),n([s.NotNull,i(0,s.NotNull),i(1,s.NotNull)],a.prototype,"findAll",null),n([s.NotNull],a.prototype,"matcher",null),n([s.NotNull],a.prototype,"pattern",null),n([s.NotNull],a.prototype,"patternTree",null),a=n([i(0,s.NotNull),i(1,s.NotNull),i(3,s.NotNull)],a),e.ParseTreePattern=a},5922:function(t,e,r){"use strict";var n=r(5606),i=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},s=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;const a=r(659),l=r(8955),c=r(493),u=r(3361),h=r(1964),p=r(1862),d=r(2807),f=r(2399),_=r(8344),T=r(3161),y=r(6142),O=r(8831),x=r(360),g=r(7760);class E{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],E.prototype,"enterEveryRule",null),i([f.Override],E.prototype,"exitEveryRule",null),i([f.Override],E.prototype,"visitErrorNode",null),i([f.Override],E.prototype,"visitTerminal",null);class m extends O.Recognizer{constructor(t){super(),this._errHandler=new u.DefaultErrorStrategy,this._precedenceStack=new p.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let e=this.interpreter;null!=e&&e.reset()}match(t){let e=this.currentToken;return e.type===t?(t===g.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex(e=>e===t);-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=m.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new c.ATNDeserializer(r).deserialize(a.toCharArray(t)),m.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return o(this,void 0,void 0,function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof d.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then(()=>r(4864))).ParseTreePatternMatcher)(i,this).compile(t,e)})}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let s=this.getErrorListenerDispatch();s.syntaxError&&s.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==m.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new x.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){let t=this._ctx._parent;null!=t&&t.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(g.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(g.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(g.Token.EPSILON)||t!==g.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){let e=this.getRuleIndexMap().get(t);return null!=e?e:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>r(1284)).then(t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new _.ParseInfo(e)})}setProfile(t){return o(this,void 0,void 0,function*(){let e=yield Promise.resolve().then(()=>r(1284)),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new T.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())})}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new E(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}m.bypassAltsAtnCache=new Map,i([f.NotNull],m.prototype,"_errHandler",void 0),i([f.NotNull],m.prototype,"match",null),i([f.NotNull],m.prototype,"matchWildcard",null),i([f.NotNull],m.prototype,"getParseListeners",null),i([s(0,f.NotNull)],m.prototype,"addParseListener",null),i([f.NotNull],m.prototype,"getATNWithBypassAlts",null),i([f.NotNull,s(0,f.NotNull)],m.prototype,"errorHandler",null),i([f.Override],m.prototype,"inputStream",null),i([f.NotNull],m.prototype,"currentToken",null),i([s(0,f.NotNull)],m.prototype,"enterRule",null),i([f.Override,s(0,f.Nullable)],m.prototype,"precpred",null),i([f.Override],m.prototype,"getErrorListenerDispatch",null),i([f.NotNull],m.prototype,"getExpectedTokens",null),i([f.NotNull],m.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],m.prototype,"parseInfo",null),e.Parser=m},6061:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;const s=r(8939),o=r(2399),a=r(2356);let l=class extends s.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.PrecedencePredicateTransition=l},6142:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;const i=r(7115),s=r(2399);class o extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,s,o){this.getDelegates().forEach(a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,s,o)})}reportAttemptingFullContext(t,e,r,n,i,s){this.getDelegates().forEach(o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(t,e,r,n,i,s)})}reportContextSensitivity(t,e,r,n,i,s){this.getDelegates().forEach(o=>{o.reportContextSensitivity&&o.reportContextSensitivity(t,e,r,n,i,s)})}}n([s.Override],o.prototype,"reportAmbiguity",null),n([s.Override],o.prototype,"reportAttemptingFullContext",null),n([s.Override],o.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=o},6145:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;const s=r(2807),o=r(1088),a=r(2399),l=r(2399);let c=class extends s.Lexer{constructor(t,e,r,n,i,s,a){if(super(a),0!==s.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=s,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new o.LexerATNSimulator(s,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([a.NotNull],c.prototype,"_vocabulary",void 0),n([l.Override],c.prototype,"atn",null),n([l.Override],c.prototype,"grammarFileName",null),n([l.Override],c.prototype,"ruleNames",null),n([l.Override],c.prototype,"channelNames",null),n([l.Override],c.prototype,"modeNames",null),n([l.Override],c.prototype,"vocabulary",null),c=n([i(1,a.NotNull)],c),e.LexerInterpreter=c},6181:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;const s=r(9449),o=r(2399),a=r(7477),l=r(659);let c=class extends s.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(a.Interval.of(this._startIndex,this._startIndex)),t=l.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};n([o.Override],c.prototype,"inputStream",null),n([o.Override],c.prototype,"toString",null),c=n([i(1,o.NotNull)],c),e.LexerNoViableAltException=c},6188:t=>{"use strict";t.exports=Math.max},6251:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.LOOP_END}}n([o.Override],a.prototype,"stateType",null),e.LoopEndState=a},6298:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;const s=r(3258),o=r(9709),a=r(2399),l=r(8859);let c=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new o.DFAState(new s.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],c.prototype,"atn",void 0),n([a.NotNull],c,"ERROR",null),c=n([i(0,a.NotNull)],c),e.ATNSimulator=c,c=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=c},6305:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;const i=r(7037),s=r(8016),o=r(2399);class a extends s.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([o.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},6369:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;const s=r(8939),o=r(2399),a=r(2356);let l=class extends s.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.PredicateTransition=l},6409:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;const i=r(3907),s=r(2399),o=r(8055),a=r(8859),l=r(4148);class c{constructor(t=!0){this.contexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(o.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new c.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new c.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=c,c.UNCACHED=new c(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([s.Override],e.prototype,"equals",null),n([s.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([s.Override],r.prototype,"equals",null),n([s.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(c=e.PredictionContextCache||(e.PredictionContextCache={}))},6474:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;const s=r(5636),o=r(2399);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),s.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerMoreAction=a,function(t){t.INSTANCE=new t}(a=e.LexerMoreAction||(e.LexerMoreAction={}))},6479:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._type),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerTypeAction=a},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{"use strict";var n=r(453),i=r(3126),s=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i([r]):r}},6576:(t,e,r)=>{"use strict";var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6605:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;const n=r(6776),i=r(5411),s=r(6181),o=r(1097),a=r(7760),l=r(9939),c=r(2593),u=r(996),h=r(6739),p=r(2193),d=r(4197),f=r(7712),_=r(2431);class T{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new c.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof s.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let o=r.getTokens(),u=[],h=o.length,p=0;t:for(;p<h;){let t,e=o[p];switch(e.type){case l.XPathLexer.ROOT:case l.XPathLexer.ANYWHERE:let r=e.type===l.XPathLexer.ANYWHERE;p++,t=o[p];let n=t.type===l.XPathLexer.BANG;n&&(p++,t=o[p]);let i=this.getXPathElement(t,r);i.invert=n,u.push(i),p++;break;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.RULE_REF:case l.XPathLexer.WILDCARD:u.push(this.getXPathElement(e,!1)),p++;break;case a.Token.EOF:break t;default:throw new Error("Unknowth path element "+e)}}return u}getXPathElement(t,e){if(t.type===a.Token.EOF)throw new Error("Missing path element at end of path");let r=t.text;if(null==r)throw new Error("Expected wordToken to have text content.");let n=this.parser.getTokenType(r),i=this.parser.getRuleIndex(r);switch(t.type){case l.XPathLexer.WILDCARD:return e?new f.XPathWildcardAnywhereElement:new _.XPathWildcardElement;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.STRING:if(n===a.Token.INVALID_TYPE)throw new Error(r+" at index "+t.startIndex+" isn't a valid token name");return e?new p.XPathTokenAnywhereElement(r,n):new d.XPathTokenElement(r,n);default:if(-1===i)throw new Error(r+" at index "+t.startIndex+" isn't a valid rule name");return e?new u.XPathRuleAnywhereElement(r,i):new h.XPathRuleElement(r,i)}}static findAll(t,e,r){return new T(r,e).evaluate(t)}evaluate(t){let e=new o.ParserRuleContext;e.addChild(t);let r=new Set([e]),n=0;for(;n<this.elements.length;){let t=new Set;for(let e of r)e.childCount>0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=T,T.WILDCARD="*",T.NOT="!"},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6684:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NameNotFoundError=e.ForgeExprEvaluator=e.SUPPORTED_BUILTINS=void 0,e.areTupleArraysEqual=x,e.compareOpKind=b,e.unquoteStringLiteral=C;const n=r(5585),i=r(534),s=r(4699),o=r(7654);function a(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function l(t){return Array.isArray(t)}function c(t){return a(t)?[[t]]:t}function u(t){return"boolean"==typeof t}function h(t){return"number"==typeof t}function p(t){return h(t)?t:(e=t,Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&1===e[0].length&&"number"==typeof e[0][0]?t[0][0]:void 0);var e}function d(t){return"string"==typeof t}function f(t){return JSON.stringify(t)}const _=new WeakMap,T=16;function y(t){let e=_.get(t);return void 0===e&&(e=t.map(t=>JSON.stringify(t)),t.length>=T&&_.set(t,e)),e}function O(t,e){if(t.length<T&&e.length<T){const r=new Set(e.map(f));return t.every(t=>r.has(f(t)))}const r=new Set(y(e)),n=y(t);for(let e=0;e<t.length;e++)if(!r.has(n[e]))return!1;return!0}function x(t,e){return t.length===e.length&&O(t,e)&&O(e,t)}function g(t){const e=new Set,r=[],n=[];for(const i of t){const t=i.length>=T?y(i):void 0;for(let s=0;s<i.length;s++){const o=void 0!==t?t[s]:JSON.stringify(i[s]);e.has(o)||(e.add(o),r.push(i[s]),n.push(o))}}return r.length>=T&&_.set(r,n),r}function E(t){return g([t])}function m(t){const e=t.map(t=>t.flat());if(0===e.length)return[[]];if(e.some(t=>0===t.length))return[];let r=[[]];for(const t of e){const e=[];for(const n of r)for(const r of t)e.push([...n,r]);r=e}return r}function v(t){if(0===t.length)return[];t.forEach(t=>{if(2!==t.length)throw new Error("transitive closure ^ expected a relation of arity 2")});const e=new Map;for(const[r,n]of t)e.has(r)||e.set(r,new Set),e.get(r).add(n);const r=[];for(const t of e.keys()){const n=new Set,i=[...e.get(t)??[]];let s=0;for(;s<i.length;){const o=i[s++];if(n.has(o))continue;n.add(o),r.push([t,o]);const a=e.get(o);if(a)for(const t of a)n.has(t)||i.push(t)}}return r}const S=["add","subtract","multiply","divide","remainder"],N=["abs","sign","floor","ceil"],R=["min","max","sum"];function b(t){return t.IN_TOK()?"in":t.NI_TOK()?"ni":t.EQ_TOK()?"=":t.LT_TOK()?"<":t.GT_TOK()?">":t.LEQ_TOK()?"<=":t.GEQ_TOK()?">=":t.IS_TOK()?"is":t.text}function A(t,e,r){if(Math.abs(t.length-e.length)>r)return r+1;let n=Array.from({length:e.length+1},(t,e)=>e);for(let i=1;i<=t.length;i++){const s=[i];let o=i;for(let r=1;r<=e.length;r++){const a=t[i-1]===e[r-1]?0:1,l=Math.min(n[r]+1,s[r-1]+1,n[r-1]+a);s.push(l),o=Math.min(o,l)}if(o>r)return r+1;n=s}return n[e.length]}function C(t){const e=t.slice(1,-1);if(-1===e.indexOf("\\"))return e;let r="";for(let t=0;t<e.length;t++){if("\\"!==e[t]){r+=e[t];continue}const n=e[++t];switch(n){case"n":r+="\n";break;case"t":r+="\t";break;case"r":r+="\r";break;case"0":r+="\0";break;default:r+=n}}return r}e.SUPPORTED_BUILTINS=S.concat(N,R);class L extends n.AbstractParseTreeVisitor{constructor(t){super(),this.cachedResults=new Map,this.relationCache=null,this.relationIndexCache=null,this.diagnostics=new Map,this.instanceData=t,this.environmentStack=[],this.freeVariableFinder=new s.ForgeExprFreeVariableFinder(t),this.freeVariables=new Map}getDiagnostics(){return Array.from(this.diagnostics.values())}resetDiagnostics(){this.diagnostics.clear()}reportUnresolvedName(t){if(this.diagnostics.has(t))return;const e=this.suggestName(t);this.diagnostics.set(t,{kind:"unresolved-name",severity:"warning",name:t,message:`'${t}' does not name a type, relation, or atom in this instance; it evaluates to the empty set.`+(e?` Did you mean '${e}'?`:"")+` If you meant the string "${t}", write it in double quotes.`,...void 0!==e?{suggestion:e}:{}})}suggestName(t){this.buildRelationCache();const e=new Set;for(const t of this.instanceData.getTypes())e.add(t.id);for(const t of this.relationCache.keys())e.add(t);for(const t of this.instanceData.getAtoms())e.add(t.id);let r,n=1+(t.length<=4?1:2);for(const i of e){if(Math.abs(i.length-t.length)>=n)continue;const e=A(t,i,n);e<n&&(n=e,r=i)}return r}buildRelationCache(){if(null!==this.relationCache)return;this.relationCache=new Map,this.relationIndexCache=new Map;const t=this.instanceData.getRelations();for(const e of t){const t=e.tuples.map(t=>t.atoms.map(t=>this.atomValue(t))),r=this.relationCache.get(e.name);this.relationCache.set(e.name,r?r.concat(t):t)}for(const[t,e]of this.relationCache.entries()){const r=new Map;for(const t of e)if(t.length>0){const e=t[0];r.has(e)||r.set(e,[]),r.get(e).push(t)}this.relationIndexCache.set(t,r)}}updateFreeVariables(t){if(0===this.freeVariables.size&&(this.freeVariables=t),0!==this.freeVariables.size)for(const[e,r]of t.entries()){this.freeVariables.has(e)||this.freeVariables.set(e,new Set);const t=this.freeVariables.get(e);for(const e of r)t.add(e)}}constructFreeVariableKey(t){const e=Object.keys(t);return e.sort(),e.map(e=>{const r=t[e];return`${e}=${Array.isArray(r)?JSON.stringify(r):String(r)}`}).join("|")}getLabelForValue(t){if("number"==typeof t||"boolean"==typeof t)return String(t);if("string"==typeof t){let e=this.instanceData.getAtoms().find(e=>e.id===t);if(e)return void 0!==e.label?e.label:e.id}return t}getLabelAsString(t){if("number"==typeof t||"boolean"==typeof t)return String(t);const e=this.getLabelForValue(t);return String(e)}getLabelAsBoolean(t){if("boolean"==typeof t)return t;if("number"==typeof t)return 0!==t;const e=this.getLabelForValue(t),r=String(e).toLowerCase();if("true"===r)return!0;if("false"===r)return!1;const n=Number(e);return isNaN(n)?""!==r:0!==n}getLabelAsNumber(t){if("number"==typeof t)return t;const e=this.getLabelForValue(t),r=Number(e);if(isNaN(r))throw new Error(`Cannot convert label "${e}" to number`);return r}isConvertibleToNumber(t){return"number"==typeof t||"string"==typeof t&&!isNaN(Number(t))}isConvertibleToBoolean(t){return"boolean"==typeof t||"string"==typeof t&&("true"===t||"#t"===t||"false"===t||"#f"===t)}convertToBoolean(t){if("boolean"==typeof t)return t;if("true"===t||"#t"===t)return!0;if("false"===t||"#f"===t)return!1;throw new Error(`Cannot convert ${t} to boolean`)}atomValue(t){return this.isConvertibleToNumber(t)?Number(t):this.isConvertibleToBoolean(t)?this.convertToBoolean(t):t}dotJoin(t,e,r){const n=c(t),i=c(e);let s;if(r&&this.relationIndexCache&&(s=this.relationIndexCache.get(r)),!s){s=new Map;for(const t of i){const e=t[0];s.has(e)||s.set(e,[]),s.get(e).push(t)}}const o=[];for(const t of n){const e=t[t.length-1],r=s.get(e);if(r)for(const e of r)o.push([...t.slice(0,t.length-1),...e.slice(1)])}if(o.some(t=>0===t.length))throw new Error("Join would create a relation of arity 0");return E(o)}cacheResult(t,e,r,n){this.cachedResults.has(t)||this.cachedResults.set(t,new Map);const i=Array.from(this.diagnostics.values()).filter(t=>!n.has(t.name));this.cachedResults.get(t).set(e,{result:r,diagnostics:i})}getIden(){const t=this.instanceData.getTypes(),e=[],r=new Set;for(const n of t)n.atoms.forEach(t=>{if(r.has(t.id))return;r.add(t.id);const n=this.atomValue(t.id);e.push([n,n])});return e}aggregateResult(t,e){if(l(t)&&0===t.length)return e;if(l(e)&&0===e.length)return t;if(a(t)){if(a(e))return e;throw new Error("Expected nextResult to be a single value")}return a(e)?t.concat([e]):t.concat(e)}defaultResult(){return[]}visitPredDecl(t){return this.visit(t.block())}visitBlock(t){let e;for(const r of t.expr()){const t=this.visit(r);if(!u(t))throw new Error("Each expr in a block must evaluate to a boolean!");e=(void 0===e||e)&&t}if(void 0===e)throw new Error("Expected the block to be nonempty!");return e}visitExpr(t){let e=this.freeVariables.get(t);if(void 0===e){const r=this.freeVariableFinder.visit(t);this.updateFreeVariables(r),e=r.get(t)}let r=!0;const n={};for(const t of e)for(let e=this.environmentStack.length-1;e>=0;e--){const i=this.environmentStack[e];if(void 0!==i.env[t]){n[t]=i.env[t];break}"predArgs"===i.type&&(r=!1)}const i=this.constructFreeVariableKey(n);if(r&&this.cachedResults.has(t)){const e=this.cachedResults.get(t).get(i);if(void 0!==e){for(const t of e.diagnostics)this.diagnostics.has(t.name)||this.diagnostics.set(t.name,t);return e.result}}const s=new Set(this.diagnostics.keys());let l;if(t.LET_TOK()&&(l=[],l.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),t.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(t.quant()){if(void 0===t.quantDeclList())throw new Error("Expected the quantifier to have a quantDeclList!");const e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);const r=this.getQuantDeclListValues(t.quantDeclList()),n=void 0!==t.DISJ_TOK(),a=t.blockOrBar();if(void 0===a)throw new Error("expected to quantify over something!");if(void 0===a.BAR_TOK()||void 0===a.expr())throw new Error("Expected the quantifier to have a bar followed by an expr!");const l=a.expr(),c=[],h=[];for(const t in r)c.push(t),h.push(r[t]);if(t.quant().SUM_TOK()){const e=m(h),r={env:{},type:"quantDecl"};this.environmentStack.push(r);let o=0;for(const t of e){if(n){const e=new Set;let r=!0;for(const n of t){if(e.has(n)){r=!1;break}e.add(n)}if(!r)continue}for(let e=0;e<c.length;e++)r.env[c[e]]=t[e];const e=p(this.visit(l));if(void 0===e)throw this.environmentStack.pop(),new Error("Expected the expression after the bar in a `sum` to evaluate to a number!");o+=e}return this.environmentStack.pop(),this.cacheResult(t,i,o,s),o}let d,f=!1;const _=void 0!==t.quant().ALL_TOK();if(!n&&!_&&c.length>=2&&(0,o.areAllNumericSets)(h)){const t=(0,o.detectNumericComparisonPattern)(l,c);t&&"none"!==t.type?(d=(0,o.generateOptimizedNumericCombinations)(c,h,t),f=!0):d=m(h)}else d=m(h);const T=[];let y=!1,O=!1;const x={env:{},type:"quantDecl"};this.environmentStack.push(x);for(let e=0;e<d.length;e++){const r=d[e];if(n){let t=!0;const e=new Set;for(const n of r){if(e.has(n)){t=!1;break}e.add(n)}if(!t)continue}for(let t=0;t<c.length;t++)x.env[c[t]]=r[t];let o;if(f)o=!0;else{const t=this.visit(l);if(!u(t))throw new Error("Expected the expression after the bar to be a boolean!");o=t}if(o?(T.push(r),y=!0):O=!0,t.quant().ALL_TOK()&&O){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(t.quant().NO_TOK()&&y){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(t.quant().mult()){const e=t.quant().mult();if(e.LONE_TOK()&&T.length>1){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(e.SOME_TOK()&&y){this.environmentStack.pop();const e=!0;return this.cacheResult(t,i,e,s),e}if(e.ONE_TOK()&&T.length>1){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}if(e.TWO_TOK()&&T.length>2){this.environmentStack.pop();const e=!1;return this.cacheResult(t,i,e,s),e}}}if(this.environmentStack.pop(),t.quant().ALL_TOK()){const e=!O;return this.cacheResult(t,i,e,s),e}if(t.quant().NO_TOK()){const e=!y;return this.cacheResult(t,i,e,s),e}if(t.quant().mult()){const e=t.quant().mult();if(e.LONE_TOK()){const e=T.length<=1;return this.cacheResult(t,i,e,s),e}if(e.SOME_TOK()){const e=y;return this.cacheResult(t,i,e,s),e}if(e.ONE_TOK()){const e=1===T.length;return this.cacheResult(t,i,e,s),e}if(e.TWO_TOK()){const e=2===T.length;return this.cacheResult(t,i,e,s),e}}}const c=this.visitChildren(t);if(void 0===l)return this.cacheResult(t,i,c,s),c;if(a(l))throw new Error("Expected results to be a tuple array");return a(c)?l.push([c]):l=l.concat(c),this.cacheResult(t,i,l,s),l}visitExpr1(t){if(t.OR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr1_5())throw new Error("Expected the OR operator to have 2 operands of the right type!");const e=this.visit(t.expr1());if(!u(e))throw new Error("OR operator expected 2 boolean operands!");if(e)return e;const r=this.visit(t.expr1_5());if(!u(r))throw new Error("OR operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr1_5(t){if(t.XOR_TOK()){if(void 0===t.expr1_5()||void 0===t.expr2())throw new Error("Expected the XOR operator to have 2 operands of the right type!");const e=this.visit(t.expr1_5()),r=this.visit(t.expr2());if(!u(e)||!u(r))throw new Error("XOR operator expected 2 boolean operands!");return e!==r}return this.visitChildren(t)}visitExpr2(t){if(t.IFF_TOK()){if(void 0===t.expr2()||void 0===t.expr3())throw new Error("Expected the IFF operator to have 2 operands of the right type!");const e=this.visit(t.expr2()),r=this.visit(t.expr3());if(!u(e)||!u(r))throw new Error("IFF operator expected 2 boolean operands!");return e===r}return this.visitChildren(t)}visitExpr3(t){if(t.IMP_TOK()){if(void 0===t.expr3()||void 0===t.expr4())throw new Error("Expected the IMP operator to have 2 operands of the right type!");const e=this.visit(t.expr4());if(!u(e))throw new Error("IMP operator expected 2 boolean operands!");const r=t.expr3()??[],n=r[0],i=r[1];if(t.ELSE_TOK()){if(!n||!i)throw new Error("Expected the ELSE operator to have 2 operands!");const t=this.visit(e?n:i);if(!u(t))throw new Error("IMP operator expected 2 boolean operands!");return t}if(!e)return!0;if(!n)throw new Error("Expected the IMP operator to have a consequent expression!");const s=this.visit(n);if(!u(s))throw new Error("IMP operator expected 2 boolean operands!");return s}return this.visitChildren(t)}visitExpr4(t){if(t.AND_TOK()){if(void 0===t.expr4()||void 0===t.expr5())throw new Error("Expected the AND operator to have 2 operands of the right type!");const e=this.visit(t.expr4());if(!u(e))throw new Error("AND operator expected 2 boolean operands!");if(!e)return e;const r=this.visit(t.expr5());if(!u(r))throw new Error("AND operator expected 2 boolean operands!");return r}return this.visitChildren(t)}visitExpr5(t){if(t.expr6())return this.visit(t.expr6());if(void 0===t.expr5())throw new Error("Expected the negation operator to have 1 operand!");const e=this.visit(t.expr5());if(t.NEG_TOK()){if(!u(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return e}visitExpr6(t){let e=[],r=!1,n=!1;if(t.NEG_TOK()&&(r=!0),t.compareOp()){if(n=!0,void 0===t.expr6()||void 0===t.expr7())throw new Error("Expected the compareOp to have 2 operands!");const r=this.visit(t.expr6()),i=this.visit(t.expr7());let s=p(r),o=p(i);const u=b(t.compareOp());switch(u){case"=":if(a(r)&&a(i))e=r===i;else if(a(r)&&l(i))e=1===i.length&&1===i[0].length&&r===i[0][0];else if(l(r)&&a(i))e=1===r.length&&1===r[0].length&&r[0][0]===i;else{if(!l(r)||!l(i))throw new Error("unexpected error: equality operand is not a well defined forge value!");e=x(r,i)}break;case"<":if(void 0===s||void 0===o)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s<o;break;case">":if(void 0===s||void 0===o)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s>o;break;case"<=":if(void 0===s||void 0===o)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s<=o;break;case">=":if(void 0===s||void 0===o)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof r} and ${typeof i}!`);e=s>=o;break;case"in":case"ni":{const t=c(r),n=c(i),[s,o]="ni"===u?[n,t]:[t,n];e=O(s,o);break}case"is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");default:throw new Error(`Unexpected compare operator provided: ${u}`)}}if(r){if(!u(e))throw new Error("Expected the negation operator to have a boolean operand!");return!e}return n?e:this.visitChildren(t)}visitExpr7(t){const e=this.visit(t.expr8());if(t.SET_TOK())return e;if(t.ONE_TOK()||t.TWO_TOK()||t.NO_TOK()||t.SOME_TOK()||t.LONE_TOK()){const r=l(e)?e.length:d(e)||h(e)?1:-1;if(t.ONE_TOK())return 1===r;if(t.TWO_TOK())return 2===r;if(t.NO_TOK())return 0===r;if(t.SOME_TOK())return r>0;if(t.LONE_TOK())return 0===r||1===r}return e}visitExpr8(t){if(t.PLUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10());if(a(e)&&a(r))return e===r?[[e]]:[[e],[r]];if(a(e)&&l(r)){if(0===r.length)return e;if(1===r[0].length)return g([[[e]],r]);throw new Error("arity mismatch in set union!")}if(l(e)&&a(r)){if(0===e.length)return r;if(1===e[0].length)return g([e,[[r]]]);throw new Error("arity mismatch in set union!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions added are not well defined!");if(0===e.length&&0===r.length)return[];if(0===e.length)return r;if(0===r.length)return e;if(e[0].length===r[0].length)return g([e,r])}if(t.MINUS_TOK()){const e=this.visit(t.expr8()),r=this.visit(t.expr10());if(a(e)&&a(r))return e===r?[]:e;if(a(e)&&l(r)){if(0===r.length)return e;if(1===r[0].length)return r.some(t=>t[0]===e)?[]:e;throw new Error("arity mismatch in set difference!")}if(l(e)&&a(r)){if(0===e.length)return[];if(1===e[0].length)return e.filter(t=>t[0]!==r);throw new Error("arity mismatch in set difference!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions subtracted are not well defined!");if(0===e.length)return[];if(0===r.length)return e;if(e[0].length===r[0].length){const t=new Set(y(r)),n=y(e),i=[],s=[];for(let r=0;r<e.length;r++)t.has(n[r])||(i.push(e[r]),s.push(n[r]));return i.length>=T&&_.set(i,s),i}}return this.visitChildren(t)}visitExpr9(t){const e=this.visitChildren(t);if(t.CARD_TOK()){if(l(e))return e.length;if(d(e)||h(e))return 1;throw new Error("The cardinal operator must be applied to a set of tuples!")}return e}visitExpr10(t){if(t.PPLUS_TOK()){if(void 0===t.expr10()||void 0===t.expr11())throw new Error("Expected the pplus operator to have 2 operands of the right type!");const e=c(this.visit(t.expr10())),r=c(this.visit(t.expr11()));if(e.length>0&&r.length>0&&e[0].length!==r[0].length)throw new Error("arity mismatch in relational override!");const n=new Set(r.map(t=>t[0]));return g([e.filter(t=>!n.has(t[0])),r])}return this.visitChildren(t)}visitExpr11(t){if(t.AMP_TOK()){if(void 0===t.expr11()||void 0===t.expr12())throw new Error("Expected the amp operator to have 2 operands of the right type!");const e=this.visit(t.expr11()),r=this.visit(t.expr12());if(a(e)&&a(r))return e===r?e:[];if(a(e)&&l(r)){if(0===r.length)return[];if(1===r[0].length)return r.some(t=>t[0]===e)?e:[];throw new Error("arity mismatch in set intersection!")}if(l(e)&&a(r)){if(0===e.length)return[];if(1===e[0].length)return e.some(t=>t[0]===r)?r:[];throw new Error("arity mismatch in set intersection!")}if(!l(e)||!l(r))throw new Error("unexpected error: expressions intersected are not well defined!");if(0===e.length||0===r.length)return[];if(e[0].length===r[0].length){const t=new Set(y(r)),n=y(e),i=[],s=[];for(let r=0;r<e.length;r++)t.has(n[r])&&(i.push(e[r]),s.push(n[r]));return i.length>=T&&_.set(i,s),i}}return this.visitChildren(t)}visitExpr12(t){if(t.arrowOp()){if(void 0===t.expr12()||void 0===t.expr13())throw new Error("Expected the arrow operator to have 2 operands of the right type!");const e=t.arrowOp();if(e.mult().length>0||e.SET_TOK().length>0)throw new Error(`Cannot evaluate the multiplicity annotations in '${e.text}': they are declaration and constraint syntax, not part of an expression. Write a plain '->' for the cross product.`);const r=this.visit(t.expr12()),n=this.visit(t.expr13()),i=c(r),s=c(n),o=[];for(const t of i)for(const e of s)o.push([...t,...e]);return E(o)}return this.visitChildren(t)}visitExpr13(t){const e=void 0!==t.SUBT_TOK();if(e||t.SUPT_TOK()){if(void 0===t.expr13()||void 0===t.expr14())throw new Error("Expected the restriction operator to have 2 operands of the right type!");const r=this.visit(t.expr13()),n=this.visit(t.expr14()),[i,s]=e?[r,n]:[n,r],o=c(i),a=o.find(t=>1!==t.length);if(void 0!==a)throw new Error(`The ${e?"<:":":>"} operator restricts by a set of arity 1, but its ${e?"left":"right"} operand has arity ${a.length}`);const l=new Set(o.map(t=>t[0]));return c(s).filter(t=>l.has(e?t[0]:t[t.length-1]))}return this.visitChildren(t)}visitExpr14(t){if(t.LEFT_SQUARE_TOK()){const e=this.visit(t.expr14()),r=this.visit(t.exprList());if(d(e)){if(S.includes(e))return this.evaluateBinaryOperation(e,r);if(N.includes(e))return this.evaluateUnaryOperation(e,r);if(R.includes(e))return this.evaluateSetOperation(e,r)}return this.dotJoin(r,e)}return this.visitChildren(t)}visitExpr15(t){let e=[];if(t.DOT_TOK()){if(void 0===t.expr15()||void 0===t.expr17())throw new Error("Expected the dot operator to have 2 operands of the right type!");const e=this.visit(t.expr15()),r=this.visit(t.expr17());let n;if(l(r)&&this.relationCache)for(const[t,e]of this.relationCache.entries())if(e===r){n=t;break}return this.dotJoin(e,r,n)}return t.LEFT_SQUARE_TOK()?(this.visit(t.name()),this.visit(t.exprList()),e.push(["**UNIMPLEMENTED** _[_]"]),e):this.visitChildren(t)}visitExpr17(t){if(t.GET_LABEL_TOK()||t.GET_LABEL_STR_TOK()||t.GET_LABEL_BOOL_TOK()||t.GET_LABEL_NUM_TOK()){const e=t.expr17();if(!e)throw new Error("Label operator requires an expression");let r,n;if(t.GET_LABEL_TOK())r=t=>this.getLabelAsString(t),n="@:";else if(t.GET_LABEL_STR_TOK())r=t=>this.getLabelAsString(t),n="@str:";else if(t.GET_LABEL_BOOL_TOK())r=t=>this.getLabelAsBoolean(t),n="@bool:";else{if(!t.GET_LABEL_NUM_TOK())throw new Error("Unknown label operator");r=t=>this.getLabelAsNumber(t),n="@num:"}const i=this.visit(e);if(a(i))return r(i);if(l(i))return 1===i.length&&1===i[0].length?r(i[0][0]):i.map(t=>t.map(t=>r(t)));throw new Error(`${n} operator can only be applied to single values or tuple arrays`)}const e=this.visitChildren(t);if(t.TILDE_TOK()){if(l(e)){if(0===e.length)return[];if(2===e[0].length)return e.map(t=>[t[1],t[0]])}throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(t.EXP_TOK()){if(l(e))return v(e);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(t.STAR_TOK()&&l(e)){const t=v(e);return E(this.getIden().concat(t))}return e}getNameListValues(t){return t.COMMA_TOK()?[(0,i.getIdentifierName)(t.name()),...this.getNameListValues(t.nameList())]:[(0,i.getIdentifierName)(t.name())]}getQuantDeclValues(t){const e=t.nameList(),r=this.getNameListValues(e),n=t.expr();let i=this.visitExpr(n);a(i)&&(i=[[i]]);const s={};for(const t of r)s[t]=i;return s}getQuantDeclListValues(t){if(t.COMMA_TOK()){const e=t.quantDecl(),r=t.quantDeclList();if(void 0===r)throw new Error("expected a quantDeclList after the comma");return{...this.getQuantDeclValues(e),...this.getQuantDeclListValues(r)}}return this.getQuantDeclValues(t.quantDecl())}visitExpr18(t){if(t.const()){const e=t.const();if(void 0!==e.number()){const t=Number(e.number().text);return void 0!==e.MINUS_TOK()?-t:t}if(void 0!==e.NONE_TOK())return[];if(void 0!==e.IDEN_TOK()){const t=this.instanceData.getAtoms(),e=[];for(const r of t){const t=this.atomValue(r.id);e.push([t,t])}return e}if(void 0!==e.UNIV_TOK()){const t=this.instanceData.getAtoms(),e=[];for(const r of t)e.push([this.atomValue(r.id)]);return e}return void 0!==e.STRING_TOK()?C(e.STRING_TOK().text):"true"===e.text||"false"!==e.text&&`${e.text}`}if(t.qualName())return this.visitQualName(t.qualName());if(t.AT_TOK())throw new Error("`@` operator is Alloy specific; it is not supported by Forge!");if(t.BACKQUOTE_TOK()){const e=(0,i.getIdentifierName)(t.name()),r=this.instanceData.getAtoms().find(t=>t.id===e);return void 0===r?(this.reportUnresolvedName(e),[]):[[this.atomValue(r.id)]]}if(t.THIS_TOK())throw new Error("`this` is Alloy specific; it is not supported by Forge!");if(t.LEFT_CURLY_TOK()){if(void 0===t.quantDeclList())throw new Error("expected a quantDeclList in the set comprehension!");const e=this.freeVariableFinder.visit(t);this.updateFreeVariables(e);const r=this.getQuantDeclListValues(t.quantDeclList()),n=t.blockOrBar();if(void 0===n)throw new Error("expected a blockOrBar in the set comprehension!");if(void 0===n.BAR_TOK()||void 0===n.expr())throw new Error("expected a bar followed by an expr in the set comprehension!");const i=n.expr(),s=[],a=[];for(const t in r)s.push(t),a.push(r[t]);let l,c=!1;if(s.length>=2&&(0,o.areAllNumericSets)(a)){const t=(0,o.detectNumericComparisonPattern)(i,s);t&&"none"!==t.type?(l=(0,o.generateOptimizedNumericCombinations)(s,a,t),c=!0):l=m(a)}else l=m(a);const h=[],p={env:{},type:"quantDecl"};this.environmentStack.push(p);for(let t=0;t<l.length;t++){const e=l[t];for(let t=0;t<s.length;t++)p.env[s[t]]=e[t];let r;if(c)r=!0;else{const t=this.visit(i);if(!u(t))throw new Error("Expected the expression after the bar to be a boolean value!");r=t}r&&h.push(e)}return this.environmentStack.pop(),E(h)}if(t.LEFT_PAREN_TOK())return this.visit(t.expr());if(t.block())return this.visitBlock(t.block());if(t.sexpr())throw new Error("**NOT IMPLEMENTING FOR NOW** S-Expression");return this.visitChildren(t)}visitExprList(t){let e=[];if(t.COMMA_TOK()){const r=this.visit(t.expr());if(void 0===t.exprList())throw new Error("exprList with a comma must have a tail!");const n=this.visit(t.exprList());return a(r)?e.push([r]):e=r,l(n)?e=e.concat(n):e.push([n]),e}return this.visitChildren(t)}visitName(t){const r=(0,i.getIdentifierName)(t);if("true"===r)return!0;if("false"===r)return!1;for(let t=this.environmentStack.length-1;t>=0;t--){const e=this.environmentStack[t];if(void 0!==e.env[r])return e.env[r];if("predArgs"===e.type)break}let n;if(this.instanceData.getTypes().map(t=>t.id).includes(r)){const t=this.instanceData.getTypes().find(t=>t.id===r)?.atoms||[],e=new Set,i=[];for(const r of t)e.has(r.id)||(e.add(r.id),i.push(r.id));n=i.map(t=>[t])}for(const t of this.instanceData.getTypes())if(t.atoms.map(t=>t.id).includes(r)){n=[[r]];break}this.instanceData.getTypes().map(t=>t.id);const s=[r],o=new Set;for(;s.length>0;){const t=s.pop();if(void 0===t)throw new Error("unexpected error: no identifier could be searched!");if(!o.has(t)){o.add(t);for(const e of this.instanceData.getTypes())if(e.id!==t&&e.types&&e.types.includes(t)){void 0===n&&(n=[]);for(const t of e.atoms)n.push([t.id]);s.push(e.id)}}}return this.buildRelationCache(),this.relationCache.has(r)?this.relationCache.get(r):void 0!==n?n.map(t=>t.map(t=>this.atomValue(t))):e.SUPPORTED_BUILTINS.includes(r)?r:(this.reportUnresolvedName(r),[])}visitQualName(t){if(t.SUM_TOK())return"sum";if(t.INT_TOK()){const t=this.instanceData.getTypes().find(t=>"Int"===t.id);if(!t)throw new Error('Type "Int" not found in instance data');const e=new Set,r=[];for(const n of t.atoms)e.has(n.id)||(e.add(n.id),r.push([Number(n.id)]));return r}return this.visitChildren(t)}evaluateBinaryOperation(t,e){if(a(e))throw new Error(`Expected 2 arguments for ${t}`);let r,n,i;if(Array.isArray(e[0])){if(!h(e[0][0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0][0]}else{if(!h(e[0]))throw new Error(`Expected a number for the first argument of ${t}`);r=e[0]}if(Array.isArray(e[1])){if(!h(e[1][0]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1][0]}else{if(!h(e[1]))throw new Error(`Expected a number for the second argument of ${t}`);n=e[1]}if(("divide"===t||"remainder"===t)&&0===n)throw new Error("Division by zero is not allowed");switch(t){case"add":i=r+n;break;case"subtract":i=r-n;break;case"multiply":i=r*n;break;case"divide":i=r/n;break;case"remainder":i=r%n;break;default:throw new Error(`Unsupported operation: ${t}`)}return i}evaluateUnaryOperation(t,e){const r=p(e);if(void 0===r)throw new Error(`Expected 1 argument for ${t} that evaluates to a number.`);if("abs"===t)return Math.abs(r);if("sign"===t)return r>0?1:r<0?-1:0;if("floor"===t)return Math.floor(r);if("ceil"===t)return Math.ceil(r);throw new Error(`Unsupported operation: ${t}`)}setOperandAsNumber(t,e){if(this.isConvertibleToNumber(e))return Number(e);throw new Error(`${t} expects all elements to be numbers, got: ${JSON.stringify(e)}`)}evaluateSetOperation(t,e){let r=[];if(a(e))r=[this.setOperandAsNumber(t,e)];else{if(!l(e))throw new Error(`Expected a set of numbers for ${t}`);for(const n of e){if(1!==n.length)throw new Error(`${t} expects a set of arity 1 (single column)`);r.push(this.setOperandAsNumber(t,n[0]))}}if("sum"===t)return r.reduce((t,e)=>t+e,0);if(0===r.length)throw new Error(`${t} requires a non-empty set`);if("min"===t)return Math.min(...r);if("max"===t)return Math.max(...r);throw new Error(`Unsupported set operation: ${t}`)}}e.ForgeExprEvaluator=L;class I extends Error{constructor(t){super(t),this.name="NameNotFoundError"}}e.NameNotFoundError=I},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6737:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;const s=r(4148),o=r(8291),a=r(7477),l=r(2807),c=r(2399),u=r(7760);let h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===u.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){s(t>=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){let t=this.tokenSource.nextToken();if(this.isWritableToken(t)&&(t.tokenIndex=this.tokens.length),this.tokens.push(t),t.type===u.Token.EOF)return this.fetchedEOF=!0,e+1}return t}get(t){if(t<0||t>=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===u.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:u.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return s(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter(t=>n.has(t.type)),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===u.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===u.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===u.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof o.CommonToken}isToken(t){return t instanceof o.CommonToken}};n([c.NotNull],h.prototype,"_tokenSource",void 0),n([c.Override],h.prototype,"tokenSource",null),n([c.Override],h.prototype,"index",null),n([c.Override],h.prototype,"mark",null),n([c.Override],h.prototype,"release",null),n([c.Override],h.prototype,"seek",null),n([c.Override],h.prototype,"size",null),n([c.Override],h.prototype,"consume",null),n([c.Override],h.prototype,"get",null),n([c.Override],h.prototype,"LA",null),n([c.NotNull,c.Override],h.prototype,"LT",null),n([c.Override],h.prototype,"sourceName",null),n([c.NotNull,c.Override],h.prototype,"getText",null),n([c.NotNull,c.Override],h.prototype,"getTextFromRange",null),h=n([i(0,c.NotNull)],h),e.BufferedTokenStream=h},6739:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;const i=r(1097),s=r(2399),o=r(7239),a=r(6869);class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of o.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([s.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},6743:(t,e,r)=>{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6776:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;const n=r(5866),i=r(328),s=r(1492);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=s.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),o=new Uint16Array(t.length);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return r.append(o),i.CodePointCharStream.fromBuffer(r.build(),e)}},6869:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;const i=r(2399);class s{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],s.prototype,"toString",null),e.XPathElement=s},6889:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;const n=r(537),i=r(5636),s=new Uint16Array(0);function o(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!==(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function c(t){let e=32768;for(let r=15;r>=0;r--){if(0!==(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function u(t,e){return(t&=15)==(e&=15)?1<<t>>>0:65535>>>15-e^65535>>>16-t}const h=new Uint8Array(65536);for(let t=0;t<16;t++){const e=1<<t>>>0;let r=0;for(;r<h.length;){r+=e;for(let t=0;t<e;t++)h[r]++,r++}}class p{constructor(t){if(t)if("number"==typeof t){if(t<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(o(t-1)+1)}else if(t instanceof p)this.data=t.data.slice(0);else{let e=-1;for(let r of t)e<r&&(e=r);this.data=new Uint16Array(o(e-1)+1);for(let e of t)this.set(e)}else this.data=s}and(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!==(e[t]&=r[t])&&(i=t);-1===i&&(this.data=s),i<e.length-1&&(this.data=e.slice(0,i+1))}andNot(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!=(e[t]&=65535^r[t])&&(i=t);-1===i&&(this.data=s),i<e.length-1&&(this.data=e.slice(0,i+1))}cardinality(){if(this.isEmpty)return 0;const t=this.data,e=t.length;let r=0;for(let n=0;n<e;n++)r+=h[t[n]];return r}clear(t,e){null==t?this.data.fill(0):null==e?this.set(t,!1):this.set(t,e,!1)}flip(t,e){if(null==e&&(e=t),t<0||e<t)throw new RangeError;let r=o(t);const n=o(e);if(r===n)this.data[r]^=u(t,e);else{for(this.data[r++]^=u(t,15);r<n;)this.data[r++]^=65535;this.data[r++]^=u(0,e)}}get(t,e){if(void 0===e)return!!(this.data[o(t)]&u(t,t));{let r=new p(e+1);for(let n=t;n<=e;n++)r.set(n,this.get(n));return r}}intersects(t){let e=Math.min(this.length(),t.length());if(0===e)return!1;let r=o(e-1);for(let e=0;e<=r;e++)if(0!==(this.data[e]&t.data[e]))return!0;return!1}get isEmpty(){return 0===this.length()}length(){return this.data.length?this.previousSetBit(a(this.data.length)-1)+1:0}nextClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);if(n>r)return-1;let i=65535^u(t,15);if(65535===(e[n]|i)){for(n++,i=0;n<r&&65535===e[n];n++);if(n===r)return-1}return a(n)+l(65535^(e[n]|i))}nextSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);if(n>r)return-1;let i=u(t,15);if(0===(e[n]&i)){for(n++,i=65535;n<r&&0===e[n];n++);if(n>=r)return-1}return a(n)+l(e[n]&i)}or(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),o=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!==(o[t]=e[t]|r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=s:o.length===a+1?this.data=o:this.data=o.slice(0,a)}previousClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);n>=r&&(n=r-1);let i=65535^u(0,t);if(65535===(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+c(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=o(t);n>=r&&(n=r-1);let i=u(0,t);if(0===(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+c(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=o(t),i=o(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach((e,r)=>t[r]=e),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,u(t,e));else{for(this._setBits(n++,r,u(t,15));n<i;)this.data[n++]=r?65535:0;this._setBits(n,r,u(0,e))}}_setBits(t,e,r){e?this.data[t]|=r:this.data[t]&=65535^r}get size(){return 8*this.data.byteLength}hashCode(){return i.MurmurHash.hashCode(this.data,22)}equals(t){if(t===this)return!0;if(!(t instanceof p))return!1;const e=this.length();if(e!==t.length())return!1;if(0===e)return!0;let r=o(e-1);for(let e=0;e<=r;e++)if(this.data[e]!==t.data[e])return!1;return!0}toString(){let t="{",e=!0;for(let r=this.nextSetBit(0);r>=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),o=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!==(o[t]=e[t]^r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=s:o.length===a+1?this.data=o:this.data=o.slice(0,a+1)}clone(){return new p(this)}[Symbol.iterator](){return new d(this.data)}[n.inspect.custom](){return"BitSet "+this.toString()}}e.BitSet=p;class d{constructor(t){this.data=t,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const t=this.data[this.index]&this.mask;if(0!==t){const e=a(this.index)+l(t);return this.mask=u(e+1,15),{done:!1,value:e}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}},6897:(t,e,r)=>{"use strict";var n=r(453),i=r(41),s=r(592)(),o=r(5795),a=r(9675),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},6947:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;const s=r(934),o=r(2399);let a=class extends s.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([o.NotNull],a.prototype,"_text",void 0),n([o.NotNull],a.prototype,"text",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.TextChunk=a},7004:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s,o,a){super(e,t,r,n,i,t.useContext),this.semctx=s,this.evalResult=o,this.predictedAlt=a}};a=n([i(0,o.NotNull),i(2,o.NotNull),i(5,o.NotNull)],a),e.PredicateEvalInfo=a},7037:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},7059:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s,o){super(t,e,n,i,s,o),this.predictedAlt=r}};a=n([i(3,o.NotNull)],a),e.LookaheadEventInfo=a},7115:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;const s=r(2399);class o{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,s){this.delegates.forEach(o=>{o.syntaxError&&o.syntaxError(t,e,r,n,i,s)})}}n([s.Override,i(0,s.NotNull),i(4,s.NotNull)],o.prototype,"syntaxError",null),e.ProxyErrorListener=o},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(t,e,r)=>{"use strict";var n,i=r(3126),s=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var o=!!n&&s&&s(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=o&&"function"==typeof o.get?i([o.get]):"function"==typeof l&&function(t){return l(null==t?t:a(t))}},7239:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;const s=r(4274),o=r(8291),a=r(1964),l=r(2399),c=r(5922),u=r(1097),h=r(5378),p=r(360),d=r(7760),f=r(659);class _{static toStringTree(t,e){let r;r=e instanceof c.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e<t.childCount;e++)e>0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof c.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==s.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof p.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r<t.childCount;r++)e.push(t.getChild(r));return e}static getAncestors(t){let e=[],r=t.parent;for(;r;)e.unshift(r),r=r.parent;return e}static isAncestorOf(t,e){if(!t||!e||!t.parent)return!1;let r=e.parent;for(;r;){if(t===r)return!0;r=r.parent}return!1}static findAllTokenNodes(t,e){return _.findAllNodes(t,e,!0)}static findAllRuleNodes(t,e){return _.findAllNodes(t,e,!1)}static findAllNodes(t,e,r){let n=[];return _._findAllNodes(t,e,r,n),n}static _findAllNodes(t,e,r,n){r&&t instanceof p.TerminalNode?t.symbol.type===e&&n.push(t):!r&&t instanceof u.ParserRuleContext&&t.ruleIndex===e&&n.push(t);for(let i=0;i<t.childCount;i++)_._findAllNodes(t.getChild(i),e,r,n)}static getDescendants(t){let e=[];return function t(r){e.push(r);const n=r.childCount;for(let e=0;e<n;e++)t(r.getChild(e))}(t),e}static getRootOfSubtreeEnclosingRegion(t,e,r){let n=t.childCount;for(let i=0;i<n;i++){let n=t.getChild(i),s=_.getRootOfSubtreeEnclosingRegion(n,e,r);if(s)return s}if(t instanceof u.ParserRuleContext){let n=t.stop;if(e>=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let s=0;s<i;s++){let i=t.getChild(s),a=i.sourceInterval;if(i instanceof u.ParserRuleContext&&(a.b<r||a.a>n)&&_.isAncestorOf(i,e)){let e=new o.CommonToken(d.Token.INVALID_TYPE,"...");t.children[s]=new p.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n<r;n++){let r=_.findNodeSuchThat(t.getChild(n),e);if(void 0!==r)return r}}}n([i(0,l.NotNull)],_,"toStringTree",null),n([l.NotNull,i(0,l.NotNull)],_,"getAncestors",null),n([i(0,l.NotNull)],_,"getRootOfSubtreeEnclosingRegion",null),e.Trees=_},7244:(t,e,r)=>{"use strict";var n=r(9092)(),i=r(6556)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},7404:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;const i=r(4148),s=r(2399),o=r(1492);class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===o.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(t){return 0===t?0:t<0&&(t++,this.p+t-1<0)||this.p+t-1>=this.n?o.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p<t;)this.consume()}getText(t){let e=t.a,r=t.b;r>=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:o.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([s.Override],a.prototype,"consume",null),n([s.Override],a.prototype,"LA",null),n([s.Override],a.prototype,"index",null),n([s.Override],a.prototype,"size",null),n([s.Override],a.prototype,"mark",null),n([s.Override],a.prototype,"release",null),n([s.Override],a.prototype,"seek",null),n([s.Override],a.prototype,"getText",null),n([s.Override],a.prototype,"sourceName",null),n([s.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},7435:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;const i=r(2399),s=r(7760);class o{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===s.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e||(this.getSymbolicName(t)||String(t))}}o.EMPTY_VOCABULARY=new o([],[],[]),n([i.NotNull],o.prototype,"literalNames",void 0),n([i.NotNull],o.prototype,"symbolicNames",void 0),n([i.NotNull],o.prototype,"displayNames",void 0),n([i.Override],o.prototype,"maxTokenType",null),n([i.Override],o.prototype,"getLiteralName",null),n([i.Override],o.prototype,"getSymbolicName",null),n([i.Override,i.NotNull],o.prototype,"getDisplayName",null),n([i.NotNull],o,"EMPTY_VOCABULARY",void 0),e.VocabularyImpl=o},7442:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;const i=r(3361),s=r(2468),o=r(2399),a=r(9278);class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new s.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([o.Override],l.prototype,"recover",null),n([o.Override],l.prototype,"recoverInline",null),n([o.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},7477:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;const i=r(2399);class s{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return s._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new s(t,e):(null==s.cache[t]&&(s.cache[t]=new s(t,t)),s.cache[t])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(t){return t===this||t instanceof s&&this.a===t.a&&this.b===t.b}hashCode(){let t=23;return t=31*t+this.a,t=31*t+this.b,t}startsBeforeDisjoint(t){return this.a<t.a&&this.b<t.a}startsBeforeNonDisjoint(t){return this.a<=t.a&&this.b>=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return s.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return s.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=s.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=s.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}s._INVALID=new s(-1,-2),s.cache=new Array(1001),n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"toString",null),e.Interval=s},7653:(t,e,r)=>{"use strict";var n=r(8452),i=r(487),s=r(9211),o=r(9394),a=r(6576),l=i(o(),Object);n(l,{getPolyfill:o,implementation:s,shim:a}),t.exports=l},7654:(t,e)=>{"use strict";function r(t){return t.map(t=>t[0])}function n(t){if(0===t.length)return[[]];if(t.some(t=>0===t.length))return[];let e=[[]];for(const r of t){const t=[];for(const n of e)for(const e of r)t.push([...n,e]);e=t}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.detectNumericComparisonPattern=function(t,e){const r=t.text;for(const t of e)for(const n of e)if(t!==n){if(r===`${t}<${n}`)return{type:"less_than",leftVar:t,rightVar:n};if(r===`${t}>${n}`)return{type:"greater_than",leftVar:t,rightVar:n};if(r===`${t}<=${n}`)return{type:"less_equal",leftVar:t,rightVar:n};if(r===`${t}>=${n}`)return{type:"greater_equal",leftVar:t,rightVar:n};if(r===`${t}!=${n}`)return{type:"not_equal",leftVar:t,rightVar:n};if(r===`not${t}=${n}`)return{type:"not_equal",leftVar:t,rightVar:n}}return null},e.areAllNumericSets=function(t){for(const e of t)for(const t of e){if(1!==t.length)return!1;if("number"!=typeof t[0])return!1}return!0},e.generateOptimizedNumericCombinations=function(t,e,i){const s=new Map;t.forEach((t,e)=>{s.set(t,e)});const o=s.get(i.leftVar),a=s.get(i.rightVar);if(void 0===o||void 0===a)throw new Error(`Internal error: Pattern variables ${i.leftVar}, ${i.rightVar} not found in variable list`);const l=r(e[o]),c=r(e[a]),u=[],h=[];for(let n=0;n<t.length;n++)n!==o&&n!==a&&(u.push(n),h.push(r(e[n])));const p=[],d=e=>{for(const r of l)for(const i of c)if(e(r,i))if(0===u.length){const e=new Array(t.length);e[o]=r,e[a]=i,p.push(e)}else{const e=n(h);for(const n of e){const e=new Array(t.length);e[o]=r,e[a]=i;for(let t=0;t<u.length;t++)e[u[t]]=n[t];p.push(e)}}};switch(i.type){case"less_than":d((t,e)=>t<e);break;case"greater_than":d((t,e)=>t>e);break;case"less_equal":d((t,e)=>t<=e);break;case"greater_equal":d((t,e)=>t>=e);break;case"not_equal":d((t,e)=>t!==e);break;default:return[]}return p}},7712:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;const i=r(2399),s=r(7239),o=r(6605),a=r(6869);class l extends a.XPathElement{constructor(){super(o.XPath.WILDCARD)}evaluate(t){return this.invert?[]:s.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},7760:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;const n=r(1492);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},7862:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;const i=r(4274),s=r(2399),o=r(1097);class a extends o.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([s.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},7866:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;const s=r(6889),o=r(2399),a=r(7477);class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,s){}reportAmbiguity(t,e,r,n,i,s,o){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(s,o)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,s){let o=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(o)}reportContextSensitivity(t,e,r,n,i,s){let o=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(o)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let s=i[n];return s?`${r} (${s})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new s.BitSet;for(let t of e)r.set(t.alt);return r}}n([o.Override],l.prototype,"syntaxError",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(6,o.NotNull)],l.prototype,"reportAmbiguity",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(5,o.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([o.Override,i(0,o.NotNull),i(1,o.NotNull),i(5,o.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,o.NotNull),i(1,o.NotNull)],l.prototype,"getDecisionDescription",null),n([o.NotNull,i(1,o.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},7886:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;const s=r(1173),o=r(2399);let a=class extends s.DecisionEventInfo{constructor(t,e,r,n,i,s){super(t,e,n,i,s,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([o.NotNull],a.prototype,"ambigAlts",void 0),n([o.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,o.NotNull),i(2,o.NotNull),i(3,o.NotNull)],a),e.AmbiguityInfo=a},7920:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._ruleIndex),t=s.MurmurHash.update(t,this._actionIndex),s.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),e.LexerCustomAction=a},7997:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},8002:t=>{"use strict";t.exports=Math.min},8016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;const n=r(2813);class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},8055:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;const i=r(2399);class s{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}s.INSTANCE=new s,n([i.Override],s.prototype,"hashCode",null),n([i.Override],s.prototype,"equals",null),e.ObjectEqualityComparator=s},8068:t=>{"use strict";t.exports=SyntaxError},8075:(t,e,r)=>{"use strict";var n=r(453),i=r(487),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},8151:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;const i=r(2399),s=r(5636),o=r(8055);class a{hashCode(t){return null==t?0:s.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e)return!1;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!o.ObjectEqualityComparator.INSTANCE.equals(t[r],e[r]))return!1;return!0}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.ArrayEqualityComparator=a},8184:(t,e,r)=>{"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),s=r(9092)(),o=r(3628),a=n("Object.prototype.toString"),l=n("Function.prototype.toString"),c=r(4233);t.exports=function(t){if("function"!=typeof t)return!1;if(i(l(t)))return!0;if(!s)return"[object GeneratorFunction]"===a(t);if(!o)return!1;var e=c();return e&&o(t)===e.prototype}},8195:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},8240:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;const i=r(5754),s=r(2399),o=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=o,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=o,this._size=0;for(let e of t)this.add(e)}else this._data=o,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e<this._size;e++)if(this._data[e]===t)return!0;return!1}set(t,e){if(t<0||t>=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size)throw RangeError();if(t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof l))return!1;if(this._size!==t._size)return!1;for(let e=0;e<this._size;e++)if(this._data[e]!==t._data[e])return!1;return!0}hashCode(){let t=1;for(let e=0;e<this._size;e++)t=31*t+this._data[e];return t}toString(){return this._data.toString()}binarySearch(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this._size),e<0||r<0||e>this._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;e<t;)e*=2,(e<0||e>a)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n<this._size;n++){let i=this._data[n];if(i>=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let s=String.fromCodePoint(i);t[e]=s.charCodeAt(0),t[e+1]=s.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e<this._size;e++)t+=this._data[e]>=65536?2:1;return t}}n([s.NotNull],l.prototype,"_data",void 0),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"toString",null),e.IntegerList=l},8291:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;const s=r(7477),o=r(2399),a=r(7760);let l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,s=0,o=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=s,this.stop=o,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start<e&&this.stop<e?t.getText(s.Interval.of(this.start,this.stop)):"<EOF>"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="<no text>";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([o.NotNull],l.prototype,"source",void 0),n([o.Override],l.prototype,"type",null),n([o.Override],l.prototype,"line",null),n([o.Override],l.prototype,"text",null),n([o.Override],l.prototype,"charPositionInLine",null),n([o.Override],l.prototype,"channel",null),n([o.Override],l.prototype,"startIndex",null),n([o.Override],l.prototype,"stopIndex",null),n([o.Override],l.prototype,"tokenIndex",null),n([o.Override],l.prototype,"tokenSource",null),n([o.Override],l.prototype,"inputStream",null),n([o.Override],l.prototype,"toString",null),n([i(0,o.NotNull)],l,"fromToken",null),l=n([i(2,o.NotNull)],l),e.CommonToken=l},8344:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;const s=r(2399);let o=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r<t.length;r++)t[r].LL_Fallback>0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r<e.length;r++)t+=this.getDFASize(r);return t}}};n([s.NotNull],o.prototype,"getDecisionInfo",null),n([s.NotNull],o.prototype,"getLLDecisions",null),o=n([i(0,s.NotNull)],o),e.ParseInfo=o},8369:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8403:(t,e,r)=>{"use strict";var n=r(1189),i=r(1333)(),s=r(6556),o=r(9612),a=s("Array.prototype.push"),l=s("Object.prototype.propertyIsEnumerable"),c=i?o.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=o(t);if(1===arguments.length)return r;for(var s=1;s<arguments.length;++s){var u=o(arguments[s]),h=n(u),p=i&&(o.getOwnPropertySymbols||c);if(p)for(var d=p(u),f=0;f<d.length;++f){var _=d[f];l(u,_)&&a(h,_)}for(var T=0;T<h.length;++T){var y=h[T];if(l(u,y)){var O=u[y];r[y]=O}}}return r}},8452:(t,e,r)=>{"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,o=Array.prototype.concat,a=r(41),l=r(592)(),c=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==s.call(i)||!n())return;var i;l?a(t,e,r,!0):a(t,e,r)},u=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=o.call(s,Object.getOwnPropertySymbols(e)));for(var a=0;a<s.length;a+=1)c(t,s[a],e[s[a]],r[s[a]])};u.supportsDescriptors=!!l,t.exports=u},8567:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;const n=r(5636);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),s=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),o=parseInt(e[4].substr(-8),16);return new i(r,n,s,o)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},8571:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;const s=r(2399);let o=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([s.NotNull,i(0,s.NotNull)],o.prototype,"getAll",null),n([s.NotNull],o.prototype,"labels",null),n([s.NotNull],o.prototype,"pattern",null),n([s.NotNull],o.prototype,"tree",null),n([s.Override],o.prototype,"toString",null),o=n([i(0,s.NotNull),i(1,s.NotNull),i(2,s.NotNull)],o),e.ParseTreeMatch=o},8590:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;const i=r(6298),s=r(2399),o=r(8859),a=r(8831),l=r(7435);class c{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort((t,e)=>t.stateNumber-e.stateNumber);for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort((t,e)=>t-e),s=r.getContextEdgeMap(),o=[...s.keys()].sort((t,e)=>t-e);for(let s of n){let n=e.get(s);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(s))continue;let o=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(s)+"->",r.isContextSymbol(s)&&(t+="!",o=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":o&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of o)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(s.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===o.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===o.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===i.ATNSimulator.ERROR)return"ERROR";let e=t.stateNumber,r="s"+e;if(t.isAcceptState&&(r=t.predicates?":s"+e+"=>"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([s.NotNull],c.prototype,"dfa",void 0),n([s.NotNull],c.prototype,"vocabulary",void 0),n([s.Override],c.prototype,"toString",null),e.DFASerializer=c},8644:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;const i=r(7037),s=r(8016),o=r(2399);class a extends s.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([o.Override],a.prototype,"stateType",null),e.TokensStartState=a},8648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8744:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get stateType(){return s.ATNStateType.BASIC}}n([o.Override],a.prototype,"stateType",null),e.BasicState=a},8749:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;const i=r(7037),s=r(3099),o=r(2399);class a extends s.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([o.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},8831:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;const s=r(3196),o=r(7115),a=r(2399),l=r(7760),c=r(659);class u{constructor(){this._listeners=[s.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=u.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,u.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=u.ruleIndexMapCache.get(t);return null==e&&(e=c.toMap(t),u.ruleIndexMapCache.set(t,e)),e}getTokenType(t){let e=this.getTokenTypeMap().get(t);return null!=e?e:l.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new o.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}u.EOF=-1,u.tokenTypeMapCache=new WeakMap,u.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],u.prototype,"_listeners",void 0),n([a.NotNull],u.prototype,"getTokenTypeMap",null),n([a.NotNull],u.prototype,"getRuleIndexMap",null),n([a.NotNull],u.prototype,"serializedATN",null),n([a.NotNull],u.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],u.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],u.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],u.prototype,"addErrorListener",null),n([i(0,a.NotNull)],u.prototype,"removeErrorListener",null),n([a.NotNull],u.prototype,"getErrorListeners",null),e.Recognizer=u},8840:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return s.ATNStateType.RULE_STOP}}n([o.Override],a.prototype,"nonStopStateNumber",null),n([o.Override],a.prototype,"stateType",null),e.RuleStopState=a},8859:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;const s=r(3907),o=r(1533),a=r(5754),l=r(5636),c=r(2399),u=r(6409),h=r(4148);class p{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?p.EMPTY_FULL:p.EMPTY_LOCAL;let n;n=e._parent?p.fromRuleContext(t,e._parent,r):r?p.EMPTY_FULL:p.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=u.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return p.isEmptyLocal(t)?t:p.addEmptyContext(e);if(e.isEmpty)return p.isEmptyLocal(e)?e:p.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let s=0,o=new Array(n+i),a=new Array(o.length),l=0,c=0,d=!0,T=!0;for(;l<n&&c<i;)t.getReturnState(l)===e.getReturnState(c)?(o[s]=r.join(t.getParent(l),e.getParent(c)),a[s]=t.getReturnState(l),d=d&&o[s]===t.getParent(l),T=T&&o[s]===e.getParent(c),l++,c++):t.getReturnState(l)<e.getReturnState(c)?(o[s]=t.getParent(l),a[s]=t.getReturnState(l),T=!1,l++):(h(e.getReturnState(c)<t.getReturnState(l)),o[s]=e.getParent(c),a[s]=e.getReturnState(c),d=!1,c++),s++;for(;l<n;)o[s]=t.getParent(l),a[s]=t.getReturnState(l),l++,T=!1,s++;for(;c<i;)o[s]=e.getParent(c),a[s]=e.getReturnState(c),c++,d=!1,s++;return d?t:T?e:(s<o.length&&(o=o.slice(0,s),a=a.slice(0,s)),0===o.length?p.EMPTY_FULL:1===o.length?new _(o[0],a[0]):new f(o,a))}static isEmptyLocal(t){return t===p.EMPTY_LOCAL}static getCachedContext(t,e,r){if(t.isEmpty)return t;let n=r.get(t);if(n)return n;if(n=e.get(t),n)return r.put(t,n),n;let i,s=!1,o=new Array(t.size);for(let n=0;n<o.length;n++){let i=p.getCachedContext(t.getParent(n),e,r);if(s||i!==t.getParent(n)){if(!s){o=new Array(t.size);for(let e=0;e<t.size;e++)o[e]=t.getParent(e);s=!0}o[n]=i}}if(!s)return n=e.putIfAbsent(t,t),r.put(t,null!=n?n:t),t;if(1===o.length)i=new _(o[0],t.getReturnState(0));else{let e=new Array(t.size);for(let r=0;r<t.size;r++)e[r]=t.getReturnState(r);i=new f(o,e,t.hashCode())}return n=e.putIfAbsent(i,i),r.put(i,n||i),r.put(t,n||i),i}appendSingleContext(t,e){return this.appendContext(p.EMPTY_FULL.getChild(t),e)}getChild(t){return new _(this,t)}hashCode(){return this.cachedHashCode}toStrings(t,e,r=p.EMPTY_FULL){let n=[];t:for(let i=0;;i++){let s=0,o=!0,a=this,l=e,c="";for(c+="[";!a.isEmpty&&a!==r;){let e=0;if(a.size>0){let t=1;for(;1<<t>>>0<a.size;)t++;if(e=i>>s&(1<<t>>>0)-1,o=o&&e>=a.size-1,e>=a.size)continue t;s+=t}if(t){c.length>1&&(c+=" ");let e=t.atn.states[l];c+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==p.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(c.length>1&&(c+=" "),c+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(c+="]",n.push(c),o)break}return n}}n([c.Override],p.prototype,"hashCode",null),n([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],p,"join",null),n([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],p,"getCachedContext",null),e.PredictionContext=p;class d extends p{constructor(t){super(p.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([c.Override],d.prototype,"addEmptyContext",null),n([c.Override],d.prototype,"removeEmptyContext",null),n([c.Override],d.prototype,"getParent",null),n([c.Override],d.prototype,"getReturnState",null),n([c.Override],d.prototype,"findReturnState",null),n([c.Override],d.prototype,"size",null),n([c.Override],d.prototype,"appendSingleContext",null),n([c.Override],d.prototype,"appendContext",null),n([c.Override],d.prototype,"isEmpty",null),n([c.Override],d.prototype,"hasEmpty",null),n([c.Override],d.prototype,"equals",null),n([c.Override],d.prototype,"toStrings",null);let f=class t extends p{constructor(t,e,r){super(r||p.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==p.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===p.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(p.EMPTY_FULL),r.push(p.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new _(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new p.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(p.isEmptyLocal(r)){if(e.hasEmpty)return p.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let s=e.size;e.hasEmpty&&s--;let o=new Array(s),a=new Array(s);for(let t=0;t<s;t++)a[t]=e.getReturnState(t);for(let i=0;i<s;i++)o[i]=t.appendContextImpl(e.getParent(i),r,n);1===o.length?i=new _(o[0],a[0]):(h(o.length>1),i=new t(o,a)),e.hasEmpty&&(i=p.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t))return!1;if(this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new o.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let s=new u.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(s))continue;let o=s.x.size;if(0!==o){if(o!==s.y.size)return!1;for(let t=0;t<o;t++){if(s.x.getReturnState(t)!==s.y.getReturnState(t))return!1;let e=s.x.getParent(t),i=s.y.getParent(t);if(e.hashCode()!==i.hashCode())return!1;e!==i&&(r.push(e),n.push(i))}}else if(!s.x.equals(s.y))return!1}return!0}};n([c.NotNull],f.prototype,"parents",void 0),n([c.NotNull],f.prototype,"returnStates",void 0),n([c.Override],f.prototype,"getParent",null),n([c.Override],f.prototype,"getReturnState",null),n([c.Override],f.prototype,"findReturnState",null),n([c.Override],f.prototype,"size",null),n([c.Override],f.prototype,"isEmpty",null),n([c.Override],f.prototype,"hasEmpty",null),n([c.Override],f.prototype,"addEmptyContext",null),n([c.Override],f.prototype,"removeEmptyContext",null),n([c.Override],f.prototype,"appendContext",null),n([c.Override],f.prototype,"equals",null),f=n([i(0,c.NotNull)],f);let _=class t extends p{constructor(t,e){super(p.calculateSingleHashCode(t,e)),this.parent=t,this.returnState=e}getParent(t){return this.parent}getReturnState(t){return this.returnState}findReturnState(t){return this.returnState===t?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(t,e){return e.getChild(this.parent.appendContext(t,e),this.returnState)}addEmptyContext(){let t=[this.parent,p.EMPTY_FULL],e=[this.returnState,p.EMPTY_FULL_STATE_KEY];return new f(t,e)}removeEmptyContext(){return this}equals(e){if(e===this)return!0;if(!(e instanceof t))return!1;let r=e;return this.hashCode()===r.hashCode()&&this.returnState===r.returnState&&this.parent.equals(r.parent)}};n([c.NotNull],_.prototype,"parent",void 0),n([c.Override],_.prototype,"getParent",null),n([c.Override],_.prototype,"getReturnState",null),n([c.Override],_.prototype,"findReturnState",null),n([c.Override],_.prototype,"size",null),n([c.Override],_.prototype,"isEmpty",null),n([c.Override],_.prototype,"hasEmpty",null),n([c.Override],_.prototype,"appendContext",null),n([c.Override],_.prototype,"addEmptyContext",null),n([c.Override],_.prototype,"removeEmptyContext",null),n([c.Override],_.prototype,"equals",null),_=n([i(0,c.NotNull)],_),e.SingletonPredictionContext=_,function(t){t.EMPTY_LOCAL=new d(!1),t.EMPTY_FULL=new d(!0),t.EMPTY_LOCAL_STATE_KEY=-2147483648,t.EMPTY_FULL_STATE_KEY=2147483647;class e extends s.Array2DHashMap{constructor(){super(r.INSTANCE)}}t.IdentityHashMap=e;class r{IdentityEqualityComparator(){}hashCode(t){return t.hashCode()}equals(t,e){return t===e}}r.INSTANCE=new r,n([c.Override],r.prototype,"hashCode",null),n([c.Override],r.prototype,"equals",null),t.IdentityEqualityComparator=r}(p=e.PredictionContext||(e.PredictionContext={}))},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,o=r(1093),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===s.call(t),n=o(t),a=e&&"[object String]"===s.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!i.call(t,0))for(var _=0;_<t.length;++_)p.push(String(_));if(n&&t.length>0)for(var T=0;T<t.length;++T)p.push(String(T));else for(var y in t)f&&"prototype"===y||!i.call(t,y)||p.push(String(y));if(l)for(var O=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),x=0;x<u.length;++x)O&&"constructor"===u[x]||!i.call(t,u[x])||p.push(u[x]);return p}}t.exports=n},8880:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;const s=r(3907),o=r(8016),a=r(5636),l=r(2399),c=r(8055),u=r(8859),h=r(2356),p=r(4148),d=2147483648;let f=class t{constructor(t,e,r){"number"==typeof e?(p((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,s){return i!==h.SemanticContext.NONE?null!=s?new y(s,i,e,r,n,!1):new _(i,e,r,n):null!=s?new T(s,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){p(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof u.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,s){let o=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=s||o?new y(s,n,e,this,r,o):new _(n,e,this,r):null!=s||o?new T(s,e,this,r,o):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof o.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size<n.size)return!1;if(n.isEmpty)return t.hasEmpty;for(let i=0;i<n.size;i++){let s=t.findReturnState(n.getReturnState(i));if(s<0)return!1;e.push(t.getParent(s)),r.push(n.getParent(i))}}return!1}get isPrecedenceFilterSuppressed(){return 0!==(this.altAndOuterContextDepth&d)}set isPrecedenceFilterSuppressed(t){t?this.altAndOuterContextDepth|=d:this.altAndOuterContextDepth&=2147483647}equals(e){return this===e||e instanceof t&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.reachesIntoOuterContext===e.reachesIntoOuterContext&&this.context.equals(e.context)&&this.semanticContext.equals(e.semanticContext)&&this.isPrecedenceFilterSuppressed===e.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===e.hasPassedThroughNonGreedyDecision&&c.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,e.lexerActionExecutor)}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.state.stateNumber),t=a.MurmurHash.update(t,this.alt),t=a.MurmurHash.update(t,this.reachesIntoOuterContext?1:0),t=a.MurmurHash.update(t,this.context),t=a.MurmurHash.update(t,this.semanticContext),t=a.MurmurHash.update(t,this.hasPassedThroughNonGreedyDecision?1:0),t=a.MurmurHash.update(t,this.lexerActionExecutor),t=a.MurmurHash.finish(t,7),t}toDotString(){let t="";t+="digraph G {\n",t+="rankdir=LR;\n";let e=new s.Array2DHashMap(u.PredictionContext.IdentityEqualityComparator.INSTANCE),r=[];function n(t){let n=e.size,i=e.putIfAbsent(t,n);return null!=i?i:(r.push(t),n)}for(r.push(this.context),e.put(this.context,0);;){let e=r.pop();if(!e)break;for(let r=0;r<e.size;r++)t+=" s"+n(e),t+="->",t+="s"+n(e.getParent(r)),t+='[label="'+e.getReturnState(r)+'"];\n'}return t+="}\n",t.toString()}toString(t,e,r){null==r&&(r=null!=e),null==e&&(e=!0);let n,i="";n=r?this.context.toStrings(t,this.state.stateNumber):["?"];let s=!0;for(let t of n)s?s=!1:i+=", ",i+="(",i+=this.state,e&&(i+=",",i+=this.alt),this.context&&(i+=",",i+=t),this.semanticContext!==h.SemanticContext.NONE&&(i+=",",i+=this.semanticContext),this.reachesIntoOuterContext&&(i+=",up="+this.outerContextDepth),i+=")";return i.toString()}};n([l.NotNull],f.prototype,"_state",void 0),n([l.NotNull],f.prototype,"_context",void 0),n([l.NotNull],f.prototype,"state",null),n([l.NotNull,i(0,l.NotNull)],f.prototype,"context",null),n([l.NotNull],f.prototype,"semanticContext",null),n([l.Override],f.prototype,"clone",null),n([i(0,l.NotNull),i(2,l.NotNull)],f.prototype,"transformImpl",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([i(0,l.NotNull),i(3,l.NotNull)],f,"create",null),f=n([i(0,l.NotNull),i(2,l.NotNull)],f),e.ATNConfig=f;let _=class extends f{constructor(t,e,r,n){super(e,r,n),this._semanticContext=t}get semanticContext(){return this._semanticContext}};n([l.NotNull],_.prototype,"_semanticContext",void 0),n([l.Override],_.prototype,"semanticContext",null),_=n([i(1,l.NotNull),i(2,l.NotNull)],_);let T=class extends f{constructor(t,e,r,n,i){if("number"==typeof r)super(e,r,n);else if(super(e,r,n),r.semanticContext!==h.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=i}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],T.prototype,"lexerActionExecutor",null),n([l.Override],T.prototype,"hasPassedThroughNonGreedyDecision",null),T=n([i(1,l.NotNull),i(2,l.NotNull)],T);let y=class extends _{constructor(t,e,r,n,i,s){super(e,r,n,i),this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=s}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],y.prototype,"lexerActionExecutor",null),n([l.Override],y.prototype,"hasPassedThroughNonGreedyDecision",null),y=n([i(1,l.NotNull),i(2,l.NotNull)],y)},8897:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;const n=r(1072);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},8955:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;const i=r(2399);class s{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==s._defaultOptions&&(s._defaultOptions=new s,s._defaultOptions.makeReadOnly()),s._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],s,"defaultOptions",null),e.ATNDeserializationOptions=s},8968:t=>{"use strict";t.exports=Math.floor},9032:(t,e,r)=>{"use strict";var n=r(7244),i=r(8184),s=r(5767),o=r(5680);function a(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(c)var _=a(Symbol.prototype.valueOf);function T(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function O(t){return"[object Set]"===u(t)}function x(t){return"[object WeakMap]"===u(t)}function g(t){return"[object WeakSet]"===u(t)}function E(t){return"[object ArrayBuffer]"===u(t)}function m(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function v(t){return"[object DataView]"===u(t)}function S(t){return"undefined"!=typeof DataView&&(v.working?v(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||S(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},O.working="undefined"!=typeof Set&&O(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(O.working?O(t):t instanceof Set)},x.working="undefined"!=typeof WeakMap&&x(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(x.working?x(t):t instanceof WeakMap)},g.working="undefined"!=typeof WeakSet&&g(new WeakSet),e.isWeakSet=function(t){return g(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=m,v.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&v(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S;var N="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function R(t){return"[object SharedArrayBuffer]"===u(t)}function b(t){return void 0!==N&&(void 0===R.working&&(R.working=R(new N)),R.working?R(t):t instanceof N)}function A(t){return T(t,h)}function C(t){return T(t,p)}function L(t){return T(t,d)}function I(t){return l&&T(t,f)}function w(t){return c&&T(t,_)}e.isSharedArrayBuffer=b,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=A,e.isStringObject=C,e.isBooleanObject=L,e.isBigIntObject=I,e.isSymbolObject=w,e.isBoxedPrimitive=function(t){return A(t)||C(t)||L(t)||I(t)||w(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(m(t)||b(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})},9057:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;const s=r(5636),o=r(2399);let a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this._offset),t=s.MurmurHash.update(t,this._action),s.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([o.NotNull],a.prototype,"action",null),n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),a=n([i(1,o.NotNull)],a),e.LexerIndexedCustomAction=a},9086:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;const i=r(934),s=r(2399);class o extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([s.NotNull],o.prototype,"tag",null),n([s.Override],o.prototype,"toString",null),e.TagChunk=o},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),s="";for(var o in i)s+=o;return t!==s}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9202:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.ActionTransition=a},9209:(t,e,r)=>{"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},9211:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9240:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;const i=r(2813),s=r(7037),o=r(2399);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return s.ATNStateType.RULE_START}}n([o.Override],a.prototype,"stateType",null),e.RuleStartState=a},9250:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;const s=r(2399),o=r(1072);let a=class extends o.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.EpsilonTransition=a},9274:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;const s=r(2813),o=r(7037),a=r(6889),l=r(2262),c=r(2468),u=r(3714),h=r(6251),p=r(2399),d=r(2399),f=r(5922),_=r(3161),T=r(9449),y=r(4016),O=r(7760);let x=class t extends f.Parser{constructor(e,r,n,i,s){if(super(e instanceof t?e.inputStream:s),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new _.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new _.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,s.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===o.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof T.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),O.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let s=r;if(!this.sempred(this._ctx,s.ruleIndex,s.predIndex))throw new l.FailedPredicateException(this);break;case 6:let o=r;this.action(this._ctx,o.ruleIndex,o.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new u.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof c.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=O.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let s=this.tokenFactory.create(n,i,e.text,O.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,s))}else{e.tokenSource;let t=this.tokenFactory.create(n,O.Token.INVALID_TYPE,e.text,O.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([p.NotNull],x.prototype,"_vocabulary",void 0),n([d.Override],x.prototype,"reset",null),n([d.Override],x.prototype,"atn",null),n([d.Override],x.prototype,"vocabulary",null),n([d.Override],x.prototype,"ruleNames",null),n([d.Override],x.prototype,"grammarFileName",null),n([d.Override],x.prototype,"enterRecursionRule",null),x=n([i(1,p.NotNull)],x),e.ParserInterpreter=x},9278:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},9290:t=>{"use strict";t.exports=RangeError},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,o=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),a=r(0,i.length-o.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(s=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var e=i.apply(this,n(o,arguments));return Object(e)===e?e:this}return i.apply(t,n(o,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,s.prototype=new u,u.prototype=null}return s}},9383:t=>{"use strict";t.exports=Error},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9449:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},9462:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;const s=r(8939),o=r(1533),a=r(8880),l=r(6889),c=r(3357),u=r(2399),h=r(3575),p=r(8055),d=r(8859),f=r(8840),_=r(3334),T=r(7760),y=r(4650);let O=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n<e.numberOfTransitions;n++){let i=new c.IntervalSet;r[n]=i;let s=new o.Array2DHashSet(p.ObjectEqualityComparator.INSTANCE),a=!1;this._LOOK(e.transition(n).target,void 0,d.PredictionContext.EMPTY_LOCAL,i,s,new l.BitSet,a,!1),(0===i.size||i.contains(t.HIT_PRED))&&(i=void 0,r[n]=i)}return r}LOOK(t,e,r){if(void 0===r){if(null==t.atn)throw new Error("Illegal state");r=t.atn.ruleToStopState[t.ruleIndex]}else null===r&&(r=void 0);let n=new c.IntervalSet;return this._LOOK(t,r,e,n,new o.Array2DHashSet,new l.BitSet,!0,!0),n}_LOOK(e,r,n,i,o,l,u,p){let O=a.ATNConfig.create(e,0,n);if(!o.add(O))return;if(e===r){if(d.PredictionContext.isEmptyLocal(n))return void i.add(T.Token.EPSILON);if(n.isEmpty)return void(p&&i.add(T.Token.EOF))}if(e instanceof f.RuleStopState){if(n.isEmpty&&!d.PredictionContext.isEmptyLocal(n))return void(p&&i.add(T.Token.EOF));let t=l.get(e.ruleIndex);try{l.clear(e.ruleIndex);for(let t=0;t<n.size;t++){if(n.getReturnState(t)===d.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let e=this.atn.states[n.getReturnState(t)];this._LOOK(e,r,n.getParent(t),i,o,l,u,p)}}finally{t&&l.set(e.ruleIndex)}}let x=e.numberOfTransitions;for(let a=0;a<x;a++){let d=e.transition(a);if(d instanceof _.RuleTransition){if(l.get(d.ruleIndex))continue;let t=n.getChild(d.followState.stateNumber);try{l.set(d.ruleIndex),this._LOOK(d.target,r,t,i,o,l,u,p)}finally{l.clear(d.ruleIndex)}}else if(d instanceof s.AbstractPredicateTransition)u?this._LOOK(d.target,r,n,i,o,l,u,p):i.add(t.HIT_PRED);else if(d.isEpsilon)this._LOOK(d.target,r,n,i,o,l,u,p);else if(d instanceof y.WildcardTransition)i.addAll(c.IntervalSet.of(T.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let t=d.label;null!=t&&(d instanceof h.NotSetTransition&&(t=t.complement(c.IntervalSet.of(T.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),i.addAll(t))}}}};O.HIT_PRED=T.Token.INVALID_TYPE,n([u.NotNull],O.prototype,"atn",void 0),n([u.NotNull,i(0,u.NotNull),i(1,u.NotNull)],O.prototype,"LOOK",null),n([i(0,u.NotNull),i(2,u.NotNull),i(3,u.NotNull),i(4,u.NotNull),i(5,u.NotNull)],O.prototype,"_LOOK",null),O=n([i(0,u.NotNull)],O),e.LL1Analyzer=O},9538:t=>{"use strict";t.exports=ReferenceError},9597:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var o,a,l={};function c(t,e,r){r||(r=Error);var o=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,r);var o,a,l,c=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=s(a);if(l){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(r,n,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s=c.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i)),s.code=t,s}return o=u,Object.defineProperty(o,"prototype",{writable:!1}),o}(r);l[t]=o}function u(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(t,e,i){var s,a,l,c,h;if(void 0===o&&(o=r(4148)),o("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,4)===a)?(s="must not be",e=e.replace(/^not /,"")):s="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))l="The ".concat(t," ").concat(s," ").concat(u(e,"type"));else{var p=("number"!=typeof h&&(h=0),h+1>(c=t).length||-1===c.indexOf(".",h)?"argument":"property");l='The "'.concat(t,'" ').concat(p," ").concat(s," ").concat(u(e,"type"))}return l+". Received type ".concat(n(i))},TypeError),c("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(537));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===o&&(o=r(4148)),o(e.length>0,"At least one arg needs to be specified");var i="The ",s=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),s){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,s-1).join(", "),i+=", and ".concat(e[s-1]," arguments")}return"".concat(i," must be specified")},TypeError),t.exports.codes=l},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;l.call(p)===l.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return a(t);if(o(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},9612:t=>{"use strict";t.exports=Object},9616:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;const s=r(5636),o=r(2399);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.actionType),t=s.MurmurHash.update(t,this._mode),s.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([o.Override],a.prototype,"actionType",null),n([o.Override],a.prototype,"isPositionDependent",null),n([o.Override,i(0,o.NotNull)],a.prototype,"execute",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"toString",null),e.LexerModeAction=a},9675:t=>{"use strict";t.exports=TypeError},9700:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectorSynthesisError=void 0,e.synthesizeSelector=function(t,e=3){return s(_(t.map(t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map(t=>t.id))})),l,e))},e.synthesizeBinaryRelation=function(t,e=3){return s(_(t.map(t=>{const e=new Set(Array.from(t.pairs).map(([t,e])=>`${t.id}\0${e.id}`));return{datum:t.datum,target:e}}),c,e))},e.synthesizeSelectorWithWhy=function(t,e=3){const r=t.map(t=>({datum:t.datum,target:new Set(Array.from(t.atoms).map(t=>t.id))})),n=_(r,l,e),i=s(n),o=new Map;return{expression:i,examples:r.map(t=>{const e=d(t.datum,o);return{datum:t.datum,target:t.target,result:u(n,e,l),why:T(n,e,l)}})}},e.synthesizeBinaryRelationWithWhy=function(t,e=3){const r=t.map(t=>{const e=new Set(Array.from(t.pairs).map(([t,e])=>`${t.id}\0${e.id}`));return{datum:t.datum,target:e}}),n=_(r,c,e),i=s(n),o=new Map;return{expression:i,examples:r.map(t=>{const e=d(t.datum,o);return{datum:t.datum,target:t.target,result:u(n,e,c),why:T(n,e,c)}})}};const n=r(1229);class i extends Error{}function s(t){switch(t.kind){case"identifier":return t.name;case"closure":return`^${a(s(t.child))}`;case"reflexive-closure":return`*${a(s(t.child))}`;case"transpose":return`~${a(s(t.child))}`;case"join":return`${o(t.left)}.${o(t.right)}`;case"union":return`(${s(t.left)} + ${s(t.right)})`;case"intersection":return`(${s(t.left)} & ${s(t.right)})`;case"difference":return`(${s(t.left)} - ${s(t.right)})`;case"comprehension":return`{${t.varName}: ${s(t.domain)} | ${s(t.body)}}`;case"all":return`(all ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"some":return`(some ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"no":return`(no ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"one":return`(one ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"lone":return`(lone ${t.varName}: ${s(t.domain)} | ${s(t.body)})`;case"and":return`(${s(t.left)} and ${s(t.right)})`;case"or":return`(${s(t.left)} or ${s(t.right)})`;case"implies":return`(${s(t.left)} => ${s(t.right)})`;case"iff":return`(${s(t.left)} <=> ${s(t.right)})`;case"not":return`!${a(s(t.child))}`;case"in":return`(${s(t.left)} in ${s(t.right)})`;case"eq":return`(${s(t.left)} = ${s(t.right)})`;case"neq":return`(${s(t.left)} != ${s(t.right)})`;case"lt":return`(${s(t.left)} < ${s(t.right)})`;case"gt":return`(${s(t.left)} > ${s(t.right)})`;case"lte":return`(${s(t.left)} <= ${s(t.right)})`;case"gte":return`(${s(t.left)} >= ${s(t.right)})`;case"box-join":return`${s(t.base)}[${t.args.map(s).join(", ")}]`}}function o(t){return"identifier"===t.kind||"closure"===t.kind||"reflexive-closure"===t.kind||"transpose"===t.kind||"box-join"===t.kind?s(t):`(${s(t)})`}function a(t){return t.startsWith("(")&&t.endsWith(")")?t:`(${t})`}function l(t){if("string"==typeof t)return new Set([t]);if(!Array.isArray(t))return null;const e=t,r=new Set;for(const t of e){if(!Array.isArray(t)||1!==t.length)return null;const e=t[0];if("string"==typeof e)r.add(e);else{if("number"!=typeof e)return null;r.add(String(e))}}return r}function c(t){if(!Array.isArray(t))return null;const e=t,r=new Set;for(const t of e){if(!Array.isArray(t)||2!==t.length)return null;const[e,n]=t,i="string"==typeof e?e:"number"==typeof e?String(e):null,s="string"==typeof n?n:"number"==typeof n?String(n):null;if(null===i||null===s)return null;r.add(`${i}\0${s}`)}return r}function u(t,e,r){const n=s(t);return r(e.evaluateExpression(n))}function h(t,e){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}function p(t,e){if("univ"===t||"iden"===t)return"builtin";for(const r of e){if(r.getRelations().some(e=>e.name===t))return"relation";if(r.getTypes().some(e=>e.id===t))return"type"}return"other"}function d(t,e){const r=e.get(t);if(r)return r;const i=new n.SimpleGraphQueryEvaluator(t);return e.set(t,i),i}function f(t,e,r){for(const n of e){const e=u(t,n.evaluator,r);if(!e)return!1;if(!h(e,n.target))return!1}return!0}function _(t,e,r=3){if(0===t.length)throw new i("No examples provided for synthesis");const n=new Map,o=t.map(t=>({...t,evaluator:d(t.datum,n)})),a=o.map(t=>t.datum),l=function(t){const e=function(t){const e=t.map(t=>{const e=t.getTypes().map(t=>t.id),r=t.getRelations().map(t=>t.name);return new Set([...e,...r])});if(0===e.length)return new Set;const[r,...n]=e,i=new Set;for(const t of r)n.every(e=>e.has(t))&&i.add(t);return i}(t);return["univ","iden"].forEach(t=>e.add(t)),Array.from(e).sort((e,r)=>{const n={relation:0,type:1,builtin:2,other:3},i=n[p(e,t)],s=n[p(r,t)];return i!==s?i-s:e.localeCompare(r)}).map(t=>({kind:"identifier",name:t}))}(a);if(0===l.length)throw new i("No shared identifiers available across provided data instances");for(const t of l)if(f(t,o,e))return t;const c=function(t){const e=[],r=new Set,n=new Set,i=new Set;if(0===t.length)return e;const o=t[0];o.getRelations().forEach(t=>n.add(t.name)),o.getTypes().forEach(t=>i.add(t.id));for(let e=1;e<t.length;e++){const r=t[e],s=new Set(r.getRelations().map(t=>t.name)),o=new Set(r.getTypes().map(t=>t.id));for(const t of n)s.has(t)||n.delete(t);for(const t of i)o.has(t)||i.delete(t)}for(const t of n){const n=o.getRelations().find(e=>e.name===t);if(!n||n.types.length<2)continue;const a=n.types[0];for(const n of i){const i=o.getTypes().find(t=>t.id===n);if(i&&(n===a||i.types.includes(a)||o.getTypes().find(t=>t.id===a)?.types.includes(n))){const i={kind:"join",left:{kind:"identifier",name:n},right:{kind:"identifier",name:t}},o=s(i);r.has(o)||(r.add(o),e.push(i))}}}for(const t of n){const n=o.getRelations().find(e=>e.name===t);if(!n||n.types.length<2)continue;const a=n.types[n.types.length-1];for(const n of i){const i=o.getTypes().find(t=>t.id===n);if(i&&(n===a||i.types.includes(a)||o.getTypes().find(t=>t.id===a)?.types.includes(n))){const i={kind:"join",left:{kind:"identifier",name:t},right:{kind:"identifier",name:n}},o=s(i);r.has(o)||(r.add(o),e.push(i))}}}return e}(a);for(const t of c)if(f(t,o,e))return t;const u=[],h=new Set,_=new Set,T=[...l],y=(t,e)=>{const r=s(t);_.has(r)||h.has(r)||(u.push({node:t,depth:e}),h.add(r))};for(const t of c)_.add(s(t));for(l.forEach(t=>y(t,0));u.length>0;){const t=u.shift(),n=s(t.node);if(h.delete(n),!_.has(n)){if(_.add(n),f(t.node,o,e))return t.node;if(!(t.depth>=r)){y({kind:"closure",child:t.node},t.depth+1),y({kind:"reflexive-closure",child:t.node},t.depth+1),y({kind:"transpose",child:t.node},t.depth+1);for(const e of T){const r=s(t.node),n=s(e),[i,o]=r<n?[t.node,e]:[e,t.node];y({kind:"union",left:i,right:o},t.depth+1);const[a,l]=r<n?[t.node,e]:[e,t.node];y({kind:"intersection",left:a,right:l},t.depth+1),y({kind:"difference",left:t.node,right:e},t.depth+1),r!==n&&y({kind:"difference",left:e,right:t.node},t.depth+1),y({kind:"join",left:t.node,right:e},t.depth+1),y({kind:"join",left:e,right:t.node},t.depth+1)}if(t.depth+2<=r)for(const e of T){if("identifier"!==e.kind)continue;if("type"!==p(e.name,a))continue;const r="v",n={kind:"identifier",name:r};y({kind:"comprehension",varName:r,domain:e,body:{kind:"in",left:n,right:t.node}},t.depth+2);for(const i of T)"identifier"===i.kind&&"relation"===p(i.name,a)&&y({kind:"comprehension",varName:r,domain:e,body:{kind:"in",left:{kind:"join",left:n,right:i},right:t.node}},t.depth+2)}}}}throw new i("Unable to synthesize an expression matching all examples")}function T(t,e,r){const n=u(t,e,r),i={kind:t.kind,expression:s(t),result:n};switch(t.kind){case"identifier":default:return i;case"closure":case"reflexive-closure":case"transpose":case"not":return{...i,children:[T(t.child,e,r)]};case"join":case"union":case"intersection":case"difference":case"and":case"or":case"implies":case"iff":case"in":case"eq":case"neq":case"lt":case"gt":case"lte":case"gte":return{...i,children:[T(t.left,e,r),T(t.right,e,r)]};case"all":case"some":case"no":case"one":case"lone":case"comprehension":return{...i,children:[T(t.domain,e,r),T(t.body,e,r)]};case"box-join":return{...i,children:[T(t.base,e,r),...t.args.map(t=>T(t,e,r))]}}}e.SelectorSynthesisError=i},9709:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;const s=r(4274),o=r(6889),a=r(5636),l=r(2399),c=r(8859),u=r(4148);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){u(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){u(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new o.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:s.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===c.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===c.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(c.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(c.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},9721:(t,e,r)=>{"use strict";var n=r(6556),i=r(4035),s=n("RegExp.prototype.exec"),o=r(9675);t.exports=function(t){if(!i(t))throw new o("`regex` must be a RegExp");return function(e){return null!==s(t,e)}}},9803:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;const i=r(7037),s=r(8744),o=r(2399);class a extends s.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([o.Override],a.prototype,"stateType",null),e.InvalidState=a},9939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;const n=r(493),i=r(2807),s=r(1088),o=r(7435),a=r(659);class l extends i.Lexer{constructor(t){super(t),this._interp=new s.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new o.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(6743);t.exports=s.call(n,i)},9984:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;const i=r(4274),s=r(8831),o=r(5378),a=r(7477),l=r(2399),c=r(7239),u=r(1097);class h extends o.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=null!=e?e:-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e<this.childCount;e++)t+=this.getChild(e).text;return t.toString()}get ruleIndex(){return-1}get altNumber(){return i.ATN.INVALID_ALT_NUMBER}set altNumber(t){}getChild(t){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t){return c.Trees.toStringTree(this,t)}toString(t,e){const r=t instanceof s.Recognizer?t.ruleNames:t;e=e||u.ParserRuleContext.emptyContext();let n="",i=this;for(n+="[";i&&i!==e;){if(r){let t=i.ruleIndex;n+=t>=0&&t<r.length?r[t]:t.toString()}else i.isEmpty||(n+=i.invokingState);!i._parent||!r&&i._parent.isEmpty||(n+=" "),i=i._parent}return n+="]",n.toString()}}n([l.Override],h.prototype,"sourceInterval",null),n([l.Override],h.prototype,"ruleContext",null),n([l.Override],h.prototype,"parent",null),n([l.Override],h.prototype,"setParent",null),n([l.Override],h.prototype,"payload",null),n([l.Override],h.prototype,"text",null),n([l.Override],h.prototype,"getChild",null),n([l.Override],h.prototype,"childCount",null),n([l.Override],h.prototype,"accept",null),n([l.Override],h.prototype,"toStringTree",null),e.RuleContext=h}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,r),s.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(1229)})());