@guihz/trading-vue-editor-tes 0.0.104 → 0.0.106

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
- var tb=Object.defineProperty;var nb=(bo,vi,Fr)=>vi in bo?tb(bo,vi,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):bo[vi]=Fr;var P=(bo,vi,Fr)=>(nb(bo,typeof vi!="symbol"?vi+"":vi,Fr),Fr);(function(){"use strict";var bo={92:()=>{}},vi={};function Fr(t){var e=vi[t];if(e!==void 0)return e.exports;var n=vi[t]={exports:{}};return bo[t](n,n.exports,Fr),n.exports}Fr.d=(t,e)=>{for(var n in e)Fr.o(e,n)&&!Fr.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Fr.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Mt={};(()=>{function t(f){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(f)}function e(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(t(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),t(_)==="symbol"?_:String(_)),s)}var _}Fr.d(Mt,{dx:()=>bn,q2:()=>t0,FO:()=>pm,xf:()=>su,Gy:()=>ym,s4:()=>Us,c7:()=>bm,_7:()=>um,gp:()=>lm,cK:()=>Ls,zs:()=>w0,AV:()=>su,Xp:()=>_e,VS:()=>J,ul:()=>Go,hW:()=>hr,x1:()=>Wa,z5:()=>Hc,oN:()=>A0,TB:()=>cm,u1:()=>zc,_b:()=>K0,$F:()=>om,_T:()=>X0,db:()=>am,Zx:()=>Wn,_x:()=>zo,r8:()=>ro,JI:()=>Le,TP:()=>hn,WU:()=>n,Nj:()=>F,ZP:()=>eb});var n=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}var i,m;return i=f,(m=[{key:"getTokenSource",value:function(){return this.source[0]}},{key:"getInputStream",value:function(){return this.source[1]}},{key:"text",get:function(){return this._text},set:function(s){this._text=s}}])&&e(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function r(f,i){if(!Array.isArray(f)||!Array.isArray(i))return!1;if(f===i)return!0;if(f.length!==i.length)return!1;for(var m=0;m<f.length;m++)if(!(f[m]===i[m]||f[m].equals&&f[m].equals(i[m])))return!1;return!0}function a(f){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},a(f)}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1;var c=Math.round(Math.random()*Math.pow(2,32));function h(f){if(!f)return 0;var i,m,s=a(f),_=s==="string"?f:!(s!=="object"||!f.toString)&&f.toString();if(!_)return 0;for(var l=3&_.length,y=_.length-l,o=c,u=3432918353,S=461845907,k=0;k<y;)m=255&_.charCodeAt(k)|(255&_.charCodeAt(++k))<<8|(255&_.charCodeAt(++k))<<16|(255&_.charCodeAt(++k))<<24,++k,o=27492+(65535&(i=5*(65535&(o=(o^=m=(65535&(m=(m=(65535&m)*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*S+(((m>>>16)*S&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(m=0,l){case 3:m^=(255&_.charCodeAt(k+2))<<16;case 2:m^=(255&_.charCodeAt(k+1))<<8;case 1:o^=m=(65535&(m=(m=(65535&(m^=255&_.charCodeAt(k)))*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*S+(((m>>>16)*S&65535)<<16)&4294967295}return o^=_.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}function d(f){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},d(f)}function E(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(d(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(d(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),d(_)==="symbol"?_:String(_)),s)}var _}var b=function(){function f(){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.count=0,this.hash=0}var i,m,s;return i=f,m=[{key:"update",value:function(){for(var _=0;_<arguments.length;_++){var l=arguments[_];if(l!=null)if(Array.isArray(l))this.update.apply(this,l);else{var y=0;switch(d(l)){case"undefined":case"function":continue;case"number":case"boolean":y=l;break;case"string":y=h(l);break;default:l.updateHashCode?l.updateHashCode(this):console.log("No updateHashCode for "+l.toString());continue}y=(y*=3432918353)<<15|y>>>17,y*=461845907,this.count=this.count+1;var o=this.hash^y;o=5*(o=o<<13|o>>>19)+3864292196,this.hash=o}}}},{key:"finish",value:function(){var _=this.hash^4*this.count;return _^=_>>>16,_*=2246822507,_^=_>>>13,(_*=3266489909)^_>>>16}}],s=[{key:"hashStuff",value:function(){var _=new f;return _.update.apply(_,arguments),_.finish()}}],m&&E(i.prototype,m),s&&E(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function T(f){return f?typeof f=="string"?h(f):f.hashCode():-1}function x(f,i){return f?f.equals(i):f===i}function w(f){return f===null?"null":f}function F(f){return Array.isArray(f)?"["+f.map(w).join(", ")+"]":"null"}function R(f){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},R(f)}function v(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(R(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(R(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),R(_)==="symbol"?_:String(_)),s)}var _}var p="h-",g=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||T,this.equalsFunction=_||x}var i,m;return i=f,(m=[{key:"add",value:function(s){var _=p+this.hashFunction(s);if(_ in this.data){for(var l=this.data[_],y=0;y<l.length;y++)if(this.equalsFunction(s,l[y]))return l[y];return l.push(s),s}return this.data[_]=[s],s}},{key:"has",value:function(s){return this.get(s)!=null}},{key:"get",value:function(s){var _=p+this.hashFunction(s);if(_ in this.data){for(var l=this.data[_],y=0;y<l.length;y++)if(this.equalsFunction(s,l[y]))return l[y]}return null}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(p)}).flatMap(function(_){return s.data[_]},this)}},{key:"toString",value:function(){return F(this.values())}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(p)}).map(function(_){return s.data[_].length},this).reduce(function(_,l){return _+l},0)}}])&&v(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function A(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&O(f,i)}function O(f,i){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},O(f,i)}function D(f){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,s=I(f);if(i){var _=I(this).constructor;m=Reflect.construct(s,arguments,_)}else m=s.apply(this,arguments);return function(l,y){if(y&&(L(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function I(f){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},I(f)}function L(f){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L(f)}function H(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function M(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(L(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(L(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),L(_)==="symbol"?_:String(_)),s)}var _}function G(f,i,m){return i&&M(f.prototype,i),m&&M(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var N=function(){function f(){H(this,f)}return G(f,[{key:"hashCode",value:function(){var i=new b;return this.updateHashCode(i),i.finish()}},{key:"evaluate",value:function(i,m){}},{key:"evalPrecedence",value:function(i,m){return this}}],[{key:"andContext",value:function(i,m){if(i===null||i===f.NONE)return m;if(m===null||m===f.NONE)return i;var s=new K(i,m);return s.opnds.length===1?s.opnds[0]:s}},{key:"orContext",value:function(i,m){if(i===null)return m;if(m===null)return i;if(i===f.NONE||m===f.NONE)return f.NONE;var s=new Y(i,m);return s.opnds.length===1?s.opnds[0]:s}}]),f}(),K=function(f){A(m,f);var i=D(m);function m(s,_){var l;H(this,m),l=i.call(this);var y=new g;s instanceof m?s.opnds.map(function(S){y.add(S)}):y.add(s),_ instanceof m?_.opnds.map(function(S){y.add(S)}):y.add(_);var o=ne(y);if(o.length>0){var u=null;o.map(function(S){(u===null||S.precedence<u.precedence)&&(u=S)}),y.add(u)}return l.opnds=Array.from(y.values()),l}return G(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"AND")}},{key:"evaluate",value:function(s,_){for(var l=0;l<this.opnds.length;l++)if(!this.opnds[l].evaluate(s,_))return!1;return!0}},{key:"evalPrecedence",value:function(s,_){for(var l=!1,y=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],S=u.evalPrecedence(s,_);if(l|=S!==u,S===null)return null;S!==N.NONE&&y.push(S)}if(!l)return this;if(y.length===0)return N.NONE;var k=null;return y.map(function(C){k=k===null?C:N.andContext(k,C)}),k}},{key:"toString",value:function(){var s=this.opnds.map(function(_){return _.toString()});return(s.length>3?s.slice(3):s).join("&&")}}]),m}(N),Y=function(f){A(m,f);var i=D(m);function m(s,_){var l;H(this,m),l=i.call(this);var y=new g;s instanceof m?s.opnds.map(function(k){y.add(k)}):y.add(s),_ instanceof m?_.opnds.map(function(k){y.add(k)}):y.add(_);var o=ne(y);if(o.length>0){var u=o.sort(function(k,C){return k.compareTo(C)}),S=u[u.length-1];y.add(S)}return l.opnds=Array.from(y.values()),l}return G(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"OR")}},{key:"evaluate",value:function(s,_){for(var l=0;l<this.opnds.length;l++)if(this.opnds[l].evaluate(s,_))return!0;return!1}},{key:"evalPrecedence",value:function(s,_){for(var l=!1,y=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],S=u.evalPrecedence(s,_);if(l|=S!==u,S===N.NONE)return N.NONE;S!==null&&y.push(S)}return l?(y.length===0||y.map(function(k){return k}),null):this}},{key:"toString",value:function(){var s=this.opnds.map(function(_){return _.toString()});return(s.length>3?s.slice(3):s).join("||")}}]),m}(N);function ne(f){var i=[];return f.values().map(function(m){m instanceof N.PrecedencePredicate&&i.push(m)}),i}function se(f){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},se(f)}function re(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(se(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(se(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),se(_)==="symbol"?_:String(_)),s)}var _}function ue(f,i){if(f===null){var m={state:null,alt:null,context:null,semanticContext:null};return i&&(m.reachesIntoOuterContext=0),m}var s={};return s.state=f.state||null,s.alt=f.alt===void 0?null:f.alt,s.context=f.context||null,s.semanticContext=f.semanticContext||null,i&&(s.reachesIntoOuterContext=f.reachesIntoOuterContext||0,s.precedenceFilterSuppressed=f.precedenceFilterSuppressed||!1),s}var ce=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.checkContext(s,_),s=ue(s),_=ue(_,!0),this.state=s.state!==null?s.state:_.state,this.alt=s.alt!==null?s.alt:_.alt,this.context=s.context!==null?s.context:_.context,this.semanticContext=s.semanticContext!==null?s.semanticContext:_.semanticContext!==null?_.semanticContext:N.NONE,this.reachesIntoOuterContext=_.reachesIntoOuterContext,this.precedenceFilterSuppressed=_.precedenceFilterSuppressed}var i,m;return i=f,(m=[{key:"checkContext",value:function(s,_){s.context!==null&&s.context!==void 0||_!==null&&_.context!==null&&_.context!==void 0||(this.context=null)}},{key:"hashCode",value:function(){var s=new b;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&(this.context===null?s.context===null:this.context.equals(s.context))&&this.semanticContext.equals(s.semanticContext)&&this.precedenceFilterSuppressed===s.precedenceFilterSuppressed}},{key:"hashCodeForConfigSet",value:function(){var s=new b;return s.update(this.state.stateNumber,this.alt,this.semanticContext),s.finish()}},{key:"equalsForConfigSet",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&this.semanticContext.equals(s.semanticContext)}},{key:"toString",value:function(){return"("+this.state+","+this.alt+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==N.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}])&&re(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ee(f){return Ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ee(f)}function Te(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ee(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ee(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ee(_)==="symbol"?_:String(_)),s)}var _}var _e=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.start=s,this.stop=_}var i,m;return i=f,(m=[{key:"clone",value:function(){return new f(this.start,this.stop)}},{key:"contains",value:function(s){return s>=this.start&&s<this.stop}},{key:"toString",value:function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}},{key:"length",get:function(){return this.stop-this.start}}])&&Te(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function oe(f){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oe(f)}function Z(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(oe(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(oe(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),oe(_)==="symbol"?_:String(_)),s)}var _}_e.INVALID_INTERVAL=new _e(-1,-2);var J=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.intervals=null,this.readOnly=!1}var i,m;return i=f,(m=[{key:"first",value:function(s){return this.intervals===null||this.intervals.length===0?n.INVALID_TYPE:this.intervals[0].start}},{key:"addOne",value:function(s){this.addInterval(new _e(s,s+1))}},{key:"addRange",value:function(s,_){this.addInterval(new _e(s,_+1))}},{key:"addInterval",value:function(s){if(this.intervals===null)this.intervals=[],this.intervals.push(s.clone());else{for(var _=0;_<this.intervals.length;_++){var l=this.intervals[_];if(s.stop<l.start)return void this.intervals.splice(_,0,s);if(s.stop===l.start)return void(this.intervals[_]=new _e(s.start,l.stop));if(s.start<=l.stop)return this.intervals[_]=new _e(Math.min(l.start,s.start),Math.max(l.stop,s.stop)),void this.reduce(_)}this.intervals.push(s.clone())}}},{key:"addSet",value:function(s){var _=this;return s.intervals!==null&&s.intervals.forEach(function(l){return _.addInterval(l)},this),this}},{key:"reduce",value:function(s){if(s<this.intervals.length-1){var _=this.intervals[s],l=this.intervals[s+1];_.stop>=l.stop?(this.intervals.splice(s+1,1),this.reduce(s)):_.stop>=l.start&&(this.intervals[s]=new _e(_.start,l.stop),this.intervals.splice(s+1,1))}}},{key:"complement",value:function(s,_){var l=new f;return l.addInterval(new _e(s,_+1)),this.intervals!==null&&this.intervals.forEach(function(y){return l.removeRange(y)}),l}},{key:"contains",value:function(s){if(this.intervals===null)return!1;for(var _=0;_<this.intervals.length;_++)if(this.intervals[_].contains(s))return!0;return!1}},{key:"removeRange",value:function(s){if(s.start===s.stop-1)this.removeOne(s.start);else if(this.intervals!==null)for(var _=0,l=0;l<this.intervals.length;l++){var y=this.intervals[_];if(s.stop<=y.start)return;if(s.start>y.start&&s.stop<y.stop){this.intervals[_]=new _e(y.start,s.start);var o=new _e(s.stop,y.stop);return void this.intervals.splice(_,0,o)}s.start<=y.start&&s.stop>=y.stop?(this.intervals.splice(_,1),_-=1):s.start<y.stop?this.intervals[_]=new _e(y.start,s.start):s.stop<y.stop&&(this.intervals[_]=new _e(s.stop,y.stop)),_+=1}}},{key:"removeOne",value:function(s){if(this.intervals!==null)for(var _=0;_<this.intervals.length;_++){var l=this.intervals[_];if(s<l.start)return;if(s===l.start&&s===l.stop-1)return void this.intervals.splice(_,1);if(s===l.start)return void(this.intervals[_]=new _e(l.start+1,l.stop));if(s===l.stop-1)return void(this.intervals[_]=new _e(l.start,l.stop-1));if(s<l.stop-1){var y=new _e(l.start,s);return l.start=s+1,void this.intervals.splice(_,0,y)}}}},{key:"toString",value:function(s,_,l){return s=s||null,_=_||null,l=l||!1,this.intervals===null?"{}":s!==null||_!==null?this.toTokenString(s,_):l?this.toCharString():this.toIndexString()}},{key:"toCharString",value:function(){for(var s=[],_=0;_<this.intervals.length;_++){var l=this.intervals[_];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push("'"+String.fromCharCode(l.start)+"'"):s.push("'"+String.fromCharCode(l.start)+"'..'"+String.fromCharCode(l.stop-1)+"'")}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toIndexString",value:function(){for(var s=[],_=0;_<this.intervals.length;_++){var l=this.intervals[_];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push(l.start.toString()):s.push(l.start.toString()+".."+(l.stop-1).toString())}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toTokenString",value:function(s,_){for(var l=[],y=0;y<this.intervals.length;y++)for(var o=this.intervals[y],u=o.start;u<o.stop;u++)l.push(this.elementName(s,_,u));return l.length>1?"{"+l.join(", ")+"}":l[0]}},{key:"elementName",value:function(s,_,l){return l===n.EOF?"<EOF>":l===n.EPSILON?"<EPSILON>":s[l]||_[l]}},{key:"length",get:function(){return this.intervals.map(function(s){return s.length}).reduce(function(s,_){return s+_})}}])&&Z(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function te(f){return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},te(f)}function ve(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(te(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(te(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),te(_)==="symbol"?_:String(_)),s)}var _}var me=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=null,this.stateNumber=f.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}var i,m;return i=f,(m=[{key:"toString",value:function(){return this.stateNumber}},{key:"equals",value:function(s){return s instanceof f&&this.stateNumber===s.stateNumber}},{key:"isNonGreedyExitState",value:function(){return!1}},{key:"addTransition",value:function(s,_){_===void 0&&(_=-1),this.transitions.length===0?this.epsilonOnlyTransitions=s.isEpsilon:this.epsilonOnlyTransitions!==s.isEpsilon&&(this.epsilonOnlyTransitions=!1),_===-1?this.transitions.push(s):this.transitions.splice(_,1,s)}}])&&ve(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ze(f){return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ze(f)}function Ve(f,i){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ve(f,i)}function ht(f,i){if(i&&(Ze(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wt(f)}function wt(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function yt(f){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yt(f)}me.INVALID_TYPE=0,me.BASIC=1,me.RULE_START=2,me.BLOCK_START=3,me.PLUS_BLOCK_START=4,me.STAR_BLOCK_START=5,me.TOKEN_START=6,me.RULE_STOP=7,me.BLOCK_END=8,me.STAR_LOOP_BACK=9,me.STAR_LOOP_ENTRY=10,me.PLUS_LOOP_BACK=11,me.LOOP_END=12,me.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],me.INVALID_STATE_NUMBER=-1;var St=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ve(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=yt(m);if(s){var u=yt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return ht(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.RULE_STOP,ht(y,wt(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function Ct(f){return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ct(f)}function le(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ct(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ct(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ct(_)==="symbol"?_:String(_)),s)}var _}function we(f,i,m){return i&&le(f.prototype,i),m&&le(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var be=we(function f(i){if(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}(this,f),i==null)throw"target cannot be null.";this.target=i,this.isEpsilon=!1,this.label=null});function pt(f){return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},pt(f)}function Et(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(pt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(pt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),pt(_)==="symbol"?_:String(_)),s)}var _}function Rt(f,i){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Rt(f,i)}function yn(f){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yn(f)}be.EPSILON=1,be.RANGE=2,be.RULE=3,be.PREDICATE=4,be.ATOM=5,be.ACTION=6,be.SET=7,be.NOT_SET=8,be.WILDCARD=9,be.PRECEDENCE=10,be.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],be.serializationTypes={EpsilonTransition:be.EPSILON,RangeTransition:be.RANGE,RuleTransition:be.RULE,PredicateTransition:be.PREDICATE,AtomTransition:be.ATOM,ActionTransition:be.ACTION,SetTransition:be.SET,NotSetTransition:be.NOT_SET,WildcardTransition:be.WILDCARD,PrecedencePredicateTransition:be.PRECEDENCE};var Dt=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Rt(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=yn(s);if(_){var S=yn(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(pt(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).ruleIndex=u,C.precedence=S,C.followState=k,C.serializationType=be.RULE,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}}])&&Et(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function It(f){return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},It(f)}function kt(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(It(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(It(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),It(_)==="symbol"?_:String(_)),s)}var _}function Pt(f,i){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pt(f,i)}function nn(f){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nn(f)}var ir=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pt(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=nn(s);if(_){var S=nn(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(It(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.SET,u!=null?S.label=u:(S.label=new J,S.label.addOne(n.INVALID_TYPE)),S}return i=y,(m=[{key:"matches",value:function(o,u,S){return this.label.contains(o)}},{key:"toString",value:function(){return this.label.toString()}}])&&kt(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function W(f){return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},W(f)}function Fe(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(W(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(W(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),W(_)==="symbol"?_:String(_)),s)}var _}function Ue(){return Ue=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,y){for(;!Object.prototype.hasOwnProperty.call(l,y)&&(l=Qe(l))!==null;);return l}(f,i);if(s){var _=Object.getOwnPropertyDescriptor(s,i);return _.get?_.get.call(arguments.length<3?f:m):_.value}},Ue.apply(this,arguments)}function Pe(f,i){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pe(f,i)}function Qe(f){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qe(f)}var Ht=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pe(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Qe(s);if(_){var S=Qe(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(W(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o,u)).serializationType=be.NOT_SET,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return o>=u&&o<=S&&!Ue(Qe(y.prototype),"matches",this).call(this,o,u,S)}},{key:"toString",value:function(){return"~"+Ue(Qe(y.prototype),"toString",this).call(this)}}])&&Fe(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ir);function ft(f){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ft(f)}function fn(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ft(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ft(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ft(_)==="symbol"?_:String(_)),s)}var _}function gn(f,i){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},gn(f,i)}function jr(f){return jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},jr(f)}var On=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&gn(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=jr(s);if(_){var S=jr(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ft(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,o)).serializationType=be.WILDCARD,u}return i=y,(m=[{key:"matches",value:function(o,u,S){return o>=u&&o<=S}},{key:"toString",value:function(){return"."}}])&&fn(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function rn(f){return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},rn(f)}function Ri(f,i){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ri(f,i)}function $r(f){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},$r(f)}var Fi=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ri(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=$r(m);if(s){var u=$r(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(rn(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),_.call(this,y)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function or(f){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},or(f)}function Or(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(or(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(or(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),or(_)==="symbol"?_:String(_)),s)}var _}function eo(f,i,m){return i&&Or(f.prototype,i),m&&Or(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function gi(f){return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gi(f)}function fr(f,i){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},fr(f,i)}function Hr(f){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Hr(f)}function to(f){return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},to(f)}function dt(f,i){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},dt(f,i)}function er(f){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},er(f)}var B=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&dt(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=er(m);if(s){var u=er(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(to(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&fr(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Hr(m);if(s){var u=Hr(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(gi(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(eo(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)})));function q(f){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},q(f)}function ee(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(q(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(q(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),q(_)==="symbol"?_:String(_)),s)}var _}function ae(f,i){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ae(f,i)}function he(f){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},he(f)}var Le=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ae(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=he(s);if(_){var S=he(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(q(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.apply(this,arguments)}return i=y,(m=[{key:"ruleContext",get:function(){throw new Error("missing interface implementation")}}])&&ee(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(B);function Be(f){return Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Be(f)}function at(f,i){return at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},at(f,i)}function Xt(f){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Xt(f)}var hn=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&at(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Xt(m);if(s){var u=Xt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(Be(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(B);function An(f){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},An(f)}function Gr(f,i){return Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Gr(f,i)}function zt(f){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},zt(f)}var ti=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Gr(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=zt(m);if(s){var u=zt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(An(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(hn),wr={toStringTree:function(f,i,m){i=i||null,(m=m||null)!==null&&(i=m.ruleNames);var s=wr.getNodeText(f,i);s=function(o,u){return o=o.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(s);var _=f.getChildCount();if(_===0)return s;var l="("+s+" ";_>0&&(s=wr.toStringTree(f.getChild(0),i),l=l.concat(s));for(var y=1;y<_;y++)s=wr.toStringTree(f.getChild(y),i),l=l.concat(" "+s);return l.concat(")")},getNodeText:function(f,i,m){if(i=i||null,(m=m||null)!==null&&(i=m.ruleNames),i!==null){if(f instanceof Le){var s=f.ruleContext.getAltNumber();return s!=0?i[f.ruleIndex]+":"+s:i[f.ruleIndex]}if(f instanceof ti)return f.toString();if(f instanceof hn&&f.symbol!==null)return f.symbol.text}var _=f.getPayload();return _ instanceof n?_.text:f.getPayload().toString()},getChildren:function(f){for(var i=[],m=0;m<f.getChildCount();m++)i.push(f.getChild(m));return i},getAncestors:function(f){var i=[];for(f=f.getParent();f!==null;)i=[f].concat(i),f=f.getParent();return i},findAllTokenNodes:function(f,i){return wr.findAllNodes(f,i,!0)},findAllRuleNodes:function(f,i){return wr.findAllNodes(f,i,!1)},findAllNodes:function(f,i,m){var s=[];return wr._findAllNodes(f,i,m,s),s},_findAllNodes:function(f,i,m,s){m&&f instanceof hn?f.symbol.type===i&&s.push(f):!m&&f instanceof Le&&f.ruleIndex===i&&s.push(f);for(var _=0;_<f.getChildCount();_++)wr._findAllNodes(f.getChild(_),i,m,s)},descendants:function(f){for(var i=[f],m=0;m<f.getChildCount();m++)i=i.concat(wr.descendants(f.getChild(m)));return i}};const Ju=wr;function no(f){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},no(f)}function ih(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(no(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(no(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),no(_)==="symbol"?_:String(_)),s)}var _}function $o(f,i){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$o(f,i)}function pa(f){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},pa(f)}var ro=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$o(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=pa(s);if(_){var S=pa(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(no(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this)).parentCtx=o||null,S.invokingState=u||-1,S}return i=y,(m=[{key:"depth",value:function(){for(var o=0,u=this;u!==null;)u=u.parentCtx,o+=1;return o}},{key:"isEmpty",value:function(){return this.invokingState===-1}},{key:"getSourceInterval",value:function(){return _e.INVALID_INTERVAL}},{key:"ruleContext",get:function(){return this}},{key:"getPayload",value:function(){return this}},{key:"getText",value:function(){return this.getChildCount()===0?"":this.children.map(function(o){return o.getText()}).join("")}},{key:"getAltNumber",value:function(){return 0}},{key:"setAltNumber",value:function(o){}},{key:"getChild",value:function(o){return null}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitChildren(this)}},{key:"toStringTree",value:function(o,u){return Ju.toStringTree(this,o,u)}},{key:"toString",value:function(o,u){o=o||null,u=u||null;for(var S=this,k="[";S!==null&&S!==u;){if(o===null)S.isEmpty()||(k+=S.invokingState);else{var C=S.ruleIndex;k+=C>=0&&C<o.length?o[C]:""+C}S.parentCtx===null||o===null&&S.parentCtx.isEmpty()||(k+=" "),S=S.parentCtx}return k+"]"}}])&&ih(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Le);function Ho(f){return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ho(f)}function da(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ho(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ho(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ho(_)==="symbol"?_:String(_)),s)}var _}var st=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.cachedHashCode=s}var i,m;return i=f,(m=[{key:"isEmpty",value:function(){return this===f.EMPTY}},{key:"hasEmptyPath",value:function(){return this.getReturnState(this.length-1)===f.EMPTY_RETURN_STATE}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(s){s.update(this.cachedHashCode)}}])&&da(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function X(f){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},X(f)}function Q(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(X(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(X(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),X(_)==="symbol"?_:String(_)),s)}var _}function ie(f,i){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ie(f,i)}function de(f,i){if(i&&(X(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(f)}function Ce(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ae(f){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ae(f)}st.EMPTY=null,st.EMPTY_RETURN_STATE=2147483647,st.globalNodeCount=1,st.id=st.globalNodeCount,st.trace_atn_sim=!1;var De=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ie(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ae(s);if(_){var S=Ae(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return de(this,o)});function y(o,u){var S;(function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,y);var k=new b;k.update(o,u);var C=k.finish();return(S=l.call(this,C)).parents=o,S.returnStates=u,de(S,Ce(S))}return i=y,(m=[{key:"isEmpty",value:function(){return this.returnStates[0]===st.EMPTY_RETURN_STATE}},{key:"getParent",value:function(o){return this.parents[o]}},{key:"getReturnState",value:function(o){return this.returnStates[o]}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.hashCode()===o.hashCode()&&r(this.returnStates,o.returnStates)&&r(this.parents,o.parents)}},{key:"toString",value:function(){if(this.isEmpty())return"[]";for(var o="[",u=0;u<this.returnStates.length;u++)u>0&&(o+=", "),this.returnStates[u]!==st.EMPTY_RETURN_STATE?(o+=this.returnStates[u],this.parents[u]!==null?o=o+" "+this.parents[u]:o+="null"):o+="$";return o+"]"}},{key:"length",get:function(){return this.returnStates.length}}])&&Q(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(st);function ze(f){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ze(f)}function Me(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ze(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ze(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ze(_)==="symbol"?_:String(_)),s)}var _}function ut(f,i){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ut(f,i)}function Wt(f){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wt(f)}var _t=function(f){(function(u,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(S&&S.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),S&&ut(u,S)})(o,f);var i,m,s,_,l,y=(_=o,l=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,S=Wt(_);if(l){var k=Wt(this).constructor;u=Reflect.construct(S,arguments,k)}else u=S.apply(this,arguments);return function(C,U){if(U&&(ze(U)==="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(C)}(this,u)});function o(u,S){var k;(function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,o);var C,U=new b;return u!==null?U.update(u,S):U.update(1),C=U.finish(),(k=y.call(this,C)).parentCtx=u,k.returnState=S,k}return i=o,s=[{key:"create",value:function(u,S){return S===st.EMPTY_RETURN_STATE&&u===null?st.EMPTY:new o(u,S)}}],(m=[{key:"getParent",value:function(u){return this.parentCtx}},{key:"getReturnState",value:function(u){return this.returnState}},{key:"equals",value:function(u){return this===u||u instanceof o&&this.hashCode()===u.hashCode()&&this.returnState===u.returnState&&(this.parentCtx==null?u.parentCtx==null:this.parentCtx.equals(u.parentCtx))}},{key:"toString",value:function(){var u=this.parentCtx===null?"":this.parentCtx.toString();return u.length===0?this.returnState===st.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+u}},{key:"length",get:function(){return 1}}])&&Me(i.prototype,m),s&&Me(i,s),Object.defineProperty(i,"prototype",{writable:!1}),o}(st);function Yt(f){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Yt(f)}function wn(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Yt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Yt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Yt(_)==="symbol"?_:String(_)),s)}var _}function zn(f,i){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zn(f,i)}function tr(f){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tr(f)}var Kr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zn(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=tr(s);if(_){var S=tr(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Yt(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,null,st.EMPTY_RETURN_STATE)}return i=y,(m=[{key:"isEmpty",value:function(){return!0}},{key:"getParent",value:function(o){return null}},{key:"getReturnState",value:function(o){return this.returnState}},{key:"equals",value:function(o){return this===o}},{key:"toString",value:function(){return"$"}}])&&wn(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(_t);function ni(f){return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ni(f)}function Os(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ni(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ni(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ni(_)==="symbol"?_:String(_)),s)}var _}st.EMPTY=new Kr;var nr="h-",io=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||T,this.equalsFunction=_||x}var i,m;return i=f,(m=[{key:"set",value:function(s,_){var l=nr+this.hashFunction(s);if(l in this.data){for(var y=this.data[l],o=0;o<y.length;o++){var u=y[o];if(this.equalsFunction(s,u.key)){var S=u.value;return u.value=_,S}}return y.push({key:s,value:_}),_}return this.data[l]=[{key:s,value:_}],_}},{key:"containsKey",value:function(s){var _=nr+this.hashFunction(s);if(_ in this.data)for(var l=this.data[_],y=0;y<l.length;y++){var o=l[y];if(this.equalsFunction(s,o.key))return!0}return!1}},{key:"get",value:function(s){var _=nr+this.hashFunction(s);if(_ in this.data)for(var l=this.data[_],y=0;y<l.length;y++){var o=l[y];if(this.equalsFunction(s,o.key))return o.value}return null}},{key:"entries",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(nr)}).flatMap(function(_){return s.data[_]},this)}},{key:"getKeys",value:function(){return this.entries().map(function(s){return s.key})}},{key:"getValues",value:function(){return this.entries().map(function(s){return s.value})}},{key:"toString",value:function(){return"["+this.entries().map(function(s){return"{"+s.key+":"+s.value+"}"}).join(", ")+"]"}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(nr)}).map(function(_){return s.data[_].length},this).reduce(function(_,l){return _+l},0)}}])&&Os(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function _a(f,i){if(i==null&&(i=ro.EMPTY),i.parentCtx===null||i===ro.EMPTY)return st.EMPTY;var m=_a(f,i.parentCtx),s=f.states[i.invokingState].transitions[0];return _t.create(m,s.followState.stateNumber)}function ec(f,i,m){if(f.isEmpty())return f;var s=m.get(f)||null;if(s!==null)return s;if((s=i.get(f))!==null)return m.set(f,s),s;for(var _=!1,l=[],y=0;y<l.length;y++){var o=ec(f.getParent(y),i,m);if(_||o!==f.getParent(y)){if(!_){l=[];for(var u=0;u<f.length;u++)l[u]=f.getParent(u);_=!0}l[y]=o}}if(!_)return i.add(f),m.set(f,f),f;var S;return S=l.length===0?st.EMPTY:l.length===1?_t.create(l[0],f.getReturnState(0)):new De(l,f.returnStates),i.add(S),m.set(S,S),m.set(f,S),S}function ma(f,i,m,s){if(f===i)return f;if(f instanceof _t&&i instanceof _t)return function(_,l,y,o){if(o!==null){var u=o.get(_,l);if(u!==null||(u=o.get(l,_))!==null)return u}var S=function(We,En,vn){if(vn){if(We===st.EMPTY||En===st.EMPTY)return st.EMPTY}else{if(We===st.EMPTY&&En===st.EMPTY)return st.EMPTY;if(We===st.EMPTY){var qn=[En.returnState,st.EMPTY_RETURN_STATE],qr=[En.parentCtx,null];return new De(qr,qn)}if(En===st.EMPTY){var Bi=[We.returnState,st.EMPTY_RETURN_STATE],Li=[We.parentCtx,null];return new De(Li,Bi)}}return null}(_,l,y);if(S!==null)return o!==null&&o.set(_,l,S),S;if(_.returnState===l.returnState){var k=ma(_.parentCtx,l.parentCtx,y,o);if(k===_.parentCtx)return _;if(k===l.parentCtx)return l;var C=_t.create(k,_.returnState);return o!==null&&o.set(_,l,C),C}var U=null;if((_===l||_.parentCtx!==null&&_.parentCtx===l.parentCtx)&&(U=_.parentCtx),U!==null){var fe=[_.returnState,l.returnState];_.returnState>l.returnState&&(fe[0]=l.returnState,fe[1]=_.returnState);var Ne=new De([U,U],fe);return o!==null&&o.set(_,l,Ne),Ne}var Re=[_.returnState,l.returnState],Ge=[_.parentCtx,l.parentCtx];_.returnState>l.returnState&&(Re[0]=l.returnState,Re[1]=_.returnState,Ge=[l.parentCtx,_.parentCtx]);var ct=new De(Ge,Re);return o!==null&&o.set(_,l,ct),ct}(f,i,m,s);if(m){if(f instanceof Kr)return f;if(i instanceof Kr)return i}return f instanceof _t&&(f=new De([f.getParent()],[f.returnState])),i instanceof _t&&(i=new De([i.getParent()],[i.returnState])),function(_,l,y,o){if(o!==null){var u=o.get(_,l);if(u!==null||(u=o.get(l,_))!==null)return st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> previous"),u}for(var S=0,k=0,C=0,U=new Array(_.returnStates.length+l.returnStates.length).fill(0),fe=new Array(_.returnStates.length+l.returnStates.length).fill(null);S<_.returnStates.length&&k<l.returnStates.length;){var Ne=_.parents[S],Re=l.parents[k];if(_.returnStates[S]===l.returnStates[k]){var Ge=_.returnStates[S];Ge===st.EMPTY_RETURN_STATE&&Ne===null&&Re===null||Ne!==null&&Re!==null&&Ne===Re?(fe[C]=Ne,U[C]=Ge):(fe[C]=ma(Ne,Re,y,o),U[C]=Ge),S+=1,k+=1}else _.returnStates[S]<l.returnStates[k]?(fe[C]=Ne,U[C]=_.returnStates[S],S+=1):(fe[C]=Re,U[C]=l.returnStates[k],k+=1);C+=1}if(S<_.returnStates.length)for(var ct=S;ct<_.returnStates.length;ct++)fe[C]=_.parents[ct],U[C]=_.returnStates[ct],C+=1;else for(var We=k;We<l.returnStates.length;We++)fe[C]=l.parents[We],U[C]=l.returnStates[We],C+=1;if(C<fe.length){if(C===1){var En=_t.create(fe[0],U[0]);return o!==null&&o.set(_,l,En),En}fe=fe.slice(0,C),U=U.slice(0,C)}var vn=new De(fe,U);return vn.equals(_)?(o!==null&&o.set(_,l,_),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> a"),_):vn.equals(l)?(o!==null&&o.set(_,l,l),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> b"),l):(function(qn){for(var qr=new io,Bi=0;Bi<qn.length;Bi++){var Li=qn[Bi];qr.containsKey(Li)||qr.set(Li,Li)}for(var Rr=0;Rr<qn.length;Rr++)qn[Rr]=qr.get(qn[Rr])}(fe),o!==null&&o.set(_,l,vn),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> "+vn),vn)}(f,i,m,s)}function oo(f){return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oo(f)}function ao(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(oo(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(oo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),oo(_)==="symbol"?_:String(_)),s)}var _}var zr=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data=[]}var i,m;return i=f,(m=[{key:"add",value:function(s){this.data[s]=!0}},{key:"or",value:function(s){var _=this;Object.keys(s.data).map(function(l){return _.add(l)},this)}},{key:"remove",value:function(s){delete this.data[s]}},{key:"has",value:function(s){return this.data[s]===!0}},{key:"values",value:function(){return Object.keys(this.data)}},{key:"minValue",value:function(){return Math.min.apply(null,this.values())}},{key:"hashCode",value:function(){return b.hashStuff(this.values())}},{key:"equals",value:function(s){return s instanceof f&&r(this.data,s.data)}},{key:"toString",value:function(){return"{"+this.values().join(", ")+"}"}},{key:"length",get:function(){return this.values().length}}])&&ao(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function vo(f){return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},vo(f)}function tc(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(vo(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(vo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),vo(_)==="symbol"?_:String(_)),s)}var _}var Go=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=s}var i,m;return i=f,(m=[{key:"getDecisionLookahead",value:function(s){if(s===null)return null;for(var _=s.transitions.length,l=[],y=0;y<_;y++){l[y]=new J;var o=new g;this._LOOK(s.transition(y).target,null,st.EMPTY,l[y],o,new zr,!1,!1),(l[y].length===0||l[y].contains(f.HIT_PRED))&&(l[y]=null)}return l}},{key:"LOOK",value:function(s,_,l){var y=new J,o=(l=l||null)!==null?_a(s.atn,l):null;return this._LOOK(s,_,o,y,new g,new zr,!0,!0),y}},{key:"_LOOK",value:function(s,_,l,y,o,u,S,k){var C=new ce({state:s,alt:0,context:l},null);if(!o.has(C)){if(o.add(C),s===_){if(l===null)return void y.addOne(n.EPSILON);if(l.isEmpty()&&k)return void y.addOne(n.EOF)}if(s instanceof St){if(l===null)return void y.addOne(n.EPSILON);if(l.isEmpty()&&k)return void y.addOne(n.EOF);if(l!==st.EMPTY){var U=u.has(s.ruleIndex);try{u.remove(s.ruleIndex);for(var fe=0;fe<l.length;fe++){var Ne=this.atn.states[l.getReturnState(fe)];this._LOOK(Ne,_,l.getParent(fe),y,o,u,S,k)}}finally{U&&u.add(s.ruleIndex)}return}}for(var Re=0;Re<s.transitions.length;Re++){var Ge=s.transitions[Re];if(Ge.constructor===Dt){if(u.has(Ge.target.ruleIndex))continue;var ct=_t.create(l,Ge.followState.stateNumber);try{u.add(Ge.target.ruleIndex),this._LOOK(Ge.target,_,ct,y,o,u,S,k)}finally{u.remove(Ge.target.ruleIndex)}}else if(Ge instanceof Fi)S?this._LOOK(Ge.target,_,l,y,o,u,S,k):y.addOne(f.HIT_PRED);else if(Ge.isEpsilon)this._LOOK(Ge.target,_,l,y,o,u,S,k);else if(Ge.constructor===On)y.addRange(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var We=Ge.label;We!==null&&(Ge instanceof Ht&&(We=We.complement(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),y.addSet(We))}}}}}])&&tc(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ws(f){return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ws(f)}function Av(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ws(_)==="symbol"?_:String(_)),s)}var _}Go.HIT_PRED=n.INVALID_TYPE;var bn=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.grammarType=s,this.maxTokenType=_,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}var i,m;return i=f,(m=[{key:"nextTokensInContext",value:function(s,_){return new Go(this).LOOK(s,null,_)}},{key:"nextTokensNoContext",value:function(s){return s.nextTokenWithinRule!==null||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}},{key:"nextTokens",value:function(s,_){return _===void 0?this.nextTokensNoContext(s):this.nextTokensInContext(s,_)}},{key:"addState",value:function(s){s!==null&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}},{key:"removeState",value:function(s){this.states[s.stateNumber]=null}},{key:"defineDecisionState",value:function(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}},{key:"getDecisionState",value:function(s){return this.decisionToState.length===0?null:this.decisionToState[s]}},{key:"getExpectedTokens",value:function(s,_){if(s<0||s>=this.states.length)throw"Invalid state number.";var l=this.states[s],y=this.nextTokens(l);if(!y.contains(n.EPSILON))return y;var o=new J;for(o.addSet(y),o.removeOne(n.EPSILON);_!==null&&_.invokingState>=0&&y.contains(n.EPSILON);){var u=this.states[_.invokingState].transitions[0];y=this.nextTokens(u.followState),o.addSet(y),o.removeOne(n.EPSILON),_=_.parentCtx}return y.contains(n.EPSILON)&&o.addOne(n.EOF),o}}])&&Av(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();bn.INVALID_ALT_NUMBER=0;function oh(f){return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oh(f)}function ah(f,i){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ah(f,i)}function nc(f){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nc(f)}var c_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&ah(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=nc(m);if(s){var u=nc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(oh(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BASIC,y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function sh(f){return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},sh(f)}function uh(f,i){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},uh(f,i)}function l_(f,i){if(i&&(sh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f_(f)}function f_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function rc(f){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},rc(f)}var ya=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&uh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=rc(m);if(s){var u=rc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return l_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).decision=-1,y.nonGreedy=!1,l_(y,f_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function ch(f){return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ch(f)}function lh(f,i){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},lh(f,i)}function h_(f,i){if(i&&(ch(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p_(f)}function p_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ic(f){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ic(f)}var ga=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&lh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=ic(m);if(s){var u=ic(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return h_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).endState=null,h_(y,p_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function fh(f){return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fh(f)}function hh(f,i){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},hh(f,i)}function d_(f,i){if(i&&(fh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return __(f)}function __(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function oc(f){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},oc(f)}var ph=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&hh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=oc(m);if(s){var u=oc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return d_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BLOCK_END,y.startState=null,d_(y,__(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function dh(f){return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},dh(f)}function _h(f,i){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},_h(f,i)}function m_(f,i){if(i&&(dh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y_(f)}function y_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ac(f){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ac(f)}var va=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&_h(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=ac(m);if(s){var u=ac(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return m_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.LOOP_END,y.loopBackState=null,m_(y,y_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function mh(f){return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},mh(f)}function yh(f,i){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},yh(f,i)}function g_(f,i){if(i&&(mh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v_(f)}function v_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function sc(f){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},sc(f)}var b_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&yh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=sc(m);if(s){var u=sc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return g_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.RULE_START,y.stopState=null,y.isPrecedenceRule=!1,g_(y,v_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function gh(f){return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gh(f)}function vh(f,i){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},vh(f,i)}function E_(f,i){if(i&&(gh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x_(f)}function x_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function uc(f){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},uc(f)}var Cv=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&vh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=uc(m);if(s){var u=uc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return E_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.TOKEN_START,E_(y,x_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function bh(f){return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},bh(f)}function Eh(f,i){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Eh(f,i)}function S_(f,i){if(i&&(bh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T_(f)}function T_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function cc(f){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},cc(f)}var A_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Eh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=cc(m);if(s){var u=cc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return S_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.PLUS_LOOP_BACK,S_(y,T_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function xh(f){return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xh(f)}function Sh(f,i){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Sh(f,i)}function C_(f,i){if(i&&(xh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D_(f)}function D_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function lc(f){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},lc(f)}var Th=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Sh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=lc(m);if(s){var u=lc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return C_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_LOOP_BACK,C_(y,D_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function Ah(f){return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ah(f)}function Ch(f,i){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ch(f,i)}function k_(f,i){if(i&&(Ah(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O_(f)}function O_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function fc(f){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fc(f)}var Ko=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ch(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=fc(m);if(s){var u=fc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return k_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_LOOP_ENTRY,y.loopBackState=null,y.isPrecedenceDecision=null,k_(y,O_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function Dh(f){return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Dh(f)}function kh(f,i){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},kh(f,i)}function w_(f,i){if(i&&(Dh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R_(f)}function R_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function hc(f){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hc(f)}var Oh=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&kh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=hc(m);if(s){var u=hc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return w_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.PLUS_BLOCK_START,y.loopBackState=null,w_(y,R_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function wh(f){return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},wh(f)}function Rh(f,i){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Rh(f,i)}function F_(f,i){if(i&&(wh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N_(f)}function N_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function pc(f){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},pc(f)}var Fh=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Rh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=pc(m);if(s){var u=pc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return F_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_BLOCK_START,F_(y,N_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function Nh(f){return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Nh(f)}function Ih(f,i){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ih(f,i)}function I_(f,i){if(i&&(Nh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P_(f)}function P_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function dc(f){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},dc(f)}var B_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ih(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=dc(m);if(s){var u=dc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return I_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BLOCK_START,I_(y,P_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function ba(f){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ba(f)}function Dv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ba(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ba(_)==="symbol"?_:String(_)),s)}var _}function Ph(f,i){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ph(f,i)}function _c(f){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},_c(f)}var Bh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Ph(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=_c(s);if(_){var S=_c(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ba(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).label_=u,S.label=S.makeLabel(),S.serializationType=be.ATOM,S}return i=y,(m=[{key:"makeLabel",value:function(){var o=new J;return o.addOne(this.label_),o}},{key:"matches",value:function(o,u,S){return this.label_===o}},{key:"toString",value:function(){return this.label_}}])&&Dv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Ea(f){return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ea(f)}function kv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ea(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ea(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ea(_)==="symbol"?_:String(_)),s)}var _}function Lh(f,i){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Lh(f,i)}function mc(f){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},mc(f)}var Ov=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Lh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=mc(s);if(_){var S=mc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ea(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;return function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")}(this,y),(k=l.call(this,o)).serializationType=be.RANGE,k.start=u,k.stop=S,k.label=k.makeLabel(),k}return i=y,(m=[{key:"makeLabel",value:function(){var o=new J;return o.addRange(this.start,this.stop),o}},{key:"matches",value:function(o,u,S){return o>=this.start&&o<=this.stop}},{key:"toString",value:function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}])&&kv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function xa(f){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xa(f)}function wv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(xa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),xa(_)==="symbol"?_:String(_)),s)}var _}function Mh(f,i){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Mh(f,i)}function yc(f){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yc(f)}var L_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Mh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=yc(s);if(_){var S=yc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(xa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).serializationType=be.ACTION,C.ruleIndex=u,C.actionIndex=S===void 0?-1:S,C.isCtxDependent=k!==void 0&&k,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"toString",value:function(){return"action_"+this.ruleIndex+":"+this.actionIndex}}])&&wv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Sa(f){return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Sa(f)}function Rv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Sa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Sa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Sa(_)==="symbol"?_:String(_)),s)}var _}function Uh(f,i){return Uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Uh(f,i)}function gc(f){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},gc(f)}var Rs=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Uh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=gc(s);if(_){var S=gc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Sa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.EPSILON,S.isEpsilon=!0,S.outermostPrecedenceReturn=u,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"toString",value:function(){return"epsilon"}}])&&Rv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Ta(f){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ta(f)}function Fv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ta(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ta(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ta(_)==="symbol"?_:String(_)),s)}var _}function Vh(f,i){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Vh(f,i)}function vc(f){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},vc(f)}var M_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Vh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=vc(s);if(_){var S=vc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ta(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;return function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")}(this,y),(k=l.call(this)).ruleIndex=o===void 0?-1:o,k.predIndex=u===void 0?-1:u,k.isCtxDependent=S!==void 0&&S,k}return i=y,(m=[{key:"evaluate",value:function(o,u){var S=this.isCtxDependent?u:null;return o.sempred(S,this.ruleIndex,this.predIndex)}},{key:"updateHashCode",value:function(o){o.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}},{key:"toString",value:function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}])&&Fv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(N);function Aa(f){return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Aa(f)}function Nv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Aa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Aa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Aa(_)==="symbol"?_:String(_)),s)}var _}function jh(f,i){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},jh(f,i)}function bc(f){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},bc(f)}N.NONE=new M_;var U_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&jh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=bc(s);if(_){var S=bc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Aa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).serializationType=be.PREDICATE,C.ruleIndex=u,C.predIndex=S,C.isCtxDependent=k,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"getPredicate",value:function(){return new M_(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"toString",value:function(){return"pred_"+this.ruleIndex+":"+this.predIndex}}])&&Nv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Fi);function Ca(f){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ca(f)}function Iv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ca(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ca(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ca(_)==="symbol"?_:String(_)),s)}var _}function $h(f,i){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$h(f,i)}function Ec(f){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ec(f)}var V_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$h(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ec(s);if(_){var S=Ec(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ca(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).precedence=o===void 0?0:o,u}return i=y,(m=[{key:"evaluate",value:function(o,u){return o.precpred(u,this.precedence)}},{key:"evalPrecedence",value:function(o,u){return o.precpred(u,this.precedence)?N.NONE:null}},{key:"compareTo",value:function(o){return this.precedence-o.precedence}},{key:"updateHashCode",value:function(o){o.update(this.precedence)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.precedence===o.precedence}},{key:"toString",value:function(){return"{"+this.precedence+">=prec}?"}}])&&Iv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(N);function Da(f){return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Da(f)}function Pv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Da(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Da(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Da(_)==="symbol"?_:String(_)),s)}var _}function Hh(f,i){return Hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Hh(f,i)}function xc(f){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},xc(f)}N.PrecedencePredicate=V_;var Bv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Hh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=xc(s);if(_){var S=xc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Da(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.PRECEDENCE,S.precedence=u,S.isEpsilon=!0,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"getPredicate",value:function(){return new V_(this.precedence)}},{key:"toString",value:function(){return this.precedence+" >= _p"}}])&&Pv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Fi);function Fs(f){return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fs(f)}function j_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Fs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Fs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Fs(_)==="symbol"?_:String(_)),s)}var _}function Lv(f,i,m){return i&&j_(f.prototype,i),m&&j_(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var Ns=Lv(function f(i){(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")})(this,f),i===void 0&&(i=null),this.readOnly=!1,this.verifyATN=i===null||i.verifyATN,this.generateRuleBypassTransitions=i!==null&&i.generateRuleBypassTransitions});Ns.defaultOptions=new Ns,Ns.defaultOptions.readOnly=!0;function Is(f){return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Is(f)}function Mv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Is(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Is(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Is(_)==="symbol"?_:String(_)),s)}var _}var so=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.actionType=s,this.isPositionDependent=!1}var i,m;return i=f,(m=[{key:"hashCode",value:function(){var s=new b;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.actionType)}},{key:"equals",value:function(s){return this===s}}])&&Mv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ka(f){return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ka(f)}function Uv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ka(_)==="symbol"?_:String(_)),s)}var _}function Gh(f,i){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Gh(f,i)}function Sc(f){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Sc(f)}var Kh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Gh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Sc(s);if(_){var S=Sc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ka(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,6)}return i=y,(m=[{key:"execute",value:function(o){o.skip()}},{key:"toString",value:function(){return"skip"}}])&&Uv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Oa(f){return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Oa(f)}function Vv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Oa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Oa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Oa(_)==="symbol"?_:String(_)),s)}var _}function zh(f,i){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zh(f,i)}function Tc(f){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Tc(f)}Kh.INSTANCE=new Kh;var jv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Tc(s);if(_){var S=Tc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Oa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,0)).channel=o,u}return i=y,(m=[{key:"execute",value:function(o){o._channel=this.channel}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.channel)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.channel===o.channel}},{key:"toString",value:function(){return"channel("+this.channel+")"}}])&&Vv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function wa(f){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},wa(f)}function $v(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(wa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),wa(_)==="symbol"?_:String(_)),s)}var _}function Wh(f,i){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Wh(f,i)}function Ac(f){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ac(f)}var Hv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Wh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ac(s);if(_){var S=Ac(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(wa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,1)).ruleIndex=o,S.actionIndex=u,S.isPositionDependent=!0,S}return i=y,(m=[{key:"execute",value:function(o){o.action(null,this.ruleIndex,this.actionIndex)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.ruleIndex,this.actionIndex)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.ruleIndex===o.ruleIndex&&this.actionIndex===o.actionIndex}}])&&$v(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ra(f){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ra(f)}function Gv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ra(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ra(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ra(_)==="symbol"?_:String(_)),s)}var _}function qh(f,i){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},qh(f,i)}function Cc(f){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Cc(f)}var Xh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&qh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Cc(s);if(_){var S=Cc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ra(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,3)}return i=y,(m=[{key:"execute",value:function(o){o.more()}},{key:"toString",value:function(){return"more"}}])&&Gv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Fa(f){return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fa(f)}function Kv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Fa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Fa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Fa(_)==="symbol"?_:String(_)),s)}var _}function Yh(f,i){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Yh(f,i)}function Dc(f){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Dc(f)}Xh.INSTANCE=new Xh;var zv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Yh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Dc(s);if(_){var S=Dc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Fa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,7)).type=o,u}return i=y,(m=[{key:"execute",value:function(o){o.type=this.type}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.type)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.type===o.type}},{key:"toString",value:function(){return"type("+this.type+")"}}])&&Kv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Na(f){return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Na(f)}function Wv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Na(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Na(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Na(_)==="symbol"?_:String(_)),s)}var _}function Zh(f,i){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Zh(f,i)}function kc(f){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},kc(f)}var qv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=kc(s);if(_){var S=kc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Na(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,5)).mode=o,u}return i=y,(m=[{key:"execute",value:function(o){o.pushMode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.mode===o.mode}},{key:"toString",value:function(){return"pushMode("+this.mode+")"}}])&&Wv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ia(f){return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ia(f)}function Xv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ia(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ia(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ia(_)==="symbol"?_:String(_)),s)}var _}function Qh(f,i){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Qh(f,i)}function Oc(f){return Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Oc(f)}var Jh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Qh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Oc(s);if(_){var S=Oc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ia(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,4)}return i=y,(m=[{key:"execute",value:function(o){o.popMode()}},{key:"toString",value:function(){return"popMode"}}])&&Xv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Pa(f){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Pa(f)}function Yv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Pa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Pa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Pa(_)==="symbol"?_:String(_)),s)}var _}function e0(f,i){return e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},e0(f,i)}function wc(f){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},wc(f)}Jh.INSTANCE=new Jh;var Zv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&e0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=wc(s);if(_){var S=wc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Pa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,2)).mode=o,u}return i=y,(m=[{key:"execute",value:function(o){o.mode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.mode===o.mode}},{key:"toString",value:function(){return"mode("+this.mode+")"}}])&&Yv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ps(f){return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ps(f)}function Qv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ps(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ps(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ps(_)==="symbol"?_:String(_)),s)}var _}function Rc(f,i){var m=[];return m[f-1]=i,m.map(function(s){return i})}var t0=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),s==null&&(s=Ns.defaultOptions),this.deserializationOptions=s,this.stateFactories=null,this.actionFactories=null}var i,m;return i=f,m=[{key:"deserialize",value:function(s){var _=this.reset(s);this.checkVersion(_),_&&this.skipUUID();var l=this.readATN();this.readStates(l,_),this.readRules(l,_),this.readModes(l);var y=[];return this.readSets(l,y,this.readInt.bind(this)),_&&this.readSets(l,y,this.readInt32.bind(this)),this.readEdges(l,y),this.readDecisions(l),this.readLexerActions(l,_),this.markPrecedenceDecisions(l),this.verifyATN(l),this.deserializationOptions.generateRuleBypassTransitions&&l.grammarType===1&&(this.generateRuleBypassTransitions(l),this.verifyATN(l)),l}},{key:"reset",value:function(s){if((s.charCodeAt?s.charCodeAt(0):s[0])===3){var _=s.split("").map(function(l){var y=l.charCodeAt(0);return y>1?y-2:y+65534});return _[0]=s.charCodeAt(0),this.data=_,this.pos=0,!0}return this.data=s,this.pos=0,!1}},{key:"skipUUID",value:function(){for(var s=0;s++<8;)this.readInt()}},{key:"checkVersion",value:function(s){var _=this.readInt();if(!s&&_!==4)throw"Could not deserialize ATN with version "+_+" (expected 4)."}},{key:"readATN",value:function(){var s=this.readInt(),_=this.readInt();return new bn(s,_)}},{key:"readStates",value:function(s,_){for(var l,y,o,u=[],S=[],k=this.readInt(),C=0;C<k;C++){var U=this.readInt();if(U!==me.INVALID_TYPE){var fe=this.readInt();_&&fe===65535&&(fe=-1);var Ne=this.stateFactory(U,fe);if(U===me.LOOP_END){var Re=this.readInt();u.push([Ne,Re])}else if(Ne instanceof ga){var Ge=this.readInt();S.push([Ne,Ge])}s.addState(Ne)}else s.addState(null)}for(l=0;l<u.length;l++)(y=u[l])[0].loopBackState=s.states[y[1]];for(l=0;l<S.length;l++)(y=S[l])[0].endState=s.states[y[1]];var ct=this.readInt();for(l=0;l<ct;l++)o=this.readInt(),s.states[o].nonGreedy=!0;var We=this.readInt();for(l=0;l<We;l++)o=this.readInt(),s.states[o].isPrecedenceRule=!0}},{key:"readRules",value:function(s,_){var l,y=this.readInt();for(s.grammarType===0&&(s.ruleToTokenType=Rc(y,0)),s.ruleToStartState=Rc(y,0),l=0;l<y;l++){var o=this.readInt();if(s.ruleToStartState[l]=s.states[o],s.grammarType===0){var u=this.readInt();_&&u===65535&&(u=n.EOF),s.ruleToTokenType[l]=u}}for(s.ruleToStopState=Rc(y,0),l=0;l<s.states.length;l++){var S=s.states[l];S instanceof St&&(s.ruleToStopState[S.ruleIndex]=S,s.ruleToStartState[S.ruleIndex].stopState=S)}}},{key:"readModes",value:function(s){for(var _=this.readInt(),l=0;l<_;l++){var y=this.readInt();s.modeToStartState.push(s.states[y])}}},{key:"readSets",value:function(s,_,l){for(var y=this.readInt(),o=0;o<y;o++){var u=new J;_.push(u);var S=this.readInt();this.readInt()!==0&&u.addOne(-1);for(var k=0;k<S;k++){var C=l(),U=l();u.addRange(C,U)}}}},{key:"readEdges",value:function(s,_){var l,y,o,u,S,k=this.readInt();for(l=0;l<k;l++){var C=this.readInt(),U=this.readInt(),fe=this.readInt(),Ne=this.readInt(),Re=this.readInt(),Ge=this.readInt();u=this.edgeFactory(s,fe,C,U,Ne,Re,Ge,_),s.states[C].addTransition(u)}for(l=0;l<s.states.length;l++)for(o=s.states[l],y=0;y<o.transitions.length;y++){var ct=o.transitions[y];if(ct instanceof Dt){var We=-1;s.ruleToStartState[ct.target.ruleIndex].isPrecedenceRule&&ct.precedence===0&&(We=ct.target.ruleIndex),u=new Rs(ct.followState,We),s.ruleToStopState[ct.target.ruleIndex].addTransition(u)}}for(l=0;l<s.states.length;l++){if((o=s.states[l])instanceof ga){if(o.endState===null||o.endState.startState!==null)throw"IllegalState";o.endState.startState=o}if(o instanceof A_)for(y=0;y<o.transitions.length;y++)(S=o.transitions[y].target)instanceof Oh&&(S.loopBackState=o);else if(o instanceof Th)for(y=0;y<o.transitions.length;y++)(S=o.transitions[y].target)instanceof Ko&&(S.loopBackState=o)}}},{key:"readDecisions",value:function(s){for(var _=this.readInt(),l=0;l<_;l++){var y=this.readInt(),o=s.states[y];s.decisionToState.push(o),o.decision=l}}},{key:"readLexerActions",value:function(s,_){if(s.grammarType===0){var l=this.readInt();s.lexerActions=Rc(l,null);for(var y=0;y<l;y++){var o=this.readInt(),u=this.readInt();_&&u===65535&&(u=-1);var S=this.readInt();_&&S===65535&&(S=-1),s.lexerActions[y]=this.lexerActionFactory(o,u,S)}}}},{key:"generateRuleBypassTransitions",value:function(s){var _,l=s.ruleToStartState.length;for(_=0;_<l;_++)s.ruleToTokenType[_]=s.maxTokenType+_+1;for(_=0;_<l;_++)this.generateRuleBypassTransition(s,_)}},{key:"generateRuleBypassTransition",value:function(s,_){var l,y,o=new B_;o.ruleIndex=_,s.addState(o);var u=new ph;u.ruleIndex=_,s.addState(u),o.endState=u,s.defineDecisionState(o),u.startState=o;var S=null,k=null;if(s.ruleToStartState[_].isPrecedenceRule){for(k=null,l=0;l<s.states.length;l++)if(y=s.states[l],this.stateIsEndStateFor(y,_)){k=y,S=y.loopBackState.transitions[0];break}if(S===null)throw"Couldn't identify final state of the precedence rule prefix section."}else k=s.ruleToStopState[_];for(l=0;l<s.states.length;l++){y=s.states[l];for(var C=0;C<y.transitions.length;C++){var U=y.transitions[C];U!==S&&U.target===k&&(U.target=u)}}for(var fe=s.ruleToStartState[_],Ne=fe.transitions.length;Ne>0;)o.addTransition(fe.transitions[Ne-1]),fe.transitions=fe.transitions.slice(-1);s.ruleToStartState[_].addTransition(new Rs(o)),u.addTransition(new Rs(k));var Re=new c_;s.addState(Re),Re.addTransition(new Bh(u,s.ruleToTokenType[_])),o.addTransition(new Rs(Re))}},{key:"stateIsEndStateFor",value:function(s,_){if(s.ruleIndex!==_||!(s instanceof Ko))return null;var l=s.transitions[s.transitions.length-1].target;return l instanceof va&&l.epsilonOnlyTransitions&&l.transitions[0].target instanceof St?s:null}},{key:"markPrecedenceDecisions",value:function(s){for(var _=0;_<s.states.length;_++){var l=s.states[_];if(l instanceof Ko&&s.ruleToStartState[l.ruleIndex].isPrecedenceRule){var y=l.transitions[l.transitions.length-1].target;y instanceof va&&y.epsilonOnlyTransitions&&y.transitions[0].target instanceof St&&(l.isPrecedenceDecision=!0)}}}},{key:"verifyATN",value:function(s){if(this.deserializationOptions.verifyATN)for(var _=0;_<s.states.length;_++){var l=s.states[_];if(l!==null)if(this.checkCondition(l.epsilonOnlyTransitions||l.transitions.length<=1),l instanceof Oh)this.checkCondition(l.loopBackState!==null);else if(l instanceof Ko)if(this.checkCondition(l.loopBackState!==null),this.checkCondition(l.transitions.length===2),l.transitions[0].target instanceof Fh)this.checkCondition(l.transitions[1].target instanceof va),this.checkCondition(!l.nonGreedy);else{if(!(l.transitions[0].target instanceof va))throw"IllegalState";this.checkCondition(l.transitions[1].target instanceof Fh),this.checkCondition(l.nonGreedy)}else l instanceof Th?(this.checkCondition(l.transitions.length===1),this.checkCondition(l.transitions[0].target instanceof Ko)):l instanceof va?this.checkCondition(l.loopBackState!==null):l instanceof b_?this.checkCondition(l.stopState!==null):l instanceof ga?this.checkCondition(l.endState!==null):l instanceof ph?this.checkCondition(l.startState!==null):l instanceof ya?this.checkCondition(l.transitions.length<=1||l.decision>=0):this.checkCondition(l.transitions.length<=1||l instanceof St)}}},{key:"checkCondition",value:function(s,_){if(!s)throw _==null&&(_="IllegalState"),_}},{key:"readInt",value:function(){return this.data[this.pos++]}},{key:"readInt32",value:function(){return this.readInt()|this.readInt()<<16}},{key:"edgeFactory",value:function(s,_,l,y,o,u,S,k){var C=s.states[y];switch(_){case be.EPSILON:return new Rs(C);case be.RANGE:return new Ov(C,S!==0?n.EOF:o,u);case be.RULE:return new Dt(s.states[o],u,S,C);case be.PREDICATE:return new U_(C,o,u,S!==0);case be.PRECEDENCE:return new Bv(C,o);case be.ATOM:return new Bh(C,S!==0?n.EOF:o);case be.ACTION:return new L_(C,o,u,S!==0);case be.SET:return new ir(C,k[o]);case be.NOT_SET:return new Ht(C,k[o]);case be.WILDCARD:return new On(C);default:throw"The specified transition type: "+_+" is not valid."}}},{key:"stateFactory",value:function(s,_){if(this.stateFactories===null){var l=[];l[me.INVALID_TYPE]=null,l[me.BASIC]=function(){return new c_},l[me.RULE_START]=function(){return new b_},l[me.BLOCK_START]=function(){return new B_},l[me.PLUS_BLOCK_START]=function(){return new Oh},l[me.STAR_BLOCK_START]=function(){return new Fh},l[me.TOKEN_START]=function(){return new Cv},l[me.RULE_STOP]=function(){return new St},l[me.BLOCK_END]=function(){return new ph},l[me.STAR_LOOP_BACK]=function(){return new Th},l[me.STAR_LOOP_ENTRY]=function(){return new Ko},l[me.PLUS_LOOP_BACK]=function(){return new A_},l[me.LOOP_END]=function(){return new va},this.stateFactories=l}if(s>this.stateFactories.length||this.stateFactories[s]===null)throw"The specified state type "+s+" is not valid.";var y=this.stateFactories[s]();if(y!==null)return y.ruleIndex=_,y}},{key:"lexerActionFactory",value:function(s,_,l){if(this.actionFactories===null){var y=[];y[0]=function(o,u){return new jv(o)},y[1]=function(o,u){return new Hv(o,u)},y[2]=function(o,u){return new Zv(o)},y[3]=function(o,u){return Xh.INSTANCE},y[4]=function(o,u){return Jh.INSTANCE},y[5]=function(o,u){return new qv(o)},y[6]=function(o,u){return Kh.INSTANCE},y[7]=function(o,u){return new zv(o)},this.actionFactories=y}if(s>this.actionFactories.length||this.actionFactories[s]===null)throw"The specified lexer action type "+s+" is not valid.";return this.actionFactories[s](_,l)}}],m&&Qv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Bs(f){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Bs(f)}function Jv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Bs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Bs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Bs(_)==="symbol"?_:String(_)),s)}var _}var Ls=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"syntaxError",value:function(s,_,l,y,o,u){}},{key:"reportAmbiguity",value:function(s,_,l,y,o,u,S){}},{key:"reportAttemptingFullContext",value:function(s,_,l,y,o,u){}},{key:"reportContextSensitivity",value:function(s,_,l,y,o,u){}}])&&Jv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ba(f){return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ba(f)}function e1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ba(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ba(_)==="symbol"?_:String(_)),s)}var _}function n0(f,i){return n0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},n0(f,i)}function Fc(f){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Fc(f)}var r0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&n0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Fc(s);if(_){var S=Fc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ba(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this)}return i=y,(m=[{key:"syntaxError",value:function(o,u,S,k,C,U){console.error("line "+S+":"+k+" "+C)}}])&&e1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function La(f){return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},La(f)}function t1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(La(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(La(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),La(_)==="symbol"?_:String(_)),s)}var _}function i0(f,i){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},i0(f,i)}function $_(f,i){if(i&&(La(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H_(f)}function H_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Nc(f){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Nc(f)}r0.INSTANCE=new r0;var n1=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&i0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Nc(s);if(_){var S=Nc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return $_(this,o)});function y(o){var u;if(function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),u=l.call(this),o===null)throw"delegates";return u.delegates=o,$_(u,H_(u))}return i=y,m=[{key:"syntaxError",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.syntaxError(o,u,S,k,C,U)})}},{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){this.delegates.map(function(Ne){return Ne.reportAmbiguity(o,u,S,k,C,U,fe)})}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.reportAttemptingFullContext(o,u,S,k,C,U)})}},{key:"reportContextSensitivity",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.reportContextSensitivity(o,u,S,k,C,U)})}}],m&&t1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function Ms(f){return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ms(f)}function r1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ms(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ms(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ms(_)==="symbol"?_:String(_)),s)}var _}var Ic=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this._listeners=[r0.INSTANCE],this._interp=null,this._stateNumber=-1}var i,m;return i=f,(m=[{key:"checkVersion",value:function(s){var _="4.13.0";_!==s&&console.log("ANTLR runtime and generated code versions disagree: "+_+"!="+s)}},{key:"addErrorListener",value:function(s){this._listeners.push(s)}},{key:"removeErrorListeners",value:function(){this._listeners=[]}},{key:"getLiteralNames",value:function(){return Object.getPrototypeOf(this).constructor.literalNames||[]}},{key:"getSymbolicNames",value:function(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}},{key:"getTokenNames",value:function(){if(!this.tokenNames){var s=this.getLiteralNames(),_=this.getSymbolicNames(),l=s.length>_.length?s.length:_.length;this.tokenNames=[];for(var y=0;y<l;y++)this.tokenNames[y]=s[y]||_[y]||"<INVALID"}return this.tokenNames}},{key:"getTokenTypeMap",value:function(){var s=this.getTokenNames();if(s===null)throw"The current recognizer does not provide a list of token names.";var _=this.tokenTypeMapCache[s];return _===void 0&&((_=s.reduce(function(l,y,o){l[y]=o})).EOF=n.EOF,this.tokenTypeMapCache[s]=_),_}},{key:"getRuleIndexMap",value:function(){var s=this.ruleNames;if(s===null)throw"The current recognizer does not provide a list of rule names.";var _=this.ruleIndexMapCache[s];return _===void 0&&(_=s.reduce(function(l,y,o){l[y]=o}),this.ruleIndexMapCache[s]=_),_}},{key:"getTokenType",value:function(s){var _=this.getTokenTypeMap()[s];return _!==void 0?_:n.INVALID_TYPE}},{key:"getErrorHeader",value:function(s){return"line "+s.getOffendingToken().line+":"+s.getOffendingToken().column}},{key:"getTokenErrorDisplay",value:function(s){if(s===null)return"<no token>";var _=s.text;return _===null&&(_=s.type===n.EOF?"<EOF>":"<"+s.type+">"),"'"+(_=_.replace(`
2
- `,"\\n").replace("\r","\\r").replace(" ","\\t"))+"'"}},{key:"getErrorListenerDispatch",value:function(){return new n1(this._listeners)}},{key:"sempred",value:function(s,_,l){return!0}},{key:"precpred",value:function(s,_){return!0}},{key:"atn",get:function(){return this._interp.atn}},{key:"state",get:function(){return this._stateNumber},set:function(s){this._stateNumber=s}}])&&r1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ma(f){return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ma(f)}function i1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ma(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ma(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ma(_)==="symbol"?_:String(_)),s)}var _}function o0(f,i){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},o0(f,i)}function Pc(f){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Pc(f)}Ic.tokenTypeMapCache={},Ic.ruleIndexMapCache={};var Us=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&o0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Pc(s);if(_){var S=Pc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ma(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k,C){var U;return function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")}(this,y),(U=l.call(this)).source=o!==void 0?o:y.EMPTY_SOURCE,U.type=u!==void 0?u:null,U.channel=S!==void 0?S:n.DEFAULT_CHANNEL,U.start=k!==void 0?k:-1,U.stop=C!==void 0?C:-1,U.tokenIndex=-1,U.source[0]!==null?(U.line=o[0].line,U.column=o[0].column):U.column=-1,U}return i=y,(m=[{key:"clone",value:function(){var o=new y(this.source,this.type,this.channel,this.start,this.stop);return o.tokenIndex=this.tokenIndex,o.line=this.line,o.column=this.column,o.text=this.text,o}},{key:"cloneWithType",value:function(o){var u=new y(this.source,o,this.channel,this.start,this.stop);return u.tokenIndex=this.tokenIndex,u.line=this.line,u.column=this.column,o===n.EOF&&(u.text=""),u}},{key:"toString",value:function(){var o=this.text;return o=o!==null?o.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}},{key:"text",get:function(){if(this._text!==null)return this._text;var o=this.getInputStream();if(o===null)return null;var u=o.size;return this.start<u&&this.stop<u?o.getText(this.start,this.stop):"<EOF>"},set:function(o){this._text=o}}])&&i1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(n);function Ua(f){return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ua(f)}function a0(f,i){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},a0(f,i)}function Bc(f){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Bc(f)}function G_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ua(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ua(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ua(_)==="symbol"?_:String(_)),s)}var _}function K_(f,i,m){return i&&G_(f.prototype,i),m&&G_(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function z_(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}Us.EMPTY_SOURCE=[null,null];var s0=function(f){(function(l,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(y&&y.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),y&&a0(l,y)})(_,f);var i,m,s=(i=_,m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var l,y=Bc(i);if(m){var o=Bc(this).constructor;l=Reflect.construct(y,arguments,o)}else l=y.apply(this,arguments);return function(u,S){if(S&&(Ua(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}(u)}(this,l)});function _(l){var y;return z_(this,_),(y=s.call(this)).copyText=l!==void 0&&l,y}return K_(_,[{key:"create",value:function(l,y,o,u,S,k,C,U){var fe=new Us(l,y,u,S,k);return fe.line=C,fe.column=U,o!==null?fe.text=o:this.copyText&&l[1]!==null&&(fe.text=l[1].getText(S,k)),fe}},{key:"createThin",value:function(l,y){var o=new Us(null,l);return o.text=y,o}}]),_}(K_(function f(){z_(this,f)}));function Va(f){return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Va(f)}function o1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Va(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Va(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Va(_)==="symbol"?_:String(_)),s)}var _}function W_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function u0(f){var i=typeof Map=="function"?new Map:void 0;return u0=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,_)}function _(){return c0(m,arguments,js(this).constructor)}return _.prototype=Object.create(m.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),Vs(_,m)},u0(f)}function c0(f,i,m){return c0=q_()?Reflect.construct.bind():function(s,_,l){var y=[null];y.push.apply(y,_);var o=new(Function.bind.apply(s,y));return l&&Vs(o,l.prototype),o},c0.apply(null,arguments)}function q_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vs(f,i){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Vs(f,i)}function js(f){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},js(f)}s0.DEFAULT=new s0;var zo=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Vs(o,u)})(y,f);var i,m,s,_,l=(s=y,_=q_(),function(){var o,u=js(s);if(_){var S=js(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Va(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W_(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),u=l.call(this,o.message),Error.captureStackTrace&&Error.captureStackTrace(W_(u),y),u.message=o.message,u.recognizer=o.recognizer,u.input=o.input,u.ctx=o.ctx,u.offendingToken=null,u.offendingState=-1,u.recognizer!==null&&(u.offendingState=u.recognizer.state),u}return i=y,(m=[{key:"getExpectedTokens",value:function(){return this.recognizer!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}},{key:"toString",value:function(){return this.message}}])&&o1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(u0(Error));function ja(f){return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ja(f)}function a1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ja(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ja(_)==="symbol"?_:String(_)),s)}var _}function l0(f,i){return l0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},l0(f,i)}function Lc(f){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Lc(f)}var f0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&l0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Lc(s);if(_){var S=Lc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ja(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,{message:"",recognizer:o,input:u,ctx:null})).startIndex=S,C.deadEndConfigs=k,C}return i=y,(m=[{key:"toString",value:function(){var o="";return this.startIndex>=0&&this.startIndex<this.input.size&&(o=this.input.getText(new _e(this.startIndex,this.startIndex))),"LexerNoViableAltException"+o}}])&&a1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(zo);function $a(f){return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$a(f)}function s1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if($a(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($a(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$a(_)==="symbol"?_:String(_)),s)}var _}function h0(f,i){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},h0(f,i)}function X_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Mc(f){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Mc(f)}var hr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&h0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Mc(s);if(_){var S=Mc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&($a(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X_(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this))._input=o,u._factory=s0.DEFAULT,u._tokenFactorySourcePair=[X_(u),o],u._interp=null,u._token=null,u._tokenStartCharIndex=-1,u._tokenStartLine=-1,u._tokenStartColumn=-1,u._hitEOF=!1,u._channel=n.DEFAULT_CHANNEL,u._type=n.INVALID_TYPE,u._modeStack=[],u._mode=y.DEFAULT_MODE,u._text=null,u}return i=y,(m=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=y.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}},{key:"nextToken",value:function(){if(this._input===null)throw"nextToken requires a non-null input stream.";var o=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var u=!1;;){this._type=n.INVALID_TYPE;var S=y.SKIP;try{S=this._interp.match(this._input,this._mode)}catch(k){if(!(k instanceof zo))throw console.log(k.stack),k;this.notifyListeners(k),this.recover(k)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=S),this._type===y.SKIP){u=!0;break}if(this._type!==y.MORE)break}if(!u)return this._token===null&&this.emit(),this._token}}finally{this._input.release(o)}}},{key:"skip",value:function(){this._type=y.SKIP}},{key:"more",value:function(){this._type=y.MORE}},{key:"mode",value:function(o){this._mode=o}},{key:"pushMode",value:function(o){this._interp.debug&&console.log("pushMode "+o),this._modeStack.push(this._mode),this.mode(o)}},{key:"popMode",value:function(){if(this._modeStack.length===0)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}},{key:"emitToken",value:function(o){this._token=o}},{key:"emit",value:function(){var o=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(o),o}},{key:"emitEOF",value:function(){var o=this.column,u=this.line,S=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,u,o);return this.emitToken(S),S}},{key:"getCharIndex",value:function(){return this._input.index}},{key:"getAllTokens",value:function(){for(var o=[],u=this.nextToken();u.type!==n.EOF;)o.push(u),u=this.nextToken();return o}},{key:"notifyListeners",value:function(o){var u=this._tokenStartCharIndex,S=this._input.index,k=this._input.getText(u,S),C="token recognition error at: '"+this.getErrorDisplay(k)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,C,o)}},{key:"getErrorDisplay",value:function(o){for(var u=[],S=0;S<o.length;S++)u.push(o[S]);return u.join("")}},{key:"getErrorDisplayForChar",value:function(o){return o.charCodeAt(0)===n.EOF?"<EOF>":o===`
3
- `?"\\n":o===" "?"\\t":o==="\r"?"\\r":o}},{key:"getCharErrorDisplay",value:function(o){return"'"+this.getErrorDisplayForChar(o)+"'"}},{key:"recover",value:function(o){this._input.LA(1)!==n.EOF&&(o instanceof f0?this._interp.consume(this._input):this._input.consume())}},{key:"inputStream",get:function(){return this._input},set:function(o){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=o,this._tokenFactorySourcePair=[this,this._input]}},{key:"sourceName",get:function(){return this._input.sourceName}},{key:"type",get:function(){return this._type},set:function(o){this._type=o}},{key:"line",get:function(){return this._interp.line},set:function(o){this._interp.line=o}},{key:"column",get:function(){return this._interp.column},set:function(o){this._interp.column=o}},{key:"text",get:function(){return this._text!==null?this._text:this._interp.getText(this._input)},set:function(o){this._text=o}}])&&s1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ic);function $s(f){return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$s(f)}function u1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if($s(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($s(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$s(_)==="symbol"?_:String(_)),s)}var _}function c1(f){return f.hashCodeForConfigSet()}function l1(f,i){return f===i||f!==null&&i!==null&&f.equalsForConfigSet(i)}hr.DEFAULT_MODE=0,hr.MORE=-2,hr.SKIP=-3,hr.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,hr.HIDDEN=n.HIDDEN_CHANNEL,hr.MIN_CHAR_VALUE=0,hr.MAX_CHAR_VALUE=1114111;var Wr=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.configLookup=new g(c1,l1),this.fullCtx=s===void 0||s,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}var i,m;return i=f,(m=[{key:"add",value:function(s,_){if(_===void 0&&(_=null),this.readOnly)throw"This set is readonly";s.semanticContext!==N.NONE&&(this.hasSemanticContext=!0),s.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(s);if(l===s)return this.cachedHashCode=-1,this.configs.push(s),!0;var y=!this.fullCtx,o=ma(l.context,s.context,y,_);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,s.reachesIntoOuterContext),s.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=o,!0}},{key:"getStates",value:function(){for(var s=new g,_=0;_<this.configs.length;_++)s.add(this.configs[_].state);return s}},{key:"getPredicates",value:function(){for(var s=[],_=0;_<this.configs.length;_++){var l=this.configs[_].semanticContext;l!==N.NONE&&s.push(l.semanticContext)}return s}},{key:"optimizeConfigs",value:function(s){if(this.readOnly)throw"This set is readonly";if(this.configLookup.length!==0)for(var _=0;_<this.configs.length;_++){var l=this.configs[_];l.context=s.getCachedContext(l.context)}}},{key:"addAll",value:function(s){for(var _=0;_<s.length;_++)this.add(s[_]);return!1}},{key:"equals",value:function(s){return this===s||s instanceof f&&r(this.configs,s.configs)&&this.fullCtx===s.fullCtx&&this.uniqueAlt===s.uniqueAlt&&this.conflictingAlts===s.conflictingAlts&&this.hasSemanticContext===s.hasSemanticContext&&this.dipsIntoOuterContext===s.dipsIntoOuterContext}},{key:"hashCode",value:function(){var s=new b;return s.update(this.configs),s.finish()}},{key:"updateHashCode",value:function(s){this.readOnly?(this.cachedHashCode===-1&&(this.cachedHashCode=this.hashCode()),s.update(this.cachedHashCode)):s.update(this.hashCode())}},{key:"isEmpty",value:function(){return this.configs.length===0}},{key:"contains",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(s)}},{key:"containsFast",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(s)}},{key:"clear",value:function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new g}},{key:"setReadonly",value:function(s){this.readOnly=s,s&&(this.configLookup=null)}},{key:"toString",value:function(){return F(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==bn.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}},{key:"items",get:function(){return this.configs}},{key:"length",get:function(){return this.configs.length}}])&&u1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Hs(f){return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Hs(f)}function f1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Hs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Hs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Hs(_)==="symbol"?_:String(_)),s)}var _}var Wo=function(){function f(s,_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),s===null&&(s=-1),_===null&&(_=new Wr),this.stateNumber=s,this.configs=_,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}var i,m;return i=f,(m=[{key:"getAltSet",value:function(){var s=new g;if(this.configs!==null)for(var _=0;_<this.configs.length;_++){var l=this.configs[_];s.add(l.alt)}return s.length===0?null:s}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.configs.equals(s.configs)}},{key:"toString",value:function(){var s=this.stateNumber+":"+this.configs;return this.isAcceptState&&(s+="=>",this.predicates!==null?s+=this.predicates:s+=this.prediction),s}},{key:"hashCode",value:function(){var s=new b;return s.update(this.configs),s.finish()}}])&&f1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Gs(f){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gs(f)}function h1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Gs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Gs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Gs(_)==="symbol"?_:String(_)),s)}var _}var Ni=function(){function f(s,_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),this.atn=s,this.sharedContextCache=_,this}var i,m;return i=f,m=[{key:"getCachedContext",value:function(s){if(this.sharedContextCache===null)return s;var _=new io;return ec(s,this.sharedContextCache,_)}}],m&&h1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function p0(f){return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},p0(f)}function d0(f,i){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},d0(f,i)}function Uc(f){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Uc(f)}Ni.ERROR=new Wo(2147483647,new Wr);var Y_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&d0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Uc(m);if(s){var u=Uc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(p0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).configLookup=new g,y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(Wr);function Ha(f){return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ha(f)}function p1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ha(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ha(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ha(_)==="symbol"?_:String(_)),s)}var _}function _0(){return _0=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,y){for(;!Object.prototype.hasOwnProperty.call(l,y)&&(l=Ga(l))!==null;);return l}(f,i);if(s){var _=Object.getOwnPropertyDescriptor(s,i);return _.get?_.get.call(arguments.length<3?f:m):_.value}},_0.apply(this,arguments)}function m0(f,i){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},m0(f,i)}function Z_(f,i){if(i&&(Ha(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q_(f)}function Q_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ga(f){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ga(f)}var Ii=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&m0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ga(s);if(_){var S=Ga(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return Z_(this,o)});function y(o,u){var S;(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,y),S=l.call(this,o,u);var k=o.lexerActionExecutor||null;return S.lexerActionExecutor=k||(u!==null?u.lexerActionExecutor:null),S.passedThroughNonGreedyDecision=u!==null&&S.checkNonGreedyDecision(u,S.state),S.hashCodeForConfigSet=y.prototype.hashCode,S.equalsForConfigSet=y.prototype.equals,Z_(S,Q_(S))}return i=y,(m=[{key:"updateHashCode",value:function(o){o.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.passedThroughNonGreedyDecision===o.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(o.lexerActionExecutor):!o.lexerActionExecutor)&&_0(Ga(y.prototype),"equals",this).call(this,o)}},{key:"checkNonGreedyDecision",value:function(o,u){return o.passedThroughNonGreedyDecision||u instanceof ya&&u.nonGreedy}}])&&p1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ce);function Ka(f){return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ka(f)}function d1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ka(_)==="symbol"?_:String(_)),s)}var _}function y0(f,i){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},y0(f,i)}function Vc(f){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Vc(f)}var g0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&y0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Vc(s);if(_){var S=Vc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ka(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,u.actionType)).offset=o,S.action=u,S.isPositionDependent=!0,S}return i=y,(m=[{key:"execute",value:function(o){this.action.execute(o)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.offset,this.action)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.offset===o.offset&&this.action===o.action}}])&&d1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ks(f){return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ks(f)}function J_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ks(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ks(_)==="symbol"?_:String(_)),s)}var _}var _1=function(){function f(_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),this.lexerActions=_===null?[]:_,this.cachedHashCode=b.hashStuff(_),this}var i,m,s;return i=f,s=[{key:"append",value:function(_,l){return new f(_===null?[l]:_.lexerActions.concat([l]))}}],(m=[{key:"fixOffsetBeforeMatch",value:function(_){for(var l=null,y=0;y<this.lexerActions.length;y++)!this.lexerActions[y].isPositionDependent||this.lexerActions[y]instanceof g0||(l===null&&(l=this.lexerActions.concat([])),l[y]=new g0(_,this.lexerActions[y]));return l===null?this:new f(l)}},{key:"execute",value:function(_,l,y){var o=!1,u=l.index;try{for(var S=0;S<this.lexerActions.length;S++){var k=this.lexerActions[S];if(k instanceof g0){var C=k.offset;l.seek(y+C),k=k.action,o=y+C!==u}else k.isPositionDependent&&(l.seek(u),o=!1);k.execute(_)}}finally{o&&l.seek(u)}}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(_){_.update(this.cachedHashCode)}},{key:"equals",value:function(_){if(this===_)return!0;if(_ instanceof f){if(this.cachedHashCode!=_.cachedHashCode||this.lexerActions.length!=_.lexerActions.length)return!1;for(var l=this.lexerActions.length,y=0;y<l;++y)if(!this.lexerActions[y].equals(_.lexerActions[y]))return!1;return!0}return!1}}])&&J_(i.prototype,m),s&&J_(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function v0(f,i){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},v0(f,i)}function jc(f){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},jc(f)}function za(f){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},za(f)}function em(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function tm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),za(_)==="symbol"?_:String(_)),s)}var _}function nm(f,i,m){return i&&tm(f.prototype,i),m&&tm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function rm(f){f.index=-1,f.line=0,f.column=-1,f.dfaState=null}var m1=function(){function f(){em(this,f),rm(this)}return nm(f,[{key:"reset",value:function(){rm(this)}}]),f}(),Wa=function(f){(function(l,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(y&&y.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),y&&v0(l,y)})(_,f);var i,m,s=(i=_,m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var l,y=jc(i);if(m){var o=jc(this).constructor;l=Reflect.construct(y,arguments,o)}else l=y.apply(this,arguments);return function(u,S){if(S&&(za(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}(u)}(this,l)});function _(l,y,o,u){var S;return em(this,_),(S=s.call(this,y,u)).decisionToDFA=o,S.recog=l,S.startIndex=-1,S.line=1,S.column=0,S.mode=hr.DEFAULT_MODE,S.prevAccept=new m1,S}return nm(_,[{key:"copyState",value:function(l){this.column=l.column,this.line=l.line,this.mode=l.mode,this.startIndex=l.startIndex}},{key:"match",value:function(l,y){this.mode=y;var o=l.mark();try{this.startIndex=l.index,this.prevAccept.reset();var u=this.decisionToDFA[y];return u.s0===null?this.matchATN(l):this.execATN(l,u.s0)}finally{l.release(o)}}},{key:"reset",value:function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=hr.DEFAULT_MODE}},{key:"matchATN",value:function(l){var y=this.atn.modeToStartState[this.mode];_.debug&&console.log("matchATN mode "+this.mode+" start: "+y);var o=this.mode,u=this.computeStartState(l,y),S=u.hasSemanticContext;u.hasSemanticContext=!1;var k=this.addDFAState(u);S||(this.decisionToDFA[this.mode].s0=k);var C=this.execATN(l,k);return _.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[o].toLexerString()),C}},{key:"execATN",value:function(l,y){_.debug&&console.log("start state closure="+y.configs),y.isAcceptState&&this.captureSimState(this.prevAccept,l,y);for(var o=l.LA(1),u=y;;){_.debug&&console.log("execATN loop starting closure: "+u.configs);var S=this.getExistingTargetState(u,o);if(S===null&&(S=this.computeTargetState(l,u,o)),S===Ni.ERROR||(o!==n.EOF&&this.consume(l),S.isAcceptState&&(this.captureSimState(this.prevAccept,l,S),o===n.EOF)))break;o=l.LA(1),u=S}return this.failOrAccept(this.prevAccept,l,u.configs,o)}},{key:"getExistingTargetState",value:function(l,y){if(l.edges===null||y<_.MIN_DFA_EDGE||y>_.MAX_DFA_EDGE)return null;var o=l.edges[y-_.MIN_DFA_EDGE];return o===void 0&&(o=null),_.debug&&o!==null&&console.log("reuse state "+l.stateNumber+" edge to "+o.stateNumber),o}},{key:"computeTargetState",value:function(l,y,o){var u=new Y_;return this.getReachableConfigSet(l,y.configs,u,o),u.items.length===0?(u.hasSemanticContext||this.addDFAEdge(y,o,Ni.ERROR),Ni.ERROR):this.addDFAEdge(y,o,null,u)}},{key:"failOrAccept",value:function(l,y,o,u){if(this.prevAccept.dfaState!==null){var S=l.dfaState.lexerActionExecutor;return this.accept(y,S,this.startIndex,l.index,l.line,l.column),l.dfaState.prediction}if(u===n.EOF&&y.index===this.startIndex)return n.EOF;throw new f0(this.recog,y,this.startIndex,o)}},{key:"getReachableConfigSet",value:function(l,y,o,u){for(var S=bn.INVALID_ALT_NUMBER,k=0;k<y.items.length;k++){var C=y.items[k],U=C.alt===S;if(!U||!C.passedThroughNonGreedyDecision){_.debug&&console.log(`testing %s at %s
1
+ var t1=Object.defineProperty;var n1=(bo,vi,Fr)=>vi in bo?t1(bo,vi,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):bo[vi]=Fr;var P=(bo,vi,Fr)=>(n1(bo,typeof vi!="symbol"?vi+"":vi,Fr),Fr);(function(){"use strict";var bo={92:()=>{}},vi={};function Fr(t){var e=vi[t];if(e!==void 0)return e.exports;var n=vi[t]={exports:{}};return bo[t](n,n.exports,Fr),n.exports}Fr.d=(t,e)=>{for(var n in e)Fr.o(e,n)&&!Fr.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Fr.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Mt={};(()=>{function t(f){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(f)}function e(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(t(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),t(_)==="symbol"?_:String(_)),s)}var _}Fr.d(Mt,{dx:()=>bn,q2:()=>t0,FO:()=>pm,xf:()=>su,Gy:()=>ym,s4:()=>Us,c7:()=>bm,_7:()=>um,gp:()=>lm,cK:()=>Ls,zs:()=>w0,AV:()=>su,Xp:()=>_e,VS:()=>J,ul:()=>Go,hW:()=>hr,x1:()=>Wa,z5:()=>Hc,oN:()=>A0,TB:()=>cm,u1:()=>zc,_b:()=>K0,$F:()=>om,_T:()=>X0,db:()=>am,Zx:()=>Wn,_x:()=>zo,r8:()=>ro,JI:()=>Le,TP:()=>hn,WU:()=>n,Nj:()=>F,ZP:()=>e1});var n=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}var i,m;return i=f,(m=[{key:"getTokenSource",value:function(){return this.source[0]}},{key:"getInputStream",value:function(){return this.source[1]}},{key:"text",get:function(){return this._text},set:function(s){this._text=s}}])&&e(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function r(f,i){if(!Array.isArray(f)||!Array.isArray(i))return!1;if(f===i)return!0;if(f.length!==i.length)return!1;for(var m=0;m<f.length;m++)if(!(f[m]===i[m]||f[m].equals&&f[m].equals(i[m])))return!1;return!0}function a(f){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},a(f)}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1;var c=Math.round(Math.random()*Math.pow(2,32));function h(f){if(!f)return 0;var i,m,s=a(f),_=s==="string"?f:!(s!=="object"||!f.toString)&&f.toString();if(!_)return 0;for(var l=3&_.length,y=_.length-l,o=c,u=3432918353,S=461845907,k=0;k<y;)m=255&_.charCodeAt(k)|(255&_.charCodeAt(++k))<<8|(255&_.charCodeAt(++k))<<16|(255&_.charCodeAt(++k))<<24,++k,o=27492+(65535&(i=5*(65535&(o=(o^=m=(65535&(m=(m=(65535&m)*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*S+(((m>>>16)*S&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(m=0,l){case 3:m^=(255&_.charCodeAt(k+2))<<16;case 2:m^=(255&_.charCodeAt(k+1))<<8;case 1:o^=m=(65535&(m=(m=(65535&(m^=255&_.charCodeAt(k)))*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*S+(((m>>>16)*S&65535)<<16)&4294967295}return o^=_.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}function d(f){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},d(f)}function E(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(d(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(d(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),d(_)==="symbol"?_:String(_)),s)}var _}var b=function(){function f(){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.count=0,this.hash=0}var i,m,s;return i=f,m=[{key:"update",value:function(){for(var _=0;_<arguments.length;_++){var l=arguments[_];if(l!=null)if(Array.isArray(l))this.update.apply(this,l);else{var y=0;switch(d(l)){case"undefined":case"function":continue;case"number":case"boolean":y=l;break;case"string":y=h(l);break;default:l.updateHashCode?l.updateHashCode(this):console.log("No updateHashCode for "+l.toString());continue}y=(y*=3432918353)<<15|y>>>17,y*=461845907,this.count=this.count+1;var o=this.hash^y;o=5*(o=o<<13|o>>>19)+3864292196,this.hash=o}}}},{key:"finish",value:function(){var _=this.hash^4*this.count;return _^=_>>>16,_*=2246822507,_^=_>>>13,(_*=3266489909)^_>>>16}}],s=[{key:"hashStuff",value:function(){var _=new f;return _.update.apply(_,arguments),_.finish()}}],m&&E(i.prototype,m),s&&E(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function T(f){return f?typeof f=="string"?h(f):f.hashCode():-1}function x(f,i){return f?f.equals(i):f===i}function w(f){return f===null?"null":f}function F(f){return Array.isArray(f)?"["+f.map(w).join(", ")+"]":"null"}function R(f){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},R(f)}function v(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(R(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(R(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),R(_)==="symbol"?_:String(_)),s)}var _}var p="h-",g=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||T,this.equalsFunction=_||x}var i,m;return i=f,(m=[{key:"add",value:function(s){var _=p+this.hashFunction(s);if(_ in this.data){for(var l=this.data[_],y=0;y<l.length;y++)if(this.equalsFunction(s,l[y]))return l[y];return l.push(s),s}return this.data[_]=[s],s}},{key:"has",value:function(s){return this.get(s)!=null}},{key:"get",value:function(s){var _=p+this.hashFunction(s);if(_ in this.data){for(var l=this.data[_],y=0;y<l.length;y++)if(this.equalsFunction(s,l[y]))return l[y]}return null}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(p)}).flatMap(function(_){return s.data[_]},this)}},{key:"toString",value:function(){return F(this.values())}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(p)}).map(function(_){return s.data[_].length},this).reduce(function(_,l){return _+l},0)}}])&&v(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function A(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&O(f,i)}function O(f,i){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},O(f,i)}function D(f){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,s=I(f);if(i){var _=I(this).constructor;m=Reflect.construct(s,arguments,_)}else m=s.apply(this,arguments);return function(l,y){if(y&&(L(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function I(f){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},I(f)}function L(f){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L(f)}function H(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function M(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(L(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(L(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),L(_)==="symbol"?_:String(_)),s)}var _}function G(f,i,m){return i&&M(f.prototype,i),m&&M(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var N=function(){function f(){H(this,f)}return G(f,[{key:"hashCode",value:function(){var i=new b;return this.updateHashCode(i),i.finish()}},{key:"evaluate",value:function(i,m){}},{key:"evalPrecedence",value:function(i,m){return this}}],[{key:"andContext",value:function(i,m){if(i===null||i===f.NONE)return m;if(m===null||m===f.NONE)return i;var s=new K(i,m);return s.opnds.length===1?s.opnds[0]:s}},{key:"orContext",value:function(i,m){if(i===null)return m;if(m===null)return i;if(i===f.NONE||m===f.NONE)return f.NONE;var s=new Y(i,m);return s.opnds.length===1?s.opnds[0]:s}}]),f}(),K=function(f){A(m,f);var i=D(m);function m(s,_){var l;H(this,m),l=i.call(this);var y=new g;s instanceof m?s.opnds.map(function(S){y.add(S)}):y.add(s),_ instanceof m?_.opnds.map(function(S){y.add(S)}):y.add(_);var o=ne(y);if(o.length>0){var u=null;o.map(function(S){(u===null||S.precedence<u.precedence)&&(u=S)}),y.add(u)}return l.opnds=Array.from(y.values()),l}return G(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"AND")}},{key:"evaluate",value:function(s,_){for(var l=0;l<this.opnds.length;l++)if(!this.opnds[l].evaluate(s,_))return!1;return!0}},{key:"evalPrecedence",value:function(s,_){for(var l=!1,y=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],S=u.evalPrecedence(s,_);if(l|=S!==u,S===null)return null;S!==N.NONE&&y.push(S)}if(!l)return this;if(y.length===0)return N.NONE;var k=null;return y.map(function(C){k=k===null?C:N.andContext(k,C)}),k}},{key:"toString",value:function(){var s=this.opnds.map(function(_){return _.toString()});return(s.length>3?s.slice(3):s).join("&&")}}]),m}(N),Y=function(f){A(m,f);var i=D(m);function m(s,_){var l;H(this,m),l=i.call(this);var y=new g;s instanceof m?s.opnds.map(function(k){y.add(k)}):y.add(s),_ instanceof m?_.opnds.map(function(k){y.add(k)}):y.add(_);var o=ne(y);if(o.length>0){var u=o.sort(function(k,C){return k.compareTo(C)}),S=u[u.length-1];y.add(S)}return l.opnds=Array.from(y.values()),l}return G(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"OR")}},{key:"evaluate",value:function(s,_){for(var l=0;l<this.opnds.length;l++)if(this.opnds[l].evaluate(s,_))return!0;return!1}},{key:"evalPrecedence",value:function(s,_){for(var l=!1,y=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],S=u.evalPrecedence(s,_);if(l|=S!==u,S===N.NONE)return N.NONE;S!==null&&y.push(S)}return l?(y.length===0||y.map(function(k){return k}),null):this}},{key:"toString",value:function(){var s=this.opnds.map(function(_){return _.toString()});return(s.length>3?s.slice(3):s).join("||")}}]),m}(N);function ne(f){var i=[];return f.values().map(function(m){m instanceof N.PrecedencePredicate&&i.push(m)}),i}function se(f){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},se(f)}function re(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(se(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(se(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),se(_)==="symbol"?_:String(_)),s)}var _}function ue(f,i){if(f===null){var m={state:null,alt:null,context:null,semanticContext:null};return i&&(m.reachesIntoOuterContext=0),m}var s={};return s.state=f.state||null,s.alt=f.alt===void 0?null:f.alt,s.context=f.context||null,s.semanticContext=f.semanticContext||null,i&&(s.reachesIntoOuterContext=f.reachesIntoOuterContext||0,s.precedenceFilterSuppressed=f.precedenceFilterSuppressed||!1),s}var ce=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.checkContext(s,_),s=ue(s),_=ue(_,!0),this.state=s.state!==null?s.state:_.state,this.alt=s.alt!==null?s.alt:_.alt,this.context=s.context!==null?s.context:_.context,this.semanticContext=s.semanticContext!==null?s.semanticContext:_.semanticContext!==null?_.semanticContext:N.NONE,this.reachesIntoOuterContext=_.reachesIntoOuterContext,this.precedenceFilterSuppressed=_.precedenceFilterSuppressed}var i,m;return i=f,(m=[{key:"checkContext",value:function(s,_){s.context!==null&&s.context!==void 0||_!==null&&_.context!==null&&_.context!==void 0||(this.context=null)}},{key:"hashCode",value:function(){var s=new b;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&(this.context===null?s.context===null:this.context.equals(s.context))&&this.semanticContext.equals(s.semanticContext)&&this.precedenceFilterSuppressed===s.precedenceFilterSuppressed}},{key:"hashCodeForConfigSet",value:function(){var s=new b;return s.update(this.state.stateNumber,this.alt,this.semanticContext),s.finish()}},{key:"equalsForConfigSet",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&this.semanticContext.equals(s.semanticContext)}},{key:"toString",value:function(){return"("+this.state+","+this.alt+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==N.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}])&&re(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ee(f){return Ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ee(f)}function Te(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ee(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ee(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ee(_)==="symbol"?_:String(_)),s)}var _}var _e=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.start=s,this.stop=_}var i,m;return i=f,(m=[{key:"clone",value:function(){return new f(this.start,this.stop)}},{key:"contains",value:function(s){return s>=this.start&&s<this.stop}},{key:"toString",value:function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}},{key:"length",get:function(){return this.stop-this.start}}])&&Te(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function oe(f){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oe(f)}function Z(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(oe(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(oe(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),oe(_)==="symbol"?_:String(_)),s)}var _}_e.INVALID_INTERVAL=new _e(-1,-2);var J=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.intervals=null,this.readOnly=!1}var i,m;return i=f,(m=[{key:"first",value:function(s){return this.intervals===null||this.intervals.length===0?n.INVALID_TYPE:this.intervals[0].start}},{key:"addOne",value:function(s){this.addInterval(new _e(s,s+1))}},{key:"addRange",value:function(s,_){this.addInterval(new _e(s,_+1))}},{key:"addInterval",value:function(s){if(this.intervals===null)this.intervals=[],this.intervals.push(s.clone());else{for(var _=0;_<this.intervals.length;_++){var l=this.intervals[_];if(s.stop<l.start)return void this.intervals.splice(_,0,s);if(s.stop===l.start)return void(this.intervals[_]=new _e(s.start,l.stop));if(s.start<=l.stop)return this.intervals[_]=new _e(Math.min(l.start,s.start),Math.max(l.stop,s.stop)),void this.reduce(_)}this.intervals.push(s.clone())}}},{key:"addSet",value:function(s){var _=this;return s.intervals!==null&&s.intervals.forEach(function(l){return _.addInterval(l)},this),this}},{key:"reduce",value:function(s){if(s<this.intervals.length-1){var _=this.intervals[s],l=this.intervals[s+1];_.stop>=l.stop?(this.intervals.splice(s+1,1),this.reduce(s)):_.stop>=l.start&&(this.intervals[s]=new _e(_.start,l.stop),this.intervals.splice(s+1,1))}}},{key:"complement",value:function(s,_){var l=new f;return l.addInterval(new _e(s,_+1)),this.intervals!==null&&this.intervals.forEach(function(y){return l.removeRange(y)}),l}},{key:"contains",value:function(s){if(this.intervals===null)return!1;for(var _=0;_<this.intervals.length;_++)if(this.intervals[_].contains(s))return!0;return!1}},{key:"removeRange",value:function(s){if(s.start===s.stop-1)this.removeOne(s.start);else if(this.intervals!==null)for(var _=0,l=0;l<this.intervals.length;l++){var y=this.intervals[_];if(s.stop<=y.start)return;if(s.start>y.start&&s.stop<y.stop){this.intervals[_]=new _e(y.start,s.start);var o=new _e(s.stop,y.stop);return void this.intervals.splice(_,0,o)}s.start<=y.start&&s.stop>=y.stop?(this.intervals.splice(_,1),_-=1):s.start<y.stop?this.intervals[_]=new _e(y.start,s.start):s.stop<y.stop&&(this.intervals[_]=new _e(s.stop,y.stop)),_+=1}}},{key:"removeOne",value:function(s){if(this.intervals!==null)for(var _=0;_<this.intervals.length;_++){var l=this.intervals[_];if(s<l.start)return;if(s===l.start&&s===l.stop-1)return void this.intervals.splice(_,1);if(s===l.start)return void(this.intervals[_]=new _e(l.start+1,l.stop));if(s===l.stop-1)return void(this.intervals[_]=new _e(l.start,l.stop-1));if(s<l.stop-1){var y=new _e(l.start,s);return l.start=s+1,void this.intervals.splice(_,0,y)}}}},{key:"toString",value:function(s,_,l){return s=s||null,_=_||null,l=l||!1,this.intervals===null?"{}":s!==null||_!==null?this.toTokenString(s,_):l?this.toCharString():this.toIndexString()}},{key:"toCharString",value:function(){for(var s=[],_=0;_<this.intervals.length;_++){var l=this.intervals[_];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push("'"+String.fromCharCode(l.start)+"'"):s.push("'"+String.fromCharCode(l.start)+"'..'"+String.fromCharCode(l.stop-1)+"'")}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toIndexString",value:function(){for(var s=[],_=0;_<this.intervals.length;_++){var l=this.intervals[_];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push(l.start.toString()):s.push(l.start.toString()+".."+(l.stop-1).toString())}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toTokenString",value:function(s,_){for(var l=[],y=0;y<this.intervals.length;y++)for(var o=this.intervals[y],u=o.start;u<o.stop;u++)l.push(this.elementName(s,_,u));return l.length>1?"{"+l.join(", ")+"}":l[0]}},{key:"elementName",value:function(s,_,l){return l===n.EOF?"<EOF>":l===n.EPSILON?"<EPSILON>":s[l]||_[l]}},{key:"length",get:function(){return this.intervals.map(function(s){return s.length}).reduce(function(s,_){return s+_})}}])&&Z(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function te(f){return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},te(f)}function ve(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(te(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(te(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),te(_)==="symbol"?_:String(_)),s)}var _}var me=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=null,this.stateNumber=f.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}var i,m;return i=f,(m=[{key:"toString",value:function(){return this.stateNumber}},{key:"equals",value:function(s){return s instanceof f&&this.stateNumber===s.stateNumber}},{key:"isNonGreedyExitState",value:function(){return!1}},{key:"addTransition",value:function(s,_){_===void 0&&(_=-1),this.transitions.length===0?this.epsilonOnlyTransitions=s.isEpsilon:this.epsilonOnlyTransitions!==s.isEpsilon&&(this.epsilonOnlyTransitions=!1),_===-1?this.transitions.push(s):this.transitions.splice(_,1,s)}}])&&ve(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ze(f){return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ze(f)}function Ve(f,i){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ve(f,i)}function ht(f,i){if(i&&(Ze(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wt(f)}function wt(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function yt(f){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yt(f)}me.INVALID_TYPE=0,me.BASIC=1,me.RULE_START=2,me.BLOCK_START=3,me.PLUS_BLOCK_START=4,me.STAR_BLOCK_START=5,me.TOKEN_START=6,me.RULE_STOP=7,me.BLOCK_END=8,me.STAR_LOOP_BACK=9,me.STAR_LOOP_ENTRY=10,me.PLUS_LOOP_BACK=11,me.LOOP_END=12,me.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],me.INVALID_STATE_NUMBER=-1;var St=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ve(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=yt(m);if(s){var u=yt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return ht(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.RULE_STOP,ht(y,wt(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function Ct(f){return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ct(f)}function le(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ct(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ct(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ct(_)==="symbol"?_:String(_)),s)}var _}function we(f,i,m){return i&&le(f.prototype,i),m&&le(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var be=we(function f(i){if(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}(this,f),i==null)throw"target cannot be null.";this.target=i,this.isEpsilon=!1,this.label=null});function pt(f){return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},pt(f)}function Et(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(pt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(pt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),pt(_)==="symbol"?_:String(_)),s)}var _}function Rt(f,i){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Rt(f,i)}function yn(f){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yn(f)}be.EPSILON=1,be.RANGE=2,be.RULE=3,be.PREDICATE=4,be.ATOM=5,be.ACTION=6,be.SET=7,be.NOT_SET=8,be.WILDCARD=9,be.PRECEDENCE=10,be.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],be.serializationTypes={EpsilonTransition:be.EPSILON,RangeTransition:be.RANGE,RuleTransition:be.RULE,PredicateTransition:be.PREDICATE,AtomTransition:be.ATOM,ActionTransition:be.ACTION,SetTransition:be.SET,NotSetTransition:be.NOT_SET,WildcardTransition:be.WILDCARD,PrecedencePredicateTransition:be.PRECEDENCE};var Dt=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Rt(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=yn(s);if(_){var S=yn(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(pt(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).ruleIndex=u,C.precedence=S,C.followState=k,C.serializationType=be.RULE,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}}])&&Et(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function It(f){return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},It(f)}function kt(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(It(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(It(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),It(_)==="symbol"?_:String(_)),s)}var _}function Pt(f,i){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pt(f,i)}function nn(f){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nn(f)}var ir=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pt(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=nn(s);if(_){var S=nn(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(It(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.SET,u!=null?S.label=u:(S.label=new J,S.label.addOne(n.INVALID_TYPE)),S}return i=y,(m=[{key:"matches",value:function(o,u,S){return this.label.contains(o)}},{key:"toString",value:function(){return this.label.toString()}}])&&kt(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function W(f){return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},W(f)}function Fe(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(W(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(W(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),W(_)==="symbol"?_:String(_)),s)}var _}function Ue(){return Ue=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,y){for(;!Object.prototype.hasOwnProperty.call(l,y)&&(l=Qe(l))!==null;);return l}(f,i);if(s){var _=Object.getOwnPropertyDescriptor(s,i);return _.get?_.get.call(arguments.length<3?f:m):_.value}},Ue.apply(this,arguments)}function Pe(f,i){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pe(f,i)}function Qe(f){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qe(f)}var Ht=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pe(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Qe(s);if(_){var S=Qe(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(W(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o,u)).serializationType=be.NOT_SET,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return o>=u&&o<=S&&!Ue(Qe(y.prototype),"matches",this).call(this,o,u,S)}},{key:"toString",value:function(){return"~"+Ue(Qe(y.prototype),"toString",this).call(this)}}])&&Fe(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ir);function ft(f){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ft(f)}function fn(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ft(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ft(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ft(_)==="symbol"?_:String(_)),s)}var _}function gn(f,i){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},gn(f,i)}function jr(f){return jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},jr(f)}var On=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&gn(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=jr(s);if(_){var S=jr(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ft(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,o)).serializationType=be.WILDCARD,u}return i=y,(m=[{key:"matches",value:function(o,u,S){return o>=u&&o<=S}},{key:"toString",value:function(){return"."}}])&&fn(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function rn(f){return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},rn(f)}function Ri(f,i){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ri(f,i)}function $r(f){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},$r(f)}var Fi=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ri(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=$r(m);if(s){var u=$r(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(rn(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),_.call(this,y)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function or(f){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},or(f)}function Or(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(or(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(or(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),or(_)==="symbol"?_:String(_)),s)}var _}function eo(f,i,m){return i&&Or(f.prototype,i),m&&Or(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function gi(f){return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gi(f)}function fr(f,i){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},fr(f,i)}function Hr(f){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Hr(f)}function to(f){return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},to(f)}function dt(f,i){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},dt(f,i)}function er(f){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},er(f)}var B=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&dt(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=er(m);if(s){var u=er(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(to(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&fr(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Hr(m);if(s){var u=Hr(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(gi(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(eo(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)})));function q(f){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},q(f)}function ee(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(q(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(q(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),q(_)==="symbol"?_:String(_)),s)}var _}function ae(f,i){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ae(f,i)}function he(f){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},he(f)}var Le=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ae(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=he(s);if(_){var S=he(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(q(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.apply(this,arguments)}return i=y,(m=[{key:"ruleContext",get:function(){throw new Error("missing interface implementation")}}])&&ee(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(B);function Be(f){return Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Be(f)}function at(f,i){return at=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},at(f,i)}function Xt(f){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Xt(f)}var hn=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&at(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Xt(m);if(s){var u=Xt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(Be(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(B);function An(f){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},An(f)}function Gr(f,i){return Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Gr(f,i)}function zt(f){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},zt(f)}var ti=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Gr(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=zt(m);if(s){var u=zt(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(An(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){return function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),_.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(hn),wr={toStringTree:function(f,i,m){i=i||null,(m=m||null)!==null&&(i=m.ruleNames);var s=wr.getNodeText(f,i);s=function(o,u){return o=o.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(s);var _=f.getChildCount();if(_===0)return s;var l="("+s+" ";_>0&&(s=wr.toStringTree(f.getChild(0),i),l=l.concat(s));for(var y=1;y<_;y++)s=wr.toStringTree(f.getChild(y),i),l=l.concat(" "+s);return l.concat(")")},getNodeText:function(f,i,m){if(i=i||null,(m=m||null)!==null&&(i=m.ruleNames),i!==null){if(f instanceof Le){var s=f.ruleContext.getAltNumber();return s!=0?i[f.ruleIndex]+":"+s:i[f.ruleIndex]}if(f instanceof ti)return f.toString();if(f instanceof hn&&f.symbol!==null)return f.symbol.text}var _=f.getPayload();return _ instanceof n?_.text:f.getPayload().toString()},getChildren:function(f){for(var i=[],m=0;m<f.getChildCount();m++)i.push(f.getChild(m));return i},getAncestors:function(f){var i=[];for(f=f.getParent();f!==null;)i=[f].concat(i),f=f.getParent();return i},findAllTokenNodes:function(f,i){return wr.findAllNodes(f,i,!0)},findAllRuleNodes:function(f,i){return wr.findAllNodes(f,i,!1)},findAllNodes:function(f,i,m){var s=[];return wr._findAllNodes(f,i,m,s),s},_findAllNodes:function(f,i,m,s){m&&f instanceof hn?f.symbol.type===i&&s.push(f):!m&&f instanceof Le&&f.ruleIndex===i&&s.push(f);for(var _=0;_<f.getChildCount();_++)wr._findAllNodes(f.getChild(_),i,m,s)},descendants:function(f){for(var i=[f],m=0;m<f.getChildCount();m++)i=i.concat(wr.descendants(f.getChild(m)));return i}};const Ju=wr;function no(f){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},no(f)}function ih(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(no(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(no(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),no(_)==="symbol"?_:String(_)),s)}var _}function $o(f,i){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$o(f,i)}function pa(f){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},pa(f)}var ro=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$o(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=pa(s);if(_){var S=pa(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(no(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this)).parentCtx=o||null,S.invokingState=u||-1,S}return i=y,(m=[{key:"depth",value:function(){for(var o=0,u=this;u!==null;)u=u.parentCtx,o+=1;return o}},{key:"isEmpty",value:function(){return this.invokingState===-1}},{key:"getSourceInterval",value:function(){return _e.INVALID_INTERVAL}},{key:"ruleContext",get:function(){return this}},{key:"getPayload",value:function(){return this}},{key:"getText",value:function(){return this.getChildCount()===0?"":this.children.map(function(o){return o.getText()}).join("")}},{key:"getAltNumber",value:function(){return 0}},{key:"setAltNumber",value:function(o){}},{key:"getChild",value:function(o){return null}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitChildren(this)}},{key:"toStringTree",value:function(o,u){return Ju.toStringTree(this,o,u)}},{key:"toString",value:function(o,u){o=o||null,u=u||null;for(var S=this,k="[";S!==null&&S!==u;){if(o===null)S.isEmpty()||(k+=S.invokingState);else{var C=S.ruleIndex;k+=C>=0&&C<o.length?o[C]:""+C}S.parentCtx===null||o===null&&S.parentCtx.isEmpty()||(k+=" "),S=S.parentCtx}return k+"]"}}])&&ih(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Le);function Ho(f){return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ho(f)}function da(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ho(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ho(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ho(_)==="symbol"?_:String(_)),s)}var _}var st=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.cachedHashCode=s}var i,m;return i=f,(m=[{key:"isEmpty",value:function(){return this===f.EMPTY}},{key:"hasEmptyPath",value:function(){return this.getReturnState(this.length-1)===f.EMPTY_RETURN_STATE}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(s){s.update(this.cachedHashCode)}}])&&da(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function X(f){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},X(f)}function Q(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(X(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(X(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),X(_)==="symbol"?_:String(_)),s)}var _}function ie(f,i){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ie(f,i)}function de(f,i){if(i&&(X(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(f)}function Ce(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ae(f){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ae(f)}st.EMPTY=null,st.EMPTY_RETURN_STATE=2147483647,st.globalNodeCount=1,st.id=st.globalNodeCount,st.trace_atn_sim=!1;var De=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ie(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ae(s);if(_){var S=Ae(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return de(this,o)});function y(o,u){var S;(function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,y);var k=new b;k.update(o,u);var C=k.finish();return(S=l.call(this,C)).parents=o,S.returnStates=u,de(S,Ce(S))}return i=y,(m=[{key:"isEmpty",value:function(){return this.returnStates[0]===st.EMPTY_RETURN_STATE}},{key:"getParent",value:function(o){return this.parents[o]}},{key:"getReturnState",value:function(o){return this.returnStates[o]}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.hashCode()===o.hashCode()&&r(this.returnStates,o.returnStates)&&r(this.parents,o.parents)}},{key:"toString",value:function(){if(this.isEmpty())return"[]";for(var o="[",u=0;u<this.returnStates.length;u++)u>0&&(o+=", "),this.returnStates[u]!==st.EMPTY_RETURN_STATE?(o+=this.returnStates[u],this.parents[u]!==null?o=o+" "+this.parents[u]:o+="null"):o+="$";return o+"]"}},{key:"length",get:function(){return this.returnStates.length}}])&&Q(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(st);function ze(f){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ze(f)}function Me(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ze(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ze(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ze(_)==="symbol"?_:String(_)),s)}var _}function ut(f,i){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ut(f,i)}function Wt(f){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wt(f)}var _t=function(f){(function(u,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(S&&S.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),S&&ut(u,S)})(o,f);var i,m,s,_,l,y=(_=o,l=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,S=Wt(_);if(l){var k=Wt(this).constructor;u=Reflect.construct(S,arguments,k)}else u=S.apply(this,arguments);return function(C,U){if(U&&(ze(U)==="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}(C)}(this,u)});function o(u,S){var k;(function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,o);var C,U=new b;return u!==null?U.update(u,S):U.update(1),C=U.finish(),(k=y.call(this,C)).parentCtx=u,k.returnState=S,k}return i=o,s=[{key:"create",value:function(u,S){return S===st.EMPTY_RETURN_STATE&&u===null?st.EMPTY:new o(u,S)}}],(m=[{key:"getParent",value:function(u){return this.parentCtx}},{key:"getReturnState",value:function(u){return this.returnState}},{key:"equals",value:function(u){return this===u||u instanceof o&&this.hashCode()===u.hashCode()&&this.returnState===u.returnState&&(this.parentCtx==null?u.parentCtx==null:this.parentCtx.equals(u.parentCtx))}},{key:"toString",value:function(){var u=this.parentCtx===null?"":this.parentCtx.toString();return u.length===0?this.returnState===st.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+u}},{key:"length",get:function(){return 1}}])&&Me(i.prototype,m),s&&Me(i,s),Object.defineProperty(i,"prototype",{writable:!1}),o}(st);function Yt(f){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Yt(f)}function wn(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Yt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Yt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Yt(_)==="symbol"?_:String(_)),s)}var _}function zn(f,i){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zn(f,i)}function tr(f){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tr(f)}var Kr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zn(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=tr(s);if(_){var S=tr(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Yt(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,null,st.EMPTY_RETURN_STATE)}return i=y,(m=[{key:"isEmpty",value:function(){return!0}},{key:"getParent",value:function(o){return null}},{key:"getReturnState",value:function(o){return this.returnState}},{key:"equals",value:function(o){return this===o}},{key:"toString",value:function(){return"$"}}])&&wn(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(_t);function ni(f){return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ni(f)}function Os(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ni(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ni(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ni(_)==="symbol"?_:String(_)),s)}var _}st.EMPTY=new Kr;var nr="h-",io=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||T,this.equalsFunction=_||x}var i,m;return i=f,(m=[{key:"set",value:function(s,_){var l=nr+this.hashFunction(s);if(l in this.data){for(var y=this.data[l],o=0;o<y.length;o++){var u=y[o];if(this.equalsFunction(s,u.key)){var S=u.value;return u.value=_,S}}return y.push({key:s,value:_}),_}return this.data[l]=[{key:s,value:_}],_}},{key:"containsKey",value:function(s){var _=nr+this.hashFunction(s);if(_ in this.data)for(var l=this.data[_],y=0;y<l.length;y++){var o=l[y];if(this.equalsFunction(s,o.key))return!0}return!1}},{key:"get",value:function(s){var _=nr+this.hashFunction(s);if(_ in this.data)for(var l=this.data[_],y=0;y<l.length;y++){var o=l[y];if(this.equalsFunction(s,o.key))return o.value}return null}},{key:"entries",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(nr)}).flatMap(function(_){return s.data[_]},this)}},{key:"getKeys",value:function(){return this.entries().map(function(s){return s.key})}},{key:"getValues",value:function(){return this.entries().map(function(s){return s.value})}},{key:"toString",value:function(){return"["+this.entries().map(function(s){return"{"+s.key+":"+s.value+"}"}).join(", ")+"]"}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith(nr)}).map(function(_){return s.data[_].length},this).reduce(function(_,l){return _+l},0)}}])&&Os(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function _a(f,i){if(i==null&&(i=ro.EMPTY),i.parentCtx===null||i===ro.EMPTY)return st.EMPTY;var m=_a(f,i.parentCtx),s=f.states[i.invokingState].transitions[0];return _t.create(m,s.followState.stateNumber)}function ec(f,i,m){if(f.isEmpty())return f;var s=m.get(f)||null;if(s!==null)return s;if((s=i.get(f))!==null)return m.set(f,s),s;for(var _=!1,l=[],y=0;y<l.length;y++){var o=ec(f.getParent(y),i,m);if(_||o!==f.getParent(y)){if(!_){l=[];for(var u=0;u<f.length;u++)l[u]=f.getParent(u);_=!0}l[y]=o}}if(!_)return i.add(f),m.set(f,f),f;var S;return S=l.length===0?st.EMPTY:l.length===1?_t.create(l[0],f.getReturnState(0)):new De(l,f.returnStates),i.add(S),m.set(S,S),m.set(f,S),S}function ma(f,i,m,s){if(f===i)return f;if(f instanceof _t&&i instanceof _t)return function(_,l,y,o){if(o!==null){var u=o.get(_,l);if(u!==null||(u=o.get(l,_))!==null)return u}var S=function(We,En,vn){if(vn){if(We===st.EMPTY||En===st.EMPTY)return st.EMPTY}else{if(We===st.EMPTY&&En===st.EMPTY)return st.EMPTY;if(We===st.EMPTY){var qn=[En.returnState,st.EMPTY_RETURN_STATE],qr=[En.parentCtx,null];return new De(qr,qn)}if(En===st.EMPTY){var Bi=[We.returnState,st.EMPTY_RETURN_STATE],Li=[We.parentCtx,null];return new De(Li,Bi)}}return null}(_,l,y);if(S!==null)return o!==null&&o.set(_,l,S),S;if(_.returnState===l.returnState){var k=ma(_.parentCtx,l.parentCtx,y,o);if(k===_.parentCtx)return _;if(k===l.parentCtx)return l;var C=_t.create(k,_.returnState);return o!==null&&o.set(_,l,C),C}var U=null;if((_===l||_.parentCtx!==null&&_.parentCtx===l.parentCtx)&&(U=_.parentCtx),U!==null){var fe=[_.returnState,l.returnState];_.returnState>l.returnState&&(fe[0]=l.returnState,fe[1]=_.returnState);var Ne=new De([U,U],fe);return o!==null&&o.set(_,l,Ne),Ne}var Re=[_.returnState,l.returnState],Ge=[_.parentCtx,l.parentCtx];_.returnState>l.returnState&&(Re[0]=l.returnState,Re[1]=_.returnState,Ge=[l.parentCtx,_.parentCtx]);var ct=new De(Ge,Re);return o!==null&&o.set(_,l,ct),ct}(f,i,m,s);if(m){if(f instanceof Kr)return f;if(i instanceof Kr)return i}return f instanceof _t&&(f=new De([f.getParent()],[f.returnState])),i instanceof _t&&(i=new De([i.getParent()],[i.returnState])),function(_,l,y,o){if(o!==null){var u=o.get(_,l);if(u!==null||(u=o.get(l,_))!==null)return st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> previous"),u}for(var S=0,k=0,C=0,U=new Array(_.returnStates.length+l.returnStates.length).fill(0),fe=new Array(_.returnStates.length+l.returnStates.length).fill(null);S<_.returnStates.length&&k<l.returnStates.length;){var Ne=_.parents[S],Re=l.parents[k];if(_.returnStates[S]===l.returnStates[k]){var Ge=_.returnStates[S];Ge===st.EMPTY_RETURN_STATE&&Ne===null&&Re===null||Ne!==null&&Re!==null&&Ne===Re?(fe[C]=Ne,U[C]=Ge):(fe[C]=ma(Ne,Re,y,o),U[C]=Ge),S+=1,k+=1}else _.returnStates[S]<l.returnStates[k]?(fe[C]=Ne,U[C]=_.returnStates[S],S+=1):(fe[C]=Re,U[C]=l.returnStates[k],k+=1);C+=1}if(S<_.returnStates.length)for(var ct=S;ct<_.returnStates.length;ct++)fe[C]=_.parents[ct],U[C]=_.returnStates[ct],C+=1;else for(var We=k;We<l.returnStates.length;We++)fe[C]=l.parents[We],U[C]=l.returnStates[We],C+=1;if(C<fe.length){if(C===1){var En=_t.create(fe[0],U[0]);return o!==null&&o.set(_,l,En),En}fe=fe.slice(0,C),U=U.slice(0,C)}var vn=new De(fe,U);return vn.equals(_)?(o!==null&&o.set(_,l,_),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> a"),_):vn.equals(l)?(o!==null&&o.set(_,l,l),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> b"),l):(function(qn){for(var qr=new io,Bi=0;Bi<qn.length;Bi++){var Li=qn[Bi];qr.containsKey(Li)||qr.set(Li,Li)}for(var Rr=0;Rr<qn.length;Rr++)qn[Rr]=qr.get(qn[Rr])}(fe),o!==null&&o.set(_,l,vn),st.trace_atn_sim&&console.log("mergeArrays a="+_+",b="+l+" -> "+vn),vn)}(f,i,m,s)}function oo(f){return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oo(f)}function ao(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(oo(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(oo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),oo(_)==="symbol"?_:String(_)),s)}var _}var zr=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data=[]}var i,m;return i=f,(m=[{key:"add",value:function(s){this.data[s]=!0}},{key:"or",value:function(s){var _=this;Object.keys(s.data).map(function(l){return _.add(l)},this)}},{key:"remove",value:function(s){delete this.data[s]}},{key:"has",value:function(s){return this.data[s]===!0}},{key:"values",value:function(){return Object.keys(this.data)}},{key:"minValue",value:function(){return Math.min.apply(null,this.values())}},{key:"hashCode",value:function(){return b.hashStuff(this.values())}},{key:"equals",value:function(s){return s instanceof f&&r(this.data,s.data)}},{key:"toString",value:function(){return"{"+this.values().join(", ")+"}"}},{key:"length",get:function(){return this.values().length}}])&&ao(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function vo(f){return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},vo(f)}function tc(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(vo(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(vo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),vo(_)==="symbol"?_:String(_)),s)}var _}var Go=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=s}var i,m;return i=f,(m=[{key:"getDecisionLookahead",value:function(s){if(s===null)return null;for(var _=s.transitions.length,l=[],y=0;y<_;y++){l[y]=new J;var o=new g;this._LOOK(s.transition(y).target,null,st.EMPTY,l[y],o,new zr,!1,!1),(l[y].length===0||l[y].contains(f.HIT_PRED))&&(l[y]=null)}return l}},{key:"LOOK",value:function(s,_,l){var y=new J,o=(l=l||null)!==null?_a(s.atn,l):null;return this._LOOK(s,_,o,y,new g,new zr,!0,!0),y}},{key:"_LOOK",value:function(s,_,l,y,o,u,S,k){var C=new ce({state:s,alt:0,context:l},null);if(!o.has(C)){if(o.add(C),s===_){if(l===null)return void y.addOne(n.EPSILON);if(l.isEmpty()&&k)return void y.addOne(n.EOF)}if(s instanceof St){if(l===null)return void y.addOne(n.EPSILON);if(l.isEmpty()&&k)return void y.addOne(n.EOF);if(l!==st.EMPTY){var U=u.has(s.ruleIndex);try{u.remove(s.ruleIndex);for(var fe=0;fe<l.length;fe++){var Ne=this.atn.states[l.getReturnState(fe)];this._LOOK(Ne,_,l.getParent(fe),y,o,u,S,k)}}finally{U&&u.add(s.ruleIndex)}return}}for(var Re=0;Re<s.transitions.length;Re++){var Ge=s.transitions[Re];if(Ge.constructor===Dt){if(u.has(Ge.target.ruleIndex))continue;var ct=_t.create(l,Ge.followState.stateNumber);try{u.add(Ge.target.ruleIndex),this._LOOK(Ge.target,_,ct,y,o,u,S,k)}finally{u.remove(Ge.target.ruleIndex)}}else if(Ge instanceof Fi)S?this._LOOK(Ge.target,_,l,y,o,u,S,k):y.addOne(f.HIT_PRED);else if(Ge.isEpsilon)this._LOOK(Ge.target,_,l,y,o,u,S,k);else if(Ge.constructor===On)y.addRange(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var We=Ge.label;We!==null&&(Ge instanceof Ht&&(We=We.complement(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),y.addSet(We))}}}}}])&&tc(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ws(f){return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ws(f)}function Av(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ws(_)==="symbol"?_:String(_)),s)}var _}Go.HIT_PRED=n.INVALID_TYPE;var bn=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.grammarType=s,this.maxTokenType=_,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}var i,m;return i=f,(m=[{key:"nextTokensInContext",value:function(s,_){return new Go(this).LOOK(s,null,_)}},{key:"nextTokensNoContext",value:function(s){return s.nextTokenWithinRule!==null||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}},{key:"nextTokens",value:function(s,_){return _===void 0?this.nextTokensNoContext(s):this.nextTokensInContext(s,_)}},{key:"addState",value:function(s){s!==null&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}},{key:"removeState",value:function(s){this.states[s.stateNumber]=null}},{key:"defineDecisionState",value:function(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}},{key:"getDecisionState",value:function(s){return this.decisionToState.length===0?null:this.decisionToState[s]}},{key:"getExpectedTokens",value:function(s,_){if(s<0||s>=this.states.length)throw"Invalid state number.";var l=this.states[s],y=this.nextTokens(l);if(!y.contains(n.EPSILON))return y;var o=new J;for(o.addSet(y),o.removeOne(n.EPSILON);_!==null&&_.invokingState>=0&&y.contains(n.EPSILON);){var u=this.states[_.invokingState].transitions[0];y=this.nextTokens(u.followState),o.addSet(y),o.removeOne(n.EPSILON),_=_.parentCtx}return y.contains(n.EPSILON)&&o.addOne(n.EOF),o}}])&&Av(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();bn.INVALID_ALT_NUMBER=0;function oh(f){return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},oh(f)}function ah(f,i){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ah(f,i)}function nc(f){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nc(f)}var c_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&ah(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=nc(m);if(s){var u=nc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(oh(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BASIC,y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function sh(f){return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},sh(f)}function uh(f,i){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},uh(f,i)}function l_(f,i){if(i&&(sh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f_(f)}function f_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function rc(f){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},rc(f)}var ya=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&uh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=rc(m);if(s){var u=rc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return l_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).decision=-1,y.nonGreedy=!1,l_(y,f_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function ch(f){return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ch(f)}function lh(f,i){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},lh(f,i)}function h_(f,i){if(i&&(ch(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p_(f)}function p_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ic(f){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ic(f)}var ga=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&lh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=ic(m);if(s){var u=ic(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return h_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).endState=null,h_(y,p_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function fh(f){return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fh(f)}function hh(f,i){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},hh(f,i)}function d_(f,i){if(i&&(fh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return __(f)}function __(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function oc(f){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},oc(f)}var ph=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&hh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=oc(m);if(s){var u=oc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return d_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BLOCK_END,y.startState=null,d_(y,__(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function dh(f){return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},dh(f)}function _h(f,i){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},_h(f,i)}function m_(f,i){if(i&&(dh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y_(f)}function y_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ac(f){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ac(f)}var va=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&_h(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=ac(m);if(s){var u=ac(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return m_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.LOOP_END,y.loopBackState=null,m_(y,y_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function mh(f){return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},mh(f)}function yh(f,i){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},yh(f,i)}function g_(f,i){if(i&&(mh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v_(f)}function v_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function sc(f){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},sc(f)}var b_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&yh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=sc(m);if(s){var u=sc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return g_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.RULE_START,y.stopState=null,y.isPrecedenceRule=!1,g_(y,v_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function gh(f){return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gh(f)}function vh(f,i){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},vh(f,i)}function E_(f,i){if(i&&(gh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x_(f)}function x_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function uc(f){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},uc(f)}var Cv=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&vh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=uc(m);if(s){var u=uc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return E_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.TOKEN_START,E_(y,x_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function bh(f){return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},bh(f)}function Eh(f,i){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Eh(f,i)}function S_(f,i){if(i&&(bh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T_(f)}function T_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function cc(f){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},cc(f)}var A_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Eh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=cc(m);if(s){var u=cc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return S_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.PLUS_LOOP_BACK,S_(y,T_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function xh(f){return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xh(f)}function Sh(f,i){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Sh(f,i)}function C_(f,i){if(i&&(xh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D_(f)}function D_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function lc(f){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},lc(f)}var Th=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Sh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=lc(m);if(s){var u=lc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return C_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_LOOP_BACK,C_(y,D_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function Ah(f){return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ah(f)}function Ch(f,i){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ch(f,i)}function k_(f,i){if(i&&(Ah(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O_(f)}function O_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function fc(f){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fc(f)}var Ko=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ch(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=fc(m);if(s){var u=fc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return k_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_LOOP_ENTRY,y.loopBackState=null,y.isPrecedenceDecision=null,k_(y,O_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ya);function Dh(f){return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Dh(f)}function kh(f,i){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},kh(f,i)}function w_(f,i){if(i&&(Dh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R_(f)}function R_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function hc(f){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hc(f)}var Oh=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&kh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=hc(m);if(s){var u=hc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return w_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.PLUS_BLOCK_START,y.loopBackState=null,w_(y,R_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function wh(f){return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},wh(f)}function Rh(f,i){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Rh(f,i)}function F_(f,i){if(i&&(wh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N_(f)}function N_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function pc(f){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},pc(f)}var Fh=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Rh(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=pc(m);if(s){var u=pc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return F_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.STAR_BLOCK_START,F_(y,N_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function Nh(f){return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Nh(f)}function Ih(f,i){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ih(f,i)}function I_(f,i){if(i&&(Nh(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P_(f)}function P_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function dc(f){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},dc(f)}var B_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&Ih(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=dc(m);if(s){var u=dc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return I_(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).stateType=me.BLOCK_START,I_(y,P_(y))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(ga);function ba(f){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ba(f)}function Dv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ba(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ba(_)==="symbol"?_:String(_)),s)}var _}function Ph(f,i){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ph(f,i)}function _c(f){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},_c(f)}var Bh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Ph(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=_c(s);if(_){var S=_c(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ba(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).label_=u,S.label=S.makeLabel(),S.serializationType=be.ATOM,S}return i=y,(m=[{key:"makeLabel",value:function(){var o=new J;return o.addOne(this.label_),o}},{key:"matches",value:function(o,u,S){return this.label_===o}},{key:"toString",value:function(){return this.label_}}])&&Dv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Ea(f){return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ea(f)}function kv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ea(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ea(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ea(_)==="symbol"?_:String(_)),s)}var _}function Lh(f,i){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Lh(f,i)}function mc(f){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},mc(f)}var Ov=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Lh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=mc(s);if(_){var S=mc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ea(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;return function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")}(this,y),(k=l.call(this,o)).serializationType=be.RANGE,k.start=u,k.stop=S,k.label=k.makeLabel(),k}return i=y,(m=[{key:"makeLabel",value:function(){var o=new J;return o.addRange(this.start,this.stop),o}},{key:"matches",value:function(o,u,S){return o>=this.start&&o<=this.stop}},{key:"toString",value:function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}])&&kv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function xa(f){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xa(f)}function wv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(xa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),xa(_)==="symbol"?_:String(_)),s)}var _}function Mh(f,i){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Mh(f,i)}function yc(f){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yc(f)}var L_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Mh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=yc(s);if(_){var S=yc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(xa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).serializationType=be.ACTION,C.ruleIndex=u,C.actionIndex=S===void 0?-1:S,C.isCtxDependent=k!==void 0&&k,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"toString",value:function(){return"action_"+this.ruleIndex+":"+this.actionIndex}}])&&wv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Sa(f){return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Sa(f)}function Rv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Sa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Sa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Sa(_)==="symbol"?_:String(_)),s)}var _}function Uh(f,i){return Uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Uh(f,i)}function gc(f){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},gc(f)}var Rs=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Uh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=gc(s);if(_){var S=gc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Sa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.EPSILON,S.isEpsilon=!0,S.outermostPrecedenceReturn=u,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"toString",value:function(){return"epsilon"}}])&&Rv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(be);function Ta(f){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ta(f)}function Fv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ta(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ta(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ta(_)==="symbol"?_:String(_)),s)}var _}function Vh(f,i){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Vh(f,i)}function vc(f){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},vc(f)}var M_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Vh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=vc(s);if(_){var S=vc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ta(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;return function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")}(this,y),(k=l.call(this)).ruleIndex=o===void 0?-1:o,k.predIndex=u===void 0?-1:u,k.isCtxDependent=S!==void 0&&S,k}return i=y,(m=[{key:"evaluate",value:function(o,u){var S=this.isCtxDependent?u:null;return o.sempred(S,this.ruleIndex,this.predIndex)}},{key:"updateHashCode",value:function(o){o.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}},{key:"toString",value:function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}])&&Fv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(N);function Aa(f){return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Aa(f)}function Nv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Aa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Aa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Aa(_)==="symbol"?_:String(_)),s)}var _}function jh(f,i){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},jh(f,i)}function bc(f){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},bc(f)}N.NONE=new M_;var U_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&jh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=bc(s);if(_){var S=bc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Aa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,o)).serializationType=be.PREDICATE,C.ruleIndex=u,C.predIndex=S,C.isCtxDependent=k,C.isEpsilon=!0,C}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"getPredicate",value:function(){return new M_(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"toString",value:function(){return"pred_"+this.ruleIndex+":"+this.predIndex}}])&&Nv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Fi);function Ca(f){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ca(f)}function Iv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ca(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ca(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ca(_)==="symbol"?_:String(_)),s)}var _}function $h(f,i){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$h(f,i)}function Ec(f){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ec(f)}var V_=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$h(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ec(s);if(_){var S=Ec(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ca(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).precedence=o===void 0?0:o,u}return i=y,(m=[{key:"evaluate",value:function(o,u){return o.precpred(u,this.precedence)}},{key:"evalPrecedence",value:function(o,u){return o.precpred(u,this.precedence)?N.NONE:null}},{key:"compareTo",value:function(o){return this.precedence-o.precedence}},{key:"updateHashCode",value:function(o){o.update(this.precedence)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.precedence===o.precedence}},{key:"toString",value:function(){return"{"+this.precedence+">=prec}?"}}])&&Iv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(N);function Da(f){return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Da(f)}function Pv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Da(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Da(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Da(_)==="symbol"?_:String(_)),s)}var _}function Hh(f,i){return Hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Hh(f,i)}function xc(f){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},xc(f)}N.PrecedencePredicate=V_;var Bv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Hh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=xc(s);if(_){var S=xc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Da(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).serializationType=be.PRECEDENCE,S.precedence=u,S.isEpsilon=!0,S}return i=y,(m=[{key:"matches",value:function(o,u,S){return!1}},{key:"getPredicate",value:function(){return new V_(this.precedence)}},{key:"toString",value:function(){return this.precedence+" >= _p"}}])&&Pv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Fi);function Fs(f){return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fs(f)}function j_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Fs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Fs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Fs(_)==="symbol"?_:String(_)),s)}var _}function Lv(f,i,m){return i&&j_(f.prototype,i),m&&j_(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var Ns=Lv(function f(i){(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")})(this,f),i===void 0&&(i=null),this.readOnly=!1,this.verifyATN=i===null||i.verifyATN,this.generateRuleBypassTransitions=i!==null&&i.generateRuleBypassTransitions});Ns.defaultOptions=new Ns,Ns.defaultOptions.readOnly=!0;function Is(f){return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Is(f)}function Mv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Is(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Is(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Is(_)==="symbol"?_:String(_)),s)}var _}var so=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.actionType=s,this.isPositionDependent=!1}var i,m;return i=f,(m=[{key:"hashCode",value:function(){var s=new b;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.actionType)}},{key:"equals",value:function(s){return this===s}}])&&Mv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ka(f){return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ka(f)}function Uv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ka(_)==="symbol"?_:String(_)),s)}var _}function Gh(f,i){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Gh(f,i)}function Sc(f){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Sc(f)}var Kh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Gh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Sc(s);if(_){var S=Sc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ka(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,6)}return i=y,(m=[{key:"execute",value:function(o){o.skip()}},{key:"toString",value:function(){return"skip"}}])&&Uv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Oa(f){return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Oa(f)}function Vv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Oa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Oa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Oa(_)==="symbol"?_:String(_)),s)}var _}function zh(f,i){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zh(f,i)}function Tc(f){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Tc(f)}Kh.INSTANCE=new Kh;var jv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Tc(s);if(_){var S=Tc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Oa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,0)).channel=o,u}return i=y,(m=[{key:"execute",value:function(o){o._channel=this.channel}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.channel)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.channel===o.channel}},{key:"toString",value:function(){return"channel("+this.channel+")"}}])&&Vv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function wa(f){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},wa(f)}function $v(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(wa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),wa(_)==="symbol"?_:String(_)),s)}var _}function Wh(f,i){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Wh(f,i)}function Ac(f){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ac(f)}var Hv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Wh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ac(s);if(_){var S=Ac(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(wa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,1)).ruleIndex=o,S.actionIndex=u,S.isPositionDependent=!0,S}return i=y,(m=[{key:"execute",value:function(o){o.action(null,this.ruleIndex,this.actionIndex)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.ruleIndex,this.actionIndex)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.ruleIndex===o.ruleIndex&&this.actionIndex===o.actionIndex}}])&&$v(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ra(f){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ra(f)}function Gv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ra(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ra(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ra(_)==="symbol"?_:String(_)),s)}var _}function qh(f,i){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},qh(f,i)}function Cc(f){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Cc(f)}var Xh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&qh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Cc(s);if(_){var S=Cc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ra(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,3)}return i=y,(m=[{key:"execute",value:function(o){o.more()}},{key:"toString",value:function(){return"more"}}])&&Gv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Fa(f){return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fa(f)}function Kv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Fa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Fa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Fa(_)==="symbol"?_:String(_)),s)}var _}function Yh(f,i){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Yh(f,i)}function Dc(f){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Dc(f)}Xh.INSTANCE=new Xh;var zv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Yh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Dc(s);if(_){var S=Dc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Fa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,7)).type=o,u}return i=y,(m=[{key:"execute",value:function(o){o.type=this.type}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.type)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.type===o.type}},{key:"toString",value:function(){return"type("+this.type+")"}}])&&Kv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Na(f){return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Na(f)}function Wv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Na(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Na(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Na(_)==="symbol"?_:String(_)),s)}var _}function Zh(f,i){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Zh(f,i)}function kc(f){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},kc(f)}var qv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=kc(s);if(_){var S=kc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Na(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,5)).mode=o,u}return i=y,(m=[{key:"execute",value:function(o){o.pushMode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.mode===o.mode}},{key:"toString",value:function(){return"pushMode("+this.mode+")"}}])&&Wv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ia(f){return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ia(f)}function Xv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ia(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ia(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ia(_)==="symbol"?_:String(_)),s)}var _}function Qh(f,i){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Qh(f,i)}function Oc(f){return Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Oc(f)}var Jh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Qh(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Oc(s);if(_){var S=Oc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ia(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,4)}return i=y,(m=[{key:"execute",value:function(o){o.popMode()}},{key:"toString",value:function(){return"popMode"}}])&&Xv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Pa(f){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Pa(f)}function Yv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Pa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Pa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Pa(_)==="symbol"?_:String(_)),s)}var _}function e0(f,i){return e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},e0(f,i)}function wc(f){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},wc(f)}Jh.INSTANCE=new Jh;var Zv=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&e0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=wc(s);if(_){var S=wc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Pa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this,2)).mode=o,u}return i=y,(m=[{key:"execute",value:function(o){o.mode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.mode===o.mode}},{key:"toString",value:function(){return"mode("+this.mode+")"}}])&&Yv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ps(f){return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ps(f)}function Qv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ps(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ps(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ps(_)==="symbol"?_:String(_)),s)}var _}function Rc(f,i){var m=[];return m[f-1]=i,m.map(function(s){return i})}var t0=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),s==null&&(s=Ns.defaultOptions),this.deserializationOptions=s,this.stateFactories=null,this.actionFactories=null}var i,m;return i=f,m=[{key:"deserialize",value:function(s){var _=this.reset(s);this.checkVersion(_),_&&this.skipUUID();var l=this.readATN();this.readStates(l,_),this.readRules(l,_),this.readModes(l);var y=[];return this.readSets(l,y,this.readInt.bind(this)),_&&this.readSets(l,y,this.readInt32.bind(this)),this.readEdges(l,y),this.readDecisions(l),this.readLexerActions(l,_),this.markPrecedenceDecisions(l),this.verifyATN(l),this.deserializationOptions.generateRuleBypassTransitions&&l.grammarType===1&&(this.generateRuleBypassTransitions(l),this.verifyATN(l)),l}},{key:"reset",value:function(s){if((s.charCodeAt?s.charCodeAt(0):s[0])===3){var _=s.split("").map(function(l){var y=l.charCodeAt(0);return y>1?y-2:y+65534});return _[0]=s.charCodeAt(0),this.data=_,this.pos=0,!0}return this.data=s,this.pos=0,!1}},{key:"skipUUID",value:function(){for(var s=0;s++<8;)this.readInt()}},{key:"checkVersion",value:function(s){var _=this.readInt();if(!s&&_!==4)throw"Could not deserialize ATN with version "+_+" (expected 4)."}},{key:"readATN",value:function(){var s=this.readInt(),_=this.readInt();return new bn(s,_)}},{key:"readStates",value:function(s,_){for(var l,y,o,u=[],S=[],k=this.readInt(),C=0;C<k;C++){var U=this.readInt();if(U!==me.INVALID_TYPE){var fe=this.readInt();_&&fe===65535&&(fe=-1);var Ne=this.stateFactory(U,fe);if(U===me.LOOP_END){var Re=this.readInt();u.push([Ne,Re])}else if(Ne instanceof ga){var Ge=this.readInt();S.push([Ne,Ge])}s.addState(Ne)}else s.addState(null)}for(l=0;l<u.length;l++)(y=u[l])[0].loopBackState=s.states[y[1]];for(l=0;l<S.length;l++)(y=S[l])[0].endState=s.states[y[1]];var ct=this.readInt();for(l=0;l<ct;l++)o=this.readInt(),s.states[o].nonGreedy=!0;var We=this.readInt();for(l=0;l<We;l++)o=this.readInt(),s.states[o].isPrecedenceRule=!0}},{key:"readRules",value:function(s,_){var l,y=this.readInt();for(s.grammarType===0&&(s.ruleToTokenType=Rc(y,0)),s.ruleToStartState=Rc(y,0),l=0;l<y;l++){var o=this.readInt();if(s.ruleToStartState[l]=s.states[o],s.grammarType===0){var u=this.readInt();_&&u===65535&&(u=n.EOF),s.ruleToTokenType[l]=u}}for(s.ruleToStopState=Rc(y,0),l=0;l<s.states.length;l++){var S=s.states[l];S instanceof St&&(s.ruleToStopState[S.ruleIndex]=S,s.ruleToStartState[S.ruleIndex].stopState=S)}}},{key:"readModes",value:function(s){for(var _=this.readInt(),l=0;l<_;l++){var y=this.readInt();s.modeToStartState.push(s.states[y])}}},{key:"readSets",value:function(s,_,l){for(var y=this.readInt(),o=0;o<y;o++){var u=new J;_.push(u);var S=this.readInt();this.readInt()!==0&&u.addOne(-1);for(var k=0;k<S;k++){var C=l(),U=l();u.addRange(C,U)}}}},{key:"readEdges",value:function(s,_){var l,y,o,u,S,k=this.readInt();for(l=0;l<k;l++){var C=this.readInt(),U=this.readInt(),fe=this.readInt(),Ne=this.readInt(),Re=this.readInt(),Ge=this.readInt();u=this.edgeFactory(s,fe,C,U,Ne,Re,Ge,_),s.states[C].addTransition(u)}for(l=0;l<s.states.length;l++)for(o=s.states[l],y=0;y<o.transitions.length;y++){var ct=o.transitions[y];if(ct instanceof Dt){var We=-1;s.ruleToStartState[ct.target.ruleIndex].isPrecedenceRule&&ct.precedence===0&&(We=ct.target.ruleIndex),u=new Rs(ct.followState,We),s.ruleToStopState[ct.target.ruleIndex].addTransition(u)}}for(l=0;l<s.states.length;l++){if((o=s.states[l])instanceof ga){if(o.endState===null||o.endState.startState!==null)throw"IllegalState";o.endState.startState=o}if(o instanceof A_)for(y=0;y<o.transitions.length;y++)(S=o.transitions[y].target)instanceof Oh&&(S.loopBackState=o);else if(o instanceof Th)for(y=0;y<o.transitions.length;y++)(S=o.transitions[y].target)instanceof Ko&&(S.loopBackState=o)}}},{key:"readDecisions",value:function(s){for(var _=this.readInt(),l=0;l<_;l++){var y=this.readInt(),o=s.states[y];s.decisionToState.push(o),o.decision=l}}},{key:"readLexerActions",value:function(s,_){if(s.grammarType===0){var l=this.readInt();s.lexerActions=Rc(l,null);for(var y=0;y<l;y++){var o=this.readInt(),u=this.readInt();_&&u===65535&&(u=-1);var S=this.readInt();_&&S===65535&&(S=-1),s.lexerActions[y]=this.lexerActionFactory(o,u,S)}}}},{key:"generateRuleBypassTransitions",value:function(s){var _,l=s.ruleToStartState.length;for(_=0;_<l;_++)s.ruleToTokenType[_]=s.maxTokenType+_+1;for(_=0;_<l;_++)this.generateRuleBypassTransition(s,_)}},{key:"generateRuleBypassTransition",value:function(s,_){var l,y,o=new B_;o.ruleIndex=_,s.addState(o);var u=new ph;u.ruleIndex=_,s.addState(u),o.endState=u,s.defineDecisionState(o),u.startState=o;var S=null,k=null;if(s.ruleToStartState[_].isPrecedenceRule){for(k=null,l=0;l<s.states.length;l++)if(y=s.states[l],this.stateIsEndStateFor(y,_)){k=y,S=y.loopBackState.transitions[0];break}if(S===null)throw"Couldn't identify final state of the precedence rule prefix section."}else k=s.ruleToStopState[_];for(l=0;l<s.states.length;l++){y=s.states[l];for(var C=0;C<y.transitions.length;C++){var U=y.transitions[C];U!==S&&U.target===k&&(U.target=u)}}for(var fe=s.ruleToStartState[_],Ne=fe.transitions.length;Ne>0;)o.addTransition(fe.transitions[Ne-1]),fe.transitions=fe.transitions.slice(-1);s.ruleToStartState[_].addTransition(new Rs(o)),u.addTransition(new Rs(k));var Re=new c_;s.addState(Re),Re.addTransition(new Bh(u,s.ruleToTokenType[_])),o.addTransition(new Rs(Re))}},{key:"stateIsEndStateFor",value:function(s,_){if(s.ruleIndex!==_||!(s instanceof Ko))return null;var l=s.transitions[s.transitions.length-1].target;return l instanceof va&&l.epsilonOnlyTransitions&&l.transitions[0].target instanceof St?s:null}},{key:"markPrecedenceDecisions",value:function(s){for(var _=0;_<s.states.length;_++){var l=s.states[_];if(l instanceof Ko&&s.ruleToStartState[l.ruleIndex].isPrecedenceRule){var y=l.transitions[l.transitions.length-1].target;y instanceof va&&y.epsilonOnlyTransitions&&y.transitions[0].target instanceof St&&(l.isPrecedenceDecision=!0)}}}},{key:"verifyATN",value:function(s){if(this.deserializationOptions.verifyATN)for(var _=0;_<s.states.length;_++){var l=s.states[_];if(l!==null)if(this.checkCondition(l.epsilonOnlyTransitions||l.transitions.length<=1),l instanceof Oh)this.checkCondition(l.loopBackState!==null);else if(l instanceof Ko)if(this.checkCondition(l.loopBackState!==null),this.checkCondition(l.transitions.length===2),l.transitions[0].target instanceof Fh)this.checkCondition(l.transitions[1].target instanceof va),this.checkCondition(!l.nonGreedy);else{if(!(l.transitions[0].target instanceof va))throw"IllegalState";this.checkCondition(l.transitions[1].target instanceof Fh),this.checkCondition(l.nonGreedy)}else l instanceof Th?(this.checkCondition(l.transitions.length===1),this.checkCondition(l.transitions[0].target instanceof Ko)):l instanceof va?this.checkCondition(l.loopBackState!==null):l instanceof b_?this.checkCondition(l.stopState!==null):l instanceof ga?this.checkCondition(l.endState!==null):l instanceof ph?this.checkCondition(l.startState!==null):l instanceof ya?this.checkCondition(l.transitions.length<=1||l.decision>=0):this.checkCondition(l.transitions.length<=1||l instanceof St)}}},{key:"checkCondition",value:function(s,_){if(!s)throw _==null&&(_="IllegalState"),_}},{key:"readInt",value:function(){return this.data[this.pos++]}},{key:"readInt32",value:function(){return this.readInt()|this.readInt()<<16}},{key:"edgeFactory",value:function(s,_,l,y,o,u,S,k){var C=s.states[y];switch(_){case be.EPSILON:return new Rs(C);case be.RANGE:return new Ov(C,S!==0?n.EOF:o,u);case be.RULE:return new Dt(s.states[o],u,S,C);case be.PREDICATE:return new U_(C,o,u,S!==0);case be.PRECEDENCE:return new Bv(C,o);case be.ATOM:return new Bh(C,S!==0?n.EOF:o);case be.ACTION:return new L_(C,o,u,S!==0);case be.SET:return new ir(C,k[o]);case be.NOT_SET:return new Ht(C,k[o]);case be.WILDCARD:return new On(C);default:throw"The specified transition type: "+_+" is not valid."}}},{key:"stateFactory",value:function(s,_){if(this.stateFactories===null){var l=[];l[me.INVALID_TYPE]=null,l[me.BASIC]=function(){return new c_},l[me.RULE_START]=function(){return new b_},l[me.BLOCK_START]=function(){return new B_},l[me.PLUS_BLOCK_START]=function(){return new Oh},l[me.STAR_BLOCK_START]=function(){return new Fh},l[me.TOKEN_START]=function(){return new Cv},l[me.RULE_STOP]=function(){return new St},l[me.BLOCK_END]=function(){return new ph},l[me.STAR_LOOP_BACK]=function(){return new Th},l[me.STAR_LOOP_ENTRY]=function(){return new Ko},l[me.PLUS_LOOP_BACK]=function(){return new A_},l[me.LOOP_END]=function(){return new va},this.stateFactories=l}if(s>this.stateFactories.length||this.stateFactories[s]===null)throw"The specified state type "+s+" is not valid.";var y=this.stateFactories[s]();if(y!==null)return y.ruleIndex=_,y}},{key:"lexerActionFactory",value:function(s,_,l){if(this.actionFactories===null){var y=[];y[0]=function(o,u){return new jv(o)},y[1]=function(o,u){return new Hv(o,u)},y[2]=function(o,u){return new Zv(o)},y[3]=function(o,u){return Xh.INSTANCE},y[4]=function(o,u){return Jh.INSTANCE},y[5]=function(o,u){return new qv(o)},y[6]=function(o,u){return Kh.INSTANCE},y[7]=function(o,u){return new zv(o)},this.actionFactories=y}if(s>this.actionFactories.length||this.actionFactories[s]===null)throw"The specified lexer action type "+s+" is not valid.";return this.actionFactories[s](_,l)}}],m&&Qv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Bs(f){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Bs(f)}function Jv(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Bs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Bs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Bs(_)==="symbol"?_:String(_)),s)}var _}var Ls=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"syntaxError",value:function(s,_,l,y,o,u){}},{key:"reportAmbiguity",value:function(s,_,l,y,o,u,S){}},{key:"reportAttemptingFullContext",value:function(s,_,l,y,o,u){}},{key:"reportContextSensitivity",value:function(s,_,l,y,o,u){}}])&&Jv(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ba(f){return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ba(f)}function eb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ba(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ba(_)==="symbol"?_:String(_)),s)}var _}function n0(f,i){return n0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},n0(f,i)}function Fc(f){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Fc(f)}var r0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&n0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Fc(s);if(_){var S=Fc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ba(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this)}return i=y,(m=[{key:"syntaxError",value:function(o,u,S,k,C,U){console.error("line "+S+":"+k+" "+C)}}])&&eb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function La(f){return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},La(f)}function tb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(La(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(La(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),La(_)==="symbol"?_:String(_)),s)}var _}function i0(f,i){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},i0(f,i)}function $_(f,i){if(i&&(La(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H_(f)}function H_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Nc(f){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Nc(f)}r0.INSTANCE=new r0;var nb=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&i0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Nc(s);if(_){var S=Nc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return $_(this,o)});function y(o){var u;if(function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),u=l.call(this),o===null)throw"delegates";return u.delegates=o,$_(u,H_(u))}return i=y,m=[{key:"syntaxError",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.syntaxError(o,u,S,k,C,U)})}},{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){this.delegates.map(function(Ne){return Ne.reportAmbiguity(o,u,S,k,C,U,fe)})}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.reportAttemptingFullContext(o,u,S,k,C,U)})}},{key:"reportContextSensitivity",value:function(o,u,S,k,C,U){this.delegates.map(function(fe){return fe.reportContextSensitivity(o,u,S,k,C,U)})}}],m&&tb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function Ms(f){return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ms(f)}function rb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ms(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ms(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ms(_)==="symbol"?_:String(_)),s)}var _}var Ic=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this._listeners=[r0.INSTANCE],this._interp=null,this._stateNumber=-1}var i,m;return i=f,(m=[{key:"checkVersion",value:function(s){var _="4.13.0";_!==s&&console.log("ANTLR runtime and generated code versions disagree: "+_+"!="+s)}},{key:"addErrorListener",value:function(s){this._listeners.push(s)}},{key:"removeErrorListeners",value:function(){this._listeners=[]}},{key:"getLiteralNames",value:function(){return Object.getPrototypeOf(this).constructor.literalNames||[]}},{key:"getSymbolicNames",value:function(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}},{key:"getTokenNames",value:function(){if(!this.tokenNames){var s=this.getLiteralNames(),_=this.getSymbolicNames(),l=s.length>_.length?s.length:_.length;this.tokenNames=[];for(var y=0;y<l;y++)this.tokenNames[y]=s[y]||_[y]||"<INVALID"}return this.tokenNames}},{key:"getTokenTypeMap",value:function(){var s=this.getTokenNames();if(s===null)throw"The current recognizer does not provide a list of token names.";var _=this.tokenTypeMapCache[s];return _===void 0&&((_=s.reduce(function(l,y,o){l[y]=o})).EOF=n.EOF,this.tokenTypeMapCache[s]=_),_}},{key:"getRuleIndexMap",value:function(){var s=this.ruleNames;if(s===null)throw"The current recognizer does not provide a list of rule names.";var _=this.ruleIndexMapCache[s];return _===void 0&&(_=s.reduce(function(l,y,o){l[y]=o}),this.ruleIndexMapCache[s]=_),_}},{key:"getTokenType",value:function(s){var _=this.getTokenTypeMap()[s];return _!==void 0?_:n.INVALID_TYPE}},{key:"getErrorHeader",value:function(s){return"line "+s.getOffendingToken().line+":"+s.getOffendingToken().column}},{key:"getTokenErrorDisplay",value:function(s){if(s===null)return"<no token>";var _=s.text;return _===null&&(_=s.type===n.EOF?"<EOF>":"<"+s.type+">"),"'"+(_=_.replace(`
2
+ `,"\\n").replace("\r","\\r").replace(" ","\\t"))+"'"}},{key:"getErrorListenerDispatch",value:function(){return new nb(this._listeners)}},{key:"sempred",value:function(s,_,l){return!0}},{key:"precpred",value:function(s,_){return!0}},{key:"atn",get:function(){return this._interp.atn}},{key:"state",get:function(){return this._stateNumber},set:function(s){this._stateNumber=s}}])&&rb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ma(f){return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ma(f)}function ib(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ma(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ma(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ma(_)==="symbol"?_:String(_)),s)}var _}function o0(f,i){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},o0(f,i)}function Pc(f){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Pc(f)}Ic.tokenTypeMapCache={},Ic.ruleIndexMapCache={};var Us=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&o0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Pc(s);if(_){var S=Pc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ma(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k,C){var U;return function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")}(this,y),(U=l.call(this)).source=o!==void 0?o:y.EMPTY_SOURCE,U.type=u!==void 0?u:null,U.channel=S!==void 0?S:n.DEFAULT_CHANNEL,U.start=k!==void 0?k:-1,U.stop=C!==void 0?C:-1,U.tokenIndex=-1,U.source[0]!==null?(U.line=o[0].line,U.column=o[0].column):U.column=-1,U}return i=y,(m=[{key:"clone",value:function(){var o=new y(this.source,this.type,this.channel,this.start,this.stop);return o.tokenIndex=this.tokenIndex,o.line=this.line,o.column=this.column,o.text=this.text,o}},{key:"cloneWithType",value:function(o){var u=new y(this.source,o,this.channel,this.start,this.stop);return u.tokenIndex=this.tokenIndex,u.line=this.line,u.column=this.column,o===n.EOF&&(u.text=""),u}},{key:"toString",value:function(){var o=this.text;return o=o!==null?o.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}},{key:"text",get:function(){if(this._text!==null)return this._text;var o=this.getInputStream();if(o===null)return null;var u=o.size;return this.start<u&&this.stop<u?o.getText(this.start,this.stop):"<EOF>"},set:function(o){this._text=o}}])&&ib(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(n);function Ua(f){return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ua(f)}function a0(f,i){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},a0(f,i)}function Bc(f){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Bc(f)}function G_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ua(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ua(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ua(_)==="symbol"?_:String(_)),s)}var _}function K_(f,i,m){return i&&G_(f.prototype,i),m&&G_(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function z_(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}Us.EMPTY_SOURCE=[null,null];var s0=function(f){(function(l,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(y&&y.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),y&&a0(l,y)})(_,f);var i,m,s=(i=_,m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var l,y=Bc(i);if(m){var o=Bc(this).constructor;l=Reflect.construct(y,arguments,o)}else l=y.apply(this,arguments);return function(u,S){if(S&&(Ua(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}(u)}(this,l)});function _(l){var y;return z_(this,_),(y=s.call(this)).copyText=l!==void 0&&l,y}return K_(_,[{key:"create",value:function(l,y,o,u,S,k,C,U){var fe=new Us(l,y,u,S,k);return fe.line=C,fe.column=U,o!==null?fe.text=o:this.copyText&&l[1]!==null&&(fe.text=l[1].getText(S,k)),fe}},{key:"createThin",value:function(l,y){var o=new Us(null,l);return o.text=y,o}}]),_}(K_(function f(){z_(this,f)}));function Va(f){return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Va(f)}function ob(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Va(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Va(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Va(_)==="symbol"?_:String(_)),s)}var _}function W_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function u0(f){var i=typeof Map=="function"?new Map:void 0;return u0=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,_)}function _(){return c0(m,arguments,js(this).constructor)}return _.prototype=Object.create(m.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),Vs(_,m)},u0(f)}function c0(f,i,m){return c0=q_()?Reflect.construct.bind():function(s,_,l){var y=[null];y.push.apply(y,_);var o=new(Function.bind.apply(s,y));return l&&Vs(o,l.prototype),o},c0.apply(null,arguments)}function q_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vs(f,i){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Vs(f,i)}function js(f){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},js(f)}s0.DEFAULT=new s0;var zo=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Vs(o,u)})(y,f);var i,m,s,_,l=(s=y,_=q_(),function(){var o,u=js(s);if(_){var S=js(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Va(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W_(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),u=l.call(this,o.message),Error.captureStackTrace&&Error.captureStackTrace(W_(u),y),u.message=o.message,u.recognizer=o.recognizer,u.input=o.input,u.ctx=o.ctx,u.offendingToken=null,u.offendingState=-1,u.recognizer!==null&&(u.offendingState=u.recognizer.state),u}return i=y,(m=[{key:"getExpectedTokens",value:function(){return this.recognizer!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}},{key:"toString",value:function(){return this.message}}])&&ob(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(u0(Error));function ja(f){return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ja(f)}function ab(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ja(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ja(_)==="symbol"?_:String(_)),s)}var _}function l0(f,i){return l0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},l0(f,i)}function Lc(f){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Lc(f)}var f0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&l0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Lc(s);if(_){var S=Lc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ja(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,{message:"",recognizer:o,input:u,ctx:null})).startIndex=S,C.deadEndConfigs=k,C}return i=y,(m=[{key:"toString",value:function(){var o="";return this.startIndex>=0&&this.startIndex<this.input.size&&(o=this.input.getText(new _e(this.startIndex,this.startIndex))),"LexerNoViableAltException"+o}}])&&ab(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(zo);function $a(f){return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$a(f)}function sb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if($a(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($a(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$a(_)==="symbol"?_:String(_)),s)}var _}function h0(f,i){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},h0(f,i)}function X_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Mc(f){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Mc(f)}var hr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&h0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Mc(s);if(_){var S=Mc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&($a(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X_(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this))._input=o,u._factory=s0.DEFAULT,u._tokenFactorySourcePair=[X_(u),o],u._interp=null,u._token=null,u._tokenStartCharIndex=-1,u._tokenStartLine=-1,u._tokenStartColumn=-1,u._hitEOF=!1,u._channel=n.DEFAULT_CHANNEL,u._type=n.INVALID_TYPE,u._modeStack=[],u._mode=y.DEFAULT_MODE,u._text=null,u}return i=y,(m=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=y.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}},{key:"nextToken",value:function(){if(this._input===null)throw"nextToken requires a non-null input stream.";var o=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var u=!1;;){this._type=n.INVALID_TYPE;var S=y.SKIP;try{S=this._interp.match(this._input,this._mode)}catch(k){if(!(k instanceof zo))throw console.log(k.stack),k;this.notifyListeners(k),this.recover(k)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=S),this._type===y.SKIP){u=!0;break}if(this._type!==y.MORE)break}if(!u)return this._token===null&&this.emit(),this._token}}finally{this._input.release(o)}}},{key:"skip",value:function(){this._type=y.SKIP}},{key:"more",value:function(){this._type=y.MORE}},{key:"mode",value:function(o){this._mode=o}},{key:"pushMode",value:function(o){this._interp.debug&&console.log("pushMode "+o),this._modeStack.push(this._mode),this.mode(o)}},{key:"popMode",value:function(){if(this._modeStack.length===0)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}},{key:"emitToken",value:function(o){this._token=o}},{key:"emit",value:function(){var o=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(o),o}},{key:"emitEOF",value:function(){var o=this.column,u=this.line,S=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,u,o);return this.emitToken(S),S}},{key:"getCharIndex",value:function(){return this._input.index}},{key:"getAllTokens",value:function(){for(var o=[],u=this.nextToken();u.type!==n.EOF;)o.push(u),u=this.nextToken();return o}},{key:"notifyListeners",value:function(o){var u=this._tokenStartCharIndex,S=this._input.index,k=this._input.getText(u,S),C="token recognition error at: '"+this.getErrorDisplay(k)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,C,o)}},{key:"getErrorDisplay",value:function(o){for(var u=[],S=0;S<o.length;S++)u.push(o[S]);return u.join("")}},{key:"getErrorDisplayForChar",value:function(o){return o.charCodeAt(0)===n.EOF?"<EOF>":o===`
3
+ `?"\\n":o===" "?"\\t":o==="\r"?"\\r":o}},{key:"getCharErrorDisplay",value:function(o){return"'"+this.getErrorDisplayForChar(o)+"'"}},{key:"recover",value:function(o){this._input.LA(1)!==n.EOF&&(o instanceof f0?this._interp.consume(this._input):this._input.consume())}},{key:"inputStream",get:function(){return this._input},set:function(o){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=o,this._tokenFactorySourcePair=[this,this._input]}},{key:"sourceName",get:function(){return this._input.sourceName}},{key:"type",get:function(){return this._type},set:function(o){this._type=o}},{key:"line",get:function(){return this._interp.line},set:function(o){this._interp.line=o}},{key:"column",get:function(){return this._interp.column},set:function(o){this._interp.column=o}},{key:"text",get:function(){return this._text!==null?this._text:this._interp.getText(this._input)},set:function(o){this._text=o}}])&&sb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ic);function $s(f){return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$s(f)}function ub(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if($s(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($s(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$s(_)==="symbol"?_:String(_)),s)}var _}function cb(f){return f.hashCodeForConfigSet()}function lb(f,i){return f===i||f!==null&&i!==null&&f.equalsForConfigSet(i)}hr.DEFAULT_MODE=0,hr.MORE=-2,hr.SKIP=-3,hr.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,hr.HIDDEN=n.HIDDEN_CHANNEL,hr.MIN_CHAR_VALUE=0,hr.MAX_CHAR_VALUE=1114111;var Wr=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.configLookup=new g(cb,lb),this.fullCtx=s===void 0||s,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}var i,m;return i=f,(m=[{key:"add",value:function(s,_){if(_===void 0&&(_=null),this.readOnly)throw"This set is readonly";s.semanticContext!==N.NONE&&(this.hasSemanticContext=!0),s.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(s);if(l===s)return this.cachedHashCode=-1,this.configs.push(s),!0;var y=!this.fullCtx,o=ma(l.context,s.context,y,_);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,s.reachesIntoOuterContext),s.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=o,!0}},{key:"getStates",value:function(){for(var s=new g,_=0;_<this.configs.length;_++)s.add(this.configs[_].state);return s}},{key:"getPredicates",value:function(){for(var s=[],_=0;_<this.configs.length;_++){var l=this.configs[_].semanticContext;l!==N.NONE&&s.push(l.semanticContext)}return s}},{key:"optimizeConfigs",value:function(s){if(this.readOnly)throw"This set is readonly";if(this.configLookup.length!==0)for(var _=0;_<this.configs.length;_++){var l=this.configs[_];l.context=s.getCachedContext(l.context)}}},{key:"addAll",value:function(s){for(var _=0;_<s.length;_++)this.add(s[_]);return!1}},{key:"equals",value:function(s){return this===s||s instanceof f&&r(this.configs,s.configs)&&this.fullCtx===s.fullCtx&&this.uniqueAlt===s.uniqueAlt&&this.conflictingAlts===s.conflictingAlts&&this.hasSemanticContext===s.hasSemanticContext&&this.dipsIntoOuterContext===s.dipsIntoOuterContext}},{key:"hashCode",value:function(){var s=new b;return s.update(this.configs),s.finish()}},{key:"updateHashCode",value:function(s){this.readOnly?(this.cachedHashCode===-1&&(this.cachedHashCode=this.hashCode()),s.update(this.cachedHashCode)):s.update(this.hashCode())}},{key:"isEmpty",value:function(){return this.configs.length===0}},{key:"contains",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(s)}},{key:"containsFast",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(s)}},{key:"clear",value:function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new g}},{key:"setReadonly",value:function(s){this.readOnly=s,s&&(this.configLookup=null)}},{key:"toString",value:function(){return F(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==bn.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}},{key:"items",get:function(){return this.configs}},{key:"length",get:function(){return this.configs.length}}])&&ub(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Hs(f){return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Hs(f)}function fb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Hs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Hs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Hs(_)==="symbol"?_:String(_)),s)}var _}var Wo=function(){function f(s,_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),s===null&&(s=-1),_===null&&(_=new Wr),this.stateNumber=s,this.configs=_,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}var i,m;return i=f,(m=[{key:"getAltSet",value:function(){var s=new g;if(this.configs!==null)for(var _=0;_<this.configs.length;_++){var l=this.configs[_];s.add(l.alt)}return s.length===0?null:s}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.configs.equals(s.configs)}},{key:"toString",value:function(){var s=this.stateNumber+":"+this.configs;return this.isAcceptState&&(s+="=>",this.predicates!==null?s+=this.predicates:s+=this.prediction),s}},{key:"hashCode",value:function(){var s=new b;return s.update(this.configs),s.finish()}}])&&fb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Gs(f){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gs(f)}function hb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Gs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Gs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Gs(_)==="symbol"?_:String(_)),s)}var _}var Ni=function(){function f(s,_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),this.atn=s,this.sharedContextCache=_,this}var i,m;return i=f,m=[{key:"getCachedContext",value:function(s){if(this.sharedContextCache===null)return s;var _=new io;return ec(s,this.sharedContextCache,_)}}],m&&hb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function p0(f){return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},p0(f)}function d0(f,i){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},d0(f,i)}function Uc(f){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Uc(f)}Ni.ERROR=new Wo(2147483647,new Wr);var Y_=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&d0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Uc(m);if(s){var u=Uc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(p0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(y=_.call(this)).configLookup=new g,y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(Wr);function Ha(f){return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ha(f)}function pb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ha(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ha(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ha(_)==="symbol"?_:String(_)),s)}var _}function _0(){return _0=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,y){for(;!Object.prototype.hasOwnProperty.call(l,y)&&(l=Ga(l))!==null;);return l}(f,i);if(s){var _=Object.getOwnPropertyDescriptor(s,i);return _.get?_.get.call(arguments.length<3?f:m):_.value}},_0.apply(this,arguments)}function m0(f,i){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},m0(f,i)}function Z_(f,i){if(i&&(Ha(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q_(f)}function Q_(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ga(f){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ga(f)}var Ii=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&m0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ga(s);if(_){var S=Ga(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return Z_(this,o)});function y(o,u){var S;(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,y),S=l.call(this,o,u);var k=o.lexerActionExecutor||null;return S.lexerActionExecutor=k||(u!==null?u.lexerActionExecutor:null),S.passedThroughNonGreedyDecision=u!==null&&S.checkNonGreedyDecision(u,S.state),S.hashCodeForConfigSet=y.prototype.hashCode,S.equalsForConfigSet=y.prototype.equals,Z_(S,Q_(S))}return i=y,(m=[{key:"updateHashCode",value:function(o){o.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.passedThroughNonGreedyDecision===o.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(o.lexerActionExecutor):!o.lexerActionExecutor)&&_0(Ga(y.prototype),"equals",this).call(this,o)}},{key:"checkNonGreedyDecision",value:function(o,u){return o.passedThroughNonGreedyDecision||u instanceof ya&&u.nonGreedy}}])&&pb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ce);function Ka(f){return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ka(f)}function db(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ka(_)==="symbol"?_:String(_)),s)}var _}function y0(f,i){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},y0(f,i)}function Vc(f){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Vc(f)}var g0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&y0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Vc(s);if(_){var S=Vc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ka(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,u.actionType)).offset=o,S.action=u,S.isPositionDependent=!0,S}return i=y,(m=[{key:"execute",value:function(o){this.action.execute(o)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.offset,this.action)}},{key:"equals",value:function(o){return this===o||o instanceof y&&this.offset===o.offset&&this.action===o.action}}])&&db(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(so);function Ks(f){return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ks(f)}function J_(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ks(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ks(_)==="symbol"?_:String(_)),s)}var _}var _b=function(){function f(_){return function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")}(this,f),this.lexerActions=_===null?[]:_,this.cachedHashCode=b.hashStuff(_),this}var i,m,s;return i=f,s=[{key:"append",value:function(_,l){return new f(_===null?[l]:_.lexerActions.concat([l]))}}],(m=[{key:"fixOffsetBeforeMatch",value:function(_){for(var l=null,y=0;y<this.lexerActions.length;y++)!this.lexerActions[y].isPositionDependent||this.lexerActions[y]instanceof g0||(l===null&&(l=this.lexerActions.concat([])),l[y]=new g0(_,this.lexerActions[y]));return l===null?this:new f(l)}},{key:"execute",value:function(_,l,y){var o=!1,u=l.index;try{for(var S=0;S<this.lexerActions.length;S++){var k=this.lexerActions[S];if(k instanceof g0){var C=k.offset;l.seek(y+C),k=k.action,o=y+C!==u}else k.isPositionDependent&&(l.seek(u),o=!1);k.execute(_)}}finally{o&&l.seek(u)}}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(_){_.update(this.cachedHashCode)}},{key:"equals",value:function(_){if(this===_)return!0;if(_ instanceof f){if(this.cachedHashCode!=_.cachedHashCode||this.lexerActions.length!=_.lexerActions.length)return!1;for(var l=this.lexerActions.length,y=0;y<l;++y)if(!this.lexerActions[y].equals(_.lexerActions[y]))return!1;return!0}return!1}}])&&J_(i.prototype,m),s&&J_(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function v0(f,i){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},v0(f,i)}function jc(f){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},jc(f)}function za(f){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},za(f)}function em(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function tm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),za(_)==="symbol"?_:String(_)),s)}var _}function nm(f,i,m){return i&&tm(f.prototype,i),m&&tm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function rm(f){f.index=-1,f.line=0,f.column=-1,f.dfaState=null}var mb=function(){function f(){em(this,f),rm(this)}return nm(f,[{key:"reset",value:function(){rm(this)}}]),f}(),Wa=function(f){(function(l,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(y&&y.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),y&&v0(l,y)})(_,f);var i,m,s=(i=_,m=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var l,y=jc(i);if(m){var o=jc(this).constructor;l=Reflect.construct(y,arguments,o)}else l=y.apply(this,arguments);return function(u,S){if(S&&(za(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}(u)}(this,l)});function _(l,y,o,u){var S;return em(this,_),(S=s.call(this,y,u)).decisionToDFA=o,S.recog=l,S.startIndex=-1,S.line=1,S.column=0,S.mode=hr.DEFAULT_MODE,S.prevAccept=new mb,S}return nm(_,[{key:"copyState",value:function(l){this.column=l.column,this.line=l.line,this.mode=l.mode,this.startIndex=l.startIndex}},{key:"match",value:function(l,y){this.mode=y;var o=l.mark();try{this.startIndex=l.index,this.prevAccept.reset();var u=this.decisionToDFA[y];return u.s0===null?this.matchATN(l):this.execATN(l,u.s0)}finally{l.release(o)}}},{key:"reset",value:function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=hr.DEFAULT_MODE}},{key:"matchATN",value:function(l){var y=this.atn.modeToStartState[this.mode];_.debug&&console.log("matchATN mode "+this.mode+" start: "+y);var o=this.mode,u=this.computeStartState(l,y),S=u.hasSemanticContext;u.hasSemanticContext=!1;var k=this.addDFAState(u);S||(this.decisionToDFA[this.mode].s0=k);var C=this.execATN(l,k);return _.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[o].toLexerString()),C}},{key:"execATN",value:function(l,y){_.debug&&console.log("start state closure="+y.configs),y.isAcceptState&&this.captureSimState(this.prevAccept,l,y);for(var o=l.LA(1),u=y;;){_.debug&&console.log("execATN loop starting closure: "+u.configs);var S=this.getExistingTargetState(u,o);if(S===null&&(S=this.computeTargetState(l,u,o)),S===Ni.ERROR||(o!==n.EOF&&this.consume(l),S.isAcceptState&&(this.captureSimState(this.prevAccept,l,S),o===n.EOF)))break;o=l.LA(1),u=S}return this.failOrAccept(this.prevAccept,l,u.configs,o)}},{key:"getExistingTargetState",value:function(l,y){if(l.edges===null||y<_.MIN_DFA_EDGE||y>_.MAX_DFA_EDGE)return null;var o=l.edges[y-_.MIN_DFA_EDGE];return o===void 0&&(o=null),_.debug&&o!==null&&console.log("reuse state "+l.stateNumber+" edge to "+o.stateNumber),o}},{key:"computeTargetState",value:function(l,y,o){var u=new Y_;return this.getReachableConfigSet(l,y.configs,u,o),u.items.length===0?(u.hasSemanticContext||this.addDFAEdge(y,o,Ni.ERROR),Ni.ERROR):this.addDFAEdge(y,o,null,u)}},{key:"failOrAccept",value:function(l,y,o,u){if(this.prevAccept.dfaState!==null){var S=l.dfaState.lexerActionExecutor;return this.accept(y,S,this.startIndex,l.index,l.line,l.column),l.dfaState.prediction}if(u===n.EOF&&y.index===this.startIndex)return n.EOF;throw new f0(this.recog,y,this.startIndex,o)}},{key:"getReachableConfigSet",value:function(l,y,o,u){for(var S=bn.INVALID_ALT_NUMBER,k=0;k<y.items.length;k++){var C=y.items[k],U=C.alt===S;if(!U||!C.passedThroughNonGreedyDecision){_.debug&&console.log(`testing %s at %s
4
4
  `,this.getTokenName(u),C.toString(this.recog,!0));for(var fe=0;fe<C.state.transitions.length;fe++){var Ne=C.state.transitions[fe],Re=this.getReachableTarget(Ne,u);if(Re!==null){var Ge=C.lexerActionExecutor;Ge!==null&&(Ge=Ge.fixOffsetBeforeMatch(l.index-this.startIndex));var ct=u===n.EOF,We=new Ii({state:Re,lexerActionExecutor:Ge},C);this.closure(l,We,o,U,!0,ct)&&(S=C.alt)}}}}}},{key:"accept",value:function(l,y,o,u,S,k){_.debug&&console.log(`ACTION %s
5
5
  `,y),l.seek(u),this.line=S,this.column=k,y!==null&&this.recog!==null&&y.execute(this.recog,l,o)}},{key:"getReachableTarget",value:function(l,y){return l.matches(y,0,hr.MAX_CHAR_VALUE)?l.target:null}},{key:"computeStartState",value:function(l,y){for(var o=st.EMPTY,u=new Y_,S=0;S<y.transitions.length;S++){var k=y.transitions[S].target,C=new Ii({state:k,alt:S+1,context:o},null);this.closure(l,C,u,!1,!1,!1)}return u}},{key:"closure",value:function(l,y,o,u,S,k){var C=null;if(_.debug&&console.log("closure("+y.toString(this.recog,!0)+")"),y.state instanceof St){if(_.debug&&(this.recog!==null?console.log(`closure at %s rule stop %s
6
6
  `,this.recog.ruleNames[y.state.ruleIndex],y):console.log(`closure at rule stop %s
7
- `,y)),y.context===null||y.context.hasEmptyPath()){if(y.context===null||y.context.isEmpty())return o.add(y),!0;o.add(new Ii({state:y.state,context:st.EMPTY},y)),u=!0}if(y.context!==null&&!y.context.isEmpty()){for(var U=0;U<y.context.length;U++)if(y.context.getReturnState(U)!==st.EMPTY_RETURN_STATE){var fe=y.context.getParent(U),Ne=this.atn.states[y.context.getReturnState(U)];C=new Ii({state:Ne,context:fe},y),u=this.closure(l,C,o,u,S,k)}}return u}y.state.epsilonOnlyTransitions||u&&y.passedThroughNonGreedyDecision||o.add(y);for(var Re=0;Re<y.state.transitions.length;Re++){var Ge=y.state.transitions[Re];(C=this.getEpsilonTarget(l,y,Ge,o,S,k))!==null&&(u=this.closure(l,C,o,u,S,k))}return u}},{key:"getEpsilonTarget",value:function(l,y,o,u,S,k){var C=null;if(o.serializationType===be.RULE){var U=_t.create(y.context,o.followState.stateNumber);C=new Ii({state:o.target,context:U},y)}else{if(o.serializationType===be.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(o.serializationType===be.PREDICATE)_.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),u.hasSemanticContext=!0,this.evaluatePredicate(l,o.ruleIndex,o.predIndex,S)&&(C=new Ii({state:o.target},y));else if(o.serializationType===be.ACTION)if(y.context===null||y.context.hasEmptyPath()){var fe=_1.append(y.lexerActionExecutor,this.atn.lexerActions[o.actionIndex]);C=new Ii({state:o.target,lexerActionExecutor:fe},y)}else C=new Ii({state:o.target},y);else o.serializationType===be.EPSILON?C=new Ii({state:o.target},y):o.serializationType!==be.ATOM&&o.serializationType!==be.RANGE&&o.serializationType!==be.SET||k&&o.matches(n.EOF,0,hr.MAX_CHAR_VALUE)&&(C=new Ii({state:o.target},y))}return C}},{key:"evaluatePredicate",value:function(l,y,o,u){if(this.recog===null)return!0;if(!u)return this.recog.sempred(null,y,o);var S=this.column,k=this.line,C=l.index,U=l.mark();try{return this.consume(l),this.recog.sempred(null,y,o)}finally{this.column=S,this.line=k,l.seek(C),l.release(U)}}},{key:"captureSimState",value:function(l,y,o){l.index=y.index,l.line=this.line,l.column=this.column,l.dfaState=o}},{key:"addDFAEdge",value:function(l,y,o,u){if(o===void 0&&(o=null),u===void 0&&(u=null),o===null&&u!==null){var S=u.hasSemanticContext;if(u.hasSemanticContext=!1,o=this.addDFAState(u),S)return o}return y<_.MIN_DFA_EDGE||y>_.MAX_DFA_EDGE||(_.debug&&console.log("EDGE "+l+" -> "+o+" upon "+y),l.edges===null&&(l.edges=[]),l.edges[y-_.MIN_DFA_EDGE]=o),o}},{key:"addDFAState",value:function(l){for(var y=new Wo(null,l),o=null,u=0;u<l.items.length;u++){var S=l.items[u];if(S.state instanceof St){o=S;break}}o!==null&&(y.isAcceptState=!0,y.lexerActionExecutor=o.lexerActionExecutor,y.prediction=this.atn.ruleToTokenType[o.state.ruleIndex]);var k=this.decisionToDFA[this.mode],C=k.states.get(y);if(C!==null)return C;var U=y;return U.stateNumber=k.states.length,l.setReadonly(!0),U.configs=l,k.states.add(U),U}},{key:"getDFA",value:function(l){return this.decisionToDFA[l]}},{key:"getText",value:function(l){return l.getText(this.startIndex,l.index-1)}},{key:"consume",value:function(l){l.LA(1)===10?(this.line+=1,this.column=0):this.column+=1,l.consume()}},{key:"getTokenName",value:function(l){return l===-1?"EOF":"'"+String.fromCharCode(l)+"'"}}]),_}(Ni);function zs(f){return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zs(f)}function y1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),zs(_)==="symbol"?_:String(_)),s)}var _}Wa.debug=!1,Wa.dfa_debug=!1,Wa.MIN_DFA_EDGE=0,Wa.MAX_DFA_EDGE=127;var im=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.alt=_,this.pred=s}var i,m;return i=f,(m=[{key:"toString",value:function(){return"("+this.pred+", "+this.alt+")"}}])&&y1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ws(f){return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ws(f)}function g1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ws(_)==="symbol"?_:String(_)),s)}var _}var v1=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={}}var i,m;return i=f,(m=[{key:"get",value:function(s){return this.data["k-"+s]||null}},{key:"set",value:function(s,_){this.data["k-"+s]=_}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith("k-")}).map(function(_){return s.data[_]},this)}}])&&g1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}(),Pi={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(f,i){if(Pi.allConfigsInRuleStopStates(i))return!0;if(f===Pi.SLL&&i.hasSemanticContext){for(var m=new Wr,s=0;s<i.items.length;s++){var _=i.items[s];_=new ce({semanticContext:N.NONE},_),m.add(_)}i=m}var l=Pi.getConflictingAltSubsets(i);return Pi.hasConflictingAltSet(l)&&!Pi.hasStateAssociatedWithOneAlt(i)},hasConfigInRuleStopState:function(f){for(var i=0;i<f.items.length;i++)if(f.items[i].state instanceof St)return!0;return!1},allConfigsInRuleStopStates:function(f){for(var i=0;i<f.items.length;i++)if(!(f.items[i].state instanceof St))return!1;return!0},resolvesToJustOneViableAlt:function(f){return Pi.getSingleViableAlt(f)},allSubsetsConflict:function(f){return!Pi.hasNonConflictingAltSet(f)},hasNonConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length===1)return!0;return!1},hasConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length>1)return!0;return!1},allSubsetsEqual:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m];if(i===null)i=s;else if(s!==i)return!1}return!0},getUniqueAlt:function(f){var i=Pi.getAlts(f);return i.length===1?i.minValue():bn.INVALID_ALT_NUMBER},getAlts:function(f){var i=new zr;return f.map(function(m){i.or(m)}),i},getConflictingAltSubsets:function(f){var i=new io;return i.hashFunction=function(m){b.hashStuff(m.state.stateNumber,m.context)},i.equalsFunction=function(m,s){return m.state.stateNumber===s.state.stateNumber&&m.context.equals(s.context)},f.items.map(function(m){var s=i.get(m);s===null&&(s=new zr,i.set(m,s)),s.add(m.alt)}),i.getValues()},getStateToAltMap:function(f){var i=new v1;return f.items.map(function(m){var s=i.get(m.state);s===null&&(s=new zr,i.set(m.state,s)),s.add(m.alt)}),i},hasStateAssociatedWithOneAlt:function(f){for(var i=Pi.getStateToAltMap(f).values(),m=0;m<i.length;m++)if(i[m].length===1)return!0;return!1},getSingleViableAlt:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m].minValue();if(i===null)i=s;else if(i!==s)return bn.INVALID_ALT_NUMBER}return i}};const Wn=Pi;function b0(f){return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},b0(f)}function E0(f,i){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},E0(f,i)}function $c(f){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},$c(f)}var Hc=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&E0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=$c(m);if(s){var u=$c(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(b0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o,u,S,k,C){var U;return function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")}(this,l),C=C||y._ctx,S=S||y.getCurrentToken(),u=u||y.getCurrentToken(),o=o||y.getInputStream(),(U=_.call(this,{message:"",recognizer:y,input:o,ctx:C})).deadEndConfigs=k,U.startToken=u,U.offendingToken=S,U}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function qs(f){return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qs(f)}function b1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qs(_)==="symbol"?_:String(_)),s)}var _}var E1=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.defaultMapCtor=s||io,this.cacheMap=new this.defaultMapCtor}var i,m;return i=f,(m=[{key:"get",value:function(s,_){var l=this.cacheMap.get(s)||null;return l===null?null:l.get(_)||null}},{key:"set",value:function(s,_,l){var y=this.cacheMap.get(s)||null;y===null&&(y=new this.defaultMapCtor,this.cacheMap.set(s,y)),y.set(_,l)}}])&&b1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function qa(f){return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qa(f)}function x1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(qa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qa(_)==="symbol"?_:String(_)),s)}var _}function x0(f,i){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},x0(f,i)}function Gc(f){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Gc(f)}var om=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&x0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Gc(s);if(_){var S=Gc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(qa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,u,k)).parser=o,C.decisionToDFA=S,C.predictionMode=Wn.LL,C._input=null,C._startIndex=0,C._outerContext=null,C._dfa=null,C.mergeCache=null,C.debug=!1,C.debug_closure=!1,C.debug_add=!1,C.trace_atn_sim=!1,C.dfa_debug=!1,C.retry_debug=!1,C}return i=y,m=[{key:"reset",value:function(){}},{key:"adaptivePredict",value:function(o,u,S){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+u+" exec LA(1)=="+this.getLookaheadName(o)+" line "+o.LT(1).line+":"+o.LT(1).column),this._input=o,this._startIndex=o.index,this._outerContext=S;var k=this.decisionToDFA[u];this._dfa=k;var C=o.mark(),U=o.index;try{var fe;if((fe=k.precedenceDfa?k.getPrecedenceStartState(this.parser.getPrecedence()):k.s0)===null){S===null&&(S=ro.EMPTY),this.debug&&console.log("predictATN decision "+k.decision+" exec LA(1)=="+this.getLookaheadName(o)+", outerContext="+S.toString(this.parser.ruleNames));var Ne=this.computeStartState(k.atnStartState,ro.EMPTY,!1);k.precedenceDfa?(k.s0.configs=Ne,Ne=this.applyPrecedenceFilter(Ne),fe=this.addDFAState(k,new Wo(null,Ne)),k.setPrecedenceStartState(this.parser.getPrecedence(),fe)):(fe=this.addDFAState(k,new Wo(null,Ne)),k.s0=fe)}var Re=this.execATN(k,fe,o,U,S);return this.debug&&console.log("DFA after predictATN: "+k.toString(this.parser.literalNames,this.parser.symbolicNames)),Re}finally{this._dfa=null,this.mergeCache=null,o.seek(U),o.release(C)}}},{key:"execATN",value:function(o,u,S,k,C){var U;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+o.decision+", DFA state "+u+", LA(1)=="+this.getLookaheadName(S)+" line "+S.LT(1).line+":"+S.LT(1).column);var fe=u;this.debug&&console.log("s0 = "+u);for(var Ne=S.LA(1);;){var Re=this.getExistingTargetState(fe,Ne);if(Re===null&&(Re=this.computeTargetState(o,fe,Ne)),Re===Ni.ERROR){var Ge=this.noViableAlt(S,C,fe.configs,k);if(S.seek(k),(U=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(fe.configs,C))!==bn.INVALID_ALT_NUMBER)return U;throw Ge}if(Re.requiresFullContext&&this.predictionMode!==Wn.SLL){var ct=null;if(Re.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var We=S.index;if(We!==k&&S.seek(k),(ct=this.evalSemanticContext(Re.predicates,C,!0)).length===1)return this.debug&&console.log("Full LL avoided"),ct.minValue();We!==k&&S.seek(We)}this.dfa_debug&&console.log("ctx sensitive state "+C+" in "+Re);var En=this.computeStartState(o.atnStartState,C,!0);return this.reportAttemptingFullContext(o,ct,Re.configs,k,S.index),this.execATNWithFullContext(o,Re,En,S,k,C)}if(Re.isAcceptState){if(Re.predicates===null)return Re.prediction;var vn=S.index;S.seek(k);var qn=this.evalSemanticContext(Re.predicates,C,!0);if(qn.length===0)throw this.noViableAlt(S,C,Re.configs,k);return qn.length===1||this.reportAmbiguity(o,Re,k,vn,!1,qn,Re.configs),qn.minValue()}fe=Re,Ne!==n.EOF&&(S.consume(),Ne=S.LA(1))}}},{key:"getExistingTargetState",value:function(o,u){var S=o.edges;return S===null?null:S[u+1]||null}},{key:"computeTargetState",value:function(o,u,S){var k=this.computeReachSet(u.configs,S,!1);if(k===null)return this.addDFAEdge(o,u,S,Ni.ERROR),Ni.ERROR;var C=new Wo(null,k),U=this.getUniqueAlt(k);if(this.debug){var fe=Wn.getConflictingAltSubsets(k);console.log("SLL altSubSets="+F(fe)+", configs="+k+", predict="+U+", allSubsetsConflict="+Wn.allSubsetsConflict(fe)+", conflictingAlts="+this.getConflictingAlts(k))}return U!==bn.INVALID_ALT_NUMBER?(C.isAcceptState=!0,C.configs.uniqueAlt=U,C.prediction=U):Wn.hasSLLConflictTerminatingPrediction(this.predictionMode,k)&&(C.configs.conflictingAlts=this.getConflictingAlts(k),C.requiresFullContext=!0,C.isAcceptState=!0,C.prediction=C.configs.conflictingAlts.minValue()),C.isAcceptState&&C.configs.hasSemanticContext&&(this.predicateDFAState(C,this.atn.getDecisionState(o.decision)),C.predicates!==null&&(C.prediction=bn.INVALID_ALT_NUMBER)),this.addDFAEdge(o,u,S,C)}},{key:"predicateDFAState",value:function(o,u){var S=u.transitions.length,k=this.getConflictingAltsOrUniqueAlt(o.configs),C=this.getPredsForAmbigAlts(k,o.configs,S);C!==null?(o.predicates=this.getPredicatePredictions(k,C),o.prediction=bn.INVALID_ALT_NUMBER):o.prediction=k.minValue()}},{key:"execATNWithFullContext",value:function(o,u,S,k,C,U){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+S);var fe,Ne=!1,Re=S;k.seek(C);for(var Ge=k.LA(1),ct=-1;;){if((fe=this.computeReachSet(Re,Ge,!0))===null){var We=this.noViableAlt(k,U,Re,C);k.seek(C);var En=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Re,U);if(En!==bn.INVALID_ALT_NUMBER)return En;throw We}var vn=Wn.getConflictingAltSubsets(fe);if(this.debug&&console.log("LL altSubSets="+vn+", predict="+Wn.getUniqueAlt(vn)+", resolvesToJustOneViableAlt="+Wn.resolvesToJustOneViableAlt(vn)),fe.uniqueAlt=this.getUniqueAlt(fe),fe.uniqueAlt!==bn.INVALID_ALT_NUMBER){ct=fe.uniqueAlt;break}if(this.predictionMode!==Wn.LL_EXACT_AMBIG_DETECTION){if((ct=Wn.resolvesToJustOneViableAlt(vn))!==bn.INVALID_ALT_NUMBER)break}else if(Wn.allSubsetsConflict(vn)&&Wn.allSubsetsEqual(vn)){Ne=!0,ct=Wn.getSingleViableAlt(vn);break}Re=fe,Ge!==n.EOF&&(k.consume(),Ge=k.LA(1))}return fe.uniqueAlt!==bn.INVALID_ALT_NUMBER?(this.reportContextSensitivity(o,ct,fe,C,k.index),ct):(this.reportAmbiguity(o,u,C,k.index,Ne,null,fe),ct)}},{key:"computeReachSet",value:function(o,u,S){this.debug&&console.log("in computeReachSet, starting closure: "+o),this.mergeCache===null&&(this.mergeCache=new E1);for(var k=new Wr(S),C=null,U=0;U<o.items.length;U++){var fe=o.items[U];if(this.debug&&console.log("testing "+this.getTokenName(u)+" at "+fe),fe.state instanceof St)(S||u===n.EOF)&&(C===null&&(C=[]),C.push(fe),this.debug_add&&console.log("added "+fe+" to skippedStopStates"));else for(var Ne=0;Ne<fe.state.transitions.length;Ne++){var Re=fe.state.transitions[Ne],Ge=this.getReachableTarget(Re,u);if(Ge!==null){var ct=new ce({state:Ge},fe);k.add(ct,this.mergeCache),this.debug_add&&console.log("added "+ct+" to intermediate")}}}var We=null;if(C===null&&u!==n.EOF&&(k.items.length===1||this.getUniqueAlt(k)!==bn.INVALID_ALT_NUMBER)&&(We=k),We===null){We=new Wr(S);for(var En=new g,vn=u===n.EOF,qn=0;qn<k.items.length;qn++)this.closure(k.items[qn],We,En,!1,S,vn)}if(u===n.EOF&&(We=this.removeAllConfigsNotInRuleStopState(We,We===k)),!(C===null||S&&Wn.hasConfigInRuleStopState(We)))for(var qr=0;qr<C.length;qr++)We.add(C[qr],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+o+" -> "+We),We.items.length===0?null:We}},{key:"removeAllConfigsNotInRuleStopState",value:function(o,u){if(Wn.allConfigsInRuleStopStates(o))return o;for(var S=new Wr(o.fullCtx),k=0;k<o.items.length;k++){var C=o.items[k];if(C.state instanceof St)S.add(C,this.mergeCache);else if(u&&C.state.epsilonOnlyTransitions&&this.atn.nextTokens(C.state).contains(n.EPSILON)){var U=this.atn.ruleToStopState[C.state.ruleIndex];S.add(new ce({state:U},C),this.mergeCache)}}return S}},{key:"computeStartState",value:function(o,u,S){var k=_a(this.atn,u),C=new Wr(S);this.trace_atn_sim&&console.log("computeStartState from ATN state "+o+" initialContext="+k.toString(this.parser));for(var U=0;U<o.transitions.length;U++){var fe=o.transitions[U].target,Ne=new ce({state:fe,alt:U+1,context:k},null),Re=new g;this.closure(Ne,C,Re,!0,S,!1)}return C}},{key:"applyPrecedenceFilter",value:function(o){for(var u,S=[],k=new Wr(o.fullCtx),C=0;C<o.items.length;C++)if((u=o.items[C]).alt===1){var U=u.semanticContext.evalPrecedence(this.parser,this._outerContext);U!==null&&(S[u.state.stateNumber]=u.context,U!==u.semanticContext?k.add(new ce({semanticContext:U},u),this.mergeCache):k.add(u,this.mergeCache))}for(var fe=0;fe<o.items.length;fe++)if((u=o.items[fe]).alt!==1){if(!u.precedenceFilterSuppressed){var Ne=S[u.state.stateNumber]||null;if(Ne!==null&&Ne.equals(u.context))continue}k.add(u,this.mergeCache)}return k}},{key:"getReachableTarget",value:function(o,u){return o.matches(u,0,this.atn.maxTokenType)?o.target:null}},{key:"getPredsForAmbigAlts",value:function(o,u,S){for(var k=[],C=0;C<u.items.length;C++){var U=u.items[C];o.has(U.alt)&&(k[U.alt]=N.orContext(k[U.alt]||null,U.semanticContext))}for(var fe=0,Ne=1;Ne<S+1;Ne++){var Re=k[Ne]||null;Re===null?k[Ne]=N.NONE:Re!==N.NONE&&(fe+=1)}return fe===0&&(k=null),this.debug&&console.log("getPredsForAmbigAlts result "+F(k)),k}},{key:"getPredicatePredictions",value:function(o,u){for(var S=[],k=!1,C=1;C<u.length;C++){var U=u[C];o!==null&&o.has(C)&&S.push(new im(U,C)),U!==N.NONE&&(k=!0)}return k?S:null}},{key:"getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule",value:function(o,u){var S=this.splitAccordingToSemanticValidity(o,u),k=S[0],C=S[1],U=this.getAltThatFinishedDecisionEntryRule(k);return U!==bn.INVALID_ALT_NUMBER||C.items.length>0&&(U=this.getAltThatFinishedDecisionEntryRule(C))!==bn.INVALID_ALT_NUMBER?U:bn.INVALID_ALT_NUMBER}},{key:"getAltThatFinishedDecisionEntryRule",value:function(o){for(var u=[],S=0;S<o.items.length;S++){var k=o.items[S];(k.reachesIntoOuterContext>0||k.state instanceof St&&k.context.hasEmptyPath())&&u.indexOf(k.alt)<0&&u.push(k.alt)}return u.length===0?bn.INVALID_ALT_NUMBER:Math.min.apply(null,u)}},{key:"splitAccordingToSemanticValidity",value:function(o,u){for(var S=new Wr(o.fullCtx),k=new Wr(o.fullCtx),C=0;C<o.items.length;C++){var U=o.items[C];U.semanticContext!==N.NONE?U.semanticContext.evaluate(this.parser,u)?S.add(U):k.add(U):S.add(U)}return[S,k]}},{key:"evalSemanticContext",value:function(o,u,S){for(var k=new zr,C=0;C<o.length;C++){var U=o[C];if(U.pred!==N.NONE){var fe=U.pred.evaluate(this.parser,u);if((this.debug||this.dfa_debug)&&console.log("eval pred "+U+"="+fe),fe&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+U.alt),k.add(U.alt),!S))break}else if(k.add(U.alt),!S)break}return k}},{key:"closure",value:function(o,u,S,k,C,U){this.closureCheckingStopState(o,u,S,k,C,0,U)}},{key:"closureCheckingStopState",value:function(o,u,S,k,C,U,fe){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+o.toString(this.parser,!0)+")"),o.state instanceof St){if(!o.context.isEmpty()){for(var Ne=0;Ne<o.context.length;Ne++)if(o.context.getReturnState(Ne)!==st.EMPTY_RETURN_STATE){var Re=this.atn.states[o.context.getReturnState(Ne)],Ge=o.context.getParent(Ne),ct={state:Re,alt:o.alt,context:Ge,semanticContext:o.semanticContext},We=new ce(ct,null);We.reachesIntoOuterContext=o.reachesIntoOuterContext,this.closureCheckingStopState(We,u,S,k,C,U-1,fe)}else{if(C){u.add(new ce({state:o.state,context:st.EMPTY},o),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex)),this.closure_(o,u,S,k,C,U,fe)}return}if(C)return void u.add(o,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex))}this.closure_(o,u,S,k,C,U,fe)}},{key:"closure_",value:function(o,u,S,k,C,U,fe){var Ne=o.state;Ne.epsilonOnlyTransitions||u.add(o,this.mergeCache);for(var Re=0;Re<Ne.transitions.length;Re++)if(Re!==0||!this.canDropLoopEntryEdgeInLeftRecursiveRule(o)){var Ge=Ne.transitions[Re],ct=k&&!(Ge instanceof L_),We=this.getEpsilonTarget(o,Ge,ct,U===0,C,fe);if(We!==null){var En=U;if(o.state instanceof St){if(this._dfa!==null&&this._dfa.precedenceDfa&&Ge.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(We.precedenceFilterSuppressed=!0),We.reachesIntoOuterContext+=1,S.add(We)!==We)continue;u.dipsIntoOuterContext=!0,En-=1,this.debug&&console.log("dips into outer ctx: "+We)}else{if(!Ge.isEpsilon&&S.add(We)!==We)continue;Ge instanceof Dt&&En>=0&&(En+=1)}this.closureCheckingStopState(We,u,S,ct,C,En,fe)}}}},{key:"canDropLoopEntryEdgeInLeftRecursiveRule",value:function(o){var u=o.state;if(u.stateType!==me.STAR_LOOP_ENTRY||u.stateType!==me.STAR_LOOP_ENTRY||!u.isPrecedenceDecision||o.context.isEmpty()||o.context.hasEmptyPath())return!1;for(var S=o.context.length,k=0;k<S;k++)if(this.atn.states[o.context.getReturnState(k)].ruleIndex!==u.ruleIndex)return!1;for(var C=u.transitions[0].target.endState.stateNumber,U=this.atn.states[C],fe=0;fe<S;fe++){var Ne=o.context.getReturnState(fe),Re=this.atn.states[Ne];if(Re.transitions.length!==1||!Re.transitions[0].isEpsilon)return!1;var Ge=Re.transitions[0].target;if(!(Re.stateType===me.BLOCK_END&&Ge===u||Re===U||Ge===U||Ge.stateType===me.BLOCK_END&&Ge.transitions.length===1&&Ge.transitions[0].isEpsilon&&Ge.transitions[0].target===u))return!1}return!0}},{key:"getRuleName",value:function(o){return this.parser!==null&&o>=0?this.parser.ruleNames[o]:"<rule "+o+">"}},{key:"getEpsilonTarget",value:function(o,u,S,k,C,U){switch(u.serializationType){case be.RULE:return this.ruleTransition(o,u);case be.PRECEDENCE:return this.precedenceTransition(o,u,S,k,C);case be.PREDICATE:return this.predTransition(o,u,S,k,C);case be.ACTION:return this.actionTransition(o,u);case be.EPSILON:return new ce({state:u.target},o);case be.ATOM:case be.RANGE:case be.SET:return U&&u.matches(n.EOF,0,1)?new ce({state:u.target},o):null;default:return null}}},{key:"actionTransition",value:function(o,u){if(this.debug){var S=u.actionIndex===-1?65535:u.actionIndex;console.log("ACTION edge "+u.ruleIndex+":"+S)}return new ce({state:u.target},o)}},{key:"precedenceTransition",value:function(o,u,S,k,C){this.debug&&(console.log("PRED (collectPredicates="+S+") "+u.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+F(this.parser.getRuleInvocationStack())));var U=null;if(S&&k)if(C){var fe=this._input.index;this._input.seek(this._startIndex);var Ne=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(fe),Ne&&(U=new ce({state:u.target},o))}else{var Re=N.andContext(o.semanticContext,u.getPredicate());U=new ce({state:u.target,semanticContext:Re},o)}else U=new ce({state:u.target},o);return this.debug&&console.log("config from pred transition="+U),U}},{key:"predTransition",value:function(o,u,S,k,C){this.debug&&(console.log("PRED (collectPredicates="+S+") "+u.ruleIndex+":"+u.predIndex+", ctx dependent="+u.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+F(this.parser.getRuleInvocationStack())));var U=null;if(S&&(u.isCtxDependent&&k||!u.isCtxDependent))if(C){var fe=this._input.index;this._input.seek(this._startIndex);var Ne=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(fe),Ne&&(U=new ce({state:u.target},o))}else{var Re=N.andContext(o.semanticContext,u.getPredicate());U=new ce({state:u.target,semanticContext:Re},o)}else U=new ce({state:u.target},o);return this.debug&&console.log("config from pred transition="+U),U}},{key:"ruleTransition",value:function(o,u){this.debug&&console.log("CALL rule "+this.getRuleName(u.target.ruleIndex)+", ctx="+o.context);var S=u.followState,k=_t.create(o.context,S.stateNumber);return new ce({state:u.target,context:k},o)}},{key:"getConflictingAlts",value:function(o){var u=Wn.getConflictingAltSubsets(o);return Wn.getAlts(u)}},{key:"getConflictingAltsOrUniqueAlt",value:function(o){var u=null;return o.uniqueAlt!==bn.INVALID_ALT_NUMBER?(u=new zr).add(o.uniqueAlt):u=o.conflictingAlts,u}},{key:"getTokenName",value:function(o){if(o===n.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null){if(!(o>=this.parser.literalNames.length&&o>=this.parser.symbolicNames.length))return(this.parser.literalNames[o]||this.parser.symbolicNames[o])+"<"+o+">";console.log(o+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+o}},{key:"getLookaheadName",value:function(o){return this.getTokenName(o.LA(1))}},{key:"dumpDeadEndConfigs",value:function(o){console.log("dead end configs: ");for(var u=o.getDeadEndConfigs(),S=0;S<u.length;S++){var k=u[S],C="no edges";if(k.state.transitions.length>0){var U=k.state.transitions[0];U instanceof Bh?C="Atom "+this.getTokenName(U.label):U instanceof ir&&(C=(U instanceof Ht?"~":"")+"Set "+U.set)}console.error(k.toString(this.parser,!0)+":"+C)}}},{key:"noViableAlt",value:function(o,u,S,k){return new Hc(this.parser,o,o.get(k),o.LT(1),S,u)}},{key:"getUniqueAlt",value:function(o){for(var u=bn.INVALID_ALT_NUMBER,S=0;S<o.items.length;S++){var k=o.items[S];if(u===bn.INVALID_ALT_NUMBER)u=k.alt;else if(k.alt!==u)return bn.INVALID_ALT_NUMBER}return u}},{key:"addDFAEdge",value:function(o,u,S,k){if(this.debug&&console.log("EDGE "+u+" -> "+k+" upon "+this.getTokenName(S)),k===null)return null;if(k=this.addDFAState(o,k),u===null||S<-1||S>this.atn.maxTokenType)return k;if(u.edges===null&&(u.edges=[]),u.edges[S+1]=k,this.debug){var C=this.parser===null?null:this.parser.literalNames,U=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
8
- `+o.toString(C,U))}return k}},{key:"addDFAState",value:function(o,u){if(u===Ni.ERROR)return u;var S=o.states.get(u);return S!==null?(this.trace_atn_sim&&console.log("addDFAState "+u+" exists"),S):(u.stateNumber=o.states.length,u.configs.readOnly||(u.configs.optimizeConfigs(this),u.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+u),o.states.add(u),this.debug&&console.log("adding new DFA state: "+u),u)}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C){if(this.debug||this.retry_debug){var U=new _e(k,C+1);console.log("reportAttemptingFullContext decision="+o.decision+":"+S+", input="+this.parser.getTokenStream().getText(U))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,o,k,C,u,S)}},{key:"reportContextSensitivity",value:function(o,u,S,k,C){if(this.debug||this.retry_debug){var U=new _e(k,C+1);console.log("reportContextSensitivity decision="+o.decision+":"+S+", input="+this.parser.getTokenStream().getText(U))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,o,k,C,u,S)}},{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){if(this.debug||this.retry_debug){var Ne=new _e(S,k+1);console.log("reportAmbiguity "+U+":"+fe+", input="+this.parser.getTokenStream().getText(Ne))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,o,S,k,C,U,fe)}}],m&&x1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ni);function Xs(f){return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xs(f)}function S1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Xs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xs(_)==="symbol"?_:String(_)),s)}var _}var am=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.cache=new io}var i,m;return i=f,(m=[{key:"add",value:function(s){if(s===st.EMPTY)return st.EMPTY;var _=this.cache.get(s)||null;return _!==null?_:(this.cache.set(s,s),s)}},{key:"get",value:function(s){return this.cache.get(s)||null}},{key:"length",get:function(){return this.cache.length}}])&&S1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const T1={ATN:bn,ATNDeserializer:t0,LexerATNSimulator:Wa,ParserATNSimulator:om,PredictionMode:Wn,PredictionContextCache:am};function Ys(f){return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ys(f)}function A1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ys(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ys(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ys(_)==="symbol"?_:String(_)),s)}var _}var S0=function(){function f(s,_,l){(function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")})(this,f),this.dfa=s,this.literalNames=_||[],this.symbolicNames=l||[]}var i,m;return i=f,(m=[{key:"toString",value:function(){if(this.dfa.s0===null)return null;for(var s="",_=this.dfa.sortedStates(),l=0;l<_.length;l++){var y=_[l];if(y.edges!==null)for(var o=y.edges.length,u=0;u<o;u++){var S=y.edges[u]||null;S!==null&&S.stateNumber!==2147483647&&(s=(s=(s=(s=(s=(s=s.concat(this.getStateString(y))).concat("-")).concat(this.getEdgeLabel(u))).concat("->")).concat(this.getStateString(S))).concat(`
9
- `))}}return s.length===0?null:s}},{key:"getEdgeLabel",value:function(s){return s===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[s-1]||this.symbolicNames[s-1]:String.fromCharCode(s-1)}},{key:"getStateString",value:function(s){var _=(s.isAcceptState?":":"")+"s"+s.stateNumber+(s.requiresFullContext?"^":"");return s.isAcceptState?s.predicates!==null?_+"=>"+F(s.predicates):_+"=>"+s.prediction.toString():_}}])&&A1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Xa(f){return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xa(f)}function C1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Xa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xa(_)==="symbol"?_:String(_)),s)}var _}function T0(f,i){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},T0(f,i)}function Kc(f){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Kc(f)}var sm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&T0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Kc(s);if(_){var S=Kc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Xa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,o,null)}return i=y,(m=[{key:"getEdgeLabel",value:function(o){return"'"+String.fromCharCode(o)+"'"}}])&&C1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(S0);function Zs(f){return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zs(f)}function D1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Zs(_)==="symbol"?_:String(_)),s)}var _}var um=function(){function f(s,_){if(function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,f),_===void 0&&(_=0),this.atnStartState=s,this.decision=_,this._states=new g,this.s0=null,this.precedenceDfa=!1,s instanceof Ko&&s.isPrecedenceDecision){this.precedenceDfa=!0;var l=new Wo(null,new Wr);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}}var i,m;return i=f,(m=[{key:"getPrecedenceStartState",value:function(s){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return s<0||s>=this.s0.edges.length?null:this.s0.edges[s]||null}},{key:"setPrecedenceStartState",value:function(s,_){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";s<0||(this.s0.edges[s]=_)}},{key:"setPrecedenceDfa",value:function(s){if(this.precedenceDfa!==s){if(this._states=new g,s){var _=new Wo(null,new Wr);_.edges=[],_.isAcceptState=!1,_.requiresFullContext=!1,this.s0=_}else this.s0=null;this.precedenceDfa=s}}},{key:"sortedStates",value:function(){return this._states.values().sort(function(s,_){return s.stateNumber-_.stateNumber})}},{key:"toString",value:function(s,_){return s=s||null,_=_||null,this.s0===null?"":new S0(this,s,_).toString()}},{key:"toLexerString",value:function(){return this.s0===null?"":new sm(this).toString()}},{key:"states",get:function(){return this._states}}])&&D1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const k1={DFA:um,DFASerializer:S0,LexerDFASerializer:sm,PredPrediction:im},O1={PredictionContext:st},w1={Interval:_e,IntervalSet:J};function Qs(f){return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qs(f)}function R1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qs(_)==="symbol"?_:String(_)),s)}var _}var A0=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}},{key:"enterEveryRule",value:function(s){}},{key:"exitEveryRule",value:function(s){}}])&&R1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Js(f){return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Js(f)}function F1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Js(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Js(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Js(_)==="symbol"?_:String(_)),s)}var _}var cm=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visit",value:function(s){return Array.isArray(s)?s.map(function(_){return _.accept(this)},this):s.accept(this)}},{key:"visitChildren",value:function(s){return s.children?this.visit(s.children):null}},{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}}])&&F1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function eu(f){return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},eu(f)}function N1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(eu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(eu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),eu(_)==="symbol"?_:String(_)),s)}var _}var zc=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"walk",value:function(s,_){if(_ instanceof ti||_.isErrorNode!==void 0&&_.isErrorNode())s.visitErrorNode(_);else if(_ instanceof hn)s.visitTerminal(_);else{this.enterRule(s,_);for(var l=0;l<_.getChildCount();l++){var y=_.getChild(l);this.walk(s,y)}this.exitRule(s,_)}}},{key:"enterRule",value:function(s,_){var l=_.ruleContext;s.enterEveryRule(l),l.enterRule(s)}},{key:"exitRule",value:function(s,_){var l=_.ruleContext;l.exitRule(s),s.exitEveryRule(l)}}])&&N1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();zc.DEFAULT=new zc;const I1={Trees:Ju,RuleNode:Le,ErrorNode:ti,TerminalNode:hn,ParseTreeListener:A0,ParseTreeVisitor:cm,ParseTreeWalker:zc};function C0(f){return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},C0(f)}function D0(f,i){return D0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},D0(f,i)}function Wc(f){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wc(f)}var tu=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&D0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Wc(m);if(s){var u=Wc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(C0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y){var o;return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,l),(o=_.call(this,{message:"",recognizer:y,input:y.getInputStream(),ctx:y._ctx})).offendingToken=y.getCurrentToken(),o}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function k0(f){return k0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},k0(f)}function O0(f,i){return O0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},O0(f,i)}function qc(f){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},qc(f)}var w0=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&O0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=qc(m);if(s){var u=qc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(k0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o,u){var S;(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,l),S=_.call(this,{message:P1(o,u||null),recognizer:y,input:y.getInputStream(),ctx:y._ctx});var k=y._interp.atn.states[y.state].transitions[0];return k instanceof U_?(S.ruleIndex=k.ruleIndex,S.predicateIndex=k.predIndex):(S.ruleIndex=0,S.predicateIndex=0),S.predicate=o,S.offendingToken=y.getCurrentToken(),S}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function P1(f,i){return i!==null?i:"failed predicate: {"+f+"}?"}function Ya(f){return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ya(f)}function B1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ya(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ya(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ya(_)==="symbol"?_:String(_)),s)}var _}function R0(f,i){return R0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},R0(f,i)}function Xc(f){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Xc(f)}var lm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&R0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Xc(s);if(_){var S=Xc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ya(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),o=o||!0,(u=l.call(this)).exactOnly=o,u}return i=y,m=[{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){if(!this.exactOnly||C){var Ne="reportAmbiguity d="+this.getDecisionDescription(o,u)+": ambigAlts="+this.getConflictingAlts(U,fe)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(Ne)}}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C,U){var fe="reportAttemptingFullContext d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(fe)}},{key:"reportContextSensitivity",value:function(o,u,S,k,C,U){var fe="reportContextSensitivity d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(fe)}},{key:"getDecisionDescription",value:function(o,u){var S=u.decision,k=u.atnStartState.ruleIndex,C=o.ruleNames;if(k<0||k>=C.length)return""+S;var U=C[k]||null;return U===null||U.length===0?""+S:"".concat(S," (").concat(U,")")}},{key:"getConflictingAlts",value:function(o,u){if(o!==null)return o;for(var S=new zr,k=0;k<u.items.length;k++)S.add(u.items[k].alt);return"{".concat(S.values().join(", "),"}")}}],m&&B1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function F0(f){return F0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},F0(f)}function fm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function N0(f){var i=typeof Map=="function"?new Map:void 0;return N0=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,_)}function _(){return I0(m,arguments,ru(this).constructor)}return _.prototype=Object.create(m.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),nu(_,m)},N0(f)}function I0(f,i,m){return I0=hm()?Reflect.construct.bind():function(s,_,l){var y=[null];y.push.apply(y,_);var o=new(Function.bind.apply(s,y));return l&&nu(o,l.prototype),o},I0.apply(null,arguments)}function hm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nu(f,i){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},nu(f,i)}function ru(f){return ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ru(f)}var L1=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&nu(y,o)})(l,f);var i,m,s,_=(m=l,s=hm(),function(){var y,o=ru(m);if(s){var u=ru(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(F0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fm(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),y=_.call(this),Error.captureStackTrace(fm(y),l),y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(N0(Error));function iu(f){return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},iu(f)}function M1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(iu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(iu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),iu(_)==="symbol"?_:String(_)),s)}var _}function Za(f){return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Za(f)}function U1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Za(_)==="symbol"?_:String(_)),s)}var _}function P0(f,i){return P0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},P0(f,i)}function Yc(f){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Yc(f)}var B0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&P0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Yc(s);if(_){var S=Yc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Za(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){var o;return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),(o=l.call(this)).errorRecoveryMode=!1,o.lastErrorIndex=-1,o.lastErrorStates=null,o.nextTokensContext=null,o.nextTokenState=0,o}return i=y,m=[{key:"reset",value:function(o){this.endErrorCondition(o)}},{key:"beginErrorCondition",value:function(o){this.errorRecoveryMode=!0}},{key:"inErrorRecoveryMode",value:function(o){return this.errorRecoveryMode}},{key:"endErrorCondition",value:function(o){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}},{key:"reportMatch",value:function(o){this.endErrorCondition(o)}},{key:"reportError",value:function(o,u){this.inErrorRecoveryMode(o)||(this.beginErrorCondition(o),u instanceof Hc?this.reportNoViableAlternative(o,u):u instanceof tu?this.reportInputMismatch(o,u):u instanceof w0?this.reportFailedPredicate(o,u):(console.log("unknown recognition error type: "+u.constructor.name),console.log(u.stack),o.notifyErrorListeners(u.getOffendingToken(),u.getMessage(),u)))}},{key:"recover",value:function(o,u){this.lastErrorIndex===o.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(o.state)>=0&&o.consume(),this.lastErrorIndex=o._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(o.state);var S=this.getErrorRecoverySet(o);this.consumeUntil(o,S)}},{key:"sync",value:function(o){if(!this.inErrorRecoveryMode(o)){var u=o._interp.atn.states[o.state],S=o.getTokenStream().LA(1),k=o.atn.nextTokens(u);if(k.contains(S))return this.nextTokensContext=null,void(this.nextTokenState=me.INVALID_STATE_NUMBER);if(k.contains(n.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=o._ctx,this.nextTokensState=o._stateNumber);else switch(u.stateType){case me.BLOCK_START:case me.STAR_BLOCK_START:case me.PLUS_BLOCK_START:case me.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(o)!==null)return;throw new tu(o);case me.PLUS_LOOP_BACK:case me.STAR_LOOP_BACK:this.reportUnwantedToken(o);var C=new J;C.addSet(o.getExpectedTokens());var U=C.addSet(this.getErrorRecoverySet(o));this.consumeUntil(o,U)}}}},{key:"reportNoViableAlternative",value:function(o,u){var S,k=o.getTokenStream();S=k!==null?u.startToken.type===n.EOF?"<EOF>":k.getText(new _e(u.startToken.tokenIndex,u.offendingToken.tokenIndex)):"<unknown input>";var C="no viable alternative at input "+this.escapeWSAndQuote(S);o.notifyErrorListeners(C,u.offendingToken,u)}},{key:"reportInputMismatch",value:function(o,u){var S="mismatched input "+this.getTokenErrorDisplay(u.offendingToken)+" expecting "+u.getExpectedTokens().toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(S,u.offendingToken,u)}},{key:"reportFailedPredicate",value:function(o,u){var S="rule "+o.ruleNames[o._ctx.ruleIndex]+" "+u.message;o.notifyErrorListeners(S,u.offendingToken,u)}},{key:"reportUnwantedToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),S="extraneous input "+this.getTokenErrorDisplay(u)+" expecting "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(S,u,null)}}},{key:"reportMissingToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),S="missing "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames)+" at "+this.getTokenErrorDisplay(u);o.notifyErrorListeners(S,u,null)}}},{key:"recoverInline",value:function(o){var u=this.singleTokenDeletion(o);if(u!==null)return o.consume(),u;if(this.singleTokenInsertion(o))return this.getMissingSymbol(o);throw new tu(o)}},{key:"singleTokenInsertion",value:function(o){var u=o.getTokenStream().LA(1),S=o._interp.atn,k=S.states[o.state].transitions[0].target;return!!S.nextTokens(k,o._ctx).contains(u)&&(this.reportMissingToken(o),!0)}},{key:"singleTokenDeletion",value:function(o){var u=o.getTokenStream().LA(2);if(this.getExpectedTokens(o).contains(u)){this.reportUnwantedToken(o),o.consume();var S=o.getCurrentToken();return this.reportMatch(o),S}return null}},{key:"getMissingSymbol",value:function(o){var u,S=o.getCurrentToken(),k=this.getExpectedTokens(o).first();u=k===n.EOF?"<missing EOF>":"<missing "+o.literalNames[k]+">";var C=S,U=o.getTokenStream().LT(-1);return C.type===n.EOF&&U!==null&&(C=U),o.getTokenFactory().create(C.source,k,u,n.DEFAULT_CHANNEL,-1,-1,C.line,C.column)}},{key:"getExpectedTokens",value:function(o){return o.getExpectedTokens()}},{key:"getTokenErrorDisplay",value:function(o){if(o===null)return"<no token>";var u=o.text;return u===null&&(u=o.type===n.EOF?"<EOF>":"<"+o.type+">"),this.escapeWSAndQuote(u)}},{key:"escapeWSAndQuote",value:function(o){return"'"+(o=(o=(o=o.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}},{key:"getErrorRecoverySet",value:function(o){for(var u=o._interp.atn,S=o._ctx,k=new J;S!==null&&S.invokingState>=0;){var C=u.states[S.invokingState].transitions[0],U=u.nextTokens(C.followState);k.addSet(U),S=S.parentCtx}return k.removeOne(n.EPSILON),k}},{key:"consumeUntil",value:function(o,u){for(var S=o.getTokenStream().LA(1);S!==n.EOF&&!u.contains(S);)o.consume(),S=o.getTokenStream().LA(1)}}],m&&U1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"reset",value:function(s){}},{key:"recoverInline",value:function(s){}},{key:"recover",value:function(s,_){}},{key:"sync",value:function(s){}},{key:"inErrorRecoveryMode",value:function(s){}},{key:"reportError",value:function(s){}}])&&M1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}());function Qa(f){return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qa(f)}function V1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Qa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qa(_)==="symbol"?_:String(_)),s)}var _}function L0(f,i){return L0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},L0(f,i)}function Zc(f){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Zc(f)}var pm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&L0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Zc(s);if(_){var S=Zc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Qa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this)}return i=y,m=[{key:"recover",value:function(o,u){for(var S=o._ctx;S!==null;)S.exception=u,S=S.parentCtx;throw new L1(u)}},{key:"recoverInline",value:function(o){this.recover(o,new tu(o))}},{key:"sync",value:function(o){}}],m&&V1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(B0);const j1={RecognitionException:zo,NoViableAltException:Hc,LexerNoViableAltException:f0,InputMismatchException:tu,FailedPredicateException:w0,DiagnosticErrorListener:lm,BailErrorStrategy:pm,DefaultErrorStrategy:B0,ErrorListener:Ls};function ou(f){return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ou(f)}function $1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ou(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ou(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ou(_)==="symbol"?_:String(_)),s)}var _}var au=function(){function f(s,_){if(function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,f),this.name="<empty>",this.strdata=s,this.decodeToUnicodeCodePoints=_||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(var l=0;l<this.strdata.length;){var y=this.strdata.codePointAt(l);this.data.push(y),l+=y<=65535?1:2}else{this.data=new Array(this.strdata.length);for(var o=0;o<this.strdata.length;o++)this.data[o]=this.strdata.charCodeAt(o)}this._size=this.data.length}var i,m;return i=f,(m=[{key:"reset",value:function(){this._index=0}},{key:"consume",value:function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}},{key:"LA",value:function(s){if(s===0)return 0;s<0&&(s+=1);var _=this._index+s-1;return _<0||_>=this._size?n.EOF:this.data[_]}},{key:"LT",value:function(s){return this.LA(s)}},{key:"mark",value:function(){return-1}},{key:"release",value:function(s){}},{key:"seek",value:function(s){s<=this._index?this._index=s:this._index=Math.min(s,this._size)}},{key:"getText",value:function(s,_){if(_>=this._size&&(_=this._size-1),s>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var l="",y=s;y<=_;y++)l+=String.fromCodePoint(this.data[y]);return l}return this.strdata.slice(s,_+1)}},{key:"toString",value:function(){return this.strdata}},{key:"index",get:function(){return this._index}},{key:"size",get:function(){return this._size}}])&&$1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function M0(f){return M0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M0(f)}function U0(f,i){return U0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},U0(f,i)}function Qc(f){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qc(f)}var su=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&U0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Qc(m);if(s){var u=Qc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(M0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,l),_.call(this,y,o)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(au),dm=Fr(92);function Ja(f){return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ja(f)}function H1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ja(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ja(_)==="symbol"?_:String(_)),s)}var _}function V0(f,i){return V0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},V0(f,i)}function Jc(f){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Jc(f)}var _m=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,mm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&V0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Jc(s);if(_){var S=Jc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ja(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;if(function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),!_m)throw new Error("FileStream is only available when running in Node!");var C=dm.readFileSync(o,u||"utf-8");return(k=l.call(this,C,S)).fileName=o,k}return i=y,m=[{key:"fromPath",value:function(o,u,S){if(!_m)throw new Error("FileStream is only available when running in Node!");dm.readFile(o,u,function(k,C){var U=null;C!==null&&(U=new au(C,!0)),S(k,U)})}}],m&&H1(i,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(su);const ym={fromString:function(f){return new au(f,!0)},fromBlob:function(f,i,m,s){var _=new window.FileReader;_.onload=function(l){var y=new au(l.target.result,!0);m(y)},_.onerror=s,_.readAsText(f,i)},fromBuffer:function(f,i){return new au(f.toString(i),!0)},fromPath:function(f,i,m){mm.fromPath(f,i,m)},fromPathSync:function(f,i){return new mm(f,i)}},G1={arrayToString:F,stringToCharArray:function(f){for(var i=new Uint16Array(f.length),m=0;m<f.length;m++)i[m]=f.charCodeAt(m);return i}};function uu(f){return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},uu(f)}function gm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(uu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(uu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),uu(_)==="symbol"?_:String(_)),s)}var _}function K1(f,i,m){return i&&gm(f.prototype,i),m&&gm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function es(f){return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},es(f)}function z1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(es(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(es(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),es(_)==="symbol"?_:String(_)),s)}var _}function j0(f,i){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},j0(f,i)}function el(f){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},el(f)}var vm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&j0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=el(s);if(_){var S=el(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(es(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).tokenSource=o,u.tokens=[],u.index=-1,u.fetchedEOF=!1,u}return i=y,(m=[{key:"mark",value:function(){return 0}},{key:"release",value:function(o){}},{key:"reset",value:function(){this.seek(0)}},{key:"seek",value:function(o){this.lazyInit(),this.index=this.adjustSeekIndex(o)}},{key:"size",get:function(){return this.tokens.length}},{key:"get",value:function(o){return this.lazyInit(),this.tokens[o]}},{key:"consume",value:function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===n.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}},{key:"sync",value:function(o){var u=o-this.tokens.length+1;return!(u>0)||this.fetch(u)>=u}},{key:"fetch",value:function(o){if(this.fetchedEOF)return 0;for(var u=0;u<o;u++){var S=this.tokenSource.nextToken();if(S.tokenIndex=this.tokens.length,this.tokens.push(S),S.type===n.EOF)return this.fetchedEOF=!0,u+1}return o}},{key:"getTokens",value:function(o,u,S){if(S===void 0&&(S=null),o<0||u<0)return null;this.lazyInit();var k=[];u>=this.tokens.length&&(u=this.tokens.length-1);for(var C=o;C<u;C++){var U=this.tokens[C];if(U.type===n.EOF)break;(S===null||S.contains(U.type))&&k.push(U)}return k}},{key:"LA",value:function(o){return this.LT(o).type}},{key:"LB",value:function(o){return this.index-o<0?null:this.tokens[this.index-o]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);var u=this.index+o-1;return this.sync(u),u>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]}},{key:"adjustSeekIndex",value:function(o){return o}},{key:"lazyInit",value:function(){this.index===-1&&this.setup()}},{key:"setup",value:function(){this.sync(0),this.index=this.adjustSeekIndex(0)}},{key:"setTokenSource",value:function(o){this.tokenSource=o,this.tokens=[],this.index=-1,this.fetchedEOF=!1}},{key:"nextTokenOnChannel",value:function(o,u){if(this.sync(o),o>=this.tokens.length)return-1;for(var S=this.tokens[o];S.channel!==this.channel;){if(S.type===n.EOF)return-1;o+=1,this.sync(o),S=this.tokens[o]}return o}},{key:"previousTokenOnChannel",value:function(o,u){for(;o>=0&&this.tokens[o].channel!==u;)o-=1;return o}},{key:"getHiddenTokensToRight",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var S=this.nextTokenOnChannel(o+1,hr.DEFAULT_TOKEN_CHANNEL),k=o+1,C=S===-1?this.tokens.length-1:S;return this.filterForChannel(k,C,u)}},{key:"getHiddenTokensToLeft",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var S=this.previousTokenOnChannel(o-1,hr.DEFAULT_TOKEN_CHANNEL);if(S===o-1)return null;var k=S+1,C=o-1;return this.filterForChannel(k,C,u)}},{key:"filterForChannel",value:function(o,u,S){for(var k=[],C=o;C<u+1;C++){var U=this.tokens[C];S===-1?U.channel!==hr.DEFAULT_TOKEN_CHANNEL&&k.push(U):U.channel===S&&k.push(U)}return k.length===0?null:k}},{key:"getSourceName",value:function(){return this.tokenSource.getSourceName()}},{key:"getText",value:function(o){this.lazyInit(),this.fill(),o||(o=new _e(0,this.tokens.length-1));var u=o.start;u instanceof n&&(u=u.tokenIndex);var S=o.stop;if(S instanceof n&&(S=S.tokenIndex),u===null||S===null||u<0||S<0)return"";S>=this.tokens.length&&(S=this.tokens.length-1);for(var k="",C=u;C<S+1;C++){var U=this.tokens[C];if(U.type===n.EOF)break;k+=U.text}return k}},{key:"fill",value:function(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}])&&z1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(K1(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)}));function ts(f){return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ts(f)}function W1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ts(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ts(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ts(_)==="symbol"?_:String(_)),s)}var _}function $0(f,i){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$0(f,i)}function tl(f){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tl(f)}Object.defineProperty(vm,"size",{get:function(){return this.tokens.length}});var bm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=tl(s);if(_){var S=tl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ts(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).channel=u===void 0?n.DEFAULT_CHANNEL:u,S}return i=y,(m=[{key:"adjustSeekIndex",value:function(o){return this.nextTokenOnChannel(o,this.channel)}},{key:"LB",value:function(o){if(o===0||this.index-o<0)return null;for(var u=this.index,S=1;S<=o;)u=this.previousTokenOnChannel(u-1,this.channel),S+=1;return u<0?null:this.tokens[u]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);for(var u=this.index,S=1;S<o;)this.sync(u+1)&&(u=this.nextTokenOnChannel(u+1,this.channel)),S+=1;return this.tokens[u]}},{key:"getNumberOfOnChannelTokens",value:function(){var o=0;this.fill();for(var u=0;u<this.tokens.length;u++){var S=this.tokens[u];if(S.channel===this.channel&&(o+=1),S.type===n.EOF)break}return o}}])&&W1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(vm);function ns(f){return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ns(f)}function q1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ns(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ns(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ns(_)==="symbol"?_:String(_)),s)}var _}function H0(f,i){return H0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},H0(f,i)}function nl(f){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nl(f)}var X1=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&H0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=nl(s);if(_){var S=nl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ns(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).parser=o,u}return i=y,(m=[{key:"enterEveryRule",value:function(o){console.log("enter "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},{key:"visitTerminal",value:function(o){console.log("consume "+o.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}},{key:"exitEveryRule",value:function(o){console.log("exit "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}])&&q1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(A0);function rs(f){return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},rs(f)}function Y1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(rs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(rs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),rs(_)==="symbol"?_:String(_)),s)}var _}function G0(f,i){return G0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},G0(f,i)}function rl(f){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},rl(f)}var K0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&G0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=rl(s);if(_){var S=rl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(rs(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this))._input=null,u._errHandler=new B0,u._precedenceStack=[],u._precedenceStack.push(0),u._ctx=null,u.buildParseTrees=!0,u._tracer=null,u._parseListeners=null,u._syntaxErrors=0,u.setInputStream(o),u}return i=y,m=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}},{key:"match",value:function(o){var u=this.getCurrentToken();return u.type===o?(this._errHandler.reportMatch(this),this.consume()):(u=this._errHandler.recoverInline(this),this.buildParseTrees&&u.tokenIndex===-1&&this._ctx.addErrorNode(u)),u}},{key:"matchWildcard",value:function(){var o=this.getCurrentToken();return o.type>0?(this._errHandler.reportMatch(this),this.consume()):(o=this._errHandler.recoverInline(this),this.buildParseTrees&&o.tokenIndex===-1&&this._ctx.addErrorNode(o)),o}},{key:"getParseListeners",value:function(){return this._parseListeners||[]}},{key:"addParseListener",value:function(o){if(o===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(o)}},{key:"removeParseListener",value:function(o){if(this._parseListeners!==null){var u=this._parseListeners.indexOf(o);u>=0&&this._parseListeners.splice(u,1),this._parseListeners.length===0&&(this._parseListeners=null)}}},{key:"removeParseListeners",value:function(){this._parseListeners=null}},{key:"triggerEnterRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.forEach(function(u){u.enterEveryRule(o),o.enterRule(u)})}}},{key:"triggerExitRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(u){o.exitRule(u),u.exitEveryRule(o)})}}},{key:"getTokenFactory",value:function(){return this._input.tokenSource._factory}},{key:"setTokenFactory",value:function(o){this._input.tokenSource._factory=o}},{key:"getATNWithBypassAlts",value:function(){var o=this.getSerializedATN();if(o===null)throw"The current parser does not support an ATN with bypass alternatives.";var u=this.bypassAltsAtnCache[o];if(u===null){var S=new Ns;S.generateRuleBypassTransitions=!0,u=new t0(S).deserialize(o),this.bypassAltsAtnCache[o]=u}return u}},{key:"getInputStream",value:function(){return this.getTokenStream()}},{key:"setInputStream",value:function(o){this.setTokenStream(o)}},{key:"getTokenStream",value:function(){return this._input}},{key:"setTokenStream",value:function(o){this._input=null,this.reset(),this._input=o}},{key:"syntaxErrorsCount",get:function(){return this._syntaxErrors}},{key:"getCurrentToken",value:function(){return this._input.LT(1)}},{key:"notifyErrorListeners",value:function(o,u,S){S=S||null,(u=u||null)===null&&(u=this.getCurrentToken()),this._syntaxErrors+=1;var k=u.line,C=u.column;this.getErrorListenerDispatch().syntaxError(this,u,k,C,o,S)}},{key:"consume",value:function(){var o=this.getCurrentToken();o.type!==n.EOF&&this.getInputStream().consume();var u,S=this._parseListeners!==null&&this._parseListeners.length>0;return(this.buildParseTrees||S)&&((u=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(o):this._ctx.addTokenNode(o)).invokingState=this.state,S&&this._parseListeners.forEach(function(k){u instanceof ti||u.isErrorNode!==void 0&&u.isErrorNode()?k.visitErrorNode(u):u instanceof hn&&k.visitTerminal(u)})),o}},{key:"addContextToParseTree",value:function(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}},{key:"enterRule",value:function(o,u,S){this.state=u,this._ctx=o,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}},{key:"exitRule",value:function(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}},{key:"enterOuterAlt",value:function(o,u){o.setAltNumber(u),this.buildParseTrees&&this._ctx!==o&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(o)),this._ctx=o}},{key:"getPrecedence",value:function(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}},{key:"enterRecursionRule",value:function(o,u,S,k){this.state=u,this._precedenceStack.push(k),this._ctx=o,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}},{key:"pushNewRecursionContext",value:function(o,u,S){var k=this._ctx;k.parentCtx=o,k.invokingState=u,k.stop=this._input.LT(-1),this._ctx=o,this._ctx.start=k.start,this.buildParseTrees&&this._ctx.addChild(k),this.triggerEnterRuleEvent()}},{key:"unrollRecursionContexts",value:function(o){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var u=this._ctx,S=this.getParseListeners();if(S!==null&&S.length>0)for(;this._ctx!==o;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=o;u.parentCtx=o,this.buildParseTrees&&o!==null&&o.addChild(u)}},{key:"getInvokingContext",value:function(o){for(var u=this._ctx;u!==null;){if(u.ruleIndex===o)return u;u=u.parentCtx}return null}},{key:"precpred",value:function(o,u){return u>=this._precedenceStack[this._precedenceStack.length-1]}},{key:"inContext",value:function(o){return!1}},{key:"isExpectedToken",value:function(o){var u=this._interp.atn,S=this._ctx,k=u.states[this.state],C=u.nextTokens(k);if(C.contains(o))return!0;if(!C.contains(n.EPSILON))return!1;for(;S!==null&&S.invokingState>=0&&C.contains(n.EPSILON);){var U=u.states[S.invokingState].transitions[0];if((C=u.nextTokens(U.followState)).contains(o))return!0;S=S.parentCtx}return!(!C.contains(n.EPSILON)||o!==n.EOF)}},{key:"getExpectedTokens",value:function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}},{key:"getExpectedTokensWithinCurrentRule",value:function(){var o=this._interp.atn,u=o.states[this.state];return o.nextTokens(u)}},{key:"getRuleIndex",value:function(o){var u=this.getRuleIndexMap()[o];return u!==null?u:-1}},{key:"getRuleInvocationStack",value:function(o){(o=o||null)===null&&(o=this._ctx);for(var u=[];o!==null;){var S=o.ruleIndex;S<0?u.push("n/a"):u.push(this.ruleNames[S]),o=o.parentCtx}return u}},{key:"getDFAStrings",value:function(){return this._interp.decisionToDFA.toString()}},{key:"dumpDFA",value:function(){for(var o=!1,u=0;u<this._interp.decisionToDFA.length;u++){var S=this._interp.decisionToDFA[u];S.states.length>0&&(o&&console.log(),this.printer.println("Decision "+S.decision+":"),this.printer.print(S.toString(this.literalNames,this.symbolicNames)),o=!0)}}},{key:"getSourceName",value:function(){return this._input.sourceName}},{key:"setTrace",value:function(o){o?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new X1(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}],m&&Y1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ic);function is(f){return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},is(f)}function Z1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(is(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(is(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),is(_)==="symbol"?_:String(_)),s)}var _}function z0(f,i){return z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},z0(f,i)}function il(f){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},il(f)}K0.bypassAltsAtnCache={};var Em=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&z0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=il(s);if(_){var S=il(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(is(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).parentCtx=null,u.symbol=o,u}return i=y,(m=[{key:"getChild",value:function(o){return null}},{key:"getSymbol",value:function(){return this.symbol}},{key:"getParent",value:function(){return this.parentCtx}},{key:"getPayload",value:function(){return this.symbol}},{key:"getSourceInterval",value:function(){if(this.symbol===null)return _e.INVALID_INTERVAL;var o=this.symbol.tokenIndex;return new _e(o,o)}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitTerminal(this)}},{key:"getText",value:function(){return this.symbol.text}},{key:"toString",value:function(){return this.symbol.type===n.EOF?"<EOF>":this.symbol.text}}])&&Z1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(hn);function os(f){return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},os(f)}function Q1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(os(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(os(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),os(_)==="symbol"?_:String(_)),s)}var _}function W0(f,i){return W0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},W0(f,i)}function ol(f){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ol(f)}var xm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&W0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=ol(s);if(_){var S=ol(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(os(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,o)}return i=y,(m=[{key:"isErrorNode",value:function(){return!0}},{key:"accept",value:function(o){return o.visitErrorNode(this)}}])&&Q1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Em);function as(f){return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},as(f)}function J1(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(as(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(as(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),as(_)==="symbol"?_:String(_)),s)}var _}function q0(f,i){return q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},q0(f,i)}function al(f){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},al(f)}var X0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&q0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=al(s);if(_){var S=al(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(as(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o,u)).children=null,S.start=null,S.stop=null,S.exception=null,S}return i=y,(m=[{key:"copyFrom",value:function(o){this.parentCtx=o.parentCtx,this.invokingState=o.invokingState,this.children=null,this.start=o.start,this.stop=o.stop,o.children&&(this.children=[],o.children.map(function(u){u instanceof xm&&(this.children.push(u),u.parentCtx=this)},this))}},{key:"enterRule",value:function(o){}},{key:"exitRule",value:function(o){}},{key:"addChild",value:function(o){return this.children===null&&(this.children=[]),this.children.push(o),o}},{key:"removeLastChild",value:function(){this.children!==null&&this.children.pop()}},{key:"addTokenNode",value:function(o){var u=new Em(o);return this.addChild(u),u.parentCtx=this,u}},{key:"addErrorNode",value:function(o){var u=new xm(o);return this.addChild(u),u.parentCtx=this,u}},{key:"getChild",value:function(o,u){if(u=u||null,this.children===null||o<0||o>=this.children.length)return null;if(u===null)return this.children[o];for(var S=0;S<this.children.length;S++){var k=this.children[S];if(k instanceof u){if(o===0)return k;o-=1}}return null}},{key:"getToken",value:function(o,u){if(this.children===null||u<0||u>=this.children.length)return null;for(var S=0;S<this.children.length;S++){var k=this.children[S];if(k instanceof hn&&k.symbol.type===o){if(u===0)return k;u-=1}}return null}},{key:"getTokens",value:function(o){if(this.children===null)return[];for(var u=[],S=0;S<this.children.length;S++){var k=this.children[S];k instanceof hn&&k.symbol.type===o&&u.push(k)}return u}},{key:"getTypedRuleContext",value:function(o,u){return this.getChild(u,o)}},{key:"getTypedRuleContexts",value:function(o){if(this.children===null)return[];for(var u=[],S=0;S<this.children.length;S++){var k=this.children[S];k instanceof o&&u.push(k)}return u}},{key:"getChildCount",value:function(){return this.children===null?0:this.children.length}},{key:"getSourceInterval",value:function(){return this.start===null||this.stop===null?_e.INVALID_INTERVAL:new _e(this.start.tokenIndex,this.stop.tokenIndex)}}])&&J1(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ro);function Y0(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&Z0(f,i)}function Z0(f,i){return Z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Z0(f,i)}function Q0(f){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,s=sl(f);if(i){var _=sl(this).constructor;m=Reflect.construct(s,arguments,_)}else m=s.apply(this,arguments);return function(l,y){if(y&&(ss(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function sl(f){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},sl(f)}function ss(f){return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ss(f)}function us(f,i){var m=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!m){if(Array.isArray(f)||(m=function(u,S){if(u){if(typeof u=="string")return Sm(u,S);var k=Object.prototype.toString.call(u).slice(8,-1);return k==="Object"&&u.constructor&&(k=u.constructor.name),k==="Map"||k==="Set"?Array.from(u):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?Sm(u,S):void 0}}(f))||i&&f&&typeof f.length=="number"){m&&(f=m);var s=0,_=function(){};return{s:_,n:function(){return s>=f.length?{done:!0}:{done:!1,value:f[s++]}},e:function(u){throw u},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,y=!0,o=!1;return{s:function(){m=m.call(f)},n:function(){var u=m.next();return y=u.done,u},e:function(u){o=!0,l=u},f:function(){try{y||m.return==null||m.return()}finally{if(o)throw l}}}}function Sm(f,i){(i==null||i>f.length)&&(i=f.length);for(var m=0,s=new Array(i);m<i;m++)s[m]=f[m];return s}function cu(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function Tm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,Am(s.key),s)}}function lu(f,i,m){return i&&Tm(f.prototype,i),m&&Tm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function Am(f){var i=function(m,s){if(ss(m)!=="object"||m===null)return m;var _=m[Symbol.toPrimitive];if(_!==void 0){var l=_.call(m,"string");if(ss(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(f);return ss(i)==="symbol"?i:String(i)}ro.EMPTY=new X0;var ul,cl,J0,Cm=function(){function f(i){cu(this,f),this.tokens=i,this.programs=new Map}return lu(f,[{key:"getTokenStream",value:function(){return this.tokens}},{key:"insertAfter",value:function(i,m){var s,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(_),y=new km(this.tokens,s,l.length,m);l.push(y)}},{key:"insertBefore",value:function(i,m){var s,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(_),y=new cs(this.tokens,s,l.length,m);l.push(y)}},{key:"replaceSingle",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;this.replace(i,i,m,s)}},{key:"replace",value:function(i,m,s){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.DEFAULT_PROGRAM_NAME;if(typeof i!="number"&&(i=i.tokenIndex),typeof m!="number"&&(m=m.tokenIndex),i>m||i<0||m<0||m>=this.tokens.size)throw new RangeError("replace: range invalid: ".concat(i,"..").concat(m,"(size=").concat(this.tokens.size,")"));var l=this.getProgram(_),y=new ll(this.tokens,i,m,l.length,s);l.push(y)}},{key:"delete",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;m===void 0&&(m=i),this.replace(i,m,null,s)}},{key:"getProgram",value:function(i){var m=this.programs.get(i);return m==null&&(m=this.initializeProgram(i)),m}},{key:"initializeProgram",value:function(i){var m=[];return this.programs.set(i,m),m}},{key:"getText",value:function(i){var m,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.DEFAULT_PROGRAM_NAME;m=i instanceof _e?i:new _e(0,this.tokens.size-1),typeof i=="string"&&(s=i);var _=this.programs.get(s),l=m.start,y=m.stop;if(y>this.tokens.size-1&&(y=this.tokens.size-1),l<0&&(l=0),_==null||_.length===0)return this.tokens.getText(new _e(l,y));for(var o=[],u=this.reduceToSingleOperationPerIndex(_),S=l;S<=y&&S<this.tokens.size;){var k=u.get(S);u.delete(S);var C=this.tokens.get(S);k==null?(C.type!==n.EOF&&o.push(String(C.text)),S++):S=k.execute(o)}if(y===this.tokens.size-1){var U,fe=us(u.values());try{for(fe.s();!(U=fe.n()).done;){var Ne=U.value;Ne.index>=this.tokens.size-1&&o.push(Ne.text.toString())}}catch(Re){fe.e(Re)}finally{fe.f()}}return o.join("")}},{key:"reduceToSingleOperationPerIndex",value:function(i){for(var m=0;m<i.length;m++){var s=i[m];if(s!=null&&s instanceof ll){var _,l=s,y=us(this.getKindOfOps(i,cs,m));try{for(y.s();!(_=y.n()).done;){var o=_.value;o.index===l.index?(i[o.instructionIndex]=void 0,l.text=o.text.toString()+(l.text!=null?l.text.toString():"")):o.index>l.index&&o.index<=l.lastIndex&&(i[o.instructionIndex]=void 0)}}catch(Rr){y.e(Rr)}finally{y.f()}var u,S=us(this.getKindOfOps(i,ll,m));try{for(S.s();!(u=S.n()).done;){var k=u.value;if(k.index>=l.index&&k.lastIndex<=l.lastIndex)i[k.instructionIndex]=void 0;else{var C=k.lastIndex<l.index||k.index>l.lastIndex;if(k.text!=null||l.text!=null||C){if(!C)throw new Error("replace op boundaries of ".concat(l," overlap with previous ").concat(k))}else i[k.instructionIndex]=void 0,l.index=Math.min(k.index,l.index),l.lastIndex=Math.max(k.lastIndex,l.lastIndex)}}}catch(Rr){S.e(Rr)}finally{S.f()}}}for(var U=0;U<i.length;U++){var fe=i[U];if(fe!=null&&fe instanceof cs){var Ne,Re=fe,Ge=us(this.getKindOfOps(i,cs,U));try{for(Ge.s();!(Ne=Ge.n()).done;){var ct=Ne.value;ct.index===Re.index&&(ct instanceof km?(Re.text=this.catOpText(ct.text,Re.text),i[ct.instructionIndex]=void 0):ct instanceof cs&&(Re.text=this.catOpText(Re.text,ct.text),i[ct.instructionIndex]=void 0))}}catch(Rr){Ge.e(Rr)}finally{Ge.f()}var We,En=us(this.getKindOfOps(i,ll,U));try{for(En.s();!(We=En.n()).done;){var vn=We.value;if(Re.index!==vn.index){if(Re.index>=vn.index&&Re.index<=vn.lastIndex)throw new Error("insert op ".concat(Re," within boundaries of previous ").concat(vn))}else vn.text=this.catOpText(Re.text,vn.text),i[U]=void 0}}catch(Rr){En.e(Rr)}finally{En.f()}}}var qn,qr=new Map,Bi=us(i);try{for(Bi.s();!(qn=Bi.n()).done;){var Li=qn.value;if(Li!=null){if(qr.get(Li.index)!=null)throw new Error("should only be one op per index");qr.set(Li.index,Li)}}}catch(Rr){Bi.e(Rr)}finally{Bi.f()}return qr}},{key:"catOpText",value:function(i,m){var s="",_="";return i!=null&&(s=i.toString()),m!=null&&(_=m.toString()),s+_}},{key:"getKindOfOps",value:function(i,m,s){return i.slice(0,s).filter(function(_){return _&&_ instanceof m})}}]),f}();ul=Cm,J0="default",(cl=Am(cl="DEFAULT_PROGRAM_NAME"))in ul?Object.defineProperty(ul,cl,{value:J0,enumerable:!0,configurable:!0,writable:!0}):ul[cl]=J0;var Dm=function(){function f(i,m,s,_){cu(this,f),this.tokens=i,this.instructionIndex=s,this.index=m,this.text=_===void 0?"":_}return lu(f,[{key:"toString",value:function(){var i=this.constructor.name,m=i.indexOf("$");return"<"+(i=i.substring(m+1,i.length))+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}]),f}(),cs=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y){return cu(this,m),i.call(this,s,_,l,y)}return lu(m,[{key:"execute",value:function(s){return this.text&&s.push(this.text.toString()),this.tokens.get(this.index).type!==n.EOF&&s.push(String(this.tokens.get(this.index).text)),this.index+1}}]),m}(Dm),km=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y){return cu(this,m),i.call(this,s,_+1,l,y)}return lu(m)}(cs),ll=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y,o){var u;return cu(this,m),(u=i.call(this,s,_,y,o)).lastIndex=l,u}return lu(m,[{key:"execute",value:function(s){return this.text&&s.push(this.text.toString()),this.lastIndex+1}},{key:"toString",value:function(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}]),m}(Dm);const eb={atn:T1,dfa:k1,context:O1,misc:w1,tree:I1,error:j1,Token:n,CommonToken:Us,CharStreams:ym,CharStream:su,InputStream:su,CommonTokenStream:bm,Lexer:hr,Parser:K0,ParserRuleContext:X0,Interval:_e,IntervalSet:J,LL1Analyzer:Go,Utils:G1,TokenStreamRewriter:Cm}})();var Nr=Mt.dx,ep=Mt.q2;Mt.FO,Mt.xf,Mt.Gy;var Om=Mt.s4,wm=Mt.c7,tp=Mt._7;Mt.gp;var Rm=Mt.cK,Fm=Mt.zs,Nm=Mt.AV;Mt.Xp,Mt.VS,Mt.ul;var Im=Mt.hW,Pm=Mt.x1,bi=Mt.z5;Mt.oN;var Bm=Mt.TB;Mt.u1;var Lm=Mt._b,Mm=Mt.$F,Je=Mt._T,np=Mt.db,Um=Mt.Zx,et=Mt._x;Mt.r8,Mt.JI,Mt.TP;var rp=Mt.WU;Mt.Nj,Mt.ZP;const $=class $ extends Lm{get grammarFileName(){return"tccScriptParser.g4"}get literalNames(){return $.literalNames}get symbolicNames(){return $.symbolicNames}get ruleNames(){return $.ruleNames}get serializedATN(){return $._serializedATN}createFailedPredicateException(e,n){return new Fm(this,e,n)}constructor(e){super(e),this._interp=new Mm(this,$._ATN,$.DecisionsToDFA,new np)}program(){let e=new Vm(this,this._ctx,this.state);this.enterRule(e,0,$.RULE_program);let n;try{this.enterOuterAlt(e,1);{for(this.state=106,this._errHandler.sync(this),n=this._input.LA(1);n===4||n===6||!(n-36&-32)&&1<<n-36&38635767;){switch(this.state=104,this._errHandler.sync(this),this._input.LA(1)){case 61:this.state=102,this.match($.NEWLINE);break;case 4:case 6:case 36:case 37:case 38:case 40:case 41:case 42:case 43:case 47:case 51:case 52:case 54:case 55:case 58:this.state=103,this.globalStmt();break;default:throw new bi(this)}this.state=108,this._errHandler.sync(this),n=this._input.LA(1)}this.state=109,this.match($.EOF)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}globalStmt(){let e=new fl(this,this._ctx,this.state);this.enterRule(e,2,$.RULE_globalStmt);let n;try{switch(this.state=123,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,3,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=111,this.variableDeclarationStmt(),this.state=113,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=112,this.match($.Comma)),this.state=115,this.match($.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=117,this.blockStmt();break;case 3:this.enterOuterAlt(e,3),this.state=118,this.importStmt();break;case 4:this.enterOuterAlt(e,4),this.state=119,this.arrowFunction();break;case 5:this.enterOuterAlt(e,5),this.state=120,this.arrowMethod();break;case 6:this.enterOuterAlt(e,6),this.state=121,this.typeStatement();break;case 7:this.enterOuterAlt(e,7),this.state=122,this.enumStatement();break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockStmt(){let e=new ip(this,this._ctx,this.state);this.enterRule(e,4,$.RULE_blockStmt);try{let n;this.enterOuterAlt(e,1);{for(this.state=130,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=125,this.variableDeclarationStmt(),this.state=126,this.match($.Comma)),this.state=132,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);switch(this.state=135,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 55:case 58:this.state=133,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=134,this.blockExpression();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stmt(){let e=new hl(this,this._ctx,this.state);this.enterRule(e,6,$.RULE_stmt);let n;try{switch(this.state=144,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=137,this.simpleStmt(),this.state=139,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=138,this.match($.Comma)),this.state=141,this.match($.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=143,this.expressionBlockSequence();break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}simpleStmt(){let e=new pl(this,this._ctx,this.state);this.enterRule(e,8,$.RULE_simpleStmt);try{switch(this.state=150,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,8,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=146,this.expressionSequence();break;case 2:this.enterOuterAlt(e,2),this.state=147,this.blockSequence();break;case 3:this.enterOuterAlt(e,3),this.state=148,this.brackethesized();break;case 4:this.enterOuterAlt(e,4),this.state=149,this.flowStmt();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}flowStmt(){let e=new op(this,this._ctx,this.state);this.enterRule(e,10,$.RULE_flowStmt);let n;try{this.enterOuterAlt(e,1),this.state=152,n=this._input.LA(1),n===34||n===39?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}block(){let e=new ls(this,this._ctx,this.state);this.enterRule(e,12,$.RULE_block);let n;try{switch(this.state=161,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 12:case 13:case 31:case 32:case 33:case 34:case 38:case 39:case 40:case 46:case 51:case 54:case 55:case 56:case 57:case 58:this.enterOuterAlt(e,1),this.state=154,this.simpleStmt(),this.state=156,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=155,this.match($.Comma)),this.state=158,this.match($.NEWLINE);break;case 61:this.enterOuterAlt(e,2),this.state=160,this.blockLine();break;default:throw new bi(this)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockLine(){let e=new Eo(this,this._ctx,this.state);this.enterRule(e,14,$.RULE_blockLine);let n;try{this.enterOuterAlt(e,1);{this.state=163,this.match($.NEWLINE),this.state=164,this.match($.INDENT),this.state=166,this._errHandler.sync(this),n=this._input.LA(1);do this.state=165,this.stmt(),this.state=168,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130568167);this.state=170,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}variableDeclarationStmt(){let e=new fu(this,this._ctx,this.state);this.enterRule(e,16,$.RULE_variableDeclarationStmt);try{let n;this.enterOuterAlt(e,1);{switch(this.state=174,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,12,this._ctx)){case 1:this.state=172,this.methodStmt();break;case 2:this.state=173,this.variableDeclarationList();break}for(this.state=183,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=176,this.match($.Comma),this.state=179,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.state=177,this.methodStmt();break;case 2:this.state=178,this.variableDeclarationList();break}this.state=185,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}variableDeclarationList(){let e=new Mi(this,this._ctx,this.state);this.enterRule(e,18,$.RULE_variableDeclarationList);try{switch(this.state=194,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)){case 1:e=new $m(this,e),this.enterOuterAlt(e,1),this.state=186,this.varArrayDeclaration(),this.state=187,this.match($.Assign),this.state=188,this.singleExpression(0);break;case 2:e=new jm(this,e),this.enterOuterAlt(e,2),this.state=190,this.name(),this.state=191,this.assignmentOperator(),this.state=192,this.singleExpression(0);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varModifier(){let e=new dl(this,this._ctx,this.state);this.enterRule(e,20,$.RULE_varModifier);let n;try{this.enterOuterAlt(e,1),this.state=196,n=this._input.LA(1),n===38||n===40?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockSequence(){let e=new ap(this,this._ctx,this.state);this.enterRule(e,22,$.RULE_blockSequence);try{let n;this.enterOuterAlt(e,1);{switch(this.state=200,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,16,this._ctx)){case 1:this.state=198,this.singleExpression(0);break;case 2:this.state=199,this.variableDeclarationList();break}for(this.state=209,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=202,this.match($.Comma),this.state=205,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,17,this._ctx)){case 1:this.state=203,this.singleExpression(0);break;case 2:this.state=204,this.variableDeclarationList();break}this.state=211,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionSequence(){let e=new _l(this,this._ctx,this.state);this.enterRule(e,24,$.RULE_expressionSequence);try{let n;for(this.enterOuterAlt(e,1),this.state=212,this.singleExpression(0),this.state=217,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=213,this.match($.Comma),this.state=214,this.singleExpression(0)),this.state=219,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionBlockSequence(){let e=new sp(this,this._ctx,this.state);this.enterRule(e,26,$.RULE_expressionBlockSequence);try{let n;this.enterOuterAlt(e,1);{for(this.state=228,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=222,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.state=220,this.singleExpression(0);break;case 2:this.state=221,this.variableDeclarationList();break}this.state=224,this.match($.Comma)}this.state=230,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx)}switch(this.state=233,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 55:case 58:this.state=231,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=232,this.blockExpression();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varBlockStmt(){let e=new ml(this,this._ctx,this.state);this.enterRule(e,28,$.RULE_varBlockStmt);try{this.enterOuterAlt(e,1);{switch(this.state=241,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,23,this._ctx)){case 1:this.state=235,this.varArrayDeclaration(),this.state=236,this.match($.Assign);break;case 2:this.state=238,this.name(),this.state=239,this.assignmentOperator();break}this.state=243,this.blockExpression()}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varArrayDeclaration(){let e=new fs(this,this._ctx,this.state);this.enterRule(e,30,$.RULE_varArrayDeclaration);let n;try{switch(this.state=263,this._errHandler.sync(this),this._input.LA(1)){case 38:case 40:case 51:case 54:case 55:case 58:e=new Gm(this,e),this.enterOuterAlt(e,1);{switch(this.state=246,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=245,this.varModifier()),this.state=249,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,25,this._ctx)){case 1:this.state=248,this.typeGather();break}this.state=251,this.identifier()}break;case 4:e=new Hm(this,e),this.enterOuterAlt(e,2);{for(this.state=252,this.match($.OpenBracket),this.state=253,this.identifier(),this.state=258,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=254,this.match($.Comma),this.state=255,this.identifier(),this.state=260,this._errHandler.sync(this),n=this._input.LA(1);this.state=261,this.match($.CloseBracket)}break;default:throw new bi(this)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockExpression(){let e=new hu(this,this._ctx,this.state);this.enterRule(e,32,$.RULE_blockExpression);try{switch(this.state=269,this._errHandler.sync(this),this._input.LA(1)){case 43:this.enterOuterAlt(e,1),this.state=265,this.ifStatement();break;case 37:this.enterOuterAlt(e,2),this.state=266,this.forStatement();break;case 42:this.enterOuterAlt(e,3),this.state=267,this.whileStatement();break;case 41:this.enterOuterAlt(e,4),this.state=268,this.switchStatement();break;default:throw new bi(this)}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}singleExpression(e){e===void 0&&(e=0);let n=this._ctx,r=this.state,a=new je(this,this._ctx,r),c=a,h=34;this.enterRecursionRule(a,34,$.RULE_singleExpression,e);let d;try{let E;this.enterOuterAlt(a,1);{switch(this.state=283,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,29,this._ctx)){case 1:a=new ny(this,a),this._ctx=a,c=a,this.state=272,this.methodStmt();break;case 2:a=new Jm(this,a),this._ctx=a,c=a,this.state=273,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=274,this.singleExpression(12);break;case 3:a=new ey(this,a),this._ctx=a,c=a,this.state=275,this.match($.Not),this.state=276,this.singleExpression(11);break;case 4:a=new Ym(this,a),this._ctx=a,c=a,this.state=277,this.name();break;case 5:a=new Zm(this,a),this._ctx=a,c=a,this.state=278,this.literal();break;case 6:a=new Km(this,a),this._ctx=a,c=a,this.state=279,this.match($.OpenParen),this.state=280,this.singleExpression(0),this.state=281,this.match($.CloseParen);break}for(this._ctx.stop=this._input.LT(-1),this.state=316,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx);E!==2&&E!==Nr.INVALID_ALT_NUMBER;){if(E===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),c=a,this.state=314,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,30,this._ctx)){case 1:{if(a=new iy(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=285,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=286,d=this._input.LA(1),!(d&-32)&&1<<d&114688?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=287,this.singleExpression(11)}break;case 2:{if(a=new zm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=288,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=289,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=290,this.singleExpression(10)}break;case 3:{if(a=new Wm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=291,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=292,d=this._input.LA(1),!(d&-32)&&1<<d&3932160?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=293,this.singleExpression(9)}break;case 4:{if(a=new ry(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=294,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=295,d=this._input.LA(1),d===22||d===23?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=296,this.singleExpression(8)}break;case 5:{if(a=new Xm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=297,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=298,this.match($.And),this.state=299,this.singleExpression(7)}break;case 6:{if(a=new Qm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=300,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=301,this.match($.Or),this.state=302,this.singleExpression(6)}break;case 7:{if(a=new qm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=303,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=304,this.match($.QuestionMark),this.state=305,this.singleExpression(0),this.state=306,this.match($.Colon),this.state=307,this.singleExpression(4)}break;case 8:{if(a=new ty(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=309,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=310,this.match($.OpenBracket),this.state=311,this.singleExpression(0),this.state=312,this.match($.CloseBracket)}break}this.state=318,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx)}}}catch(E){if(E instanceof et)a.exception=E,this._errHandler.reportError(this,E),this._errHandler.recover(this,E);else throw E}finally{this.unrollRecursionContexts(n)}return a}brackethesized(){let e=new yl(this,this._ctx,this.state);this.enterRule(e,36,$.RULE_brackethesized);try{this.enterOuterAlt(e,1),this.state=319,this.match($.OpenBracket),this.state=320,this.expressionSequence(),this.state=321,this.match($.CloseBracket)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}arguments(){let e=new up(this,this._ctx,this.state);this.enterRule(e,38,$.RULE_arguments);let n;try{let r;this.enterOuterAlt(e,1);{if(this.state=323,this.match($.OpenParen),this.state=335,this._errHandler.sync(this),n=this._input.LA(1),!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130564099){for(this.state=324,this.argument(),this.state=329,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=325,this.match($.Comma),this.state=326,this.argument()),this.state=331,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);this.state=333,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=332,this.match($.Comma))}this.state=337,this.match($.CloseParen)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}argument(){let e=new gl(this,this._ctx,this.state);this.enterRule(e,40,$.RULE_argument);try{this.enterOuterAlt(e,1);{switch(this.state=342,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,35,this._ctx)){case 1:this.state=339,this.identifier(),this.state=340,this.match($.Assign);break}switch(this.state=346,this._errHandler.sync(this),this._input.LA(1)){case 6:case 12:case 13:case 31:case 32:case 33:case 46:case 51:case 54:case 55:case 56:case 57:case 58:this.state=344,this.singleExpression(0);break;case 4:this.state=345,this.brackethesized();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}ifStatement(){let e=new cp(this,this._ctx,this.state);this.enterRule(e,42,$.RULE_ifStatement);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=348,this.match($.If),this.state=349,this.singleExpression(0),this.state=350,this.blockLine(),this.state=358,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=351,this.match($.Else),this.state=352,this.match($.If),this.state=353,this.singleExpression(0),this.state=354,this.blockLine()),this.state=360,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);this.state=363,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=361,this.match($.Else),this.state=362,this.blockLine())}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}forStatement(){let e=new pu(this,this._ctx,this.state);this.enterRule(e,44,$.RULE_forStatement);let n;try{switch(this.state=397,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:e=new oy(this,e),this.enterOuterAlt(e,1);{switch(this.state=365,this.match($.For),this.state=367,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=366,this.varModifier()),this.state=370,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,40,this._ctx)){case 1:this.state=369,this.typeGather();break}this.state=372,this.identifier(),this.state=373,this.match($.Assign),this.state=374,this.singleExpression(0),this.state=375,this.match($.To),this.state=376,this.singleExpression(0),this.state=379,this._errHandler.sync(this),n=this._input.LA(1),n===50&&(this.state=377,this.match($.By),this.state=378,this.singleExpression(0)),this.state=381,this.blockLine()}break;case 2:e=new ay(this,e),this.enterOuterAlt(e,2);{switch(this.state=383,this.match($.For),this.state=391,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 55:case 58:this.state=384,this.identifier();break;case 4:this.state=385,this.match($.OpenBracket),this.state=386,this.identifier(),this.state=387,this.match($.Comma),this.state=388,this.identifier(),this.state=389,this.match($.CloseBracket);break;default:throw new bi(this)}this.state=393,this.match($.In),this.state=394,this.singleExpression(0),this.state=395,this.blockLine()}break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}switchStatement(){let e=new lp(this,this._ctx,this.state);this.enterRule(e,46,$.RULE_switchStatement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=399,this.match($.Switch),this.state=401,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099)&&(this.state=400,this.singleExpression(0)),this.state=403,this.match($.NEWLINE),this.state=404,this.match($.INDENT),this.state=417,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,47,this._ctx)){case 1:{this.state=406,this._errHandler.sync(this),n=this._input.LA(1);do this.state=405,this.caseClause(),this.state=408,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099)}break;case 2:{for(this.state=413,this._errHandler.sync(this),n=this._input.LA(1);!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099;)this.state=410,this.caseClause(),this.state=415,this._errHandler.sync(this),n=this._input.LA(1);this.state=416,this.defaultCaluse()}break}this.state=419,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}caseClause(){let e=new vl(this,this._ctx,this.state);this.enterRule(e,48,$.RULE_caseClause);try{this.enterOuterAlt(e,1),this.state=421,this.singleExpression(0),this.state=422,this.match($.ARROW),this.state=423,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}defaultCaluse(){let e=new fp(this,this._ctx,this.state);this.enterRule(e,50,$.RULE_defaultCaluse);try{this.enterOuterAlt(e,1),this.state=425,this.match($.ARROW),this.state=426,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}whileStatement(){let e=new hp(this,this._ctx,this.state);this.enterRule(e,52,$.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=428,this.match($.While),this.state=429,this.singleExpression(0),this.state=430,this.blockLine()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}importStmt(){let e=new pp(this,this._ctx,this.state);this.enterRule(e,54,$.RULE_importStmt);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=432,this.importElement(),this.state=437,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=433,this.match($.Comma),this.state=434,this.importElement()),this.state=439,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);this.state=441,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=440,this.match($.Comma)),this.state=443,this.match($.NEWLINE)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}importElement(){let e=new bl(this,this._ctx,this.state);this.enterRule(e,56,$.RULE_importElement);let n;try{this.enterOuterAlt(e,1),this.state=445,this.match($.Import),this.state=446,this.identifier(),this.state=447,this.match($.Divide),this.state=448,this.identifier(),this.state=449,this.match($.Divide),this.state=450,this.match($.IntegerLiteral),this.state=453,this._errHandler.sync(this),n=this._input.LA(1),n===53&&(this.state=451,this.match($.As),this.state=452,this.identifier())}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}literal(){let e=new dp(this,this._ctx,this.state);this.enterRule(e,58,$.RULE_literal);let n;try{this.enterOuterAlt(e,1),this.state=455,n=this._input.LA(1),!(n-31&-32)&&1<<n-31&100663303?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}methodStmt(){let e=new du(this,this._ctx,this.state);this.enterRule(e,60,$.RULE_methodStmt);try{let n;for(this.enterOuterAlt(e,1),this.state=457,this.methodElement(),this.state=462,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=458,this.match($.Point),this.state=459,this.methodElement()),this.state=464,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodElement(){let e=new hs(this,this._ctx,this.state);this.enterRule(e,62,$.RULE_methodElement);try{this.enterOuterAlt(e,1),this.state=465,this.methodName(),this.state=466,this.arguments()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodName(){let e=new _p(this,this._ctx,this.state);this.enterRule(e,64,$.RULE_methodName);let n;try{let r;this.enterOuterAlt(e,1);{switch(this.state=481,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 55:case 58:for(this.state=473,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=468,this.identifier(),this.state=469,this.match($.Point)),this.state=475,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);break;case 6:this.state=476,this.match($.OpenParen),this.state=477,this.singleExpression(0),this.state=478,this.match($.CloseParen),this.state=479,this.match($.Point);break;default:throw new bi(this)}this.state=483,this.identifier(),this.state=492,this._errHandler.sync(this),n=this._input.LA(1),n===18&&(this.state=484,this.match($.LessThan),this.state=485,this.typeName(),this.state=488,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=486,this.match($.Comma),this.state=487,this.typeName()),this.state=490,this.match($.MoreThan))}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunction(){let e=new mp(this,this._ctx,this.state);this.enterRule(e,66,$.RULE_arrowFunction);let n;try{this.enterOuterAlt(e,1),this.state=495,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=494,this.match($.Export)),this.state=497,this.identifier(),this.state=498,this.arrowFunctionParameters(),this.state=499,this.match($.ARROW),this.state=500,this.block()}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunctionParameters(){let e=new yp(this,this._ctx,this.state);this.enterRule(e,68,$.RULE_arrowFunctionParameters);let n;try{this.enterOuterAlt(e,1),this.state=502,this.match($.OpenParen),this.state=504,this._errHandler.sync(this),n=this._input.LA(1),!(n-51&-32)&&1<<n-51&153&&(this.state=503,this.formalParameterList()),this.state=506,this.match($.CloseParen)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterList(){let e=new El(this,this._ctx,this.state);this.enterRule(e,70,$.RULE_formalParameterList);let n;try{for(this.enterOuterAlt(e,1),this.state=508,this.formalParameterArg(),this.state=513,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=509,this.match($.Comma),this.state=510,this.formalParameterArg(),this.state=515,this._errHandler.sync(this),n=this._input.LA(1)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterArg(){let e=new xl(this,this._ctx,this.state);this.enterRule(e,72,$.RULE_formalParameterArg);let n;try{this.enterOuterAlt(e,1);{switch(this.state=517,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,59,this._ctx)){case 1:this.state=516,this.typeGather();break}this.state=519,this.identifier(),this.state=522,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=520,this.match($.Assign),this.state=521,this.singleExpression(0))}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethod(){let e=new gp(this,this._ctx,this.state);this.enterRule(e,74,$.RULE_arrowMethod);let n;try{this.enterOuterAlt(e,1),this.state=525,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=524,this.match($.Export)),this.state=527,this.match($.Method),this.state=528,this.identifier(),this.state=529,this.arrowMethodParameters(),this.state=530,this.match($.ARROW),this.state=531,this.block()}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethodParameters(){let e=new vp(this,this._ctx,this.state);this.enterRule(e,76,$.RULE_arrowMethodParameters);let n;try{this.enterOuterAlt(e,1),this.state=533,this.match($.OpenParen),this.state=534,this.typeGather(),this.state=535,this.identifier(),this.state=538,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=536,this.match($.Assign),this.state=537,this.singleExpression(0)),this.state=542,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=540,this.match($.Comma),this.state=541,this.formalParameterList()),this.state=544,this.match($.CloseParen)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeStatement(){let e=new bp(this,this._ctx,this.state);this.enterRule(e,78,$.RULE_typeStatement);let n;try{this.enterOuterAlt(e,1);{this.state=547,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=546,this.match($.Export)),this.state=549,this.match($.Type),this.state=550,this.identifier(),this.state=551,this.match($.NEWLINE),this.state=552,this.match($.INDENT),this.state=554,this._errHandler.sync(this),n=this._input.LA(1);do this.state=553,this.typeElement(),this.state=556,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-40&-32)&&1<<n-40&313345);this.state=558,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeElement(){let e=new Sl(this,this._ctx,this.state);this.enterRule(e,80,$.RULE_typeElement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=561,this._errHandler.sync(this),n=this._input.LA(1),n===40&&(this.state=560,this.match($.Varip)),this.state=564,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,67,this._ctx)){case 1:this.state=563,this.typeGather();break}this.state=566,this.identifier(),this.state=569,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=567,this.match($.Assign),this.state=568,this.singleExpression(0)),this.state=571,this.match($.NEWLINE)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}assignmentOperator(){let e=new Tl(this,this._ctx,this.state);this.enterRule(e,82,$.RULE_assignmentOperator);let n;try{this.enterOuterAlt(e,1),this.state=573,n=this._input.LA(1),!(n&-32)&&1<<n&1593835520?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeMap(){let e=new Al(this,this._ctx,this.state);this.enterRule(e,84,$.RULE_typeMap);try{this.enterOuterAlt(e,1),this.state=575,this.match($.Map),this.state=576,this.match($.LessThan),this.state=577,this.typeName(),this.state=578,this.match($.Comma),this.state=579,this.typeName(),this.state=580,this.match($.MoreThan)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeSeries(){let e=new Ep(this,this._ctx,this.state);this.enterRule(e,86,$.RULE_typeSeries);try{switch(this.enterOuterAlt(e,1),this.state=582,this.typeName(),this.state=586,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.state=583,this.typeName();break;case 2:this.state=584,this.typeArray();break;case 3:this.state=585,this.typeMap();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeArray(){let e=new Cl(this,this._ctx,this.state);this.enterRule(e,88,$.RULE_typeArray);try{switch(this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=588,this.typeName(),this.state=589,this.match($.LessThan),this.state=590,this.typeName(),this.state=591,this.match($.MoreThan);break;case 2:this.enterOuterAlt(e,2),this.state=593,this.typeName(),this.state=594,this.match($.OpenBracket),this.state=595,this.match($.CloseBracket);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeGather(){let e=new qo(this,this._ctx,this.state);this.enterRule(e,90,$.RULE_typeGather);try{switch(this.state=603,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=599,this.typeName();break;case 2:this.enterOuterAlt(e,2),this.state=600,this.typeArray();break;case 3:this.enterOuterAlt(e,3),this.state=601,this.typeMap();break;case 4:this.enterOuterAlt(e,4),this.state=602,this.typeSeries();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}identifier(){let e=new xn(this,this._ctx,this.state);this.enterRule(e,92,$.RULE_identifier);let n;try{this.enterOuterAlt(e,1),this.state=605,n=this._input.LA(1),!(n-51&-32)&&1<<n-51&153?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeName(){let e=new Ei(this,this._ctx,this.state);this.enterRule(e,94,$.RULE_typeName);let n;try{this.enterOuterAlt(e,1),this.state=607,this.identifier(),this.state=610,this._errHandler.sync(this),n=this._input.LA(1),n===3&&(this.state=608,this.match($.Point),this.state=609,this.identifier())}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}name(){let e=new _u(this,this._ctx,this.state);this.enterRule(e,96,$.RULE_name);try{let n;switch(this.state=633,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(e,1);{for(this.state=620,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=614,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,73,this._ctx)){case 1:this.state=612,this.identifier();break;case 2:this.state=613,this.methodElement();break}this.state=616,this.match($.Point)}this.state=622,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx)}this.state=623,this.identifier()}break;case 2:this.enterOuterAlt(e,2);{this.state=624,this.match($.OpenParen),this.state=625,this.singleExpression(0),this.state=626,this.match($.CloseParen),this.state=629,this._errHandler.sync(this),n=1;do{switch(n){case 1:this.state=627,this.match($.Point),this.state=628,this.identifier();break;default:throw new bi(this)}this.state=631,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,75,this._ctx)}while(n!==2&&n!==Nr.INVALID_ALT_NUMBER)}break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}enumStatement(){let e=new xp(this,this._ctx,this.state);this.enterRule(e,98,$.RULE_enumStatement);let n;try{this.enterOuterAlt(e,1);{this.state=636,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=635,this.match($.Export)),this.state=638,this.match($.Enum),this.state=639,this.identifier(),this.state=640,this.match($.NEWLINE),this.state=641,this.match($.INDENT),this.state=643,this._errHandler.sync(this),n=this._input.LA(1);do this.state=642,this.enumElement(),this.state=645,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-51&-32)&&1<<n-51&153);this.state=647,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}enumElement(){let e=new Dl(this,this._ctx,this.state);this.enterRule(e,100,$.RULE_enumElement);let n;try{this.enterOuterAlt(e,1),this.state=649,this.identifier(),this.state=652,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=650,this.match($.Assign),this.state=651,this.match($.StringLiteral)),this.state=654,this.match($.NEWLINE)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}sempred(e,n,r){switch(n){case 17:return this.singleExpression_sempred(e,r)}return!0}singleExpression_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,6);case 5:return this.precpred(this._ctx,5);case 6:return this.precpred(this._ctx,4);case 7:return this.precpred(this._ctx,13)}return!0}static get _ATN(){return $.__ATN||($.__ATN=new ep().deserialize($._serializedATN)),$.__ATN}};P($,"INDENT",1),P($,"DEDENT",2),P($,"Point",3),P($,"OpenBracket",4),P($,"CloseBracket",5),P($,"OpenParen",6),P($,"CloseParen",7),P($,"Comma",8),P($,"Assign",9),P($,"QuestionMark",10),P($,"Colon",11),P($,"Plus",12),P($,"Minus",13),P($,"Multiply",14),P($,"Divide",15),P($,"Modulus",16),P($,"Hashtag",17),P($,"LessThan",18),P($,"MoreThan",19),P($,"LessThanEquals",20),P($,"GreaterThanEquals",21),P($,"Equals_",22),P($,"NotEquals",23),P($,"MultiplyAssign",24),P($,"DivideAssign",25),P($,"ModulusAssign",26),P($,"PlusAssign",27),P($,"MinusAssign",28),P($,"ARROW",29),P($,"ColonEquals",30),P($,"BooleanLiteral",31),P($,"IntegerLiteral",32),P($,"DecimalLiteral",33),P($,"Break",34),P($,"And",35),P($,"Export",36),P($,"For",37),P($,"Var",38),P($,"Continue",39),P($,"Varip",40),P($,"Switch",41),P($,"While",42),P($,"If",43),P($,"In",44),P($,"Or",45),P($,"Not",46),P($,"Method",47),P($,"Else",48),P($,"To",49),P($,"By",50),P($,"Type",51),P($,"Import",52),P($,"As",53),P($,"Enum",54),P($,"Map",55),P($,"ColorLiteral",56),P($,"StringLiteral",57),P($,"Identifier",58),P($,"HIDDEN_",59),P($,"COMMENT_",60),P($,"NEWLINE",61),P($,"EOF",rp.EOF),P($,"RULE_program",0),P($,"RULE_globalStmt",1),P($,"RULE_blockStmt",2),P($,"RULE_stmt",3),P($,"RULE_simpleStmt",4),P($,"RULE_flowStmt",5),P($,"RULE_block",6),P($,"RULE_blockLine",7),P($,"RULE_variableDeclarationStmt",8),P($,"RULE_variableDeclarationList",9),P($,"RULE_varModifier",10),P($,"RULE_blockSequence",11),P($,"RULE_expressionSequence",12),P($,"RULE_expressionBlockSequence",13),P($,"RULE_varBlockStmt",14),P($,"RULE_varArrayDeclaration",15),P($,"RULE_blockExpression",16),P($,"RULE_singleExpression",17),P($,"RULE_brackethesized",18),P($,"RULE_arguments",19),P($,"RULE_argument",20),P($,"RULE_ifStatement",21),P($,"RULE_forStatement",22),P($,"RULE_switchStatement",23),P($,"RULE_caseClause",24),P($,"RULE_defaultCaluse",25),P($,"RULE_whileStatement",26),P($,"RULE_importStmt",27),P($,"RULE_importElement",28),P($,"RULE_literal",29),P($,"RULE_methodStmt",30),P($,"RULE_methodElement",31),P($,"RULE_methodName",32),P($,"RULE_arrowFunction",33),P($,"RULE_arrowFunctionParameters",34),P($,"RULE_formalParameterList",35),P($,"RULE_formalParameterArg",36),P($,"RULE_arrowMethod",37),P($,"RULE_arrowMethodParameters",38),P($,"RULE_typeStatement",39),P($,"RULE_typeElement",40),P($,"RULE_assignmentOperator",41),P($,"RULE_typeMap",42),P($,"RULE_typeSeries",43),P($,"RULE_typeArray",44),P($,"RULE_typeGather",45),P($,"RULE_identifier",46),P($,"RULE_typeName",47),P($,"RULE_name",48),P($,"RULE_enumStatement",49),P($,"RULE_enumElement",50),P($,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),P($,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),P($,"ruleNames",["program","globalStmt","blockStmt","stmt","simpleStmt","flowStmt","block","blockLine","variableDeclarationStmt","variableDeclarationList","varModifier","blockSequence","expressionSequence","expressionBlockSequence","varBlockStmt","varArrayDeclaration","blockExpression","singleExpression","brackethesized","arguments","argument","ifStatement","forStatement","switchStatement","caseClause","defaultCaluse","whileStatement","importStmt","importElement","literal","methodStmt","methodElement","methodName","arrowFunction","arrowFunctionParameters","formalParameterList","formalParameterArg","arrowMethod","arrowMethodParameters","typeStatement","typeElement","assignmentOperator","typeMap","typeSeries","typeArray","typeGather","identifier","typeName","name","enumStatement","enumElement"]),P($,"_serializedATN",[4,1,61,657,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,1,0,1,0,5,0,105,8,0,10,0,12,0,108,9,0,1,0,1,0,1,1,1,1,3,1,114,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,124,8,1,1,2,1,2,1,2,5,2,129,8,2,10,2,12,2,132,9,2,1,2,1,2,3,2,136,8,2,1,3,1,3,3,3,140,8,3,1,3,1,3,1,3,3,3,145,8,3,1,4,1,4,1,4,1,4,3,4,151,8,4,1,5,1,5,1,6,1,6,3,6,157,8,6,1,6,1,6,1,6,3,6,162,8,6,1,7,1,7,1,7,4,7,167,8,7,11,7,12,7,168,1,7,1,7,1,8,1,8,3,8,175,8,8,1,8,1,8,1,8,3,8,180,8,8,5,8,182,8,8,10,8,12,8,185,9,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,195,8,9,1,10,1,10,1,11,1,11,3,11,201,8,11,1,11,1,11,1,11,3,11,206,8,11,5,11,208,8,11,10,11,12,11,211,9,11,1,12,1,12,1,12,5,12,216,8,12,10,12,12,12,219,9,12,1,13,1,13,3,13,223,8,13,1,13,1,13,5,13,227,8,13,10,13,12,13,230,9,13,1,13,1,13,3,13,234,8,13,1,14,1,14,1,14,1,14,1,14,1,14,3,14,242,8,14,1,14,1,14,1,15,3,15,247,8,15,1,15,3,15,250,8,15,1,15,1,15,1,15,1,15,1,15,5,15,257,8,15,10,15,12,15,260,9,15,1,15,1,15,3,15,264,8,15,1,16,1,16,1,16,1,16,3,16,270,8,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,3,17,284,8,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,5,17,315,8,17,10,17,12,17,318,9,17,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,5,19,328,8,19,10,19,12,19,331,9,19,1,19,3,19,334,8,19,3,19,336,8,19,1,19,1,19,1,20,1,20,1,20,3,20,343,8,20,1,20,1,20,3,20,347,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,357,8,21,10,21,12,21,360,9,21,1,21,1,21,3,21,364,8,21,1,22,1,22,3,22,368,8,22,1,22,3,22,371,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,380,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,392,8,22,1,22,1,22,1,22,1,22,3,22,398,8,22,1,23,1,23,3,23,402,8,23,1,23,1,23,1,23,4,23,407,8,23,11,23,12,23,408,1,23,5,23,412,8,23,10,23,12,23,415,9,23,1,23,3,23,418,8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,5,27,436,8,27,10,27,12,27,439,9,27,1,27,3,27,442,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,454,8,28,1,29,1,29,1,30,1,30,1,30,5,30,461,8,30,10,30,12,30,464,9,30,1,31,1,31,1,31,1,32,1,32,1,32,5,32,472,8,32,10,32,12,32,475,9,32,1,32,1,32,1,32,1,32,1,32,3,32,482,8,32,1,32,1,32,1,32,1,32,1,32,3,32,489,8,32,1,32,1,32,3,32,493,8,32,1,33,3,33,496,8,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,3,34,505,8,34,1,34,1,34,1,35,1,35,1,35,5,35,512,8,35,10,35,12,35,515,9,35,1,36,3,36,518,8,36,1,36,1,36,1,36,3,36,523,8,36,1,37,3,37,526,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,3,38,539,8,38,1,38,1,38,3,38,543,8,38,1,38,1,38,1,39,3,39,548,8,39,1,39,1,39,1,39,1,39,1,39,4,39,555,8,39,11,39,12,39,556,1,39,1,39,1,40,3,40,562,8,40,1,40,3,40,565,8,40,1,40,1,40,1,40,3,40,570,8,40,1,40,1,40,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,3,43,587,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,598,8,44,1,45,1,45,1,45,1,45,3,45,604,8,45,1,46,1,46,1,47,1,47,1,47,3,47,611,8,47,1,48,1,48,3,48,615,8,48,1,48,1,48,5,48,619,8,48,10,48,12,48,622,9,48,1,48,1,48,1,48,1,48,1,48,1,48,4,48,630,8,48,11,48,12,48,631,3,48,634,8,48,1,49,3,49,637,8,49,1,49,1,49,1,49,1,49,1,49,4,49,644,8,49,11,49,12,49,645,1,49,1,49,1,50,1,50,1,50,3,50,653,8,50,1,50,1,50,1,50,0,1,34,51,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,0,9,2,0,34,34,39,39,2,0,38,38,40,40,1,0,12,13,1,0,14,16,1,0,18,21,1,0,22,23,2,0,31,33,56,57,2,0,24,28,30,30,3,0,51,51,54,55,58,58,707,0,106,1,0,0,0,2,123,1,0,0,0,4,130,1,0,0,0,6,144,1,0,0,0,8,150,1,0,0,0,10,152,1,0,0,0,12,161,1,0,0,0,14,163,1,0,0,0,16,174,1,0,0,0,18,194,1,0,0,0,20,196,1,0,0,0,22,200,1,0,0,0,24,212,1,0,0,0,26,228,1,0,0,0,28,241,1,0,0,0,30,263,1,0,0,0,32,269,1,0,0,0,34,283,1,0,0,0,36,319,1,0,0,0,38,323,1,0,0,0,40,342,1,0,0,0,42,348,1,0,0,0,44,397,1,0,0,0,46,399,1,0,0,0,48,421,1,0,0,0,50,425,1,0,0,0,52,428,1,0,0,0,54,432,1,0,0,0,56,445,1,0,0,0,58,455,1,0,0,0,60,457,1,0,0,0,62,465,1,0,0,0,64,481,1,0,0,0,66,495,1,0,0,0,68,502,1,0,0,0,70,508,1,0,0,0,72,517,1,0,0,0,74,525,1,0,0,0,76,533,1,0,0,0,78,547,1,0,0,0,80,561,1,0,0,0,82,573,1,0,0,0,84,575,1,0,0,0,86,582,1,0,0,0,88,597,1,0,0,0,90,603,1,0,0,0,92,605,1,0,0,0,94,607,1,0,0,0,96,633,1,0,0,0,98,636,1,0,0,0,100,649,1,0,0,0,102,105,5,61,0,0,103,105,3,2,1,0,104,102,1,0,0,0,104,103,1,0,0,0,105,108,1,0,0,0,106,104,1,0,0,0,106,107,1,0,0,0,107,109,1,0,0,0,108,106,1,0,0,0,109,110,5,0,0,1,110,1,1,0,0,0,111,113,3,16,8,0,112,114,5,8,0,0,113,112,1,0,0,0,113,114,1,0,0,0,114,115,1,0,0,0,115,116,5,61,0,0,116,124,1,0,0,0,117,124,3,4,2,0,118,124,3,54,27,0,119,124,3,66,33,0,120,124,3,74,37,0,121,124,3,78,39,0,122,124,3,98,49,0,123,111,1,0,0,0,123,117,1,0,0,0,123,118,1,0,0,0,123,119,1,0,0,0,123,120,1,0,0,0,123,121,1,0,0,0,123,122,1,0,0,0,124,3,1,0,0,0,125,126,3,16,8,0,126,127,5,8,0,0,127,129,1,0,0,0,128,125,1,0,0,0,129,132,1,0,0,0,130,128,1,0,0,0,130,131,1,0,0,0,131,135,1,0,0,0,132,130,1,0,0,0,133,136,3,28,14,0,134,136,3,32,16,0,135,133,1,0,0,0,135,134,1,0,0,0,136,5,1,0,0,0,137,139,3,8,4,0,138,140,5,8,0,0,139,138,1,0,0,0,139,140,1,0,0,0,140,141,1,0,0,0,141,142,5,61,0,0,142,145,1,0,0,0,143,145,3,26,13,0,144,137,1,0,0,0,144,143,1,0,0,0,145,7,1,0,0,0,146,151,3,24,12,0,147,151,3,22,11,0,148,151,3,36,18,0,149,151,3,10,5,0,150,146,1,0,0,0,150,147,1,0,0,0,150,148,1,0,0,0,150,149,1,0,0,0,151,9,1,0,0,0,152,153,7,0,0,0,153,11,1,0,0,0,154,156,3,8,4,0,155,157,5,8,0,0,156,155,1,0,0,0,156,157,1,0,0,0,157,158,1,0,0,0,158,159,5,61,0,0,159,162,1,0,0,0,160,162,3,14,7,0,161,154,1,0,0,0,161,160,1,0,0,0,162,13,1,0,0,0,163,164,5,61,0,0,164,166,5,1,0,0,165,167,3,6,3,0,166,165,1,0,0,0,167,168,1,0,0,0,168,166,1,0,0,0,168,169,1,0,0,0,169,170,1,0,0,0,170,171,5,2,0,0,171,15,1,0,0,0,172,175,3,60,30,0,173,175,3,18,9,0,174,172,1,0,0,0,174,173,1,0,0,0,175,183,1,0,0,0,176,179,5,8,0,0,177,180,3,60,30,0,178,180,3,18,9,0,179,177,1,0,0,0,179,178,1,0,0,0,180,182,1,0,0,0,181,176,1,0,0,0,182,185,1,0,0,0,183,181,1,0,0,0,183,184,1,0,0,0,184,17,1,0,0,0,185,183,1,0,0,0,186,187,3,30,15,0,187,188,5,9,0,0,188,189,3,34,17,0,189,195,1,0,0,0,190,191,3,96,48,0,191,192,3,82,41,0,192,193,3,34,17,0,193,195,1,0,0,0,194,186,1,0,0,0,194,190,1,0,0,0,195,19,1,0,0,0,196,197,7,1,0,0,197,21,1,0,0,0,198,201,3,34,17,0,199,201,3,18,9,0,200,198,1,0,0,0,200,199,1,0,0,0,201,209,1,0,0,0,202,205,5,8,0,0,203,206,3,34,17,0,204,206,3,18,9,0,205,203,1,0,0,0,205,204,1,0,0,0,206,208,1,0,0,0,207,202,1,0,0,0,208,211,1,0,0,0,209,207,1,0,0,0,209,210,1,0,0,0,210,23,1,0,0,0,211,209,1,0,0,0,212,217,3,34,17,0,213,214,5,8,0,0,214,216,3,34,17,0,215,213,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,25,1,0,0,0,219,217,1,0,0,0,220,223,3,34,17,0,221,223,3,18,9,0,222,220,1,0,0,0,222,221,1,0,0,0,223,224,1,0,0,0,224,225,5,8,0,0,225,227,1,0,0,0,226,222,1,0,0,0,227,230,1,0,0,0,228,226,1,0,0,0,228,229,1,0,0,0,229,233,1,0,0,0,230,228,1,0,0,0,231,234,3,28,14,0,232,234,3,32,16,0,233,231,1,0,0,0,233,232,1,0,0,0,234,27,1,0,0,0,235,236,3,30,15,0,236,237,5,9,0,0,237,242,1,0,0,0,238,239,3,96,48,0,239,240,3,82,41,0,240,242,1,0,0,0,241,235,1,0,0,0,241,238,1,0,0,0,242,243,1,0,0,0,243,244,3,32,16,0,244,29,1,0,0,0,245,247,3,20,10,0,246,245,1,0,0,0,246,247,1,0,0,0,247,249,1,0,0,0,248,250,3,90,45,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,264,3,92,46,0,252,253,5,4,0,0,253,258,3,92,46,0,254,255,5,8,0,0,255,257,3,92,46,0,256,254,1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,261,1,0,0,0,260,258,1,0,0,0,261,262,5,5,0,0,262,264,1,0,0,0,263,246,1,0,0,0,263,252,1,0,0,0,264,31,1,0,0,0,265,270,3,42,21,0,266,270,3,44,22,0,267,270,3,52,26,0,268,270,3,46,23,0,269,265,1,0,0,0,269,266,1,0,0,0,269,267,1,0,0,0,269,268,1,0,0,0,270,33,1,0,0,0,271,272,6,17,-1,0,272,284,3,60,30,0,273,274,7,2,0,0,274,284,3,34,17,12,275,276,5,46,0,0,276,284,3,34,17,11,277,284,3,96,48,0,278,284,3,58,29,0,279,280,5,6,0,0,280,281,3,34,17,0,281,282,5,7,0,0,282,284,1,0,0,0,283,271,1,0,0,0,283,273,1,0,0,0,283,275,1,0,0,0,283,277,1,0,0,0,283,278,1,0,0,0,283,279,1,0,0,0,284,316,1,0,0,0,285,286,10,10,0,0,286,287,7,3,0,0,287,315,3,34,17,11,288,289,10,9,0,0,289,290,7,2,0,0,290,315,3,34,17,10,291,292,10,8,0,0,292,293,7,4,0,0,293,315,3,34,17,9,294,295,10,7,0,0,295,296,7,5,0,0,296,315,3,34,17,8,297,298,10,6,0,0,298,299,5,35,0,0,299,315,3,34,17,7,300,301,10,5,0,0,301,302,5,45,0,0,302,315,3,34,17,6,303,304,10,4,0,0,304,305,5,10,0,0,305,306,3,34,17,0,306,307,5,11,0,0,307,308,3,34,17,4,308,315,1,0,0,0,309,310,10,13,0,0,310,311,5,4,0,0,311,312,3,34,17,0,312,313,5,5,0,0,313,315,1,0,0,0,314,285,1,0,0,0,314,288,1,0,0,0,314,291,1,0,0,0,314,294,1,0,0,0,314,297,1,0,0,0,314,300,1,0,0,0,314,303,1,0,0,0,314,309,1,0,0,0,315,318,1,0,0,0,316,314,1,0,0,0,316,317,1,0,0,0,317,35,1,0,0,0,318,316,1,0,0,0,319,320,5,4,0,0,320,321,3,24,12,0,321,322,5,5,0,0,322,37,1,0,0,0,323,335,5,6,0,0,324,329,3,40,20,0,325,326,5,8,0,0,326,328,3,40,20,0,327,325,1,0,0,0,328,331,1,0,0,0,329,327,1,0,0,0,329,330,1,0,0,0,330,333,1,0,0,0,331,329,1,0,0,0,332,334,5,8,0,0,333,332,1,0,0,0,333,334,1,0,0,0,334,336,1,0,0,0,335,324,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,338,5,7,0,0,338,39,1,0,0,0,339,340,3,92,46,0,340,341,5,9,0,0,341,343,1,0,0,0,342,339,1,0,0,0,342,343,1,0,0,0,343,346,1,0,0,0,344,347,3,34,17,0,345,347,3,36,18,0,346,344,1,0,0,0,346,345,1,0,0,0,347,41,1,0,0,0,348,349,5,43,0,0,349,350,3,34,17,0,350,358,3,14,7,0,351,352,5,48,0,0,352,353,5,43,0,0,353,354,3,34,17,0,354,355,3,14,7,0,355,357,1,0,0,0,356,351,1,0,0,0,357,360,1,0,0,0,358,356,1,0,0,0,358,359,1,0,0,0,359,363,1,0,0,0,360,358,1,0,0,0,361,362,5,48,0,0,362,364,3,14,7,0,363,361,1,0,0,0,363,364,1,0,0,0,364,43,1,0,0,0,365,367,5,37,0,0,366,368,3,20,10,0,367,366,1,0,0,0,367,368,1,0,0,0,368,370,1,0,0,0,369,371,3,90,45,0,370,369,1,0,0,0,370,371,1,0,0,0,371,372,1,0,0,0,372,373,3,92,46,0,373,374,5,9,0,0,374,375,3,34,17,0,375,376,5,49,0,0,376,379,3,34,17,0,377,378,5,50,0,0,378,380,3,34,17,0,379,377,1,0,0,0,379,380,1,0,0,0,380,381,1,0,0,0,381,382,3,14,7,0,382,398,1,0,0,0,383,391,5,37,0,0,384,392,3,92,46,0,385,386,5,4,0,0,386,387,3,92,46,0,387,388,5,8,0,0,388,389,3,92,46,0,389,390,5,5,0,0,390,392,1,0,0,0,391,384,1,0,0,0,391,385,1,0,0,0,392,393,1,0,0,0,393,394,5,44,0,0,394,395,3,34,17,0,395,396,3,14,7,0,396,398,1,0,0,0,397,365,1,0,0,0,397,383,1,0,0,0,398,45,1,0,0,0,399,401,5,41,0,0,400,402,3,34,17,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,61,0,0,404,417,5,1,0,0,405,407,3,48,24,0,406,405,1,0,0,0,407,408,1,0,0,0,408,406,1,0,0,0,408,409,1,0,0,0,409,418,1,0,0,0,410,412,3,48,24,0,411,410,1,0,0,0,412,415,1,0,0,0,413,411,1,0,0,0,413,414,1,0,0,0,414,416,1,0,0,0,415,413,1,0,0,0,416,418,3,50,25,0,417,406,1,0,0,0,417,413,1,0,0,0,418,419,1,0,0,0,419,420,5,2,0,0,420,47,1,0,0,0,421,422,3,34,17,0,422,423,5,29,0,0,423,424,3,12,6,0,424,49,1,0,0,0,425,426,5,29,0,0,426,427,3,12,6,0,427,51,1,0,0,0,428,429,5,42,0,0,429,430,3,34,17,0,430,431,3,14,7,0,431,53,1,0,0,0,432,437,3,56,28,0,433,434,5,8,0,0,434,436,3,56,28,0,435,433,1,0,0,0,436,439,1,0,0,0,437,435,1,0,0,0,437,438,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,440,442,5,8,0,0,441,440,1,0,0,0,441,442,1,0,0,0,442,443,1,0,0,0,443,444,5,61,0,0,444,55,1,0,0,0,445,446,5,52,0,0,446,447,3,92,46,0,447,448,5,15,0,0,448,449,3,92,46,0,449,450,5,15,0,0,450,453,5,32,0,0,451,452,5,53,0,0,452,454,3,92,46,0,453,451,1,0,0,0,453,454,1,0,0,0,454,57,1,0,0,0,455,456,7,6,0,0,456,59,1,0,0,0,457,462,3,62,31,0,458,459,5,3,0,0,459,461,3,62,31,0,460,458,1,0,0,0,461,464,1,0,0,0,462,460,1,0,0,0,462,463,1,0,0,0,463,61,1,0,0,0,464,462,1,0,0,0,465,466,3,64,32,0,466,467,3,38,19,0,467,63,1,0,0,0,468,469,3,92,46,0,469,470,5,3,0,0,470,472,1,0,0,0,471,468,1,0,0,0,472,475,1,0,0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,482,1,0,0,0,475,473,1,0,0,0,476,477,5,6,0,0,477,478,3,34,17,0,478,479,5,7,0,0,479,480,5,3,0,0,480,482,1,0,0,0,481,473,1,0,0,0,481,476,1,0,0,0,482,483,1,0,0,0,483,492,3,92,46,0,484,485,5,18,0,0,485,488,3,94,47,0,486,487,5,8,0,0,487,489,3,94,47,0,488,486,1,0,0,0,488,489,1,0,0,0,489,490,1,0,0,0,490,491,5,19,0,0,491,493,1,0,0,0,492,484,1,0,0,0,492,493,1,0,0,0,493,65,1,0,0,0,494,496,5,36,0,0,495,494,1,0,0,0,495,496,1,0,0,0,496,497,1,0,0,0,497,498,3,92,46,0,498,499,3,68,34,0,499,500,5,29,0,0,500,501,3,12,6,0,501,67,1,0,0,0,502,504,5,6,0,0,503,505,3,70,35,0,504,503,1,0,0,0,504,505,1,0,0,0,505,506,1,0,0,0,506,507,5,7,0,0,507,69,1,0,0,0,508,513,3,72,36,0,509,510,5,8,0,0,510,512,3,72,36,0,511,509,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,513,514,1,0,0,0,514,71,1,0,0,0,515,513,1,0,0,0,516,518,3,90,45,0,517,516,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,522,3,92,46,0,520,521,5,9,0,0,521,523,3,34,17,0,522,520,1,0,0,0,522,523,1,0,0,0,523,73,1,0,0,0,524,526,5,36,0,0,525,524,1,0,0,0,525,526,1,0,0,0,526,527,1,0,0,0,527,528,5,47,0,0,528,529,3,92,46,0,529,530,3,76,38,0,530,531,5,29,0,0,531,532,3,12,6,0,532,75,1,0,0,0,533,534,5,6,0,0,534,535,3,90,45,0,535,538,3,92,46,0,536,537,5,9,0,0,537,539,3,34,17,0,538,536,1,0,0,0,538,539,1,0,0,0,539,542,1,0,0,0,540,541,5,8,0,0,541,543,3,70,35,0,542,540,1,0,0,0,542,543,1,0,0,0,543,544,1,0,0,0,544,545,5,7,0,0,545,77,1,0,0,0,546,548,5,36,0,0,547,546,1,0,0,0,547,548,1,0,0,0,548,549,1,0,0,0,549,550,5,51,0,0,550,551,3,92,46,0,551,552,5,61,0,0,552,554,5,1,0,0,553,555,3,80,40,0,554,553,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,2,0,0,559,79,1,0,0,0,560,562,5,40,0,0,561,560,1,0,0,0,561,562,1,0,0,0,562,564,1,0,0,0,563,565,3,90,45,0,564,563,1,0,0,0,564,565,1,0,0,0,565,566,1,0,0,0,566,569,3,92,46,0,567,568,5,9,0,0,568,570,3,34,17,0,569,567,1,0,0,0,569,570,1,0,0,0,570,571,1,0,0,0,571,572,5,61,0,0,572,81,1,0,0,0,573,574,7,7,0,0,574,83,1,0,0,0,575,576,5,55,0,0,576,577,5,18,0,0,577,578,3,94,47,0,578,579,5,8,0,0,579,580,3,94,47,0,580,581,5,19,0,0,581,85,1,0,0,0,582,586,3,94,47,0,583,587,3,94,47,0,584,587,3,88,44,0,585,587,3,84,42,0,586,583,1,0,0,0,586,584,1,0,0,0,586,585,1,0,0,0,587,87,1,0,0,0,588,589,3,94,47,0,589,590,5,18,0,0,590,591,3,94,47,0,591,592,5,19,0,0,592,598,1,0,0,0,593,594,3,94,47,0,594,595,5,4,0,0,595,596,5,5,0,0,596,598,1,0,0,0,597,588,1,0,0,0,597,593,1,0,0,0,598,89,1,0,0,0,599,604,3,94,47,0,600,604,3,88,44,0,601,604,3,84,42,0,602,604,3,86,43,0,603,599,1,0,0,0,603,600,1,0,0,0,603,601,1,0,0,0,603,602,1,0,0,0,604,91,1,0,0,0,605,606,7,8,0,0,606,93,1,0,0,0,607,610,3,92,46,0,608,609,5,3,0,0,609,611,3,92,46,0,610,608,1,0,0,0,610,611,1,0,0,0,611,95,1,0,0,0,612,615,3,92,46,0,613,615,3,62,31,0,614,612,1,0,0,0,614,613,1,0,0,0,615,616,1,0,0,0,616,617,5,3,0,0,617,619,1,0,0,0,618,614,1,0,0,0,619,622,1,0,0,0,620,618,1,0,0,0,620,621,1,0,0,0,621,623,1,0,0,0,622,620,1,0,0,0,623,634,3,92,46,0,624,625,5,6,0,0,625,626,3,34,17,0,626,629,5,7,0,0,627,628,5,3,0,0,628,630,3,92,46,0,629,627,1,0,0,0,630,631,1,0,0,0,631,629,1,0,0,0,631,632,1,0,0,0,632,634,1,0,0,0,633,620,1,0,0,0,633,624,1,0,0,0,634,97,1,0,0,0,635,637,5,36,0,0,636,635,1,0,0,0,636,637,1,0,0,0,637,638,1,0,0,0,638,639,5,54,0,0,639,640,3,92,46,0,640,641,5,61,0,0,641,643,5,1,0,0,642,644,3,100,50,0,643,642,1,0,0,0,644,645,1,0,0,0,645,643,1,0,0,0,645,646,1,0,0,0,646,647,1,0,0,0,647,648,5,2,0,0,648,99,1,0,0,0,649,652,3,92,46,0,650,651,5,9,0,0,651,653,5,57,0,0,652,650,1,0,0,0,652,653,1,0,0,0,653,654,1,0,0,0,654,655,5,61,0,0,655,101,1,0,0,0,80,104,106,113,123,130,135,139,144,150,156,161,168,174,179,183,194,200,205,209,217,222,228,233,241,246,249,258,263,269,283,314,316,329,333,335,342,346,358,363,367,370,379,391,397,401,408,413,417,437,441,453,462,473,481,488,492,495,504,513,517,522,525,538,542,547,556,561,564,569,586,597,603,610,614,620,631,633,636,645,652]),P($,"__ATN"),P($,"DecisionsToDFA",$._ATN.decisionToState.map((e,n)=>new tp(e,n)));let j=$;class Vm extends Je{constructor(e,n,r){super(n,r),this.parser=e}EOF(){return this.getToken(j.EOF,0)}NEWLINE_list(){return this.getTokens(j.NEWLINE)}NEWLINE(e){return this.getToken(j.NEWLINE,e)}globalStmt_list(){return this.getTypedRuleContexts(fl)}globalStmt(e){return this.getTypedRuleContext(fl,e)}get ruleIndex(){return j.RULE_program}accept(e){return e.visitProgram?e.visitProgram(this):e.visitChildren(this)}}class fl extends Je{constructor(e,n,r){super(n,r),this.parser=e}variableDeclarationStmt(){return this.getTypedRuleContext(fu,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}blockStmt(){return this.getTypedRuleContext(ip,0)}importStmt(){return this.getTypedRuleContext(pp,0)}arrowFunction(){return this.getTypedRuleContext(mp,0)}arrowMethod(){return this.getTypedRuleContext(gp,0)}typeStatement(){return this.getTypedRuleContext(bp,0)}enumStatement(){return this.getTypedRuleContext(xp,0)}get ruleIndex(){return j.RULE_globalStmt}accept(e){return e.visitGlobalStmt?e.visitGlobalStmt(this):e.visitChildren(this)}}class ip extends Je{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ml,0)}blockExpression(){return this.getTypedRuleContext(hu,0)}variableDeclarationStmt_list(){return this.getTypedRuleContexts(fu)}variableDeclarationStmt(e){return this.getTypedRuleContext(fu,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_blockStmt}accept(e){return e.visitBlockStmt?e.visitBlockStmt(this):e.visitChildren(this)}}class hl extends Je{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(pl,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}expressionBlockSequence(){return this.getTypedRuleContext(sp,0)}get ruleIndex(){return j.RULE_stmt}accept(e){return e.visitStmt?e.visitStmt(this):e.visitChildren(this)}}class pl extends Je{constructor(e,n,r){super(n,r),this.parser=e}expressionSequence(){return this.getTypedRuleContext(_l,0)}blockSequence(){return this.getTypedRuleContext(ap,0)}brackethesized(){return this.getTypedRuleContext(yl,0)}flowStmt(){return this.getTypedRuleContext(op,0)}get ruleIndex(){return j.RULE_simpleStmt}accept(e){return e.visitSimpleStmt?e.visitSimpleStmt(this):e.visitChildren(this)}}class op extends Je{constructor(e,n,r){super(n,r),this.parser=e}Break(){return this.getToken(j.Break,0)}Continue(){return this.getToken(j.Continue,0)}get ruleIndex(){return j.RULE_flowStmt}accept(e){return e.visitFlowStmt?e.visitFlowStmt(this):e.visitChildren(this)}}class ls extends Je{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(pl,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}get ruleIndex(){return j.RULE_block}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}}class Eo extends Je{constructor(e,n,r){super(n,r),this.parser=e}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}stmt_list(){return this.getTypedRuleContexts(hl)}stmt(e){return this.getTypedRuleContext(hl,e)}get ruleIndex(){return j.RULE_blockLine}accept(e){return e.visitBlockLine?e.visitBlockLine(this):e.visitChildren(this)}}class fu extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodStmt_list(){return this.getTypedRuleContexts(du)}methodStmt(e){return this.getTypedRuleContext(du,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_variableDeclarationStmt}accept(e){return e.visitVariableDeclarationStmt?e.visitVariableDeclarationStmt(this):e.visitChildren(this)}}class Mi extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_variableDeclarationList}copyFrom(e){super.copyFrom(e)}}class jm extends Mi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(_u,0)}assignmentOperator(){return this.getTypedRuleContext(Tl,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitAgainAssign?e.visitAgainAssign(this):e.visitChildren(this)}}class $m extends Mi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}varArrayDeclaration(){return this.getTypedRuleContext(fs,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitDeclareAssign?e.visitDeclareAssign(this):e.visitChildren(this)}}class dl extends Je{constructor(e,n,r){super(n,r),this.parser=e}Var(){return this.getToken(j.Var,0)}Varip(){return this.getToken(j.Varip,0)}get ruleIndex(){return j.RULE_varModifier}accept(e){return e.visitVarModifier?e.visitVarModifier(this):e.visitChildren(this)}}class ap extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_blockSequence}accept(e){return e.visitBlockSequence?e.visitBlockSequence(this):e.visitChildren(this)}}class _l extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_expressionSequence}accept(e){return e.visitExpressionSequence?e.visitExpressionSequence(this):e.visitChildren(this)}}class sp extends Je{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ml,0)}blockExpression(){return this.getTypedRuleContext(hu,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}get ruleIndex(){return j.RULE_expressionBlockSequence}accept(e){return e.visitExpressionBlockSequence?e.visitExpressionBlockSequence(this):e.visitChildren(this)}}class ml extends Je{constructor(e,n,r){super(n,r),this.parser=e}blockExpression(){return this.getTypedRuleContext(hu,0)}varArrayDeclaration(){return this.getTypedRuleContext(fs,0)}Assign(){return this.getToken(j.Assign,0)}name(){return this.getTypedRuleContext(_u,0)}assignmentOperator(){return this.getTypedRuleContext(Tl,0)}get ruleIndex(){return j.RULE_varBlockStmt}accept(e){return e.visitVarBlockStmt?e.visitVarBlockStmt(this):e.visitChildren(this)}}class fs extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_varArrayDeclaration}copyFrom(e){super.copyFrom(e)}}class Hm extends fs{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenBracket(){return this.getToken(j.OpenBracket,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}CloseBracket(){return this.getToken(j.CloseBracket,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}accept(e){return e.visitVarMultiple?e.visitVarMultiple(this):e.visitChildren(this)}}class Gm extends fs{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}identifier(){return this.getTypedRuleContext(xn,0)}varModifier(){return this.getTypedRuleContext(dl,0)}typeGather(){return this.getTypedRuleContext(qo,0)}accept(e){return e.visitVarSingle?e.visitVarSingle(this):e.visitChildren(this)}}class hu extends Je{constructor(e,n,r){super(n,r),this.parser=e}ifStatement(){return this.getTypedRuleContext(cp,0)}forStatement(){return this.getTypedRuleContext(pu,0)}whileStatement(){return this.getTypedRuleContext(hp,0)}switchStatement(){return this.getTypedRuleContext(lp,0)}get ruleIndex(){return j.RULE_blockExpression}accept(e){return e.visitBlockExpression?e.visitBlockExpression(this):e.visitChildren(this)}}class je extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_singleExpression}copyFrom(e){super.copyFrom(e)}}class Km extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}accept(e){return e.visitParenthesizedExpression?e.visitParenthesizedExpression(this):e.visitChildren(this)}}class zm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Plus(){return this.getToken(j.Plus,0)}Minus(){return this.getToken(j.Minus,0)}accept(e){return e.visitAdditiveExpression?e.visitAdditiveExpression(this):e.visitChildren(this)}}class Wm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}LessThan(){return this.getToken(j.LessThan,0)}MoreThan(){return this.getToken(j.MoreThan,0)}LessThanEquals(){return this.getToken(j.LessThanEquals,0)}GreaterThanEquals(){return this.getToken(j.GreaterThanEquals,0)}accept(e){return e.visitRelationalExpression?e.visitRelationalExpression(this):e.visitChildren(this)}}class qm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}QuestionMark(){return this.getToken(j.QuestionMark,0)}Colon(){return this.getToken(j.Colon,0)}accept(e){return e.visitTernaryExpression?e.visitTernaryExpression(this):e.visitChildren(this)}}class Xm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}And(){return this.getToken(j.And,0)}accept(e){return e.visitLogicalAndExpression?e.visitLogicalAndExpression(this):e.visitChildren(this)}}class Ym extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(_u,0)}accept(e){return e.visitNameExpression?e.visitNameExpression(this):e.visitChildren(this)}}class Zm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}literal(){return this.getTypedRuleContext(dp,0)}accept(e){return e.visitLiteralExpression?e.visitLiteralExpression(this):e.visitChildren(this)}}class Qm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Or(){return this.getToken(j.Or,0)}accept(e){return e.visitLogicalOrExpression?e.visitLogicalOrExpression(this):e.visitChildren(this)}}class Jm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression(){return this.getTypedRuleContext(je,0)}Minus(){return this.getToken(j.Minus,0)}Plus(){return this.getToken(j.Plus,0)}accept(e){return e.visitUnaryExpression?e.visitUnaryExpression(this):e.visitChildren(this)}}class ey extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}Not(){return this.getToken(j.Not,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitNotExpression?e.visitNotExpression(this):e.visitChildren(this)}}class ty extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}OpenBracket(){return this.getToken(j.OpenBracket,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}accept(e){return e.visitMemberIndexExpression?e.visitMemberIndexExpression(this):e.visitChildren(this)}}class ny extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}methodStmt(){return this.getTypedRuleContext(du,0)}accept(e){return e.visitMethodExpression?e.visitMethodExpression(this):e.visitChildren(this)}}class ry extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Equals_(){return this.getToken(j.Equals_,0)}NotEquals(){return this.getToken(j.NotEquals,0)}accept(e){return e.visitEqualityExpression?e.visitEqualityExpression(this):e.visitChildren(this)}}class iy extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Multiply(){return this.getToken(j.Multiply,0)}Divide(){return this.getToken(j.Divide,0)}Modulus(){return this.getToken(j.Modulus,0)}accept(e){return e.visitMultiplicativeExpression?e.visitMultiplicativeExpression(this):e.visitChildren(this)}}class yl extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenBracket(){return this.getToken(j.OpenBracket,0)}expressionSequence(){return this.getTypedRuleContext(_l,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}get ruleIndex(){return j.RULE_brackethesized}accept(e){return e.visitBrackethesized?e.visitBrackethesized(this):e.visitChildren(this)}}class up extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}CloseParen(){return this.getToken(j.CloseParen,0)}argument_list(){return this.getTypedRuleContexts(gl)}argument(e){return this.getTypedRuleContext(gl,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_arguments}accept(e){return e.visitArguments?e.visitArguments(this):e.visitChildren(this)}}class gl extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(je,0)}brackethesized(){return this.getTypedRuleContext(yl,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(j.Assign,0)}get ruleIndex(){return j.RULE_argument}accept(e){return e.visitArgument?e.visitArgument(this):e.visitChildren(this)}}class cp extends Je{constructor(e,n,r){super(n,r),this.parser=e}If_list(){return this.getTokens(j.If)}If(e){return this.getToken(j.If,e)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}blockLine_list(){return this.getTypedRuleContexts(Eo)}blockLine(e){return this.getTypedRuleContext(Eo,e)}Else_list(){return this.getTokens(j.Else)}Else(e){return this.getToken(j.Else,e)}get ruleIndex(){return j.RULE_ifStatement}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}}class pu extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_forStatement}copyFrom(e){super.copyFrom(e)}}class oy extends pu{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(j.For,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}To(){return this.getToken(j.To,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}varModifier(){return this.getTypedRuleContext(dl,0)}typeGather(){return this.getTypedRuleContext(qo,0)}By(){return this.getToken(j.By,0)}accept(e){return e.visitForToStatement?e.visitForToStatement(this):e.visitChildren(this)}}class ay extends pu{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(j.For,0)}In(){return this.getToken(j.In,0)}singleExpression(){return this.getTypedRuleContext(je,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenBracket(){return this.getToken(j.OpenBracket,0)}Comma(){return this.getToken(j.Comma,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}accept(e){return e.visitForInStatement?e.visitForInStatement(this):e.visitChildren(this)}}class lp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Switch(){return this.getToken(j.Switch,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}singleExpression(){return this.getTypedRuleContext(je,0)}defaultCaluse(){return this.getTypedRuleContext(fp,0)}caseClause_list(){return this.getTypedRuleContexts(vl)}caseClause(e){return this.getTypedRuleContext(vl,e)}get ruleIndex(){return j.RULE_switchStatement}accept(e){return e.visitSwitchStatement?e.visitSwitchStatement(this):e.visitChildren(this)}}class vl extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(je,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}get ruleIndex(){return j.RULE_caseClause}accept(e){return e.visitCaseClause?e.visitCaseClause(this):e.visitChildren(this)}}class fp extends Je{constructor(e,n,r){super(n,r),this.parser=e}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}get ruleIndex(){return j.RULE_defaultCaluse}accept(e){return e.visitDefaultCaluse?e.visitDefaultCaluse(this):e.visitChildren(this)}}class hp extends Je{constructor(e,n,r){super(n,r),this.parser=e}While(){return this.getToken(j.While,0)}singleExpression(){return this.getTypedRuleContext(je,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}get ruleIndex(){return j.RULE_whileStatement}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}}class pp extends Je{constructor(e,n,r){super(n,r),this.parser=e}importElement_list(){return this.getTypedRuleContexts(bl)}importElement(e){return this.getTypedRuleContext(bl,e)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_importStmt}accept(e){return e.visitImportStmt?e.visitImportStmt(this):e.visitChildren(this)}}class bl extends Je{constructor(e,n,r){super(n,r),this.parser=e}Import(){return this.getToken(j.Import,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Divide_list(){return this.getTokens(j.Divide)}Divide(e){return this.getToken(j.Divide,e)}IntegerLiteral(){return this.getToken(j.IntegerLiteral,0)}As(){return this.getToken(j.As,0)}get ruleIndex(){return j.RULE_importElement}accept(e){return e.visitImportElement?e.visitImportElement(this):e.visitChildren(this)}}class dp extends Je{constructor(e,n,r){super(n,r),this.parser=e}BooleanLiteral(){return this.getToken(j.BooleanLiteral,0)}ColorLiteral(){return this.getToken(j.ColorLiteral,0)}StringLiteral(){return this.getToken(j.StringLiteral,0)}IntegerLiteral(){return this.getToken(j.IntegerLiteral,0)}DecimalLiteral(){return this.getToken(j.DecimalLiteral,0)}get ruleIndex(){return j.RULE_literal}accept(e){return e.visitLiteral?e.visitLiteral(this):e.visitChildren(this)}}class du extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodElement_list(){return this.getTypedRuleContexts(hs)}methodElement(e){return this.getTypedRuleContext(hs,e)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}get ruleIndex(){return j.RULE_methodStmt}accept(e){return e.visitMethodStmt?e.visitMethodStmt(this):e.visitChildren(this)}}class hs extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodName(){return this.getTypedRuleContext(_p,0)}arguments(){return this.getTypedRuleContext(up,0)}get ruleIndex(){return j.RULE_methodElement}accept(e){return e.visitMethodElement?e.visitMethodElement(this):e.visitChildren(this)}}class _p extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}LessThan(){return this.getToken(j.LessThan,0)}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}MoreThan(){return this.getToken(j.MoreThan,0)}Comma(){return this.getToken(j.Comma,0)}get ruleIndex(){return j.RULE_methodName}accept(e){return e.visitMethodName?e.visitMethodName(this):e.visitChildren(this)}}class mp extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}arrowFunctionParameters(){return this.getTypedRuleContext(yp,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}Export(){return this.getToken(j.Export,0)}get ruleIndex(){return j.RULE_arrowFunction}accept(e){return e.visitArrowFunction?e.visitArrowFunction(this):e.visitChildren(this)}}class yp extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}CloseParen(){return this.getToken(j.CloseParen,0)}formalParameterList(){return this.getTypedRuleContext(El,0)}get ruleIndex(){return j.RULE_arrowFunctionParameters}accept(e){return e.visitArrowFunctionParameters?e.visitArrowFunctionParameters(this):e.visitChildren(this)}}class El extends Je{constructor(e,n,r){super(n,r),this.parser=e}formalParameterArg_list(){return this.getTypedRuleContexts(xl)}formalParameterArg(e){return this.getTypedRuleContext(xl,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_formalParameterList}accept(e){return e.visitFormalParameterList?e.visitFormalParameterList(this):e.visitChildren(this)}}class xl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}typeGather(){return this.getTypedRuleContext(qo,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}get ruleIndex(){return j.RULE_formalParameterArg}accept(e){return e.visitFormalParameterArg?e.visitFormalParameterArg(this):e.visitChildren(this)}}class gp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Method(){return this.getToken(j.Method,0)}identifier(){return this.getTypedRuleContext(xn,0)}arrowMethodParameters(){return this.getTypedRuleContext(vp,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}Export(){return this.getToken(j.Export,0)}get ruleIndex(){return j.RULE_arrowMethod}accept(e){return e.visitArrowMethod?e.visitArrowMethod(this):e.visitChildren(this)}}class vp extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}typeGather(){return this.getTypedRuleContext(qo,0)}identifier(){return this.getTypedRuleContext(xn,0)}CloseParen(){return this.getToken(j.CloseParen,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}Comma(){return this.getToken(j.Comma,0)}formalParameterList(){return this.getTypedRuleContext(El,0)}get ruleIndex(){return j.RULE_arrowMethodParameters}accept(e){return e.visitArrowMethodParameters?e.visitArrowMethodParameters(this):e.visitChildren(this)}}class bp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Type(){return this.getToken(j.Type,0)}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}Export(){return this.getToken(j.Export,0)}typeElement_list(){return this.getTypedRuleContexts(Sl)}typeElement(e){return this.getTypedRuleContext(Sl,e)}get ruleIndex(){return j.RULE_typeStatement}accept(e){return e.visitTypeStatement?e.visitTypeStatement(this):e.visitChildren(this)}}class Sl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Varip(){return this.getToken(j.Varip,0)}typeGather(){return this.getTypedRuleContext(qo,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}get ruleIndex(){return j.RULE_typeElement}accept(e){return e.visitTypeElement?e.visitTypeElement(this):e.visitChildren(this)}}class Tl extends Je{constructor(e,n,r){super(n,r),this.parser=e}ColonEquals(){return this.getToken(j.ColonEquals,0)}MultiplyAssign(){return this.getToken(j.MultiplyAssign,0)}DivideAssign(){return this.getToken(j.DivideAssign,0)}ModulusAssign(){return this.getToken(j.ModulusAssign,0)}PlusAssign(){return this.getToken(j.PlusAssign,0)}MinusAssign(){return this.getToken(j.MinusAssign,0)}get ruleIndex(){return j.RULE_assignmentOperator}accept(e){return e.visitAssignmentOperator?e.visitAssignmentOperator(this):e.visitChildren(this)}}class Al extends Je{constructor(e,n,r){super(n,r),this.parser=e}Map(){return this.getToken(j.Map,0)}LessThan(){return this.getToken(j.LessThan,0)}Comma(){return this.getToken(j.Comma,0)}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}MoreThan(){return this.getToken(j.MoreThan,0)}get ruleIndex(){return j.RULE_typeMap}accept(e){return e.visitTypeMap?e.visitTypeMap(this):e.visitChildren(this)}}class Ep extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}typeArray(){return this.getTypedRuleContext(Cl,0)}typeMap(){return this.getTypedRuleContext(Al,0)}get ruleIndex(){return j.RULE_typeSeries}accept(e){return e.visitTypeSeries?e.visitTypeSeries(this):e.visitChildren(this)}}class Cl extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}LessThan(){return this.getToken(j.LessThan,0)}MoreThan(){return this.getToken(j.MoreThan,0)}OpenBracket(){return this.getToken(j.OpenBracket,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}get ruleIndex(){return j.RULE_typeArray}accept(e){return e.visitTypeArray?e.visitTypeArray(this):e.visitChildren(this)}}class qo extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName(){return this.getTypedRuleContext(Ei,0)}typeArray(){return this.getTypedRuleContext(Cl,0)}typeMap(){return this.getTypedRuleContext(Al,0)}typeSeries(){return this.getTypedRuleContext(Ep,0)}get ruleIndex(){return j.RULE_typeGather}accept(e){return e.visitTypeGather?e.visitTypeGather(this):e.visitChildren(this)}}class xn extends Je{constructor(e,n,r){super(n,r),this.parser=e}Identifier(){return this.getToken(j.Identifier,0)}Map(){return this.getToken(j.Map,0)}Type(){return this.getToken(j.Type,0)}Enum(){return this.getToken(j.Enum,0)}get ruleIndex(){return j.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}}class Ei extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point(){return this.getToken(j.Point,0)}get ruleIndex(){return j.RULE_typeName}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}}class _u extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}methodElement_list(){return this.getTypedRuleContexts(hs)}methodElement(e){return this.getTypedRuleContext(hs,e)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}get ruleIndex(){return j.RULE_name}accept(e){return e.visitName?e.visitName(this):e.visitChildren(this)}}class xp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Enum(){return this.getToken(j.Enum,0)}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}Export(){return this.getToken(j.Export,0)}enumElement_list(){return this.getTypedRuleContexts(Dl)}enumElement(e){return this.getTypedRuleContext(Dl,e)}get ruleIndex(){return j.RULE_enumStatement}accept(e){return e.visitEnumStatement?e.visitEnumStatement(this):e.visitChildren(this)}}class Dl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Assign(){return this.getToken(j.Assign,0)}StringLiteral(){return this.getToken(j.StringLiteral,0)}get ruleIndex(){return j.RULE_enumElement}accept(e){return e.visitEnumElement?e.visitEnumElement(this):e.visitChildren(this)}}class sy extends Im{constructor(n){super(n);P(this,"tokens");P(this,"indents");P(this,"opened");this.tokens=[],this.indents=[],this.opened=0}reset(){this.tokens=[],this.indents=[],this.opened=0,super.reset()}emitToken(n){super.emitToken(n),this.tokens.push(n)}nextToken(){if(this._input.LA(1)===j.EOF&&this.indents.length){for(this.tokens=this.tokens.filter(function(r){return r.type!==j.EOF}),this.emitToken(this.commonToken(j.NEWLINE,`
7
+ `,y)),y.context===null||y.context.hasEmptyPath()){if(y.context===null||y.context.isEmpty())return o.add(y),!0;o.add(new Ii({state:y.state,context:st.EMPTY},y)),u=!0}if(y.context!==null&&!y.context.isEmpty()){for(var U=0;U<y.context.length;U++)if(y.context.getReturnState(U)!==st.EMPTY_RETURN_STATE){var fe=y.context.getParent(U),Ne=this.atn.states[y.context.getReturnState(U)];C=new Ii({state:Ne,context:fe},y),u=this.closure(l,C,o,u,S,k)}}return u}y.state.epsilonOnlyTransitions||u&&y.passedThroughNonGreedyDecision||o.add(y);for(var Re=0;Re<y.state.transitions.length;Re++){var Ge=y.state.transitions[Re];(C=this.getEpsilonTarget(l,y,Ge,o,S,k))!==null&&(u=this.closure(l,C,o,u,S,k))}return u}},{key:"getEpsilonTarget",value:function(l,y,o,u,S,k){var C=null;if(o.serializationType===be.RULE){var U=_t.create(y.context,o.followState.stateNumber);C=new Ii({state:o.target,context:U},y)}else{if(o.serializationType===be.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(o.serializationType===be.PREDICATE)_.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),u.hasSemanticContext=!0,this.evaluatePredicate(l,o.ruleIndex,o.predIndex,S)&&(C=new Ii({state:o.target},y));else if(o.serializationType===be.ACTION)if(y.context===null||y.context.hasEmptyPath()){var fe=_b.append(y.lexerActionExecutor,this.atn.lexerActions[o.actionIndex]);C=new Ii({state:o.target,lexerActionExecutor:fe},y)}else C=new Ii({state:o.target},y);else o.serializationType===be.EPSILON?C=new Ii({state:o.target},y):o.serializationType!==be.ATOM&&o.serializationType!==be.RANGE&&o.serializationType!==be.SET||k&&o.matches(n.EOF,0,hr.MAX_CHAR_VALUE)&&(C=new Ii({state:o.target},y))}return C}},{key:"evaluatePredicate",value:function(l,y,o,u){if(this.recog===null)return!0;if(!u)return this.recog.sempred(null,y,o);var S=this.column,k=this.line,C=l.index,U=l.mark();try{return this.consume(l),this.recog.sempred(null,y,o)}finally{this.column=S,this.line=k,l.seek(C),l.release(U)}}},{key:"captureSimState",value:function(l,y,o){l.index=y.index,l.line=this.line,l.column=this.column,l.dfaState=o}},{key:"addDFAEdge",value:function(l,y,o,u){if(o===void 0&&(o=null),u===void 0&&(u=null),o===null&&u!==null){var S=u.hasSemanticContext;if(u.hasSemanticContext=!1,o=this.addDFAState(u),S)return o}return y<_.MIN_DFA_EDGE||y>_.MAX_DFA_EDGE||(_.debug&&console.log("EDGE "+l+" -> "+o+" upon "+y),l.edges===null&&(l.edges=[]),l.edges[y-_.MIN_DFA_EDGE]=o),o}},{key:"addDFAState",value:function(l){for(var y=new Wo(null,l),o=null,u=0;u<l.items.length;u++){var S=l.items[u];if(S.state instanceof St){o=S;break}}o!==null&&(y.isAcceptState=!0,y.lexerActionExecutor=o.lexerActionExecutor,y.prediction=this.atn.ruleToTokenType[o.state.ruleIndex]);var k=this.decisionToDFA[this.mode],C=k.states.get(y);if(C!==null)return C;var U=y;return U.stateNumber=k.states.length,l.setReadonly(!0),U.configs=l,k.states.add(U),U}},{key:"getDFA",value:function(l){return this.decisionToDFA[l]}},{key:"getText",value:function(l){return l.getText(this.startIndex,l.index-1)}},{key:"consume",value:function(l){l.LA(1)===10?(this.line+=1,this.column=0):this.column+=1,l.consume()}},{key:"getTokenName",value:function(l){return l===-1?"EOF":"'"+String.fromCharCode(l)+"'"}}]),_}(Ni);function zs(f){return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zs(f)}function yb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),zs(_)==="symbol"?_:String(_)),s)}var _}Wa.debug=!1,Wa.dfa_debug=!1,Wa.MIN_DFA_EDGE=0,Wa.MAX_DFA_EDGE=127;var im=function(){function f(s,_){(function(l,y){if(!(l instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.alt=_,this.pred=s}var i,m;return i=f,(m=[{key:"toString",value:function(){return"("+this.pred+", "+this.alt+")"}}])&&yb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ws(f){return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ws(f)}function gb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ws(_)==="symbol"?_:String(_)),s)}var _}var vb=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={}}var i,m;return i=f,(m=[{key:"get",value:function(s){return this.data["k-"+s]||null}},{key:"set",value:function(s,_){this.data["k-"+s]=_}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(_){return _.startsWith("k-")}).map(function(_){return s.data[_]},this)}}])&&gb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}(),Pi={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(f,i){if(Pi.allConfigsInRuleStopStates(i))return!0;if(f===Pi.SLL&&i.hasSemanticContext){for(var m=new Wr,s=0;s<i.items.length;s++){var _=i.items[s];_=new ce({semanticContext:N.NONE},_),m.add(_)}i=m}var l=Pi.getConflictingAltSubsets(i);return Pi.hasConflictingAltSet(l)&&!Pi.hasStateAssociatedWithOneAlt(i)},hasConfigInRuleStopState:function(f){for(var i=0;i<f.items.length;i++)if(f.items[i].state instanceof St)return!0;return!1},allConfigsInRuleStopStates:function(f){for(var i=0;i<f.items.length;i++)if(!(f.items[i].state instanceof St))return!1;return!0},resolvesToJustOneViableAlt:function(f){return Pi.getSingleViableAlt(f)},allSubsetsConflict:function(f){return!Pi.hasNonConflictingAltSet(f)},hasNonConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length===1)return!0;return!1},hasConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length>1)return!0;return!1},allSubsetsEqual:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m];if(i===null)i=s;else if(s!==i)return!1}return!0},getUniqueAlt:function(f){var i=Pi.getAlts(f);return i.length===1?i.minValue():bn.INVALID_ALT_NUMBER},getAlts:function(f){var i=new zr;return f.map(function(m){i.or(m)}),i},getConflictingAltSubsets:function(f){var i=new io;return i.hashFunction=function(m){b.hashStuff(m.state.stateNumber,m.context)},i.equalsFunction=function(m,s){return m.state.stateNumber===s.state.stateNumber&&m.context.equals(s.context)},f.items.map(function(m){var s=i.get(m);s===null&&(s=new zr,i.set(m,s)),s.add(m.alt)}),i.getValues()},getStateToAltMap:function(f){var i=new vb;return f.items.map(function(m){var s=i.get(m.state);s===null&&(s=new zr,i.set(m.state,s)),s.add(m.alt)}),i},hasStateAssociatedWithOneAlt:function(f){for(var i=Pi.getStateToAltMap(f).values(),m=0;m<i.length;m++)if(i[m].length===1)return!0;return!1},getSingleViableAlt:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m].minValue();if(i===null)i=s;else if(i!==s)return bn.INVALID_ALT_NUMBER}return i}};const Wn=Pi;function b0(f){return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},b0(f)}function E0(f,i){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},E0(f,i)}function $c(f){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},$c(f)}var Hc=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&E0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=$c(m);if(s){var u=$c(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(b0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o,u,S,k,C){var U;return function(fe,Ne){if(!(fe instanceof Ne))throw new TypeError("Cannot call a class as a function")}(this,l),C=C||y._ctx,S=S||y.getCurrentToken(),u=u||y.getCurrentToken(),o=o||y.getInputStream(),(U=_.call(this,{message:"",recognizer:y,input:o,ctx:C})).deadEndConfigs=k,U.startToken=u,U.offendingToken=S,U}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function qs(f){return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qs(f)}function bb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qs(_)==="symbol"?_:String(_)),s)}var _}var Eb=function(){function f(s){(function(_,l){if(!(_ instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.defaultMapCtor=s||io,this.cacheMap=new this.defaultMapCtor}var i,m;return i=f,(m=[{key:"get",value:function(s,_){var l=this.cacheMap.get(s)||null;return l===null?null:l.get(_)||null}},{key:"set",value:function(s,_,l){var y=this.cacheMap.get(s)||null;y===null&&(y=new this.defaultMapCtor,this.cacheMap.set(s,y)),y.set(_,l)}}])&&bb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function qa(f){return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qa(f)}function xb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(qa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qa(_)==="symbol"?_:String(_)),s)}var _}function x0(f,i){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},x0(f,i)}function Gc(f){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Gc(f)}var om=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&x0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Gc(s);if(_){var S=Gc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(qa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S,k){var C;return function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),(C=l.call(this,u,k)).parser=o,C.decisionToDFA=S,C.predictionMode=Wn.LL,C._input=null,C._startIndex=0,C._outerContext=null,C._dfa=null,C.mergeCache=null,C.debug=!1,C.debug_closure=!1,C.debug_add=!1,C.trace_atn_sim=!1,C.dfa_debug=!1,C.retry_debug=!1,C}return i=y,m=[{key:"reset",value:function(){}},{key:"adaptivePredict",value:function(o,u,S){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+u+" exec LA(1)=="+this.getLookaheadName(o)+" line "+o.LT(1).line+":"+o.LT(1).column),this._input=o,this._startIndex=o.index,this._outerContext=S;var k=this.decisionToDFA[u];this._dfa=k;var C=o.mark(),U=o.index;try{var fe;if((fe=k.precedenceDfa?k.getPrecedenceStartState(this.parser.getPrecedence()):k.s0)===null){S===null&&(S=ro.EMPTY),this.debug&&console.log("predictATN decision "+k.decision+" exec LA(1)=="+this.getLookaheadName(o)+", outerContext="+S.toString(this.parser.ruleNames));var Ne=this.computeStartState(k.atnStartState,ro.EMPTY,!1);k.precedenceDfa?(k.s0.configs=Ne,Ne=this.applyPrecedenceFilter(Ne),fe=this.addDFAState(k,new Wo(null,Ne)),k.setPrecedenceStartState(this.parser.getPrecedence(),fe)):(fe=this.addDFAState(k,new Wo(null,Ne)),k.s0=fe)}var Re=this.execATN(k,fe,o,U,S);return this.debug&&console.log("DFA after predictATN: "+k.toString(this.parser.literalNames,this.parser.symbolicNames)),Re}finally{this._dfa=null,this.mergeCache=null,o.seek(U),o.release(C)}}},{key:"execATN",value:function(o,u,S,k,C){var U;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+o.decision+", DFA state "+u+", LA(1)=="+this.getLookaheadName(S)+" line "+S.LT(1).line+":"+S.LT(1).column);var fe=u;this.debug&&console.log("s0 = "+u);for(var Ne=S.LA(1);;){var Re=this.getExistingTargetState(fe,Ne);if(Re===null&&(Re=this.computeTargetState(o,fe,Ne)),Re===Ni.ERROR){var Ge=this.noViableAlt(S,C,fe.configs,k);if(S.seek(k),(U=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(fe.configs,C))!==bn.INVALID_ALT_NUMBER)return U;throw Ge}if(Re.requiresFullContext&&this.predictionMode!==Wn.SLL){var ct=null;if(Re.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var We=S.index;if(We!==k&&S.seek(k),(ct=this.evalSemanticContext(Re.predicates,C,!0)).length===1)return this.debug&&console.log("Full LL avoided"),ct.minValue();We!==k&&S.seek(We)}this.dfa_debug&&console.log("ctx sensitive state "+C+" in "+Re);var En=this.computeStartState(o.atnStartState,C,!0);return this.reportAttemptingFullContext(o,ct,Re.configs,k,S.index),this.execATNWithFullContext(o,Re,En,S,k,C)}if(Re.isAcceptState){if(Re.predicates===null)return Re.prediction;var vn=S.index;S.seek(k);var qn=this.evalSemanticContext(Re.predicates,C,!0);if(qn.length===0)throw this.noViableAlt(S,C,Re.configs,k);return qn.length===1||this.reportAmbiguity(o,Re,k,vn,!1,qn,Re.configs),qn.minValue()}fe=Re,Ne!==n.EOF&&(S.consume(),Ne=S.LA(1))}}},{key:"getExistingTargetState",value:function(o,u){var S=o.edges;return S===null?null:S[u+1]||null}},{key:"computeTargetState",value:function(o,u,S){var k=this.computeReachSet(u.configs,S,!1);if(k===null)return this.addDFAEdge(o,u,S,Ni.ERROR),Ni.ERROR;var C=new Wo(null,k),U=this.getUniqueAlt(k);if(this.debug){var fe=Wn.getConflictingAltSubsets(k);console.log("SLL altSubSets="+F(fe)+", configs="+k+", predict="+U+", allSubsetsConflict="+Wn.allSubsetsConflict(fe)+", conflictingAlts="+this.getConflictingAlts(k))}return U!==bn.INVALID_ALT_NUMBER?(C.isAcceptState=!0,C.configs.uniqueAlt=U,C.prediction=U):Wn.hasSLLConflictTerminatingPrediction(this.predictionMode,k)&&(C.configs.conflictingAlts=this.getConflictingAlts(k),C.requiresFullContext=!0,C.isAcceptState=!0,C.prediction=C.configs.conflictingAlts.minValue()),C.isAcceptState&&C.configs.hasSemanticContext&&(this.predicateDFAState(C,this.atn.getDecisionState(o.decision)),C.predicates!==null&&(C.prediction=bn.INVALID_ALT_NUMBER)),this.addDFAEdge(o,u,S,C)}},{key:"predicateDFAState",value:function(o,u){var S=u.transitions.length,k=this.getConflictingAltsOrUniqueAlt(o.configs),C=this.getPredsForAmbigAlts(k,o.configs,S);C!==null?(o.predicates=this.getPredicatePredictions(k,C),o.prediction=bn.INVALID_ALT_NUMBER):o.prediction=k.minValue()}},{key:"execATNWithFullContext",value:function(o,u,S,k,C,U){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+S);var fe,Ne=!1,Re=S;k.seek(C);for(var Ge=k.LA(1),ct=-1;;){if((fe=this.computeReachSet(Re,Ge,!0))===null){var We=this.noViableAlt(k,U,Re,C);k.seek(C);var En=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Re,U);if(En!==bn.INVALID_ALT_NUMBER)return En;throw We}var vn=Wn.getConflictingAltSubsets(fe);if(this.debug&&console.log("LL altSubSets="+vn+", predict="+Wn.getUniqueAlt(vn)+", resolvesToJustOneViableAlt="+Wn.resolvesToJustOneViableAlt(vn)),fe.uniqueAlt=this.getUniqueAlt(fe),fe.uniqueAlt!==bn.INVALID_ALT_NUMBER){ct=fe.uniqueAlt;break}if(this.predictionMode!==Wn.LL_EXACT_AMBIG_DETECTION){if((ct=Wn.resolvesToJustOneViableAlt(vn))!==bn.INVALID_ALT_NUMBER)break}else if(Wn.allSubsetsConflict(vn)&&Wn.allSubsetsEqual(vn)){Ne=!0,ct=Wn.getSingleViableAlt(vn);break}Re=fe,Ge!==n.EOF&&(k.consume(),Ge=k.LA(1))}return fe.uniqueAlt!==bn.INVALID_ALT_NUMBER?(this.reportContextSensitivity(o,ct,fe,C,k.index),ct):(this.reportAmbiguity(o,u,C,k.index,Ne,null,fe),ct)}},{key:"computeReachSet",value:function(o,u,S){this.debug&&console.log("in computeReachSet, starting closure: "+o),this.mergeCache===null&&(this.mergeCache=new Eb);for(var k=new Wr(S),C=null,U=0;U<o.items.length;U++){var fe=o.items[U];if(this.debug&&console.log("testing "+this.getTokenName(u)+" at "+fe),fe.state instanceof St)(S||u===n.EOF)&&(C===null&&(C=[]),C.push(fe),this.debug_add&&console.log("added "+fe+" to skippedStopStates"));else for(var Ne=0;Ne<fe.state.transitions.length;Ne++){var Re=fe.state.transitions[Ne],Ge=this.getReachableTarget(Re,u);if(Ge!==null){var ct=new ce({state:Ge},fe);k.add(ct,this.mergeCache),this.debug_add&&console.log("added "+ct+" to intermediate")}}}var We=null;if(C===null&&u!==n.EOF&&(k.items.length===1||this.getUniqueAlt(k)!==bn.INVALID_ALT_NUMBER)&&(We=k),We===null){We=new Wr(S);for(var En=new g,vn=u===n.EOF,qn=0;qn<k.items.length;qn++)this.closure(k.items[qn],We,En,!1,S,vn)}if(u===n.EOF&&(We=this.removeAllConfigsNotInRuleStopState(We,We===k)),!(C===null||S&&Wn.hasConfigInRuleStopState(We)))for(var qr=0;qr<C.length;qr++)We.add(C[qr],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+o+" -> "+We),We.items.length===0?null:We}},{key:"removeAllConfigsNotInRuleStopState",value:function(o,u){if(Wn.allConfigsInRuleStopStates(o))return o;for(var S=new Wr(o.fullCtx),k=0;k<o.items.length;k++){var C=o.items[k];if(C.state instanceof St)S.add(C,this.mergeCache);else if(u&&C.state.epsilonOnlyTransitions&&this.atn.nextTokens(C.state).contains(n.EPSILON)){var U=this.atn.ruleToStopState[C.state.ruleIndex];S.add(new ce({state:U},C),this.mergeCache)}}return S}},{key:"computeStartState",value:function(o,u,S){var k=_a(this.atn,u),C=new Wr(S);this.trace_atn_sim&&console.log("computeStartState from ATN state "+o+" initialContext="+k.toString(this.parser));for(var U=0;U<o.transitions.length;U++){var fe=o.transitions[U].target,Ne=new ce({state:fe,alt:U+1,context:k},null),Re=new g;this.closure(Ne,C,Re,!0,S,!1)}return C}},{key:"applyPrecedenceFilter",value:function(o){for(var u,S=[],k=new Wr(o.fullCtx),C=0;C<o.items.length;C++)if((u=o.items[C]).alt===1){var U=u.semanticContext.evalPrecedence(this.parser,this._outerContext);U!==null&&(S[u.state.stateNumber]=u.context,U!==u.semanticContext?k.add(new ce({semanticContext:U},u),this.mergeCache):k.add(u,this.mergeCache))}for(var fe=0;fe<o.items.length;fe++)if((u=o.items[fe]).alt!==1){if(!u.precedenceFilterSuppressed){var Ne=S[u.state.stateNumber]||null;if(Ne!==null&&Ne.equals(u.context))continue}k.add(u,this.mergeCache)}return k}},{key:"getReachableTarget",value:function(o,u){return o.matches(u,0,this.atn.maxTokenType)?o.target:null}},{key:"getPredsForAmbigAlts",value:function(o,u,S){for(var k=[],C=0;C<u.items.length;C++){var U=u.items[C];o.has(U.alt)&&(k[U.alt]=N.orContext(k[U.alt]||null,U.semanticContext))}for(var fe=0,Ne=1;Ne<S+1;Ne++){var Re=k[Ne]||null;Re===null?k[Ne]=N.NONE:Re!==N.NONE&&(fe+=1)}return fe===0&&(k=null),this.debug&&console.log("getPredsForAmbigAlts result "+F(k)),k}},{key:"getPredicatePredictions",value:function(o,u){for(var S=[],k=!1,C=1;C<u.length;C++){var U=u[C];o!==null&&o.has(C)&&S.push(new im(U,C)),U!==N.NONE&&(k=!0)}return k?S:null}},{key:"getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule",value:function(o,u){var S=this.splitAccordingToSemanticValidity(o,u),k=S[0],C=S[1],U=this.getAltThatFinishedDecisionEntryRule(k);return U!==bn.INVALID_ALT_NUMBER||C.items.length>0&&(U=this.getAltThatFinishedDecisionEntryRule(C))!==bn.INVALID_ALT_NUMBER?U:bn.INVALID_ALT_NUMBER}},{key:"getAltThatFinishedDecisionEntryRule",value:function(o){for(var u=[],S=0;S<o.items.length;S++){var k=o.items[S];(k.reachesIntoOuterContext>0||k.state instanceof St&&k.context.hasEmptyPath())&&u.indexOf(k.alt)<0&&u.push(k.alt)}return u.length===0?bn.INVALID_ALT_NUMBER:Math.min.apply(null,u)}},{key:"splitAccordingToSemanticValidity",value:function(o,u){for(var S=new Wr(o.fullCtx),k=new Wr(o.fullCtx),C=0;C<o.items.length;C++){var U=o.items[C];U.semanticContext!==N.NONE?U.semanticContext.evaluate(this.parser,u)?S.add(U):k.add(U):S.add(U)}return[S,k]}},{key:"evalSemanticContext",value:function(o,u,S){for(var k=new zr,C=0;C<o.length;C++){var U=o[C];if(U.pred!==N.NONE){var fe=U.pred.evaluate(this.parser,u);if((this.debug||this.dfa_debug)&&console.log("eval pred "+U+"="+fe),fe&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+U.alt),k.add(U.alt),!S))break}else if(k.add(U.alt),!S)break}return k}},{key:"closure",value:function(o,u,S,k,C,U){this.closureCheckingStopState(o,u,S,k,C,0,U)}},{key:"closureCheckingStopState",value:function(o,u,S,k,C,U,fe){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+o.toString(this.parser,!0)+")"),o.state instanceof St){if(!o.context.isEmpty()){for(var Ne=0;Ne<o.context.length;Ne++)if(o.context.getReturnState(Ne)!==st.EMPTY_RETURN_STATE){var Re=this.atn.states[o.context.getReturnState(Ne)],Ge=o.context.getParent(Ne),ct={state:Re,alt:o.alt,context:Ge,semanticContext:o.semanticContext},We=new ce(ct,null);We.reachesIntoOuterContext=o.reachesIntoOuterContext,this.closureCheckingStopState(We,u,S,k,C,U-1,fe)}else{if(C){u.add(new ce({state:o.state,context:st.EMPTY},o),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex)),this.closure_(o,u,S,k,C,U,fe)}return}if(C)return void u.add(o,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex))}this.closure_(o,u,S,k,C,U,fe)}},{key:"closure_",value:function(o,u,S,k,C,U,fe){var Ne=o.state;Ne.epsilonOnlyTransitions||u.add(o,this.mergeCache);for(var Re=0;Re<Ne.transitions.length;Re++)if(Re!==0||!this.canDropLoopEntryEdgeInLeftRecursiveRule(o)){var Ge=Ne.transitions[Re],ct=k&&!(Ge instanceof L_),We=this.getEpsilonTarget(o,Ge,ct,U===0,C,fe);if(We!==null){var En=U;if(o.state instanceof St){if(this._dfa!==null&&this._dfa.precedenceDfa&&Ge.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(We.precedenceFilterSuppressed=!0),We.reachesIntoOuterContext+=1,S.add(We)!==We)continue;u.dipsIntoOuterContext=!0,En-=1,this.debug&&console.log("dips into outer ctx: "+We)}else{if(!Ge.isEpsilon&&S.add(We)!==We)continue;Ge instanceof Dt&&En>=0&&(En+=1)}this.closureCheckingStopState(We,u,S,ct,C,En,fe)}}}},{key:"canDropLoopEntryEdgeInLeftRecursiveRule",value:function(o){var u=o.state;if(u.stateType!==me.STAR_LOOP_ENTRY||u.stateType!==me.STAR_LOOP_ENTRY||!u.isPrecedenceDecision||o.context.isEmpty()||o.context.hasEmptyPath())return!1;for(var S=o.context.length,k=0;k<S;k++)if(this.atn.states[o.context.getReturnState(k)].ruleIndex!==u.ruleIndex)return!1;for(var C=u.transitions[0].target.endState.stateNumber,U=this.atn.states[C],fe=0;fe<S;fe++){var Ne=o.context.getReturnState(fe),Re=this.atn.states[Ne];if(Re.transitions.length!==1||!Re.transitions[0].isEpsilon)return!1;var Ge=Re.transitions[0].target;if(!(Re.stateType===me.BLOCK_END&&Ge===u||Re===U||Ge===U||Ge.stateType===me.BLOCK_END&&Ge.transitions.length===1&&Ge.transitions[0].isEpsilon&&Ge.transitions[0].target===u))return!1}return!0}},{key:"getRuleName",value:function(o){return this.parser!==null&&o>=0?this.parser.ruleNames[o]:"<rule "+o+">"}},{key:"getEpsilonTarget",value:function(o,u,S,k,C,U){switch(u.serializationType){case be.RULE:return this.ruleTransition(o,u);case be.PRECEDENCE:return this.precedenceTransition(o,u,S,k,C);case be.PREDICATE:return this.predTransition(o,u,S,k,C);case be.ACTION:return this.actionTransition(o,u);case be.EPSILON:return new ce({state:u.target},o);case be.ATOM:case be.RANGE:case be.SET:return U&&u.matches(n.EOF,0,1)?new ce({state:u.target},o):null;default:return null}}},{key:"actionTransition",value:function(o,u){if(this.debug){var S=u.actionIndex===-1?65535:u.actionIndex;console.log("ACTION edge "+u.ruleIndex+":"+S)}return new ce({state:u.target},o)}},{key:"precedenceTransition",value:function(o,u,S,k,C){this.debug&&(console.log("PRED (collectPredicates="+S+") "+u.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+F(this.parser.getRuleInvocationStack())));var U=null;if(S&&k)if(C){var fe=this._input.index;this._input.seek(this._startIndex);var Ne=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(fe),Ne&&(U=new ce({state:u.target},o))}else{var Re=N.andContext(o.semanticContext,u.getPredicate());U=new ce({state:u.target,semanticContext:Re},o)}else U=new ce({state:u.target},o);return this.debug&&console.log("config from pred transition="+U),U}},{key:"predTransition",value:function(o,u,S,k,C){this.debug&&(console.log("PRED (collectPredicates="+S+") "+u.ruleIndex+":"+u.predIndex+", ctx dependent="+u.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+F(this.parser.getRuleInvocationStack())));var U=null;if(S&&(u.isCtxDependent&&k||!u.isCtxDependent))if(C){var fe=this._input.index;this._input.seek(this._startIndex);var Ne=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(fe),Ne&&(U=new ce({state:u.target},o))}else{var Re=N.andContext(o.semanticContext,u.getPredicate());U=new ce({state:u.target,semanticContext:Re},o)}else U=new ce({state:u.target},o);return this.debug&&console.log("config from pred transition="+U),U}},{key:"ruleTransition",value:function(o,u){this.debug&&console.log("CALL rule "+this.getRuleName(u.target.ruleIndex)+", ctx="+o.context);var S=u.followState,k=_t.create(o.context,S.stateNumber);return new ce({state:u.target,context:k},o)}},{key:"getConflictingAlts",value:function(o){var u=Wn.getConflictingAltSubsets(o);return Wn.getAlts(u)}},{key:"getConflictingAltsOrUniqueAlt",value:function(o){var u=null;return o.uniqueAlt!==bn.INVALID_ALT_NUMBER?(u=new zr).add(o.uniqueAlt):u=o.conflictingAlts,u}},{key:"getTokenName",value:function(o){if(o===n.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null){if(!(o>=this.parser.literalNames.length&&o>=this.parser.symbolicNames.length))return(this.parser.literalNames[o]||this.parser.symbolicNames[o])+"<"+o+">";console.log(o+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+o}},{key:"getLookaheadName",value:function(o){return this.getTokenName(o.LA(1))}},{key:"dumpDeadEndConfigs",value:function(o){console.log("dead end configs: ");for(var u=o.getDeadEndConfigs(),S=0;S<u.length;S++){var k=u[S],C="no edges";if(k.state.transitions.length>0){var U=k.state.transitions[0];U instanceof Bh?C="Atom "+this.getTokenName(U.label):U instanceof ir&&(C=(U instanceof Ht?"~":"")+"Set "+U.set)}console.error(k.toString(this.parser,!0)+":"+C)}}},{key:"noViableAlt",value:function(o,u,S,k){return new Hc(this.parser,o,o.get(k),o.LT(1),S,u)}},{key:"getUniqueAlt",value:function(o){for(var u=bn.INVALID_ALT_NUMBER,S=0;S<o.items.length;S++){var k=o.items[S];if(u===bn.INVALID_ALT_NUMBER)u=k.alt;else if(k.alt!==u)return bn.INVALID_ALT_NUMBER}return u}},{key:"addDFAEdge",value:function(o,u,S,k){if(this.debug&&console.log("EDGE "+u+" -> "+k+" upon "+this.getTokenName(S)),k===null)return null;if(k=this.addDFAState(o,k),u===null||S<-1||S>this.atn.maxTokenType)return k;if(u.edges===null&&(u.edges=[]),u.edges[S+1]=k,this.debug){var C=this.parser===null?null:this.parser.literalNames,U=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
8
+ `+o.toString(C,U))}return k}},{key:"addDFAState",value:function(o,u){if(u===Ni.ERROR)return u;var S=o.states.get(u);return S!==null?(this.trace_atn_sim&&console.log("addDFAState "+u+" exists"),S):(u.stateNumber=o.states.length,u.configs.readOnly||(u.configs.optimizeConfigs(this),u.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+u),o.states.add(u),this.debug&&console.log("adding new DFA state: "+u),u)}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C){if(this.debug||this.retry_debug){var U=new _e(k,C+1);console.log("reportAttemptingFullContext decision="+o.decision+":"+S+", input="+this.parser.getTokenStream().getText(U))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,o,k,C,u,S)}},{key:"reportContextSensitivity",value:function(o,u,S,k,C){if(this.debug||this.retry_debug){var U=new _e(k,C+1);console.log("reportContextSensitivity decision="+o.decision+":"+S+", input="+this.parser.getTokenStream().getText(U))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,o,k,C,u,S)}},{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){if(this.debug||this.retry_debug){var Ne=new _e(S,k+1);console.log("reportAmbiguity "+U+":"+fe+", input="+this.parser.getTokenStream().getText(Ne))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,o,S,k,C,U,fe)}}],m&&xb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ni);function Xs(f){return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xs(f)}function Sb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Xs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xs(_)==="symbol"?_:String(_)),s)}var _}var am=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.cache=new io}var i,m;return i=f,(m=[{key:"add",value:function(s){if(s===st.EMPTY)return st.EMPTY;var _=this.cache.get(s)||null;return _!==null?_:(this.cache.set(s,s),s)}},{key:"get",value:function(s){return this.cache.get(s)||null}},{key:"length",get:function(){return this.cache.length}}])&&Sb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const Tb={ATN:bn,ATNDeserializer:t0,LexerATNSimulator:Wa,ParserATNSimulator:om,PredictionMode:Wn,PredictionContextCache:am};function Ys(f){return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ys(f)}function Ab(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ys(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ys(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ys(_)==="symbol"?_:String(_)),s)}var _}var S0=function(){function f(s,_,l){(function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")})(this,f),this.dfa=s,this.literalNames=_||[],this.symbolicNames=l||[]}var i,m;return i=f,(m=[{key:"toString",value:function(){if(this.dfa.s0===null)return null;for(var s="",_=this.dfa.sortedStates(),l=0;l<_.length;l++){var y=_[l];if(y.edges!==null)for(var o=y.edges.length,u=0;u<o;u++){var S=y.edges[u]||null;S!==null&&S.stateNumber!==2147483647&&(s=(s=(s=(s=(s=(s=s.concat(this.getStateString(y))).concat("-")).concat(this.getEdgeLabel(u))).concat("->")).concat(this.getStateString(S))).concat(`
9
+ `))}}return s.length===0?null:s}},{key:"getEdgeLabel",value:function(s){return s===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[s-1]||this.symbolicNames[s-1]:String.fromCharCode(s-1)}},{key:"getStateString",value:function(s){var _=(s.isAcceptState?":":"")+"s"+s.stateNumber+(s.requiresFullContext?"^":"");return s.isAcceptState?s.predicates!==null?_+"=>"+F(s.predicates):_+"=>"+s.prediction.toString():_}}])&&Ab(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Xa(f){return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xa(f)}function Cb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Xa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xa(_)==="symbol"?_:String(_)),s)}var _}function T0(f,i){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},T0(f,i)}function Kc(f){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Kc(f)}var sm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&T0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Kc(s);if(_){var S=Kc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Xa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,o,null)}return i=y,(m=[{key:"getEdgeLabel",value:function(o){return"'"+String.fromCharCode(o)+"'"}}])&&Cb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(S0);function Zs(f){return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zs(f)}function Db(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Zs(_)==="symbol"?_:String(_)),s)}var _}var um=function(){function f(s,_){if(function(y,o){if(!(y instanceof o))throw new TypeError("Cannot call a class as a function")}(this,f),_===void 0&&(_=0),this.atnStartState=s,this.decision=_,this._states=new g,this.s0=null,this.precedenceDfa=!1,s instanceof Ko&&s.isPrecedenceDecision){this.precedenceDfa=!0;var l=new Wo(null,new Wr);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}}var i,m;return i=f,(m=[{key:"getPrecedenceStartState",value:function(s){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return s<0||s>=this.s0.edges.length?null:this.s0.edges[s]||null}},{key:"setPrecedenceStartState",value:function(s,_){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";s<0||(this.s0.edges[s]=_)}},{key:"setPrecedenceDfa",value:function(s){if(this.precedenceDfa!==s){if(this._states=new g,s){var _=new Wo(null,new Wr);_.edges=[],_.isAcceptState=!1,_.requiresFullContext=!1,this.s0=_}else this.s0=null;this.precedenceDfa=s}}},{key:"sortedStates",value:function(){return this._states.values().sort(function(s,_){return s.stateNumber-_.stateNumber})}},{key:"toString",value:function(s,_){return s=s||null,_=_||null,this.s0===null?"":new S0(this,s,_).toString()}},{key:"toLexerString",value:function(){return this.s0===null?"":new sm(this).toString()}},{key:"states",get:function(){return this._states}}])&&Db(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const kb={DFA:um,DFASerializer:S0,LexerDFASerializer:sm,PredPrediction:im},Ob={PredictionContext:st},wb={Interval:_e,IntervalSet:J};function Qs(f){return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qs(f)}function Rb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qs(_)==="symbol"?_:String(_)),s)}var _}var A0=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}},{key:"enterEveryRule",value:function(s){}},{key:"exitEveryRule",value:function(s){}}])&&Rb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Js(f){return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Js(f)}function Fb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Js(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Js(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Js(_)==="symbol"?_:String(_)),s)}var _}var cm=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visit",value:function(s){return Array.isArray(s)?s.map(function(_){return _.accept(this)},this):s.accept(this)}},{key:"visitChildren",value:function(s){return s.children?this.visit(s.children):null}},{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}}])&&Fb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function eu(f){return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},eu(f)}function Nb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(eu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(eu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),eu(_)==="symbol"?_:String(_)),s)}var _}var zc=function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"walk",value:function(s,_){if(_ instanceof ti||_.isErrorNode!==void 0&&_.isErrorNode())s.visitErrorNode(_);else if(_ instanceof hn)s.visitTerminal(_);else{this.enterRule(s,_);for(var l=0;l<_.getChildCount();l++){var y=_.getChild(l);this.walk(s,y)}this.exitRule(s,_)}}},{key:"enterRule",value:function(s,_){var l=_.ruleContext;s.enterEveryRule(l),l.enterRule(s)}},{key:"exitRule",value:function(s,_){var l=_.ruleContext;l.exitRule(s),s.exitEveryRule(l)}}])&&Nb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();zc.DEFAULT=new zc;const Ib={Trees:Ju,RuleNode:Le,ErrorNode:ti,TerminalNode:hn,ParseTreeListener:A0,ParseTreeVisitor:cm,ParseTreeWalker:zc};function C0(f){return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},C0(f)}function D0(f,i){return D0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},D0(f,i)}function Wc(f){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wc(f)}var tu=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&D0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Wc(m);if(s){var u=Wc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(C0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y){var o;return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,l),(o=_.call(this,{message:"",recognizer:y,input:y.getInputStream(),ctx:y._ctx})).offendingToken=y.getCurrentToken(),o}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function k0(f){return k0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},k0(f)}function O0(f,i){return O0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},O0(f,i)}function qc(f){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},qc(f)}var w0=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&O0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=qc(m);if(s){var u=qc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(k0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o,u){var S;(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,l),S=_.call(this,{message:Pb(o,u||null),recognizer:y,input:y.getInputStream(),ctx:y._ctx});var k=y._interp.atn.states[y.state].transitions[0];return k instanceof U_?(S.ruleIndex=k.ruleIndex,S.predicateIndex=k.predIndex):(S.ruleIndex=0,S.predicateIndex=0),S.predicate=o,S.offendingToken=y.getCurrentToken(),S}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(zo);function Pb(f,i){return i!==null?i:"failed predicate: {"+f+"}?"}function Ya(f){return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ya(f)}function Bb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ya(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ya(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ya(_)==="symbol"?_:String(_)),s)}var _}function R0(f,i){return R0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},R0(f,i)}function Xc(f){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Xc(f)}var lm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&R0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Xc(s);if(_){var S=Xc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ya(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),o=o||!0,(u=l.call(this)).exactOnly=o,u}return i=y,m=[{key:"reportAmbiguity",value:function(o,u,S,k,C,U,fe){if(!this.exactOnly||C){var Ne="reportAmbiguity d="+this.getDecisionDescription(o,u)+": ambigAlts="+this.getConflictingAlts(U,fe)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(Ne)}}},{key:"reportAttemptingFullContext",value:function(o,u,S,k,C,U){var fe="reportAttemptingFullContext d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(fe)}},{key:"reportContextSensitivity",value:function(o,u,S,k,C,U){var fe="reportContextSensitivity d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new _e(S,k))+"'";o.notifyErrorListeners(fe)}},{key:"getDecisionDescription",value:function(o,u){var S=u.decision,k=u.atnStartState.ruleIndex,C=o.ruleNames;if(k<0||k>=C.length)return""+S;var U=C[k]||null;return U===null||U.length===0?""+S:"".concat(S," (").concat(U,")")}},{key:"getConflictingAlts",value:function(o,u){if(o!==null)return o;for(var S=new zr,k=0;k<u.items.length;k++)S.add(u.items[k].alt);return"{".concat(S.values().join(", "),"}")}}],m&&Bb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ls);function F0(f){return F0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},F0(f)}function fm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function N0(f){var i=typeof Map=="function"?new Map:void 0;return N0=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,_)}function _(){return I0(m,arguments,ru(this).constructor)}return _.prototype=Object.create(m.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),nu(_,m)},N0(f)}function I0(f,i,m){return I0=hm()?Reflect.construct.bind():function(s,_,l){var y=[null];y.push.apply(y,_);var o=new(Function.bind.apply(s,y));return l&&nu(o,l.prototype),o},I0.apply(null,arguments)}function hm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nu(f,i){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},nu(f,i)}function ru(f){return ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ru(f)}var Lb=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&nu(y,o)})(l,f);var i,m,s,_=(m=l,s=hm(),function(){var y,o=ru(m);if(s){var u=ru(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(F0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fm(S)}(this,y)});function l(){var y;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),y=_.call(this),Error.captureStackTrace(fm(y),l),y}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(N0(Error));function iu(f){return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},iu(f)}function Mb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(iu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(iu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),iu(_)==="symbol"?_:String(_)),s)}var _}function Za(f){return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Za(f)}function Ub(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Za(_)==="symbol"?_:String(_)),s)}var _}function P0(f,i){return P0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},P0(f,i)}function Yc(f){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Yc(f)}var B0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&P0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Yc(s);if(_){var S=Yc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Za(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){var o;return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),(o=l.call(this)).errorRecoveryMode=!1,o.lastErrorIndex=-1,o.lastErrorStates=null,o.nextTokensContext=null,o.nextTokenState=0,o}return i=y,m=[{key:"reset",value:function(o){this.endErrorCondition(o)}},{key:"beginErrorCondition",value:function(o){this.errorRecoveryMode=!0}},{key:"inErrorRecoveryMode",value:function(o){return this.errorRecoveryMode}},{key:"endErrorCondition",value:function(o){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}},{key:"reportMatch",value:function(o){this.endErrorCondition(o)}},{key:"reportError",value:function(o,u){this.inErrorRecoveryMode(o)||(this.beginErrorCondition(o),u instanceof Hc?this.reportNoViableAlternative(o,u):u instanceof tu?this.reportInputMismatch(o,u):u instanceof w0?this.reportFailedPredicate(o,u):(console.log("unknown recognition error type: "+u.constructor.name),console.log(u.stack),o.notifyErrorListeners(u.getOffendingToken(),u.getMessage(),u)))}},{key:"recover",value:function(o,u){this.lastErrorIndex===o.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(o.state)>=0&&o.consume(),this.lastErrorIndex=o._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(o.state);var S=this.getErrorRecoverySet(o);this.consumeUntil(o,S)}},{key:"sync",value:function(o){if(!this.inErrorRecoveryMode(o)){var u=o._interp.atn.states[o.state],S=o.getTokenStream().LA(1),k=o.atn.nextTokens(u);if(k.contains(S))return this.nextTokensContext=null,void(this.nextTokenState=me.INVALID_STATE_NUMBER);if(k.contains(n.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=o._ctx,this.nextTokensState=o._stateNumber);else switch(u.stateType){case me.BLOCK_START:case me.STAR_BLOCK_START:case me.PLUS_BLOCK_START:case me.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(o)!==null)return;throw new tu(o);case me.PLUS_LOOP_BACK:case me.STAR_LOOP_BACK:this.reportUnwantedToken(o);var C=new J;C.addSet(o.getExpectedTokens());var U=C.addSet(this.getErrorRecoverySet(o));this.consumeUntil(o,U)}}}},{key:"reportNoViableAlternative",value:function(o,u){var S,k=o.getTokenStream();S=k!==null?u.startToken.type===n.EOF?"<EOF>":k.getText(new _e(u.startToken.tokenIndex,u.offendingToken.tokenIndex)):"<unknown input>";var C="no viable alternative at input "+this.escapeWSAndQuote(S);o.notifyErrorListeners(C,u.offendingToken,u)}},{key:"reportInputMismatch",value:function(o,u){var S="mismatched input "+this.getTokenErrorDisplay(u.offendingToken)+" expecting "+u.getExpectedTokens().toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(S,u.offendingToken,u)}},{key:"reportFailedPredicate",value:function(o,u){var S="rule "+o.ruleNames[o._ctx.ruleIndex]+" "+u.message;o.notifyErrorListeners(S,u.offendingToken,u)}},{key:"reportUnwantedToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),S="extraneous input "+this.getTokenErrorDisplay(u)+" expecting "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(S,u,null)}}},{key:"reportMissingToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),S="missing "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames)+" at "+this.getTokenErrorDisplay(u);o.notifyErrorListeners(S,u,null)}}},{key:"recoverInline",value:function(o){var u=this.singleTokenDeletion(o);if(u!==null)return o.consume(),u;if(this.singleTokenInsertion(o))return this.getMissingSymbol(o);throw new tu(o)}},{key:"singleTokenInsertion",value:function(o){var u=o.getTokenStream().LA(1),S=o._interp.atn,k=S.states[o.state].transitions[0].target;return!!S.nextTokens(k,o._ctx).contains(u)&&(this.reportMissingToken(o),!0)}},{key:"singleTokenDeletion",value:function(o){var u=o.getTokenStream().LA(2);if(this.getExpectedTokens(o).contains(u)){this.reportUnwantedToken(o),o.consume();var S=o.getCurrentToken();return this.reportMatch(o),S}return null}},{key:"getMissingSymbol",value:function(o){var u,S=o.getCurrentToken(),k=this.getExpectedTokens(o).first();u=k===n.EOF?"<missing EOF>":"<missing "+o.literalNames[k]+">";var C=S,U=o.getTokenStream().LT(-1);return C.type===n.EOF&&U!==null&&(C=U),o.getTokenFactory().create(C.source,k,u,n.DEFAULT_CHANNEL,-1,-1,C.line,C.column)}},{key:"getExpectedTokens",value:function(o){return o.getExpectedTokens()}},{key:"getTokenErrorDisplay",value:function(o){if(o===null)return"<no token>";var u=o.text;return u===null&&(u=o.type===n.EOF?"<EOF>":"<"+o.type+">"),this.escapeWSAndQuote(u)}},{key:"escapeWSAndQuote",value:function(o){return"'"+(o=(o=(o=o.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}},{key:"getErrorRecoverySet",value:function(o){for(var u=o._interp.atn,S=o._ctx,k=new J;S!==null&&S.invokingState>=0;){var C=u.states[S.invokingState].transitions[0],U=u.nextTokens(C.followState);k.addSet(U),S=S.parentCtx}return k.removeOne(n.EPSILON),k}},{key:"consumeUntil",value:function(o,u){for(var S=o.getTokenStream().LA(1);S!==n.EOF&&!u.contains(S);)o.consume(),S=o.getTokenStream().LA(1)}}],m&&Ub(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(function(){function f(){(function(s,_){if(!(s instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"reset",value:function(s){}},{key:"recoverInline",value:function(s){}},{key:"recover",value:function(s,_){}},{key:"sync",value:function(s){}},{key:"inErrorRecoveryMode",value:function(s){}},{key:"reportError",value:function(s){}}])&&Mb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}());function Qa(f){return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qa(f)}function Vb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Qa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qa(_)==="symbol"?_:String(_)),s)}var _}function L0(f,i){return L0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},L0(f,i)}function Zc(f){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Zc(f)}var pm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&L0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Zc(s);if(_){var S=Zc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Qa(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this)}return i=y,m=[{key:"recover",value:function(o,u){for(var S=o._ctx;S!==null;)S.exception=u,S=S.parentCtx;throw new Lb(u)}},{key:"recoverInline",value:function(o){this.recover(o,new tu(o))}},{key:"sync",value:function(o){}}],m&&Vb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(B0);const jb={RecognitionException:zo,NoViableAltException:Hc,LexerNoViableAltException:f0,InputMismatchException:tu,FailedPredicateException:w0,DiagnosticErrorListener:lm,BailErrorStrategy:pm,DefaultErrorStrategy:B0,ErrorListener:Ls};function ou(f){return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ou(f)}function $b(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ou(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ou(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ou(_)==="symbol"?_:String(_)),s)}var _}var au=function(){function f(s,_){if(function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,f),this.name="<empty>",this.strdata=s,this.decodeToUnicodeCodePoints=_||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(var l=0;l<this.strdata.length;){var y=this.strdata.codePointAt(l);this.data.push(y),l+=y<=65535?1:2}else{this.data=new Array(this.strdata.length);for(var o=0;o<this.strdata.length;o++)this.data[o]=this.strdata.charCodeAt(o)}this._size=this.data.length}var i,m;return i=f,(m=[{key:"reset",value:function(){this._index=0}},{key:"consume",value:function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}},{key:"LA",value:function(s){if(s===0)return 0;s<0&&(s+=1);var _=this._index+s-1;return _<0||_>=this._size?n.EOF:this.data[_]}},{key:"LT",value:function(s){return this.LA(s)}},{key:"mark",value:function(){return-1}},{key:"release",value:function(s){}},{key:"seek",value:function(s){s<=this._index?this._index=s:this._index=Math.min(s,this._size)}},{key:"getText",value:function(s,_){if(_>=this._size&&(_=this._size-1),s>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var l="",y=s;y<=_;y++)l+=String.fromCodePoint(this.data[y]);return l}return this.strdata.slice(s,_+1)}},{key:"toString",value:function(){return this.strdata}},{key:"index",get:function(){return this._index}},{key:"size",get:function(){return this._size}}])&&$b(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function M0(f){return M0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M0(f)}function U0(f,i){return U0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},U0(f,i)}function Qc(f){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qc(f)}var su=function(f){(function(y,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(o&&o.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),o&&U0(y,o)})(l,f);var i,m,s,_=(m=l,s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,o=Qc(m);if(s){var u=Qc(this).constructor;y=Reflect.construct(o,arguments,u)}else y=o.apply(this,arguments);return function(S,k){if(k&&(M0(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(S)}(this,y)});function l(y,o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,l),_.call(this,y,o)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(au),dm=Fr(92);function Ja(f){return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ja(f)}function Hb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(Ja(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ja(_)==="symbol"?_:String(_)),s)}var _}function V0(f,i){return V0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},V0(f,i)}function Jc(f){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Jc(f)}var _m=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,mm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&V0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Jc(s);if(_){var S=Jc(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(Ja(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u,S){var k;if(function(U,fe){if(!(U instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,y),!_m)throw new Error("FileStream is only available when running in Node!");var C=dm.readFileSync(o,u||"utf-8");return(k=l.call(this,C,S)).fileName=o,k}return i=y,m=[{key:"fromPath",value:function(o,u,S){if(!_m)throw new Error("FileStream is only available when running in Node!");dm.readFile(o,u,function(k,C){var U=null;C!==null&&(U=new au(C,!0)),S(k,U)})}}],m&&Hb(i,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(su);const ym={fromString:function(f){return new au(f,!0)},fromBlob:function(f,i,m,s){var _=new window.FileReader;_.onload=function(l){var y=new au(l.target.result,!0);m(y)},_.onerror=s,_.readAsText(f,i)},fromBuffer:function(f,i){return new au(f.toString(i),!0)},fromPath:function(f,i,m){mm.fromPath(f,i,m)},fromPathSync:function(f,i){return new mm(f,i)}},Gb={arrayToString:F,stringToCharArray:function(f){for(var i=new Uint16Array(f.length),m=0;m<f.length;m++)i[m]=f.charCodeAt(m);return i}};function uu(f){return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},uu(f)}function gm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(uu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(uu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),uu(_)==="symbol"?_:String(_)),s)}var _}function Kb(f,i,m){return i&&gm(f.prototype,i),m&&gm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function es(f){return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},es(f)}function zb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(es(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(es(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),es(_)==="symbol"?_:String(_)),s)}var _}function j0(f,i){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},j0(f,i)}function el(f){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},el(f)}var vm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&j0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=el(s);if(_){var S=el(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(es(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).tokenSource=o,u.tokens=[],u.index=-1,u.fetchedEOF=!1,u}return i=y,(m=[{key:"mark",value:function(){return 0}},{key:"release",value:function(o){}},{key:"reset",value:function(){this.seek(0)}},{key:"seek",value:function(o){this.lazyInit(),this.index=this.adjustSeekIndex(o)}},{key:"size",get:function(){return this.tokens.length}},{key:"get",value:function(o){return this.lazyInit(),this.tokens[o]}},{key:"consume",value:function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===n.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}},{key:"sync",value:function(o){var u=o-this.tokens.length+1;return!(u>0)||this.fetch(u)>=u}},{key:"fetch",value:function(o){if(this.fetchedEOF)return 0;for(var u=0;u<o;u++){var S=this.tokenSource.nextToken();if(S.tokenIndex=this.tokens.length,this.tokens.push(S),S.type===n.EOF)return this.fetchedEOF=!0,u+1}return o}},{key:"getTokens",value:function(o,u,S){if(S===void 0&&(S=null),o<0||u<0)return null;this.lazyInit();var k=[];u>=this.tokens.length&&(u=this.tokens.length-1);for(var C=o;C<u;C++){var U=this.tokens[C];if(U.type===n.EOF)break;(S===null||S.contains(U.type))&&k.push(U)}return k}},{key:"LA",value:function(o){return this.LT(o).type}},{key:"LB",value:function(o){return this.index-o<0?null:this.tokens[this.index-o]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);var u=this.index+o-1;return this.sync(u),u>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]}},{key:"adjustSeekIndex",value:function(o){return o}},{key:"lazyInit",value:function(){this.index===-1&&this.setup()}},{key:"setup",value:function(){this.sync(0),this.index=this.adjustSeekIndex(0)}},{key:"setTokenSource",value:function(o){this.tokenSource=o,this.tokens=[],this.index=-1,this.fetchedEOF=!1}},{key:"nextTokenOnChannel",value:function(o,u){if(this.sync(o),o>=this.tokens.length)return-1;for(var S=this.tokens[o];S.channel!==this.channel;){if(S.type===n.EOF)return-1;o+=1,this.sync(o),S=this.tokens[o]}return o}},{key:"previousTokenOnChannel",value:function(o,u){for(;o>=0&&this.tokens[o].channel!==u;)o-=1;return o}},{key:"getHiddenTokensToRight",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var S=this.nextTokenOnChannel(o+1,hr.DEFAULT_TOKEN_CHANNEL),k=o+1,C=S===-1?this.tokens.length-1:S;return this.filterForChannel(k,C,u)}},{key:"getHiddenTokensToLeft",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var S=this.previousTokenOnChannel(o-1,hr.DEFAULT_TOKEN_CHANNEL);if(S===o-1)return null;var k=S+1,C=o-1;return this.filterForChannel(k,C,u)}},{key:"filterForChannel",value:function(o,u,S){for(var k=[],C=o;C<u+1;C++){var U=this.tokens[C];S===-1?U.channel!==hr.DEFAULT_TOKEN_CHANNEL&&k.push(U):U.channel===S&&k.push(U)}return k.length===0?null:k}},{key:"getSourceName",value:function(){return this.tokenSource.getSourceName()}},{key:"getText",value:function(o){this.lazyInit(),this.fill(),o||(o=new _e(0,this.tokens.length-1));var u=o.start;u instanceof n&&(u=u.tokenIndex);var S=o.stop;if(S instanceof n&&(S=S.tokenIndex),u===null||S===null||u<0||S<0)return"";S>=this.tokens.length&&(S=this.tokens.length-1);for(var k="",C=u;C<S+1;C++){var U=this.tokens[C];if(U.type===n.EOF)break;k+=U.text}return k}},{key:"fill",value:function(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}])&&zb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Kb(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)}));function ts(f){return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ts(f)}function Wb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ts(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ts(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ts(_)==="symbol"?_:String(_)),s)}var _}function $0(f,i){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$0(f,i)}function tl(f){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tl(f)}Object.defineProperty(vm,"size",{get:function(){return this.tokens.length}});var bm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&$0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=tl(s);if(_){var S=tl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ts(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o)).channel=u===void 0?n.DEFAULT_CHANNEL:u,S}return i=y,(m=[{key:"adjustSeekIndex",value:function(o){return this.nextTokenOnChannel(o,this.channel)}},{key:"LB",value:function(o){if(o===0||this.index-o<0)return null;for(var u=this.index,S=1;S<=o;)u=this.previousTokenOnChannel(u-1,this.channel),S+=1;return u<0?null:this.tokens[u]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);for(var u=this.index,S=1;S<o;)this.sync(u+1)&&(u=this.nextTokenOnChannel(u+1,this.channel)),S+=1;return this.tokens[u]}},{key:"getNumberOfOnChannelTokens",value:function(){var o=0;this.fill();for(var u=0;u<this.tokens.length;u++){var S=this.tokens[u];if(S.channel===this.channel&&(o+=1),S.type===n.EOF)break}return o}}])&&Wb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(vm);function ns(f){return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ns(f)}function qb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(ns(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ns(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ns(_)==="symbol"?_:String(_)),s)}var _}function H0(f,i){return H0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},H0(f,i)}function nl(f){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nl(f)}var Xb=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&H0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=nl(s);if(_){var S=nl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(ns(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).parser=o,u}return i=y,(m=[{key:"enterEveryRule",value:function(o){console.log("enter "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},{key:"visitTerminal",value:function(o){console.log("consume "+o.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}},{key:"exitEveryRule",value:function(o){console.log("exit "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}])&&qb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(A0);function rs(f){return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},rs(f)}function Yb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(rs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(rs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),rs(_)==="symbol"?_:String(_)),s)}var _}function G0(f,i){return G0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},G0(f,i)}function rl(f){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},rl(f)}var K0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&G0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=rl(s);if(_){var S=rl(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(rs(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this))._input=null,u._errHandler=new B0,u._precedenceStack=[],u._precedenceStack.push(0),u._ctx=null,u.buildParseTrees=!0,u._tracer=null,u._parseListeners=null,u._syntaxErrors=0,u.setInputStream(o),u}return i=y,m=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}},{key:"match",value:function(o){var u=this.getCurrentToken();return u.type===o?(this._errHandler.reportMatch(this),this.consume()):(u=this._errHandler.recoverInline(this),this.buildParseTrees&&u.tokenIndex===-1&&this._ctx.addErrorNode(u)),u}},{key:"matchWildcard",value:function(){var o=this.getCurrentToken();return o.type>0?(this._errHandler.reportMatch(this),this.consume()):(o=this._errHandler.recoverInline(this),this.buildParseTrees&&o.tokenIndex===-1&&this._ctx.addErrorNode(o)),o}},{key:"getParseListeners",value:function(){return this._parseListeners||[]}},{key:"addParseListener",value:function(o){if(o===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(o)}},{key:"removeParseListener",value:function(o){if(this._parseListeners!==null){var u=this._parseListeners.indexOf(o);u>=0&&this._parseListeners.splice(u,1),this._parseListeners.length===0&&(this._parseListeners=null)}}},{key:"removeParseListeners",value:function(){this._parseListeners=null}},{key:"triggerEnterRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.forEach(function(u){u.enterEveryRule(o),o.enterRule(u)})}}},{key:"triggerExitRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(u){o.exitRule(u),u.exitEveryRule(o)})}}},{key:"getTokenFactory",value:function(){return this._input.tokenSource._factory}},{key:"setTokenFactory",value:function(o){this._input.tokenSource._factory=o}},{key:"getATNWithBypassAlts",value:function(){var o=this.getSerializedATN();if(o===null)throw"The current parser does not support an ATN with bypass alternatives.";var u=this.bypassAltsAtnCache[o];if(u===null){var S=new Ns;S.generateRuleBypassTransitions=!0,u=new t0(S).deserialize(o),this.bypassAltsAtnCache[o]=u}return u}},{key:"getInputStream",value:function(){return this.getTokenStream()}},{key:"setInputStream",value:function(o){this.setTokenStream(o)}},{key:"getTokenStream",value:function(){return this._input}},{key:"setTokenStream",value:function(o){this._input=null,this.reset(),this._input=o}},{key:"syntaxErrorsCount",get:function(){return this._syntaxErrors}},{key:"getCurrentToken",value:function(){return this._input.LT(1)}},{key:"notifyErrorListeners",value:function(o,u,S){S=S||null,(u=u||null)===null&&(u=this.getCurrentToken()),this._syntaxErrors+=1;var k=u.line,C=u.column;this.getErrorListenerDispatch().syntaxError(this,u,k,C,o,S)}},{key:"consume",value:function(){var o=this.getCurrentToken();o.type!==n.EOF&&this.getInputStream().consume();var u,S=this._parseListeners!==null&&this._parseListeners.length>0;return(this.buildParseTrees||S)&&((u=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(o):this._ctx.addTokenNode(o)).invokingState=this.state,S&&this._parseListeners.forEach(function(k){u instanceof ti||u.isErrorNode!==void 0&&u.isErrorNode()?k.visitErrorNode(u):u instanceof hn&&k.visitTerminal(u)})),o}},{key:"addContextToParseTree",value:function(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}},{key:"enterRule",value:function(o,u,S){this.state=u,this._ctx=o,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}},{key:"exitRule",value:function(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}},{key:"enterOuterAlt",value:function(o,u){o.setAltNumber(u),this.buildParseTrees&&this._ctx!==o&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(o)),this._ctx=o}},{key:"getPrecedence",value:function(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}},{key:"enterRecursionRule",value:function(o,u,S,k){this.state=u,this._precedenceStack.push(k),this._ctx=o,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}},{key:"pushNewRecursionContext",value:function(o,u,S){var k=this._ctx;k.parentCtx=o,k.invokingState=u,k.stop=this._input.LT(-1),this._ctx=o,this._ctx.start=k.start,this.buildParseTrees&&this._ctx.addChild(k),this.triggerEnterRuleEvent()}},{key:"unrollRecursionContexts",value:function(o){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var u=this._ctx,S=this.getParseListeners();if(S!==null&&S.length>0)for(;this._ctx!==o;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=o;u.parentCtx=o,this.buildParseTrees&&o!==null&&o.addChild(u)}},{key:"getInvokingContext",value:function(o){for(var u=this._ctx;u!==null;){if(u.ruleIndex===o)return u;u=u.parentCtx}return null}},{key:"precpred",value:function(o,u){return u>=this._precedenceStack[this._precedenceStack.length-1]}},{key:"inContext",value:function(o){return!1}},{key:"isExpectedToken",value:function(o){var u=this._interp.atn,S=this._ctx,k=u.states[this.state],C=u.nextTokens(k);if(C.contains(o))return!0;if(!C.contains(n.EPSILON))return!1;for(;S!==null&&S.invokingState>=0&&C.contains(n.EPSILON);){var U=u.states[S.invokingState].transitions[0];if((C=u.nextTokens(U.followState)).contains(o))return!0;S=S.parentCtx}return!(!C.contains(n.EPSILON)||o!==n.EOF)}},{key:"getExpectedTokens",value:function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}},{key:"getExpectedTokensWithinCurrentRule",value:function(){var o=this._interp.atn,u=o.states[this.state];return o.nextTokens(u)}},{key:"getRuleIndex",value:function(o){var u=this.getRuleIndexMap()[o];return u!==null?u:-1}},{key:"getRuleInvocationStack",value:function(o){(o=o||null)===null&&(o=this._ctx);for(var u=[];o!==null;){var S=o.ruleIndex;S<0?u.push("n/a"):u.push(this.ruleNames[S]),o=o.parentCtx}return u}},{key:"getDFAStrings",value:function(){return this._interp.decisionToDFA.toString()}},{key:"dumpDFA",value:function(){for(var o=!1,u=0;u<this._interp.decisionToDFA.length;u++){var S=this._interp.decisionToDFA[u];S.states.length>0&&(o&&console.log(),this.printer.println("Decision "+S.decision+":"),this.printer.print(S.toString(this.literalNames,this.symbolicNames)),o=!0)}}},{key:"getSourceName",value:function(){return this._input.sourceName}},{key:"setTrace",value:function(o){o?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new Xb(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}],m&&Yb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Ic);function is(f){return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},is(f)}function Zb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(is(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(is(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),is(_)==="symbol"?_:String(_)),s)}var _}function z0(f,i){return z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},z0(f,i)}function il(f){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},il(f)}K0.bypassAltsAtnCache={};var Em=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&z0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=il(s);if(_){var S=il(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(is(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){var u;return function(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}(this,y),(u=l.call(this)).parentCtx=null,u.symbol=o,u}return i=y,(m=[{key:"getChild",value:function(o){return null}},{key:"getSymbol",value:function(){return this.symbol}},{key:"getParent",value:function(){return this.parentCtx}},{key:"getPayload",value:function(){return this.symbol}},{key:"getSourceInterval",value:function(){if(this.symbol===null)return _e.INVALID_INTERVAL;var o=this.symbol.tokenIndex;return new _e(o,o)}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitTerminal(this)}},{key:"getText",value:function(){return this.symbol.text}},{key:"toString",value:function(){return this.symbol.type===n.EOF?"<EOF>":this.symbol.text}}])&&Zb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(hn);function os(f){return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},os(f)}function Qb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(os(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(os(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),os(_)==="symbol"?_:String(_)),s)}var _}function W0(f,i){return W0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},W0(f,i)}function ol(f){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ol(f)}var xm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&W0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=ol(s);if(_){var S=ol(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(os(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o){return function(u,S){if(!(u instanceof S))throw new TypeError("Cannot call a class as a function")}(this,y),l.call(this,o)}return i=y,(m=[{key:"isErrorNode",value:function(){return!0}},{key:"accept",value:function(o){return o.visitErrorNode(this)}}])&&Qb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(Em);function as(f){return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},as(f)}function Jb(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(_=function(l,y){if(as(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(as(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),as(_)==="symbol"?_:String(_)),s)}var _}function q0(f,i){return q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},q0(f,i)}function al(f){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},al(f)}var X0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&q0(o,u)})(y,f);var i,m,s,_,l=(s=y,_=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=al(s);if(_){var S=al(this).constructor;o=Reflect.construct(u,arguments,S)}else o=u.apply(this,arguments);return function(k,C){if(C&&(as(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(k)}(this,o)});function y(o,u){var S;return function(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}(this,y),(S=l.call(this,o,u)).children=null,S.start=null,S.stop=null,S.exception=null,S}return i=y,(m=[{key:"copyFrom",value:function(o){this.parentCtx=o.parentCtx,this.invokingState=o.invokingState,this.children=null,this.start=o.start,this.stop=o.stop,o.children&&(this.children=[],o.children.map(function(u){u instanceof xm&&(this.children.push(u),u.parentCtx=this)},this))}},{key:"enterRule",value:function(o){}},{key:"exitRule",value:function(o){}},{key:"addChild",value:function(o){return this.children===null&&(this.children=[]),this.children.push(o),o}},{key:"removeLastChild",value:function(){this.children!==null&&this.children.pop()}},{key:"addTokenNode",value:function(o){var u=new Em(o);return this.addChild(u),u.parentCtx=this,u}},{key:"addErrorNode",value:function(o){var u=new xm(o);return this.addChild(u),u.parentCtx=this,u}},{key:"getChild",value:function(o,u){if(u=u||null,this.children===null||o<0||o>=this.children.length)return null;if(u===null)return this.children[o];for(var S=0;S<this.children.length;S++){var k=this.children[S];if(k instanceof u){if(o===0)return k;o-=1}}return null}},{key:"getToken",value:function(o,u){if(this.children===null||u<0||u>=this.children.length)return null;for(var S=0;S<this.children.length;S++){var k=this.children[S];if(k instanceof hn&&k.symbol.type===o){if(u===0)return k;u-=1}}return null}},{key:"getTokens",value:function(o){if(this.children===null)return[];for(var u=[],S=0;S<this.children.length;S++){var k=this.children[S];k instanceof hn&&k.symbol.type===o&&u.push(k)}return u}},{key:"getTypedRuleContext",value:function(o,u){return this.getChild(u,o)}},{key:"getTypedRuleContexts",value:function(o){if(this.children===null)return[];for(var u=[],S=0;S<this.children.length;S++){var k=this.children[S];k instanceof o&&u.push(k)}return u}},{key:"getChildCount",value:function(){return this.children===null?0:this.children.length}},{key:"getSourceInterval",value:function(){return this.start===null||this.stop===null?_e.INVALID_INTERVAL:new _e(this.start.tokenIndex,this.stop.tokenIndex)}}])&&Jb(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),y}(ro);function Y0(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&Z0(f,i)}function Z0(f,i){return Z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Z0(f,i)}function Q0(f){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,s=sl(f);if(i){var _=sl(this).constructor;m=Reflect.construct(s,arguments,_)}else m=s.apply(this,arguments);return function(l,y){if(y&&(ss(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function sl(f){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},sl(f)}function ss(f){return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ss(f)}function us(f,i){var m=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!m){if(Array.isArray(f)||(m=function(u,S){if(u){if(typeof u=="string")return Sm(u,S);var k=Object.prototype.toString.call(u).slice(8,-1);return k==="Object"&&u.constructor&&(k=u.constructor.name),k==="Map"||k==="Set"?Array.from(u):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?Sm(u,S):void 0}}(f))||i&&f&&typeof f.length=="number"){m&&(f=m);var s=0,_=function(){};return{s:_,n:function(){return s>=f.length?{done:!0}:{done:!1,value:f[s++]}},e:function(u){throw u},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,y=!0,o=!1;return{s:function(){m=m.call(f)},n:function(){var u=m.next();return y=u.done,u},e:function(u){o=!0,l=u},f:function(){try{y||m.return==null||m.return()}finally{if(o)throw l}}}}function Sm(f,i){(i==null||i>f.length)&&(i=f.length);for(var m=0,s=new Array(i);m<i;m++)s[m]=f[m];return s}function cu(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function Tm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,Am(s.key),s)}}function lu(f,i,m){return i&&Tm(f.prototype,i),m&&Tm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function Am(f){var i=function(m,s){if(ss(m)!=="object"||m===null)return m;var _=m[Symbol.toPrimitive];if(_!==void 0){var l=_.call(m,"string");if(ss(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(f);return ss(i)==="symbol"?i:String(i)}ro.EMPTY=new X0;var ul,cl,J0,Cm=function(){function f(i){cu(this,f),this.tokens=i,this.programs=new Map}return lu(f,[{key:"getTokenStream",value:function(){return this.tokens}},{key:"insertAfter",value:function(i,m){var s,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(_),y=new km(this.tokens,s,l.length,m);l.push(y)}},{key:"insertBefore",value:function(i,m){var s,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(_),y=new cs(this.tokens,s,l.length,m);l.push(y)}},{key:"replaceSingle",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;this.replace(i,i,m,s)}},{key:"replace",value:function(i,m,s){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.DEFAULT_PROGRAM_NAME;if(typeof i!="number"&&(i=i.tokenIndex),typeof m!="number"&&(m=m.tokenIndex),i>m||i<0||m<0||m>=this.tokens.size)throw new RangeError("replace: range invalid: ".concat(i,"..").concat(m,"(size=").concat(this.tokens.size,")"));var l=this.getProgram(_),y=new ll(this.tokens,i,m,l.length,s);l.push(y)}},{key:"delete",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;m===void 0&&(m=i),this.replace(i,m,null,s)}},{key:"getProgram",value:function(i){var m=this.programs.get(i);return m==null&&(m=this.initializeProgram(i)),m}},{key:"initializeProgram",value:function(i){var m=[];return this.programs.set(i,m),m}},{key:"getText",value:function(i){var m,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.DEFAULT_PROGRAM_NAME;m=i instanceof _e?i:new _e(0,this.tokens.size-1),typeof i=="string"&&(s=i);var _=this.programs.get(s),l=m.start,y=m.stop;if(y>this.tokens.size-1&&(y=this.tokens.size-1),l<0&&(l=0),_==null||_.length===0)return this.tokens.getText(new _e(l,y));for(var o=[],u=this.reduceToSingleOperationPerIndex(_),S=l;S<=y&&S<this.tokens.size;){var k=u.get(S);u.delete(S);var C=this.tokens.get(S);k==null?(C.type!==n.EOF&&o.push(String(C.text)),S++):S=k.execute(o)}if(y===this.tokens.size-1){var U,fe=us(u.values());try{for(fe.s();!(U=fe.n()).done;){var Ne=U.value;Ne.index>=this.tokens.size-1&&o.push(Ne.text.toString())}}catch(Re){fe.e(Re)}finally{fe.f()}}return o.join("")}},{key:"reduceToSingleOperationPerIndex",value:function(i){for(var m=0;m<i.length;m++){var s=i[m];if(s!=null&&s instanceof ll){var _,l=s,y=us(this.getKindOfOps(i,cs,m));try{for(y.s();!(_=y.n()).done;){var o=_.value;o.index===l.index?(i[o.instructionIndex]=void 0,l.text=o.text.toString()+(l.text!=null?l.text.toString():"")):o.index>l.index&&o.index<=l.lastIndex&&(i[o.instructionIndex]=void 0)}}catch(Rr){y.e(Rr)}finally{y.f()}var u,S=us(this.getKindOfOps(i,ll,m));try{for(S.s();!(u=S.n()).done;){var k=u.value;if(k.index>=l.index&&k.lastIndex<=l.lastIndex)i[k.instructionIndex]=void 0;else{var C=k.lastIndex<l.index||k.index>l.lastIndex;if(k.text!=null||l.text!=null||C){if(!C)throw new Error("replace op boundaries of ".concat(l," overlap with previous ").concat(k))}else i[k.instructionIndex]=void 0,l.index=Math.min(k.index,l.index),l.lastIndex=Math.max(k.lastIndex,l.lastIndex)}}}catch(Rr){S.e(Rr)}finally{S.f()}}}for(var U=0;U<i.length;U++){var fe=i[U];if(fe!=null&&fe instanceof cs){var Ne,Re=fe,Ge=us(this.getKindOfOps(i,cs,U));try{for(Ge.s();!(Ne=Ge.n()).done;){var ct=Ne.value;ct.index===Re.index&&(ct instanceof km?(Re.text=this.catOpText(ct.text,Re.text),i[ct.instructionIndex]=void 0):ct instanceof cs&&(Re.text=this.catOpText(Re.text,ct.text),i[ct.instructionIndex]=void 0))}}catch(Rr){Ge.e(Rr)}finally{Ge.f()}var We,En=us(this.getKindOfOps(i,ll,U));try{for(En.s();!(We=En.n()).done;){var vn=We.value;if(Re.index!==vn.index){if(Re.index>=vn.index&&Re.index<=vn.lastIndex)throw new Error("insert op ".concat(Re," within boundaries of previous ").concat(vn))}else vn.text=this.catOpText(Re.text,vn.text),i[U]=void 0}}catch(Rr){En.e(Rr)}finally{En.f()}}}var qn,qr=new Map,Bi=us(i);try{for(Bi.s();!(qn=Bi.n()).done;){var Li=qn.value;if(Li!=null){if(qr.get(Li.index)!=null)throw new Error("should only be one op per index");qr.set(Li.index,Li)}}}catch(Rr){Bi.e(Rr)}finally{Bi.f()}return qr}},{key:"catOpText",value:function(i,m){var s="",_="";return i!=null&&(s=i.toString()),m!=null&&(_=m.toString()),s+_}},{key:"getKindOfOps",value:function(i,m,s){return i.slice(0,s).filter(function(_){return _&&_ instanceof m})}}]),f}();ul=Cm,J0="default",(cl=Am(cl="DEFAULT_PROGRAM_NAME"))in ul?Object.defineProperty(ul,cl,{value:J0,enumerable:!0,configurable:!0,writable:!0}):ul[cl]=J0;var Dm=function(){function f(i,m,s,_){cu(this,f),this.tokens=i,this.instructionIndex=s,this.index=m,this.text=_===void 0?"":_}return lu(f,[{key:"toString",value:function(){var i=this.constructor.name,m=i.indexOf("$");return"<"+(i=i.substring(m+1,i.length))+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}]),f}(),cs=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y){return cu(this,m),i.call(this,s,_,l,y)}return lu(m,[{key:"execute",value:function(s){return this.text&&s.push(this.text.toString()),this.tokens.get(this.index).type!==n.EOF&&s.push(String(this.tokens.get(this.index).text)),this.index+1}}]),m}(Dm),km=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y){return cu(this,m),i.call(this,s,_+1,l,y)}return lu(m)}(cs),ll=function(f){Y0(m,f);var i=Q0(m);function m(s,_,l,y,o){var u;return cu(this,m),(u=i.call(this,s,_,y,o)).lastIndex=l,u}return lu(m,[{key:"execute",value:function(s){return this.text&&s.push(this.text.toString()),this.lastIndex+1}},{key:"toString",value:function(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}]),m}(Dm);const e1={atn:Tb,dfa:kb,context:Ob,misc:wb,tree:Ib,error:jb,Token:n,CommonToken:Us,CharStreams:ym,CharStream:su,InputStream:su,CommonTokenStream:bm,Lexer:hr,Parser:K0,ParserRuleContext:X0,Interval:_e,IntervalSet:J,LL1Analyzer:Go,Utils:Gb,TokenStreamRewriter:Cm}})();var Nr=Mt.dx,ep=Mt.q2;Mt.FO,Mt.xf,Mt.Gy;var Om=Mt.s4,wm=Mt.c7,tp=Mt._7;Mt.gp;var Rm=Mt.cK,Fm=Mt.zs,Nm=Mt.AV;Mt.Xp,Mt.VS,Mt.ul;var Im=Mt.hW,Pm=Mt.x1,bi=Mt.z5;Mt.oN;var Bm=Mt.TB;Mt.u1;var Lm=Mt._b,Mm=Mt.$F,Je=Mt._T,np=Mt.db,Um=Mt.Zx,et=Mt._x;Mt.r8,Mt.JI,Mt.TP;var rp=Mt.WU;Mt.Nj,Mt.ZP;const $=class $ extends Lm{get grammarFileName(){return"tccScriptParser.g4"}get literalNames(){return $.literalNames}get symbolicNames(){return $.symbolicNames}get ruleNames(){return $.ruleNames}get serializedATN(){return $._serializedATN}createFailedPredicateException(e,n){return new Fm(this,e,n)}constructor(e){super(e),this._interp=new Mm(this,$._ATN,$.DecisionsToDFA,new np)}program(){let e=new Vm(this,this._ctx,this.state);this.enterRule(e,0,$.RULE_program);let n;try{this.enterOuterAlt(e,1);{for(this.state=106,this._errHandler.sync(this),n=this._input.LA(1);n===4||n===6||!(n-36&-32)&&1<<n-36&38635767;){switch(this.state=104,this._errHandler.sync(this),this._input.LA(1)){case 61:this.state=102,this.match($.NEWLINE);break;case 4:case 6:case 36:case 37:case 38:case 40:case 41:case 42:case 43:case 47:case 51:case 52:case 54:case 55:case 58:this.state=103,this.globalStmt();break;default:throw new bi(this)}this.state=108,this._errHandler.sync(this),n=this._input.LA(1)}this.state=109,this.match($.EOF)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}globalStmt(){let e=new fl(this,this._ctx,this.state);this.enterRule(e,2,$.RULE_globalStmt);let n;try{switch(this.state=123,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,3,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=111,this.variableDeclarationStmt(),this.state=113,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=112,this.match($.Comma)),this.state=115,this.match($.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=117,this.blockStmt();break;case 3:this.enterOuterAlt(e,3),this.state=118,this.importStmt();break;case 4:this.enterOuterAlt(e,4),this.state=119,this.arrowFunction();break;case 5:this.enterOuterAlt(e,5),this.state=120,this.arrowMethod();break;case 6:this.enterOuterAlt(e,6),this.state=121,this.typeStatement();break;case 7:this.enterOuterAlt(e,7),this.state=122,this.enumStatement();break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockStmt(){let e=new ip(this,this._ctx,this.state);this.enterRule(e,4,$.RULE_blockStmt);try{let n;this.enterOuterAlt(e,1);{for(this.state=130,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=125,this.variableDeclarationStmt(),this.state=126,this.match($.Comma)),this.state=132,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);switch(this.state=135,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 55:case 58:this.state=133,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=134,this.blockExpression();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stmt(){let e=new hl(this,this._ctx,this.state);this.enterRule(e,6,$.RULE_stmt);let n;try{switch(this.state=144,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=137,this.simpleStmt(),this.state=139,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=138,this.match($.Comma)),this.state=141,this.match($.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=143,this.expressionBlockSequence();break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}simpleStmt(){let e=new pl(this,this._ctx,this.state);this.enterRule(e,8,$.RULE_simpleStmt);try{switch(this.state=150,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,8,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=146,this.expressionSequence();break;case 2:this.enterOuterAlt(e,2),this.state=147,this.blockSequence();break;case 3:this.enterOuterAlt(e,3),this.state=148,this.brackethesized();break;case 4:this.enterOuterAlt(e,4),this.state=149,this.flowStmt();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}flowStmt(){let e=new op(this,this._ctx,this.state);this.enterRule(e,10,$.RULE_flowStmt);let n;try{this.enterOuterAlt(e,1),this.state=152,n=this._input.LA(1),n===34||n===39?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}block(){let e=new ls(this,this._ctx,this.state);this.enterRule(e,12,$.RULE_block);let n;try{switch(this.state=161,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 12:case 13:case 31:case 32:case 33:case 34:case 38:case 39:case 40:case 46:case 51:case 54:case 55:case 56:case 57:case 58:this.enterOuterAlt(e,1),this.state=154,this.simpleStmt(),this.state=156,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=155,this.match($.Comma)),this.state=158,this.match($.NEWLINE);break;case 61:this.enterOuterAlt(e,2),this.state=160,this.blockLine();break;default:throw new bi(this)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockLine(){let e=new Eo(this,this._ctx,this.state);this.enterRule(e,14,$.RULE_blockLine);let n;try{this.enterOuterAlt(e,1);{this.state=163,this.match($.NEWLINE),this.state=164,this.match($.INDENT),this.state=166,this._errHandler.sync(this),n=this._input.LA(1);do this.state=165,this.stmt(),this.state=168,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130568167);this.state=170,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}variableDeclarationStmt(){let e=new fu(this,this._ctx,this.state);this.enterRule(e,16,$.RULE_variableDeclarationStmt);try{let n;this.enterOuterAlt(e,1);{switch(this.state=174,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,12,this._ctx)){case 1:this.state=172,this.methodStmt();break;case 2:this.state=173,this.variableDeclarationList();break}for(this.state=183,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=176,this.match($.Comma),this.state=179,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.state=177,this.methodStmt();break;case 2:this.state=178,this.variableDeclarationList();break}this.state=185,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}variableDeclarationList(){let e=new Mi(this,this._ctx,this.state);this.enterRule(e,18,$.RULE_variableDeclarationList);try{switch(this.state=194,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)){case 1:e=new $m(this,e),this.enterOuterAlt(e,1),this.state=186,this.varArrayDeclaration(),this.state=187,this.match($.Assign),this.state=188,this.singleExpression(0);break;case 2:e=new jm(this,e),this.enterOuterAlt(e,2),this.state=190,this.name(),this.state=191,this.assignmentOperator(),this.state=192,this.singleExpression(0);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varModifier(){let e=new dl(this,this._ctx,this.state);this.enterRule(e,20,$.RULE_varModifier);let n;try{this.enterOuterAlt(e,1),this.state=196,n=this._input.LA(1),n===38||n===40?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockSequence(){let e=new ap(this,this._ctx,this.state);this.enterRule(e,22,$.RULE_blockSequence);try{let n;this.enterOuterAlt(e,1);{switch(this.state=200,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,16,this._ctx)){case 1:this.state=198,this.singleExpression(0);break;case 2:this.state=199,this.variableDeclarationList();break}for(this.state=209,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=202,this.match($.Comma),this.state=205,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,17,this._ctx)){case 1:this.state=203,this.singleExpression(0);break;case 2:this.state=204,this.variableDeclarationList();break}this.state=211,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionSequence(){let e=new _l(this,this._ctx,this.state);this.enterRule(e,24,$.RULE_expressionSequence);try{let n;for(this.enterOuterAlt(e,1),this.state=212,this.singleExpression(0),this.state=217,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=213,this.match($.Comma),this.state=214,this.singleExpression(0)),this.state=219,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionBlockSequence(){let e=new sp(this,this._ctx,this.state);this.enterRule(e,26,$.RULE_expressionBlockSequence);try{let n;this.enterOuterAlt(e,1);{for(this.state=228,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=222,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.state=220,this.singleExpression(0);break;case 2:this.state=221,this.variableDeclarationList();break}this.state=224,this.match($.Comma)}this.state=230,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx)}switch(this.state=233,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 55:case 58:this.state=231,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=232,this.blockExpression();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varBlockStmt(){let e=new ml(this,this._ctx,this.state);this.enterRule(e,28,$.RULE_varBlockStmt);try{this.enterOuterAlt(e,1);{switch(this.state=241,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,23,this._ctx)){case 1:this.state=235,this.varArrayDeclaration(),this.state=236,this.match($.Assign);break;case 2:this.state=238,this.name(),this.state=239,this.assignmentOperator();break}this.state=243,this.blockExpression()}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varArrayDeclaration(){let e=new fs(this,this._ctx,this.state);this.enterRule(e,30,$.RULE_varArrayDeclaration);let n;try{switch(this.state=263,this._errHandler.sync(this),this._input.LA(1)){case 38:case 40:case 51:case 54:case 55:case 58:e=new Gm(this,e),this.enterOuterAlt(e,1);{switch(this.state=246,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=245,this.varModifier()),this.state=249,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,25,this._ctx)){case 1:this.state=248,this.typeGather();break}this.state=251,this.identifier()}break;case 4:e=new Hm(this,e),this.enterOuterAlt(e,2);{for(this.state=252,this.match($.OpenBracket),this.state=253,this.identifier(),this.state=258,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=254,this.match($.Comma),this.state=255,this.identifier(),this.state=260,this._errHandler.sync(this),n=this._input.LA(1);this.state=261,this.match($.CloseBracket)}break;default:throw new bi(this)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockExpression(){let e=new hu(this,this._ctx,this.state);this.enterRule(e,32,$.RULE_blockExpression);try{switch(this.state=269,this._errHandler.sync(this),this._input.LA(1)){case 43:this.enterOuterAlt(e,1),this.state=265,this.ifStatement();break;case 37:this.enterOuterAlt(e,2),this.state=266,this.forStatement();break;case 42:this.enterOuterAlt(e,3),this.state=267,this.whileStatement();break;case 41:this.enterOuterAlt(e,4),this.state=268,this.switchStatement();break;default:throw new bi(this)}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}singleExpression(e){e===void 0&&(e=0);let n=this._ctx,r=this.state,a=new je(this,this._ctx,r),c=a,h=34;this.enterRecursionRule(a,34,$.RULE_singleExpression,e);let d;try{let E;this.enterOuterAlt(a,1);{switch(this.state=283,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,29,this._ctx)){case 1:a=new ny(this,a),this._ctx=a,c=a,this.state=272,this.methodStmt();break;case 2:a=new Jm(this,a),this._ctx=a,c=a,this.state=273,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=274,this.singleExpression(12);break;case 3:a=new ey(this,a),this._ctx=a,c=a,this.state=275,this.match($.Not),this.state=276,this.singleExpression(11);break;case 4:a=new Ym(this,a),this._ctx=a,c=a,this.state=277,this.name();break;case 5:a=new Zm(this,a),this._ctx=a,c=a,this.state=278,this.literal();break;case 6:a=new Km(this,a),this._ctx=a,c=a,this.state=279,this.match($.OpenParen),this.state=280,this.singleExpression(0),this.state=281,this.match($.CloseParen);break}for(this._ctx.stop=this._input.LT(-1),this.state=316,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx);E!==2&&E!==Nr.INVALID_ALT_NUMBER;){if(E===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),c=a,this.state=314,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,30,this._ctx)){case 1:{if(a=new iy(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=285,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=286,d=this._input.LA(1),!(d&-32)&&1<<d&114688?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=287,this.singleExpression(11)}break;case 2:{if(a=new zm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=288,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=289,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=290,this.singleExpression(10)}break;case 3:{if(a=new Wm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=291,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=292,d=this._input.LA(1),!(d&-32)&&1<<d&3932160?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=293,this.singleExpression(9)}break;case 4:{if(a=new ry(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=294,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=295,d=this._input.LA(1),d===22||d===23?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=296,this.singleExpression(8)}break;case 5:{if(a=new Xm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=297,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=298,this.match($.And),this.state=299,this.singleExpression(7)}break;case 6:{if(a=new Qm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=300,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=301,this.match($.Or),this.state=302,this.singleExpression(6)}break;case 7:{if(a=new qm(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=303,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=304,this.match($.QuestionMark),this.state=305,this.singleExpression(0),this.state=306,this.match($.Colon),this.state=307,this.singleExpression(4)}break;case 8:{if(a=new ty(this,new je(this,n,r)),this.pushNewRecursionContext(a,h,$.RULE_singleExpression),this.state=309,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=310,this.match($.OpenBracket),this.state=311,this.singleExpression(0),this.state=312,this.match($.CloseBracket)}break}this.state=318,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx)}}}catch(E){if(E instanceof et)a.exception=E,this._errHandler.reportError(this,E),this._errHandler.recover(this,E);else throw E}finally{this.unrollRecursionContexts(n)}return a}brackethesized(){let e=new yl(this,this._ctx,this.state);this.enterRule(e,36,$.RULE_brackethesized);try{this.enterOuterAlt(e,1),this.state=319,this.match($.OpenBracket),this.state=320,this.expressionSequence(),this.state=321,this.match($.CloseBracket)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}arguments(){let e=new up(this,this._ctx,this.state);this.enterRule(e,38,$.RULE_arguments);let n;try{let r;this.enterOuterAlt(e,1);{if(this.state=323,this.match($.OpenParen),this.state=335,this._errHandler.sync(this),n=this._input.LA(1),!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130564099){for(this.state=324,this.argument(),this.state=329,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=325,this.match($.Comma),this.state=326,this.argument()),this.state=331,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);this.state=333,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=332,this.match($.Comma))}this.state=337,this.match($.CloseParen)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}argument(){let e=new gl(this,this._ctx,this.state);this.enterRule(e,40,$.RULE_argument);try{this.enterOuterAlt(e,1);{switch(this.state=342,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,35,this._ctx)){case 1:this.state=339,this.identifier(),this.state=340,this.match($.Assign);break}switch(this.state=346,this._errHandler.sync(this),this._input.LA(1)){case 6:case 12:case 13:case 31:case 32:case 33:case 46:case 51:case 54:case 55:case 56:case 57:case 58:this.state=344,this.singleExpression(0);break;case 4:this.state=345,this.brackethesized();break;default:throw new bi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}ifStatement(){let e=new cp(this,this._ctx,this.state);this.enterRule(e,42,$.RULE_ifStatement);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=348,this.match($.If),this.state=349,this.singleExpression(0),this.state=350,this.blockLine(),this.state=358,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=351,this.match($.Else),this.state=352,this.match($.If),this.state=353,this.singleExpression(0),this.state=354,this.blockLine()),this.state=360,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);this.state=363,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=361,this.match($.Else),this.state=362,this.blockLine())}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}forStatement(){let e=new pu(this,this._ctx,this.state);this.enterRule(e,44,$.RULE_forStatement);let n;try{switch(this.state=397,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:e=new oy(this,e),this.enterOuterAlt(e,1);{switch(this.state=365,this.match($.For),this.state=367,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=366,this.varModifier()),this.state=370,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,40,this._ctx)){case 1:this.state=369,this.typeGather();break}this.state=372,this.identifier(),this.state=373,this.match($.Assign),this.state=374,this.singleExpression(0),this.state=375,this.match($.To),this.state=376,this.singleExpression(0),this.state=379,this._errHandler.sync(this),n=this._input.LA(1),n===50&&(this.state=377,this.match($.By),this.state=378,this.singleExpression(0)),this.state=381,this.blockLine()}break;case 2:e=new ay(this,e),this.enterOuterAlt(e,2);{switch(this.state=383,this.match($.For),this.state=391,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 55:case 58:this.state=384,this.identifier();break;case 4:this.state=385,this.match($.OpenBracket),this.state=386,this.identifier(),this.state=387,this.match($.Comma),this.state=388,this.identifier(),this.state=389,this.match($.CloseBracket);break;default:throw new bi(this)}this.state=393,this.match($.In),this.state=394,this.singleExpression(0),this.state=395,this.blockLine()}break}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}switchStatement(){let e=new lp(this,this._ctx,this.state);this.enterRule(e,46,$.RULE_switchStatement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=399,this.match($.Switch),this.state=401,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099)&&(this.state=400,this.singleExpression(0)),this.state=403,this.match($.NEWLINE),this.state=404,this.match($.INDENT),this.state=417,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,47,this._ctx)){case 1:{this.state=406,this._errHandler.sync(this),n=this._input.LA(1);do this.state=405,this.caseClause(),this.state=408,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099)}break;case 2:{for(this.state=413,this._errHandler.sync(this),n=this._input.LA(1);!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130564099;)this.state=410,this.caseClause(),this.state=415,this._errHandler.sync(this),n=this._input.LA(1);this.state=416,this.defaultCaluse()}break}this.state=419,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}caseClause(){let e=new vl(this,this._ctx,this.state);this.enterRule(e,48,$.RULE_caseClause);try{this.enterOuterAlt(e,1),this.state=421,this.singleExpression(0),this.state=422,this.match($.ARROW),this.state=423,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}defaultCaluse(){let e=new fp(this,this._ctx,this.state);this.enterRule(e,50,$.RULE_defaultCaluse);try{this.enterOuterAlt(e,1),this.state=425,this.match($.ARROW),this.state=426,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}whileStatement(){let e=new hp(this,this._ctx,this.state);this.enterRule(e,52,$.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=428,this.match($.While),this.state=429,this.singleExpression(0),this.state=430,this.blockLine()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}importStmt(){let e=new pp(this,this._ctx,this.state);this.enterRule(e,54,$.RULE_importStmt);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=432,this.importElement(),this.state=437,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=433,this.match($.Comma),this.state=434,this.importElement()),this.state=439,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);this.state=441,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=440,this.match($.Comma)),this.state=443,this.match($.NEWLINE)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}importElement(){let e=new bl(this,this._ctx,this.state);this.enterRule(e,56,$.RULE_importElement);let n;try{this.enterOuterAlt(e,1),this.state=445,this.match($.Import),this.state=446,this.identifier(),this.state=447,this.match($.Divide),this.state=448,this.identifier(),this.state=449,this.match($.Divide),this.state=450,this.match($.IntegerLiteral),this.state=453,this._errHandler.sync(this),n=this._input.LA(1),n===53&&(this.state=451,this.match($.As),this.state=452,this.identifier())}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}literal(){let e=new dp(this,this._ctx,this.state);this.enterRule(e,58,$.RULE_literal);let n;try{this.enterOuterAlt(e,1),this.state=455,n=this._input.LA(1),!(n-31&-32)&&1<<n-31&100663303?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}methodStmt(){let e=new du(this,this._ctx,this.state);this.enterRule(e,60,$.RULE_methodStmt);try{let n;for(this.enterOuterAlt(e,1),this.state=457,this.methodElement(),this.state=462,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;)n===1&&(this.state=458,this.match($.Point),this.state=459,this.methodElement()),this.state=464,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodElement(){let e=new hs(this,this._ctx,this.state);this.enterRule(e,62,$.RULE_methodElement);try{this.enterOuterAlt(e,1),this.state=465,this.methodName(),this.state=466,this.arguments()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodName(){let e=new _p(this,this._ctx,this.state);this.enterRule(e,64,$.RULE_methodName);let n;try{let r;this.enterOuterAlt(e,1);{switch(this.state=481,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 55:case 58:for(this.state=473,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);r!==2&&r!==Nr.INVALID_ALT_NUMBER;)r===1&&(this.state=468,this.identifier(),this.state=469,this.match($.Point)),this.state=475,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);break;case 6:this.state=476,this.match($.OpenParen),this.state=477,this.singleExpression(0),this.state=478,this.match($.CloseParen),this.state=479,this.match($.Point);break;default:throw new bi(this)}this.state=483,this.identifier(),this.state=492,this._errHandler.sync(this),n=this._input.LA(1),n===18&&(this.state=484,this.match($.LessThan),this.state=485,this.typeName(),this.state=488,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=486,this.match($.Comma),this.state=487,this.typeName()),this.state=490,this.match($.MoreThan))}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunction(){let e=new mp(this,this._ctx,this.state);this.enterRule(e,66,$.RULE_arrowFunction);let n;try{this.enterOuterAlt(e,1),this.state=495,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=494,this.match($.Export)),this.state=497,this.identifier(),this.state=498,this.arrowFunctionParameters(),this.state=499,this.match($.ARROW),this.state=500,this.block()}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunctionParameters(){let e=new yp(this,this._ctx,this.state);this.enterRule(e,68,$.RULE_arrowFunctionParameters);let n;try{this.enterOuterAlt(e,1),this.state=502,this.match($.OpenParen),this.state=504,this._errHandler.sync(this),n=this._input.LA(1),!(n-51&-32)&&1<<n-51&153&&(this.state=503,this.formalParameterList()),this.state=506,this.match($.CloseParen)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterList(){let e=new El(this,this._ctx,this.state);this.enterRule(e,70,$.RULE_formalParameterList);let n;try{for(this.enterOuterAlt(e,1),this.state=508,this.formalParameterArg(),this.state=513,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=509,this.match($.Comma),this.state=510,this.formalParameterArg(),this.state=515,this._errHandler.sync(this),n=this._input.LA(1)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterArg(){let e=new xl(this,this._ctx,this.state);this.enterRule(e,72,$.RULE_formalParameterArg);let n;try{this.enterOuterAlt(e,1);{switch(this.state=517,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,59,this._ctx)){case 1:this.state=516,this.typeGather();break}this.state=519,this.identifier(),this.state=522,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=520,this.match($.Assign),this.state=521,this.singleExpression(0))}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethod(){let e=new gp(this,this._ctx,this.state);this.enterRule(e,74,$.RULE_arrowMethod);let n;try{this.enterOuterAlt(e,1),this.state=525,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=524,this.match($.Export)),this.state=527,this.match($.Method),this.state=528,this.identifier(),this.state=529,this.arrowMethodParameters(),this.state=530,this.match($.ARROW),this.state=531,this.block()}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethodParameters(){let e=new vp(this,this._ctx,this.state);this.enterRule(e,76,$.RULE_arrowMethodParameters);let n;try{this.enterOuterAlt(e,1),this.state=533,this.match($.OpenParen),this.state=534,this.typeGather(),this.state=535,this.identifier(),this.state=538,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=536,this.match($.Assign),this.state=537,this.singleExpression(0)),this.state=542,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=540,this.match($.Comma),this.state=541,this.formalParameterList()),this.state=544,this.match($.CloseParen)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeStatement(){let e=new bp(this,this._ctx,this.state);this.enterRule(e,78,$.RULE_typeStatement);let n;try{this.enterOuterAlt(e,1);{this.state=547,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=546,this.match($.Export)),this.state=549,this.match($.Type),this.state=550,this.identifier(),this.state=551,this.match($.NEWLINE),this.state=552,this.match($.INDENT),this.state=554,this._errHandler.sync(this),n=this._input.LA(1);do this.state=553,this.typeElement(),this.state=556,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-40&-32)&&1<<n-40&313345);this.state=558,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeElement(){let e=new Sl(this,this._ctx,this.state);this.enterRule(e,80,$.RULE_typeElement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=561,this._errHandler.sync(this),n=this._input.LA(1),n===40&&(this.state=560,this.match($.Varip)),this.state=564,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,67,this._ctx)){case 1:this.state=563,this.typeGather();break}this.state=566,this.identifier(),this.state=569,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=567,this.match($.Assign),this.state=568,this.singleExpression(0)),this.state=571,this.match($.NEWLINE)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}assignmentOperator(){let e=new Tl(this,this._ctx,this.state);this.enterRule(e,82,$.RULE_assignmentOperator);let n;try{this.enterOuterAlt(e,1),this.state=573,n=this._input.LA(1),!(n&-32)&&1<<n&1593835520?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeMap(){let e=new Al(this,this._ctx,this.state);this.enterRule(e,84,$.RULE_typeMap);try{this.enterOuterAlt(e,1),this.state=575,this.match($.Map),this.state=576,this.match($.LessThan),this.state=577,this.typeName(),this.state=578,this.match($.Comma),this.state=579,this.typeName(),this.state=580,this.match($.MoreThan)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeSeries(){let e=new Ep(this,this._ctx,this.state);this.enterRule(e,86,$.RULE_typeSeries);try{switch(this.enterOuterAlt(e,1),this.state=582,this.typeName(),this.state=586,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.state=583,this.typeName();break;case 2:this.state=584,this.typeArray();break;case 3:this.state=585,this.typeMap();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeArray(){let e=new Cl(this,this._ctx,this.state);this.enterRule(e,88,$.RULE_typeArray);try{switch(this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=588,this.typeName(),this.state=589,this.match($.LessThan),this.state=590,this.typeName(),this.state=591,this.match($.MoreThan);break;case 2:this.enterOuterAlt(e,2),this.state=593,this.typeName(),this.state=594,this.match($.OpenBracket),this.state=595,this.match($.CloseBracket);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeGather(){let e=new qo(this,this._ctx,this.state);this.enterRule(e,90,$.RULE_typeGather);try{switch(this.state=603,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=599,this.typeName();break;case 2:this.enterOuterAlt(e,2),this.state=600,this.typeArray();break;case 3:this.enterOuterAlt(e,3),this.state=601,this.typeMap();break;case 4:this.enterOuterAlt(e,4),this.state=602,this.typeSeries();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}identifier(){let e=new xn(this,this._ctx,this.state);this.enterRule(e,92,$.RULE_identifier);let n;try{this.enterOuterAlt(e,1),this.state=605,n=this._input.LA(1),!(n-51&-32)&&1<<n-51&153?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeName(){let e=new Ei(this,this._ctx,this.state);this.enterRule(e,94,$.RULE_typeName);let n;try{this.enterOuterAlt(e,1),this.state=607,this.identifier(),this.state=610,this._errHandler.sync(this),n=this._input.LA(1),n===3&&(this.state=608,this.match($.Point),this.state=609,this.identifier())}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}name(){let e=new _u(this,this._ctx,this.state);this.enterRule(e,96,$.RULE_name);try{let n;switch(this.state=633,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(e,1);{for(this.state=620,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx);n!==2&&n!==Nr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=614,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,73,this._ctx)){case 1:this.state=612,this.identifier();break;case 2:this.state=613,this.methodElement();break}this.state=616,this.match($.Point)}this.state=622,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx)}this.state=623,this.identifier()}break;case 2:this.enterOuterAlt(e,2);{this.state=624,this.match($.OpenParen),this.state=625,this.singleExpression(0),this.state=626,this.match($.CloseParen),this.state=629,this._errHandler.sync(this),n=1;do{switch(n){case 1:this.state=627,this.match($.Point),this.state=628,this.identifier();break;default:throw new bi(this)}this.state=631,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,75,this._ctx)}while(n!==2&&n!==Nr.INVALID_ALT_NUMBER)}break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}enumStatement(){let e=new xp(this,this._ctx,this.state);this.enterRule(e,98,$.RULE_enumStatement);let n;try{this.enterOuterAlt(e,1);{this.state=636,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=635,this.match($.Export)),this.state=638,this.match($.Enum),this.state=639,this.identifier(),this.state=640,this.match($.NEWLINE),this.state=641,this.match($.INDENT),this.state=643,this._errHandler.sync(this),n=this._input.LA(1);do this.state=642,this.enumElement(),this.state=645,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-51&-32)&&1<<n-51&153);this.state=647,this.match($.DEDENT)}}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}enumElement(){let e=new Dl(this,this._ctx,this.state);this.enterRule(e,100,$.RULE_enumElement);let n;try{this.enterOuterAlt(e,1),this.state=649,this.identifier(),this.state=652,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=650,this.match($.Assign),this.state=651,this.match($.StringLiteral)),this.state=654,this.match($.NEWLINE)}catch(r){if(r instanceof et)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}sempred(e,n,r){switch(n){case 17:return this.singleExpression_sempred(e,r)}return!0}singleExpression_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,6);case 5:return this.precpred(this._ctx,5);case 6:return this.precpred(this._ctx,4);case 7:return this.precpred(this._ctx,13)}return!0}static get _ATN(){return $.__ATN||($.__ATN=new ep().deserialize($._serializedATN)),$.__ATN}};P($,"INDENT",1),P($,"DEDENT",2),P($,"Point",3),P($,"OpenBracket",4),P($,"CloseBracket",5),P($,"OpenParen",6),P($,"CloseParen",7),P($,"Comma",8),P($,"Assign",9),P($,"QuestionMark",10),P($,"Colon",11),P($,"Plus",12),P($,"Minus",13),P($,"Multiply",14),P($,"Divide",15),P($,"Modulus",16),P($,"Hashtag",17),P($,"LessThan",18),P($,"MoreThan",19),P($,"LessThanEquals",20),P($,"GreaterThanEquals",21),P($,"Equals_",22),P($,"NotEquals",23),P($,"MultiplyAssign",24),P($,"DivideAssign",25),P($,"ModulusAssign",26),P($,"PlusAssign",27),P($,"MinusAssign",28),P($,"ARROW",29),P($,"ColonEquals",30),P($,"BooleanLiteral",31),P($,"IntegerLiteral",32),P($,"DecimalLiteral",33),P($,"Break",34),P($,"And",35),P($,"Export",36),P($,"For",37),P($,"Var",38),P($,"Continue",39),P($,"Varip",40),P($,"Switch",41),P($,"While",42),P($,"If",43),P($,"In",44),P($,"Or",45),P($,"Not",46),P($,"Method",47),P($,"Else",48),P($,"To",49),P($,"By",50),P($,"Type",51),P($,"Import",52),P($,"As",53),P($,"Enum",54),P($,"Map",55),P($,"ColorLiteral",56),P($,"StringLiteral",57),P($,"Identifier",58),P($,"HIDDEN_",59),P($,"COMMENT_",60),P($,"NEWLINE",61),P($,"EOF",rp.EOF),P($,"RULE_program",0),P($,"RULE_globalStmt",1),P($,"RULE_blockStmt",2),P($,"RULE_stmt",3),P($,"RULE_simpleStmt",4),P($,"RULE_flowStmt",5),P($,"RULE_block",6),P($,"RULE_blockLine",7),P($,"RULE_variableDeclarationStmt",8),P($,"RULE_variableDeclarationList",9),P($,"RULE_varModifier",10),P($,"RULE_blockSequence",11),P($,"RULE_expressionSequence",12),P($,"RULE_expressionBlockSequence",13),P($,"RULE_varBlockStmt",14),P($,"RULE_varArrayDeclaration",15),P($,"RULE_blockExpression",16),P($,"RULE_singleExpression",17),P($,"RULE_brackethesized",18),P($,"RULE_arguments",19),P($,"RULE_argument",20),P($,"RULE_ifStatement",21),P($,"RULE_forStatement",22),P($,"RULE_switchStatement",23),P($,"RULE_caseClause",24),P($,"RULE_defaultCaluse",25),P($,"RULE_whileStatement",26),P($,"RULE_importStmt",27),P($,"RULE_importElement",28),P($,"RULE_literal",29),P($,"RULE_methodStmt",30),P($,"RULE_methodElement",31),P($,"RULE_methodName",32),P($,"RULE_arrowFunction",33),P($,"RULE_arrowFunctionParameters",34),P($,"RULE_formalParameterList",35),P($,"RULE_formalParameterArg",36),P($,"RULE_arrowMethod",37),P($,"RULE_arrowMethodParameters",38),P($,"RULE_typeStatement",39),P($,"RULE_typeElement",40),P($,"RULE_assignmentOperator",41),P($,"RULE_typeMap",42),P($,"RULE_typeSeries",43),P($,"RULE_typeArray",44),P($,"RULE_typeGather",45),P($,"RULE_identifier",46),P($,"RULE_typeName",47),P($,"RULE_name",48),P($,"RULE_enumStatement",49),P($,"RULE_enumElement",50),P($,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),P($,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),P($,"ruleNames",["program","globalStmt","blockStmt","stmt","simpleStmt","flowStmt","block","blockLine","variableDeclarationStmt","variableDeclarationList","varModifier","blockSequence","expressionSequence","expressionBlockSequence","varBlockStmt","varArrayDeclaration","blockExpression","singleExpression","brackethesized","arguments","argument","ifStatement","forStatement","switchStatement","caseClause","defaultCaluse","whileStatement","importStmt","importElement","literal","methodStmt","methodElement","methodName","arrowFunction","arrowFunctionParameters","formalParameterList","formalParameterArg","arrowMethod","arrowMethodParameters","typeStatement","typeElement","assignmentOperator","typeMap","typeSeries","typeArray","typeGather","identifier","typeName","name","enumStatement","enumElement"]),P($,"_serializedATN",[4,1,61,657,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,1,0,1,0,5,0,105,8,0,10,0,12,0,108,9,0,1,0,1,0,1,1,1,1,3,1,114,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,124,8,1,1,2,1,2,1,2,5,2,129,8,2,10,2,12,2,132,9,2,1,2,1,2,3,2,136,8,2,1,3,1,3,3,3,140,8,3,1,3,1,3,1,3,3,3,145,8,3,1,4,1,4,1,4,1,4,3,4,151,8,4,1,5,1,5,1,6,1,6,3,6,157,8,6,1,6,1,6,1,6,3,6,162,8,6,1,7,1,7,1,7,4,7,167,8,7,11,7,12,7,168,1,7,1,7,1,8,1,8,3,8,175,8,8,1,8,1,8,1,8,3,8,180,8,8,5,8,182,8,8,10,8,12,8,185,9,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,195,8,9,1,10,1,10,1,11,1,11,3,11,201,8,11,1,11,1,11,1,11,3,11,206,8,11,5,11,208,8,11,10,11,12,11,211,9,11,1,12,1,12,1,12,5,12,216,8,12,10,12,12,12,219,9,12,1,13,1,13,3,13,223,8,13,1,13,1,13,5,13,227,8,13,10,13,12,13,230,9,13,1,13,1,13,3,13,234,8,13,1,14,1,14,1,14,1,14,1,14,1,14,3,14,242,8,14,1,14,1,14,1,15,3,15,247,8,15,1,15,3,15,250,8,15,1,15,1,15,1,15,1,15,1,15,5,15,257,8,15,10,15,12,15,260,9,15,1,15,1,15,3,15,264,8,15,1,16,1,16,1,16,1,16,3,16,270,8,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,3,17,284,8,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,5,17,315,8,17,10,17,12,17,318,9,17,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,5,19,328,8,19,10,19,12,19,331,9,19,1,19,3,19,334,8,19,3,19,336,8,19,1,19,1,19,1,20,1,20,1,20,3,20,343,8,20,1,20,1,20,3,20,347,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,357,8,21,10,21,12,21,360,9,21,1,21,1,21,3,21,364,8,21,1,22,1,22,3,22,368,8,22,1,22,3,22,371,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,380,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,392,8,22,1,22,1,22,1,22,1,22,3,22,398,8,22,1,23,1,23,3,23,402,8,23,1,23,1,23,1,23,4,23,407,8,23,11,23,12,23,408,1,23,5,23,412,8,23,10,23,12,23,415,9,23,1,23,3,23,418,8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,5,27,436,8,27,10,27,12,27,439,9,27,1,27,3,27,442,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,454,8,28,1,29,1,29,1,30,1,30,1,30,5,30,461,8,30,10,30,12,30,464,9,30,1,31,1,31,1,31,1,32,1,32,1,32,5,32,472,8,32,10,32,12,32,475,9,32,1,32,1,32,1,32,1,32,1,32,3,32,482,8,32,1,32,1,32,1,32,1,32,1,32,3,32,489,8,32,1,32,1,32,3,32,493,8,32,1,33,3,33,496,8,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,3,34,505,8,34,1,34,1,34,1,35,1,35,1,35,5,35,512,8,35,10,35,12,35,515,9,35,1,36,3,36,518,8,36,1,36,1,36,1,36,3,36,523,8,36,1,37,3,37,526,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,3,38,539,8,38,1,38,1,38,3,38,543,8,38,1,38,1,38,1,39,3,39,548,8,39,1,39,1,39,1,39,1,39,1,39,4,39,555,8,39,11,39,12,39,556,1,39,1,39,1,40,3,40,562,8,40,1,40,3,40,565,8,40,1,40,1,40,1,40,3,40,570,8,40,1,40,1,40,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,3,43,587,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,598,8,44,1,45,1,45,1,45,1,45,3,45,604,8,45,1,46,1,46,1,47,1,47,1,47,3,47,611,8,47,1,48,1,48,3,48,615,8,48,1,48,1,48,5,48,619,8,48,10,48,12,48,622,9,48,1,48,1,48,1,48,1,48,1,48,1,48,4,48,630,8,48,11,48,12,48,631,3,48,634,8,48,1,49,3,49,637,8,49,1,49,1,49,1,49,1,49,1,49,4,49,644,8,49,11,49,12,49,645,1,49,1,49,1,50,1,50,1,50,3,50,653,8,50,1,50,1,50,1,50,0,1,34,51,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,0,9,2,0,34,34,39,39,2,0,38,38,40,40,1,0,12,13,1,0,14,16,1,0,18,21,1,0,22,23,2,0,31,33,56,57,2,0,24,28,30,30,3,0,51,51,54,55,58,58,707,0,106,1,0,0,0,2,123,1,0,0,0,4,130,1,0,0,0,6,144,1,0,0,0,8,150,1,0,0,0,10,152,1,0,0,0,12,161,1,0,0,0,14,163,1,0,0,0,16,174,1,0,0,0,18,194,1,0,0,0,20,196,1,0,0,0,22,200,1,0,0,0,24,212,1,0,0,0,26,228,1,0,0,0,28,241,1,0,0,0,30,263,1,0,0,0,32,269,1,0,0,0,34,283,1,0,0,0,36,319,1,0,0,0,38,323,1,0,0,0,40,342,1,0,0,0,42,348,1,0,0,0,44,397,1,0,0,0,46,399,1,0,0,0,48,421,1,0,0,0,50,425,1,0,0,0,52,428,1,0,0,0,54,432,1,0,0,0,56,445,1,0,0,0,58,455,1,0,0,0,60,457,1,0,0,0,62,465,1,0,0,0,64,481,1,0,0,0,66,495,1,0,0,0,68,502,1,0,0,0,70,508,1,0,0,0,72,517,1,0,0,0,74,525,1,0,0,0,76,533,1,0,0,0,78,547,1,0,0,0,80,561,1,0,0,0,82,573,1,0,0,0,84,575,1,0,0,0,86,582,1,0,0,0,88,597,1,0,0,0,90,603,1,0,0,0,92,605,1,0,0,0,94,607,1,0,0,0,96,633,1,0,0,0,98,636,1,0,0,0,100,649,1,0,0,0,102,105,5,61,0,0,103,105,3,2,1,0,104,102,1,0,0,0,104,103,1,0,0,0,105,108,1,0,0,0,106,104,1,0,0,0,106,107,1,0,0,0,107,109,1,0,0,0,108,106,1,0,0,0,109,110,5,0,0,1,110,1,1,0,0,0,111,113,3,16,8,0,112,114,5,8,0,0,113,112,1,0,0,0,113,114,1,0,0,0,114,115,1,0,0,0,115,116,5,61,0,0,116,124,1,0,0,0,117,124,3,4,2,0,118,124,3,54,27,0,119,124,3,66,33,0,120,124,3,74,37,0,121,124,3,78,39,0,122,124,3,98,49,0,123,111,1,0,0,0,123,117,1,0,0,0,123,118,1,0,0,0,123,119,1,0,0,0,123,120,1,0,0,0,123,121,1,0,0,0,123,122,1,0,0,0,124,3,1,0,0,0,125,126,3,16,8,0,126,127,5,8,0,0,127,129,1,0,0,0,128,125,1,0,0,0,129,132,1,0,0,0,130,128,1,0,0,0,130,131,1,0,0,0,131,135,1,0,0,0,132,130,1,0,0,0,133,136,3,28,14,0,134,136,3,32,16,0,135,133,1,0,0,0,135,134,1,0,0,0,136,5,1,0,0,0,137,139,3,8,4,0,138,140,5,8,0,0,139,138,1,0,0,0,139,140,1,0,0,0,140,141,1,0,0,0,141,142,5,61,0,0,142,145,1,0,0,0,143,145,3,26,13,0,144,137,1,0,0,0,144,143,1,0,0,0,145,7,1,0,0,0,146,151,3,24,12,0,147,151,3,22,11,0,148,151,3,36,18,0,149,151,3,10,5,0,150,146,1,0,0,0,150,147,1,0,0,0,150,148,1,0,0,0,150,149,1,0,0,0,151,9,1,0,0,0,152,153,7,0,0,0,153,11,1,0,0,0,154,156,3,8,4,0,155,157,5,8,0,0,156,155,1,0,0,0,156,157,1,0,0,0,157,158,1,0,0,0,158,159,5,61,0,0,159,162,1,0,0,0,160,162,3,14,7,0,161,154,1,0,0,0,161,160,1,0,0,0,162,13,1,0,0,0,163,164,5,61,0,0,164,166,5,1,0,0,165,167,3,6,3,0,166,165,1,0,0,0,167,168,1,0,0,0,168,166,1,0,0,0,168,169,1,0,0,0,169,170,1,0,0,0,170,171,5,2,0,0,171,15,1,0,0,0,172,175,3,60,30,0,173,175,3,18,9,0,174,172,1,0,0,0,174,173,1,0,0,0,175,183,1,0,0,0,176,179,5,8,0,0,177,180,3,60,30,0,178,180,3,18,9,0,179,177,1,0,0,0,179,178,1,0,0,0,180,182,1,0,0,0,181,176,1,0,0,0,182,185,1,0,0,0,183,181,1,0,0,0,183,184,1,0,0,0,184,17,1,0,0,0,185,183,1,0,0,0,186,187,3,30,15,0,187,188,5,9,0,0,188,189,3,34,17,0,189,195,1,0,0,0,190,191,3,96,48,0,191,192,3,82,41,0,192,193,3,34,17,0,193,195,1,0,0,0,194,186,1,0,0,0,194,190,1,0,0,0,195,19,1,0,0,0,196,197,7,1,0,0,197,21,1,0,0,0,198,201,3,34,17,0,199,201,3,18,9,0,200,198,1,0,0,0,200,199,1,0,0,0,201,209,1,0,0,0,202,205,5,8,0,0,203,206,3,34,17,0,204,206,3,18,9,0,205,203,1,0,0,0,205,204,1,0,0,0,206,208,1,0,0,0,207,202,1,0,0,0,208,211,1,0,0,0,209,207,1,0,0,0,209,210,1,0,0,0,210,23,1,0,0,0,211,209,1,0,0,0,212,217,3,34,17,0,213,214,5,8,0,0,214,216,3,34,17,0,215,213,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,25,1,0,0,0,219,217,1,0,0,0,220,223,3,34,17,0,221,223,3,18,9,0,222,220,1,0,0,0,222,221,1,0,0,0,223,224,1,0,0,0,224,225,5,8,0,0,225,227,1,0,0,0,226,222,1,0,0,0,227,230,1,0,0,0,228,226,1,0,0,0,228,229,1,0,0,0,229,233,1,0,0,0,230,228,1,0,0,0,231,234,3,28,14,0,232,234,3,32,16,0,233,231,1,0,0,0,233,232,1,0,0,0,234,27,1,0,0,0,235,236,3,30,15,0,236,237,5,9,0,0,237,242,1,0,0,0,238,239,3,96,48,0,239,240,3,82,41,0,240,242,1,0,0,0,241,235,1,0,0,0,241,238,1,0,0,0,242,243,1,0,0,0,243,244,3,32,16,0,244,29,1,0,0,0,245,247,3,20,10,0,246,245,1,0,0,0,246,247,1,0,0,0,247,249,1,0,0,0,248,250,3,90,45,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,264,3,92,46,0,252,253,5,4,0,0,253,258,3,92,46,0,254,255,5,8,0,0,255,257,3,92,46,0,256,254,1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,261,1,0,0,0,260,258,1,0,0,0,261,262,5,5,0,0,262,264,1,0,0,0,263,246,1,0,0,0,263,252,1,0,0,0,264,31,1,0,0,0,265,270,3,42,21,0,266,270,3,44,22,0,267,270,3,52,26,0,268,270,3,46,23,0,269,265,1,0,0,0,269,266,1,0,0,0,269,267,1,0,0,0,269,268,1,0,0,0,270,33,1,0,0,0,271,272,6,17,-1,0,272,284,3,60,30,0,273,274,7,2,0,0,274,284,3,34,17,12,275,276,5,46,0,0,276,284,3,34,17,11,277,284,3,96,48,0,278,284,3,58,29,0,279,280,5,6,0,0,280,281,3,34,17,0,281,282,5,7,0,0,282,284,1,0,0,0,283,271,1,0,0,0,283,273,1,0,0,0,283,275,1,0,0,0,283,277,1,0,0,0,283,278,1,0,0,0,283,279,1,0,0,0,284,316,1,0,0,0,285,286,10,10,0,0,286,287,7,3,0,0,287,315,3,34,17,11,288,289,10,9,0,0,289,290,7,2,0,0,290,315,3,34,17,10,291,292,10,8,0,0,292,293,7,4,0,0,293,315,3,34,17,9,294,295,10,7,0,0,295,296,7,5,0,0,296,315,3,34,17,8,297,298,10,6,0,0,298,299,5,35,0,0,299,315,3,34,17,7,300,301,10,5,0,0,301,302,5,45,0,0,302,315,3,34,17,6,303,304,10,4,0,0,304,305,5,10,0,0,305,306,3,34,17,0,306,307,5,11,0,0,307,308,3,34,17,4,308,315,1,0,0,0,309,310,10,13,0,0,310,311,5,4,0,0,311,312,3,34,17,0,312,313,5,5,0,0,313,315,1,0,0,0,314,285,1,0,0,0,314,288,1,0,0,0,314,291,1,0,0,0,314,294,1,0,0,0,314,297,1,0,0,0,314,300,1,0,0,0,314,303,1,0,0,0,314,309,1,0,0,0,315,318,1,0,0,0,316,314,1,0,0,0,316,317,1,0,0,0,317,35,1,0,0,0,318,316,1,0,0,0,319,320,5,4,0,0,320,321,3,24,12,0,321,322,5,5,0,0,322,37,1,0,0,0,323,335,5,6,0,0,324,329,3,40,20,0,325,326,5,8,0,0,326,328,3,40,20,0,327,325,1,0,0,0,328,331,1,0,0,0,329,327,1,0,0,0,329,330,1,0,0,0,330,333,1,0,0,0,331,329,1,0,0,0,332,334,5,8,0,0,333,332,1,0,0,0,333,334,1,0,0,0,334,336,1,0,0,0,335,324,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,338,5,7,0,0,338,39,1,0,0,0,339,340,3,92,46,0,340,341,5,9,0,0,341,343,1,0,0,0,342,339,1,0,0,0,342,343,1,0,0,0,343,346,1,0,0,0,344,347,3,34,17,0,345,347,3,36,18,0,346,344,1,0,0,0,346,345,1,0,0,0,347,41,1,0,0,0,348,349,5,43,0,0,349,350,3,34,17,0,350,358,3,14,7,0,351,352,5,48,0,0,352,353,5,43,0,0,353,354,3,34,17,0,354,355,3,14,7,0,355,357,1,0,0,0,356,351,1,0,0,0,357,360,1,0,0,0,358,356,1,0,0,0,358,359,1,0,0,0,359,363,1,0,0,0,360,358,1,0,0,0,361,362,5,48,0,0,362,364,3,14,7,0,363,361,1,0,0,0,363,364,1,0,0,0,364,43,1,0,0,0,365,367,5,37,0,0,366,368,3,20,10,0,367,366,1,0,0,0,367,368,1,0,0,0,368,370,1,0,0,0,369,371,3,90,45,0,370,369,1,0,0,0,370,371,1,0,0,0,371,372,1,0,0,0,372,373,3,92,46,0,373,374,5,9,0,0,374,375,3,34,17,0,375,376,5,49,0,0,376,379,3,34,17,0,377,378,5,50,0,0,378,380,3,34,17,0,379,377,1,0,0,0,379,380,1,0,0,0,380,381,1,0,0,0,381,382,3,14,7,0,382,398,1,0,0,0,383,391,5,37,0,0,384,392,3,92,46,0,385,386,5,4,0,0,386,387,3,92,46,0,387,388,5,8,0,0,388,389,3,92,46,0,389,390,5,5,0,0,390,392,1,0,0,0,391,384,1,0,0,0,391,385,1,0,0,0,392,393,1,0,0,0,393,394,5,44,0,0,394,395,3,34,17,0,395,396,3,14,7,0,396,398,1,0,0,0,397,365,1,0,0,0,397,383,1,0,0,0,398,45,1,0,0,0,399,401,5,41,0,0,400,402,3,34,17,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,61,0,0,404,417,5,1,0,0,405,407,3,48,24,0,406,405,1,0,0,0,407,408,1,0,0,0,408,406,1,0,0,0,408,409,1,0,0,0,409,418,1,0,0,0,410,412,3,48,24,0,411,410,1,0,0,0,412,415,1,0,0,0,413,411,1,0,0,0,413,414,1,0,0,0,414,416,1,0,0,0,415,413,1,0,0,0,416,418,3,50,25,0,417,406,1,0,0,0,417,413,1,0,0,0,418,419,1,0,0,0,419,420,5,2,0,0,420,47,1,0,0,0,421,422,3,34,17,0,422,423,5,29,0,0,423,424,3,12,6,0,424,49,1,0,0,0,425,426,5,29,0,0,426,427,3,12,6,0,427,51,1,0,0,0,428,429,5,42,0,0,429,430,3,34,17,0,430,431,3,14,7,0,431,53,1,0,0,0,432,437,3,56,28,0,433,434,5,8,0,0,434,436,3,56,28,0,435,433,1,0,0,0,436,439,1,0,0,0,437,435,1,0,0,0,437,438,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,440,442,5,8,0,0,441,440,1,0,0,0,441,442,1,0,0,0,442,443,1,0,0,0,443,444,5,61,0,0,444,55,1,0,0,0,445,446,5,52,0,0,446,447,3,92,46,0,447,448,5,15,0,0,448,449,3,92,46,0,449,450,5,15,0,0,450,453,5,32,0,0,451,452,5,53,0,0,452,454,3,92,46,0,453,451,1,0,0,0,453,454,1,0,0,0,454,57,1,0,0,0,455,456,7,6,0,0,456,59,1,0,0,0,457,462,3,62,31,0,458,459,5,3,0,0,459,461,3,62,31,0,460,458,1,0,0,0,461,464,1,0,0,0,462,460,1,0,0,0,462,463,1,0,0,0,463,61,1,0,0,0,464,462,1,0,0,0,465,466,3,64,32,0,466,467,3,38,19,0,467,63,1,0,0,0,468,469,3,92,46,0,469,470,5,3,0,0,470,472,1,0,0,0,471,468,1,0,0,0,472,475,1,0,0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,482,1,0,0,0,475,473,1,0,0,0,476,477,5,6,0,0,477,478,3,34,17,0,478,479,5,7,0,0,479,480,5,3,0,0,480,482,1,0,0,0,481,473,1,0,0,0,481,476,1,0,0,0,482,483,1,0,0,0,483,492,3,92,46,0,484,485,5,18,0,0,485,488,3,94,47,0,486,487,5,8,0,0,487,489,3,94,47,0,488,486,1,0,0,0,488,489,1,0,0,0,489,490,1,0,0,0,490,491,5,19,0,0,491,493,1,0,0,0,492,484,1,0,0,0,492,493,1,0,0,0,493,65,1,0,0,0,494,496,5,36,0,0,495,494,1,0,0,0,495,496,1,0,0,0,496,497,1,0,0,0,497,498,3,92,46,0,498,499,3,68,34,0,499,500,5,29,0,0,500,501,3,12,6,0,501,67,1,0,0,0,502,504,5,6,0,0,503,505,3,70,35,0,504,503,1,0,0,0,504,505,1,0,0,0,505,506,1,0,0,0,506,507,5,7,0,0,507,69,1,0,0,0,508,513,3,72,36,0,509,510,5,8,0,0,510,512,3,72,36,0,511,509,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,513,514,1,0,0,0,514,71,1,0,0,0,515,513,1,0,0,0,516,518,3,90,45,0,517,516,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,522,3,92,46,0,520,521,5,9,0,0,521,523,3,34,17,0,522,520,1,0,0,0,522,523,1,0,0,0,523,73,1,0,0,0,524,526,5,36,0,0,525,524,1,0,0,0,525,526,1,0,0,0,526,527,1,0,0,0,527,528,5,47,0,0,528,529,3,92,46,0,529,530,3,76,38,0,530,531,5,29,0,0,531,532,3,12,6,0,532,75,1,0,0,0,533,534,5,6,0,0,534,535,3,90,45,0,535,538,3,92,46,0,536,537,5,9,0,0,537,539,3,34,17,0,538,536,1,0,0,0,538,539,1,0,0,0,539,542,1,0,0,0,540,541,5,8,0,0,541,543,3,70,35,0,542,540,1,0,0,0,542,543,1,0,0,0,543,544,1,0,0,0,544,545,5,7,0,0,545,77,1,0,0,0,546,548,5,36,0,0,547,546,1,0,0,0,547,548,1,0,0,0,548,549,1,0,0,0,549,550,5,51,0,0,550,551,3,92,46,0,551,552,5,61,0,0,552,554,5,1,0,0,553,555,3,80,40,0,554,553,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,2,0,0,559,79,1,0,0,0,560,562,5,40,0,0,561,560,1,0,0,0,561,562,1,0,0,0,562,564,1,0,0,0,563,565,3,90,45,0,564,563,1,0,0,0,564,565,1,0,0,0,565,566,1,0,0,0,566,569,3,92,46,0,567,568,5,9,0,0,568,570,3,34,17,0,569,567,1,0,0,0,569,570,1,0,0,0,570,571,1,0,0,0,571,572,5,61,0,0,572,81,1,0,0,0,573,574,7,7,0,0,574,83,1,0,0,0,575,576,5,55,0,0,576,577,5,18,0,0,577,578,3,94,47,0,578,579,5,8,0,0,579,580,3,94,47,0,580,581,5,19,0,0,581,85,1,0,0,0,582,586,3,94,47,0,583,587,3,94,47,0,584,587,3,88,44,0,585,587,3,84,42,0,586,583,1,0,0,0,586,584,1,0,0,0,586,585,1,0,0,0,587,87,1,0,0,0,588,589,3,94,47,0,589,590,5,18,0,0,590,591,3,94,47,0,591,592,5,19,0,0,592,598,1,0,0,0,593,594,3,94,47,0,594,595,5,4,0,0,595,596,5,5,0,0,596,598,1,0,0,0,597,588,1,0,0,0,597,593,1,0,0,0,598,89,1,0,0,0,599,604,3,94,47,0,600,604,3,88,44,0,601,604,3,84,42,0,602,604,3,86,43,0,603,599,1,0,0,0,603,600,1,0,0,0,603,601,1,0,0,0,603,602,1,0,0,0,604,91,1,0,0,0,605,606,7,8,0,0,606,93,1,0,0,0,607,610,3,92,46,0,608,609,5,3,0,0,609,611,3,92,46,0,610,608,1,0,0,0,610,611,1,0,0,0,611,95,1,0,0,0,612,615,3,92,46,0,613,615,3,62,31,0,614,612,1,0,0,0,614,613,1,0,0,0,615,616,1,0,0,0,616,617,5,3,0,0,617,619,1,0,0,0,618,614,1,0,0,0,619,622,1,0,0,0,620,618,1,0,0,0,620,621,1,0,0,0,621,623,1,0,0,0,622,620,1,0,0,0,623,634,3,92,46,0,624,625,5,6,0,0,625,626,3,34,17,0,626,629,5,7,0,0,627,628,5,3,0,0,628,630,3,92,46,0,629,627,1,0,0,0,630,631,1,0,0,0,631,629,1,0,0,0,631,632,1,0,0,0,632,634,1,0,0,0,633,620,1,0,0,0,633,624,1,0,0,0,634,97,1,0,0,0,635,637,5,36,0,0,636,635,1,0,0,0,636,637,1,0,0,0,637,638,1,0,0,0,638,639,5,54,0,0,639,640,3,92,46,0,640,641,5,61,0,0,641,643,5,1,0,0,642,644,3,100,50,0,643,642,1,0,0,0,644,645,1,0,0,0,645,643,1,0,0,0,645,646,1,0,0,0,646,647,1,0,0,0,647,648,5,2,0,0,648,99,1,0,0,0,649,652,3,92,46,0,650,651,5,9,0,0,651,653,5,57,0,0,652,650,1,0,0,0,652,653,1,0,0,0,653,654,1,0,0,0,654,655,5,61,0,0,655,101,1,0,0,0,80,104,106,113,123,130,135,139,144,150,156,161,168,174,179,183,194,200,205,209,217,222,228,233,241,246,249,258,263,269,283,314,316,329,333,335,342,346,358,363,367,370,379,391,397,401,408,413,417,437,441,453,462,473,481,488,492,495,504,513,517,522,525,538,542,547,556,561,564,569,586,597,603,610,614,620,631,633,636,645,652]),P($,"__ATN"),P($,"DecisionsToDFA",$._ATN.decisionToState.map((e,n)=>new tp(e,n)));let j=$;class Vm extends Je{constructor(e,n,r){super(n,r),this.parser=e}EOF(){return this.getToken(j.EOF,0)}NEWLINE_list(){return this.getTokens(j.NEWLINE)}NEWLINE(e){return this.getToken(j.NEWLINE,e)}globalStmt_list(){return this.getTypedRuleContexts(fl)}globalStmt(e){return this.getTypedRuleContext(fl,e)}get ruleIndex(){return j.RULE_program}accept(e){return e.visitProgram?e.visitProgram(this):e.visitChildren(this)}}class fl extends Je{constructor(e,n,r){super(n,r),this.parser=e}variableDeclarationStmt(){return this.getTypedRuleContext(fu,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}blockStmt(){return this.getTypedRuleContext(ip,0)}importStmt(){return this.getTypedRuleContext(pp,0)}arrowFunction(){return this.getTypedRuleContext(mp,0)}arrowMethod(){return this.getTypedRuleContext(gp,0)}typeStatement(){return this.getTypedRuleContext(bp,0)}enumStatement(){return this.getTypedRuleContext(xp,0)}get ruleIndex(){return j.RULE_globalStmt}accept(e){return e.visitGlobalStmt?e.visitGlobalStmt(this):e.visitChildren(this)}}class ip extends Je{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ml,0)}blockExpression(){return this.getTypedRuleContext(hu,0)}variableDeclarationStmt_list(){return this.getTypedRuleContexts(fu)}variableDeclarationStmt(e){return this.getTypedRuleContext(fu,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_blockStmt}accept(e){return e.visitBlockStmt?e.visitBlockStmt(this):e.visitChildren(this)}}class hl extends Je{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(pl,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}expressionBlockSequence(){return this.getTypedRuleContext(sp,0)}get ruleIndex(){return j.RULE_stmt}accept(e){return e.visitStmt?e.visitStmt(this):e.visitChildren(this)}}class pl extends Je{constructor(e,n,r){super(n,r),this.parser=e}expressionSequence(){return this.getTypedRuleContext(_l,0)}blockSequence(){return this.getTypedRuleContext(ap,0)}brackethesized(){return this.getTypedRuleContext(yl,0)}flowStmt(){return this.getTypedRuleContext(op,0)}get ruleIndex(){return j.RULE_simpleStmt}accept(e){return e.visitSimpleStmt?e.visitSimpleStmt(this):e.visitChildren(this)}}class op extends Je{constructor(e,n,r){super(n,r),this.parser=e}Break(){return this.getToken(j.Break,0)}Continue(){return this.getToken(j.Continue,0)}get ruleIndex(){return j.RULE_flowStmt}accept(e){return e.visitFlowStmt?e.visitFlowStmt(this):e.visitChildren(this)}}class ls extends Je{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(pl,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma(){return this.getToken(j.Comma,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}get ruleIndex(){return j.RULE_block}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}}class Eo extends Je{constructor(e,n,r){super(n,r),this.parser=e}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}stmt_list(){return this.getTypedRuleContexts(hl)}stmt(e){return this.getTypedRuleContext(hl,e)}get ruleIndex(){return j.RULE_blockLine}accept(e){return e.visitBlockLine?e.visitBlockLine(this):e.visitChildren(this)}}class fu extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodStmt_list(){return this.getTypedRuleContexts(du)}methodStmt(e){return this.getTypedRuleContext(du,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_variableDeclarationStmt}accept(e){return e.visitVariableDeclarationStmt?e.visitVariableDeclarationStmt(this):e.visitChildren(this)}}class Mi extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_variableDeclarationList}copyFrom(e){super.copyFrom(e)}}class jm extends Mi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(_u,0)}assignmentOperator(){return this.getTypedRuleContext(Tl,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitAgainAssign?e.visitAgainAssign(this):e.visitChildren(this)}}class $m extends Mi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}varArrayDeclaration(){return this.getTypedRuleContext(fs,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitDeclareAssign?e.visitDeclareAssign(this):e.visitChildren(this)}}class dl extends Je{constructor(e,n,r){super(n,r),this.parser=e}Var(){return this.getToken(j.Var,0)}Varip(){return this.getToken(j.Varip,0)}get ruleIndex(){return j.RULE_varModifier}accept(e){return e.visitVarModifier?e.visitVarModifier(this):e.visitChildren(this)}}class ap extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_blockSequence}accept(e){return e.visitBlockSequence?e.visitBlockSequence(this):e.visitChildren(this)}}class _l extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_expressionSequence}accept(e){return e.visitExpressionSequence?e.visitExpressionSequence(this):e.visitChildren(this)}}class sp extends Je{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ml,0)}blockExpression(){return this.getTypedRuleContext(hu,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Mi)}variableDeclarationList(e){return this.getTypedRuleContext(Mi,e)}get ruleIndex(){return j.RULE_expressionBlockSequence}accept(e){return e.visitExpressionBlockSequence?e.visitExpressionBlockSequence(this):e.visitChildren(this)}}class ml extends Je{constructor(e,n,r){super(n,r),this.parser=e}blockExpression(){return this.getTypedRuleContext(hu,0)}varArrayDeclaration(){return this.getTypedRuleContext(fs,0)}Assign(){return this.getToken(j.Assign,0)}name(){return this.getTypedRuleContext(_u,0)}assignmentOperator(){return this.getTypedRuleContext(Tl,0)}get ruleIndex(){return j.RULE_varBlockStmt}accept(e){return e.visitVarBlockStmt?e.visitVarBlockStmt(this):e.visitChildren(this)}}class fs extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_varArrayDeclaration}copyFrom(e){super.copyFrom(e)}}class Hm extends fs{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenBracket(){return this.getToken(j.OpenBracket,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}CloseBracket(){return this.getToken(j.CloseBracket,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}accept(e){return e.visitVarMultiple?e.visitVarMultiple(this):e.visitChildren(this)}}class Gm extends fs{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}identifier(){return this.getTypedRuleContext(xn,0)}varModifier(){return this.getTypedRuleContext(dl,0)}typeGather(){return this.getTypedRuleContext(qo,0)}accept(e){return e.visitVarSingle?e.visitVarSingle(this):e.visitChildren(this)}}class hu extends Je{constructor(e,n,r){super(n,r),this.parser=e}ifStatement(){return this.getTypedRuleContext(cp,0)}forStatement(){return this.getTypedRuleContext(pu,0)}whileStatement(){return this.getTypedRuleContext(hp,0)}switchStatement(){return this.getTypedRuleContext(lp,0)}get ruleIndex(){return j.RULE_blockExpression}accept(e){return e.visitBlockExpression?e.visitBlockExpression(this):e.visitChildren(this)}}class je extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_singleExpression}copyFrom(e){super.copyFrom(e)}}class Km extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}accept(e){return e.visitParenthesizedExpression?e.visitParenthesizedExpression(this):e.visitChildren(this)}}class zm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Plus(){return this.getToken(j.Plus,0)}Minus(){return this.getToken(j.Minus,0)}accept(e){return e.visitAdditiveExpression?e.visitAdditiveExpression(this):e.visitChildren(this)}}class Wm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}LessThan(){return this.getToken(j.LessThan,0)}MoreThan(){return this.getToken(j.MoreThan,0)}LessThanEquals(){return this.getToken(j.LessThanEquals,0)}GreaterThanEquals(){return this.getToken(j.GreaterThanEquals,0)}accept(e){return e.visitRelationalExpression?e.visitRelationalExpression(this):e.visitChildren(this)}}class qm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}QuestionMark(){return this.getToken(j.QuestionMark,0)}Colon(){return this.getToken(j.Colon,0)}accept(e){return e.visitTernaryExpression?e.visitTernaryExpression(this):e.visitChildren(this)}}class Xm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}And(){return this.getToken(j.And,0)}accept(e){return e.visitLogicalAndExpression?e.visitLogicalAndExpression(this):e.visitChildren(this)}}class Ym extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(_u,0)}accept(e){return e.visitNameExpression?e.visitNameExpression(this):e.visitChildren(this)}}class Zm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}literal(){return this.getTypedRuleContext(dp,0)}accept(e){return e.visitLiteralExpression?e.visitLiteralExpression(this):e.visitChildren(this)}}class Qm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Or(){return this.getToken(j.Or,0)}accept(e){return e.visitLogicalOrExpression?e.visitLogicalOrExpression(this):e.visitChildren(this)}}class Jm extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression(){return this.getTypedRuleContext(je,0)}Minus(){return this.getToken(j.Minus,0)}Plus(){return this.getToken(j.Plus,0)}accept(e){return e.visitUnaryExpression?e.visitUnaryExpression(this):e.visitChildren(this)}}class ey extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}Not(){return this.getToken(j.Not,0)}singleExpression(){return this.getTypedRuleContext(je,0)}accept(e){return e.visitNotExpression?e.visitNotExpression(this):e.visitChildren(this)}}class ty extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}OpenBracket(){return this.getToken(j.OpenBracket,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}accept(e){return e.visitMemberIndexExpression?e.visitMemberIndexExpression(this):e.visitChildren(this)}}class ny extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}methodStmt(){return this.getTypedRuleContext(du,0)}accept(e){return e.visitMethodExpression?e.visitMethodExpression(this):e.visitChildren(this)}}class ry extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Equals_(){return this.getToken(j.Equals_,0)}NotEquals(){return this.getToken(j.NotEquals,0)}accept(e){return e.visitEqualityExpression?e.visitEqualityExpression(this):e.visitChildren(this)}}class iy extends je{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}Multiply(){return this.getToken(j.Multiply,0)}Divide(){return this.getToken(j.Divide,0)}Modulus(){return this.getToken(j.Modulus,0)}accept(e){return e.visitMultiplicativeExpression?e.visitMultiplicativeExpression(this):e.visitChildren(this)}}class yl extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenBracket(){return this.getToken(j.OpenBracket,0)}expressionSequence(){return this.getTypedRuleContext(_l,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}get ruleIndex(){return j.RULE_brackethesized}accept(e){return e.visitBrackethesized?e.visitBrackethesized(this):e.visitChildren(this)}}class up extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}CloseParen(){return this.getToken(j.CloseParen,0)}argument_list(){return this.getTypedRuleContexts(gl)}argument(e){return this.getTypedRuleContext(gl,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_arguments}accept(e){return e.visitArguments?e.visitArguments(this):e.visitChildren(this)}}class gl extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(je,0)}brackethesized(){return this.getTypedRuleContext(yl,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(j.Assign,0)}get ruleIndex(){return j.RULE_argument}accept(e){return e.visitArgument?e.visitArgument(this):e.visitChildren(this)}}class cp extends Je{constructor(e,n,r){super(n,r),this.parser=e}If_list(){return this.getTokens(j.If)}If(e){return this.getToken(j.If,e)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}blockLine_list(){return this.getTypedRuleContexts(Eo)}blockLine(e){return this.getTypedRuleContext(Eo,e)}Else_list(){return this.getTokens(j.Else)}Else(e){return this.getToken(j.Else,e)}get ruleIndex(){return j.RULE_ifStatement}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}}class pu extends Je{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return j.RULE_forStatement}copyFrom(e){super.copyFrom(e)}}class oy extends pu{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(j.For,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression_list(){return this.getTypedRuleContexts(je)}singleExpression(e){return this.getTypedRuleContext(je,e)}To(){return this.getToken(j.To,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}varModifier(){return this.getTypedRuleContext(dl,0)}typeGather(){return this.getTypedRuleContext(qo,0)}By(){return this.getToken(j.By,0)}accept(e){return e.visitForToStatement?e.visitForToStatement(this):e.visitChildren(this)}}class ay extends pu{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(j.For,0)}In(){return this.getToken(j.In,0)}singleExpression(){return this.getTypedRuleContext(je,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenBracket(){return this.getToken(j.OpenBracket,0)}Comma(){return this.getToken(j.Comma,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}accept(e){return e.visitForInStatement?e.visitForInStatement(this):e.visitChildren(this)}}class lp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Switch(){return this.getToken(j.Switch,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}singleExpression(){return this.getTypedRuleContext(je,0)}defaultCaluse(){return this.getTypedRuleContext(fp,0)}caseClause_list(){return this.getTypedRuleContexts(vl)}caseClause(e){return this.getTypedRuleContext(vl,e)}get ruleIndex(){return j.RULE_switchStatement}accept(e){return e.visitSwitchStatement?e.visitSwitchStatement(this):e.visitChildren(this)}}class vl extends Je{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(je,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}get ruleIndex(){return j.RULE_caseClause}accept(e){return e.visitCaseClause?e.visitCaseClause(this):e.visitChildren(this)}}class fp extends Je{constructor(e,n,r){super(n,r),this.parser=e}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}get ruleIndex(){return j.RULE_defaultCaluse}accept(e){return e.visitDefaultCaluse?e.visitDefaultCaluse(this):e.visitChildren(this)}}class hp extends Je{constructor(e,n,r){super(n,r),this.parser=e}While(){return this.getToken(j.While,0)}singleExpression(){return this.getTypedRuleContext(je,0)}blockLine(){return this.getTypedRuleContext(Eo,0)}get ruleIndex(){return j.RULE_whileStatement}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}}class pp extends Je{constructor(e,n,r){super(n,r),this.parser=e}importElement_list(){return this.getTypedRuleContexts(bl)}importElement(e){return this.getTypedRuleContext(bl,e)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_importStmt}accept(e){return e.visitImportStmt?e.visitImportStmt(this):e.visitChildren(this)}}class bl extends Je{constructor(e,n,r){super(n,r),this.parser=e}Import(){return this.getToken(j.Import,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Divide_list(){return this.getTokens(j.Divide)}Divide(e){return this.getToken(j.Divide,e)}IntegerLiteral(){return this.getToken(j.IntegerLiteral,0)}As(){return this.getToken(j.As,0)}get ruleIndex(){return j.RULE_importElement}accept(e){return e.visitImportElement?e.visitImportElement(this):e.visitChildren(this)}}class dp extends Je{constructor(e,n,r){super(n,r),this.parser=e}BooleanLiteral(){return this.getToken(j.BooleanLiteral,0)}ColorLiteral(){return this.getToken(j.ColorLiteral,0)}StringLiteral(){return this.getToken(j.StringLiteral,0)}IntegerLiteral(){return this.getToken(j.IntegerLiteral,0)}DecimalLiteral(){return this.getToken(j.DecimalLiteral,0)}get ruleIndex(){return j.RULE_literal}accept(e){return e.visitLiteral?e.visitLiteral(this):e.visitChildren(this)}}class du extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodElement_list(){return this.getTypedRuleContexts(hs)}methodElement(e){return this.getTypedRuleContext(hs,e)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}get ruleIndex(){return j.RULE_methodStmt}accept(e){return e.visitMethodStmt?e.visitMethodStmt(this):e.visitChildren(this)}}class hs extends Je{constructor(e,n,r){super(n,r),this.parser=e}methodName(){return this.getTypedRuleContext(_p,0)}arguments(){return this.getTypedRuleContext(up,0)}get ruleIndex(){return j.RULE_methodElement}accept(e){return e.visitMethodElement?e.visitMethodElement(this):e.visitChildren(this)}}class _p extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}LessThan(){return this.getToken(j.LessThan,0)}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}MoreThan(){return this.getToken(j.MoreThan,0)}Comma(){return this.getToken(j.Comma,0)}get ruleIndex(){return j.RULE_methodName}accept(e){return e.visitMethodName?e.visitMethodName(this):e.visitChildren(this)}}class mp extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}arrowFunctionParameters(){return this.getTypedRuleContext(yp,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}Export(){return this.getToken(j.Export,0)}get ruleIndex(){return j.RULE_arrowFunction}accept(e){return e.visitArrowFunction?e.visitArrowFunction(this):e.visitChildren(this)}}class yp extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}CloseParen(){return this.getToken(j.CloseParen,0)}formalParameterList(){return this.getTypedRuleContext(El,0)}get ruleIndex(){return j.RULE_arrowFunctionParameters}accept(e){return e.visitArrowFunctionParameters?e.visitArrowFunctionParameters(this):e.visitChildren(this)}}class El extends Je{constructor(e,n,r){super(n,r),this.parser=e}formalParameterArg_list(){return this.getTypedRuleContexts(xl)}formalParameterArg(e){return this.getTypedRuleContext(xl,e)}Comma_list(){return this.getTokens(j.Comma)}Comma(e){return this.getToken(j.Comma,e)}get ruleIndex(){return j.RULE_formalParameterList}accept(e){return e.visitFormalParameterList?e.visitFormalParameterList(this):e.visitChildren(this)}}class xl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}typeGather(){return this.getTypedRuleContext(qo,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}get ruleIndex(){return j.RULE_formalParameterArg}accept(e){return e.visitFormalParameterArg?e.visitFormalParameterArg(this):e.visitChildren(this)}}class gp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Method(){return this.getToken(j.Method,0)}identifier(){return this.getTypedRuleContext(xn,0)}arrowMethodParameters(){return this.getTypedRuleContext(vp,0)}ARROW(){return this.getToken(j.ARROW,0)}block(){return this.getTypedRuleContext(ls,0)}Export(){return this.getToken(j.Export,0)}get ruleIndex(){return j.RULE_arrowMethod}accept(e){return e.visitArrowMethod?e.visitArrowMethod(this):e.visitChildren(this)}}class vp extends Je{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(j.OpenParen,0)}typeGather(){return this.getTypedRuleContext(qo,0)}identifier(){return this.getTypedRuleContext(xn,0)}CloseParen(){return this.getToken(j.CloseParen,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}Comma(){return this.getToken(j.Comma,0)}formalParameterList(){return this.getTypedRuleContext(El,0)}get ruleIndex(){return j.RULE_arrowMethodParameters}accept(e){return e.visitArrowMethodParameters?e.visitArrowMethodParameters(this):e.visitChildren(this)}}class bp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Type(){return this.getToken(j.Type,0)}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}Export(){return this.getToken(j.Export,0)}typeElement_list(){return this.getTypedRuleContexts(Sl)}typeElement(e){return this.getTypedRuleContext(Sl,e)}get ruleIndex(){return j.RULE_typeStatement}accept(e){return e.visitTypeStatement?e.visitTypeStatement(this):e.visitChildren(this)}}class Sl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Varip(){return this.getToken(j.Varip,0)}typeGather(){return this.getTypedRuleContext(qo,0)}Assign(){return this.getToken(j.Assign,0)}singleExpression(){return this.getTypedRuleContext(je,0)}get ruleIndex(){return j.RULE_typeElement}accept(e){return e.visitTypeElement?e.visitTypeElement(this):e.visitChildren(this)}}class Tl extends Je{constructor(e,n,r){super(n,r),this.parser=e}ColonEquals(){return this.getToken(j.ColonEquals,0)}MultiplyAssign(){return this.getToken(j.MultiplyAssign,0)}DivideAssign(){return this.getToken(j.DivideAssign,0)}ModulusAssign(){return this.getToken(j.ModulusAssign,0)}PlusAssign(){return this.getToken(j.PlusAssign,0)}MinusAssign(){return this.getToken(j.MinusAssign,0)}get ruleIndex(){return j.RULE_assignmentOperator}accept(e){return e.visitAssignmentOperator?e.visitAssignmentOperator(this):e.visitChildren(this)}}class Al extends Je{constructor(e,n,r){super(n,r),this.parser=e}Map(){return this.getToken(j.Map,0)}LessThan(){return this.getToken(j.LessThan,0)}Comma(){return this.getToken(j.Comma,0)}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}MoreThan(){return this.getToken(j.MoreThan,0)}get ruleIndex(){return j.RULE_typeMap}accept(e){return e.visitTypeMap?e.visitTypeMap(this):e.visitChildren(this)}}class Ep extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}typeArray(){return this.getTypedRuleContext(Cl,0)}typeMap(){return this.getTypedRuleContext(Al,0)}get ruleIndex(){return j.RULE_typeSeries}accept(e){return e.visitTypeSeries?e.visitTypeSeries(this):e.visitChildren(this)}}class Cl extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(Ei)}typeName(e){return this.getTypedRuleContext(Ei,e)}LessThan(){return this.getToken(j.LessThan,0)}MoreThan(){return this.getToken(j.MoreThan,0)}OpenBracket(){return this.getToken(j.OpenBracket,0)}CloseBracket(){return this.getToken(j.CloseBracket,0)}get ruleIndex(){return j.RULE_typeArray}accept(e){return e.visitTypeArray?e.visitTypeArray(this):e.visitChildren(this)}}class qo extends Je{constructor(e,n,r){super(n,r),this.parser=e}typeName(){return this.getTypedRuleContext(Ei,0)}typeArray(){return this.getTypedRuleContext(Cl,0)}typeMap(){return this.getTypedRuleContext(Al,0)}typeSeries(){return this.getTypedRuleContext(Ep,0)}get ruleIndex(){return j.RULE_typeGather}accept(e){return e.visitTypeGather?e.visitTypeGather(this):e.visitChildren(this)}}class xn extends Je{constructor(e,n,r){super(n,r),this.parser=e}Identifier(){return this.getToken(j.Identifier,0)}Map(){return this.getToken(j.Map,0)}Type(){return this.getToken(j.Type,0)}Enum(){return this.getToken(j.Enum,0)}get ruleIndex(){return j.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}}class Ei extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point(){return this.getToken(j.Point,0)}get ruleIndex(){return j.RULE_typeName}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}}class _u extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point_list(){return this.getTokens(j.Point)}Point(e){return this.getToken(j.Point,e)}methodElement_list(){return this.getTypedRuleContexts(hs)}methodElement(e){return this.getTypedRuleContext(hs,e)}OpenParen(){return this.getToken(j.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(je,0)}CloseParen(){return this.getToken(j.CloseParen,0)}get ruleIndex(){return j.RULE_name}accept(e){return e.visitName?e.visitName(this):e.visitChildren(this)}}class xp extends Je{constructor(e,n,r){super(n,r),this.parser=e}Enum(){return this.getToken(j.Enum,0)}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}INDENT(){return this.getToken(j.INDENT,0)}DEDENT(){return this.getToken(j.DEDENT,0)}Export(){return this.getToken(j.Export,0)}enumElement_list(){return this.getTypedRuleContexts(Dl)}enumElement(e){return this.getTypedRuleContext(Dl,e)}get ruleIndex(){return j.RULE_enumStatement}accept(e){return e.visitEnumStatement?e.visitEnumStatement(this):e.visitChildren(this)}}class Dl extends Je{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(j.NEWLINE,0)}Assign(){return this.getToken(j.Assign,0)}StringLiteral(){return this.getToken(j.StringLiteral,0)}get ruleIndex(){return j.RULE_enumElement}accept(e){return e.visitEnumElement?e.visitEnumElement(this):e.visitChildren(this)}}class sy extends Im{constructor(n){super(n);P(this,"tokens");P(this,"indents");P(this,"opened");this.tokens=[],this.indents=[],this.opened=0}reset(){this.tokens=[],this.indents=[],this.opened=0,super.reset()}emitToken(n){super.emitToken(n),this.tokens.push(n)}nextToken(){if(this._input.LA(1)===j.EOF&&this.indents.length){for(this.tokens=this.tokens.filter(function(r){return r.type!==j.EOF}),this.emitToken(this.commonToken(j.NEWLINE,`
11
11
  `));this.indents.length;)this.emitToken(this.createDedent()),this.indents.pop();this.emitToken(this.commonToken(j.EOF,"<EOF>"))}const n=super.nextToken();return this.tokens.length?this.tokens.shift():n}createDedent(){return this.commonToken(j.DEDENT,"")}getCharIndex(){return this._input.index}commonToken(n,r){const a=this.getCharIndex()-1,c=r.length?a-r.length+1:a;return new Om([this,this._input],n,0,c,a)}getIndentationCount(n){let r=0;for(let a=0;a<n.length;a++)n[a]===" "?r+=4-r%4:r++;return r}atStartOfInput(){return this.getCharIndex()===0}openBrace(){this.opened++}closeBrace(){this.opened--}onNewLine(){const n=this.text.replace(/[^\r\n]+/g,""),r=this.text.replace(/[\r\n]+/g,""),a=this._input.LA(1),c=this._input.LA(2),h=this.getIndentationCount(r);if(this.opened>0||c!=-1&&(a===13||a===10||a===47&&c===47||h%4))this.skip();else{this.emitToken(this.commonToken(j.NEWLINE,n));const d=this.indents.length?this.indents[this.indents.length-1]:0;if(h===d)this.skip();else if(h>d)this.indents.push(h),this.emitToken(this.commonToken(j.INDENT,r));else for(;this.indents.length&&this.indents[this.indents.length-1]>h;)this.emitToken(this.createDedent()),this.indents.pop()}}}const Ie=class Ie extends sy{constructor(e){super(e),this._interp=new Pm(this,Ie._ATN,Ie.DecisionsToDFA,new np)}get grammarFileName(){return"tccScriptLexer.g4"}get literalNames(){return Ie.literalNames}get symbolicNames(){return Ie.symbolicNames}get ruleNames(){return Ie.ruleNames}get serializedATN(){return Ie._serializedATN}get channelNames(){return Ie.channelNames}get modeNames(){return Ie.modeNames}action(e,n,r){switch(n){case 1:this.OpenBracket_action(e,r);break;case 2:this.CloseBracket_action(e,r);break;case 3:this.OpenParen_action(e,r);break;case 4:this.CloseParen_action(e,r);break;case 58:this.NEWLINE_action(e,r);break}}OpenBracket_action(e,n){switch(n){case 0:this.openBrace();break}}CloseBracket_action(e,n){switch(n){case 1:this.closeBrace();break}}OpenParen_action(e,n){switch(n){case 2:this.openBrace();break}}CloseParen_action(e,n){switch(n){case 3:this.closeBrace();break}}NEWLINE_action(e,n){switch(n){case 4:this.onNewLine();break}}sempred(e,n,r){switch(n){case 58:return this.NEWLINE_sempred(e,r)}return!0}NEWLINE_sempred(e,n){switch(n){case 0:return this.atStartOfInput()}return!0}static get _ATN(){return Ie.__ATN||(Ie.__ATN=new ep().deserialize(Ie._serializedATN)),Ie.__ATN}};P(Ie,"INDENT",1),P(Ie,"DEDENT",2),P(Ie,"Point",3),P(Ie,"OpenBracket",4),P(Ie,"CloseBracket",5),P(Ie,"OpenParen",6),P(Ie,"CloseParen",7),P(Ie,"Comma",8),P(Ie,"Assign",9),P(Ie,"QuestionMark",10),P(Ie,"Colon",11),P(Ie,"Plus",12),P(Ie,"Minus",13),P(Ie,"Multiply",14),P(Ie,"Divide",15),P(Ie,"Modulus",16),P(Ie,"Hashtag",17),P(Ie,"LessThan",18),P(Ie,"MoreThan",19),P(Ie,"LessThanEquals",20),P(Ie,"GreaterThanEquals",21),P(Ie,"Equals_",22),P(Ie,"NotEquals",23),P(Ie,"MultiplyAssign",24),P(Ie,"DivideAssign",25),P(Ie,"ModulusAssign",26),P(Ie,"PlusAssign",27),P(Ie,"MinusAssign",28),P(Ie,"ARROW",29),P(Ie,"ColonEquals",30),P(Ie,"BooleanLiteral",31),P(Ie,"IntegerLiteral",32),P(Ie,"DecimalLiteral",33),P(Ie,"Break",34),P(Ie,"And",35),P(Ie,"Export",36),P(Ie,"For",37),P(Ie,"Var",38),P(Ie,"Continue",39),P(Ie,"Varip",40),P(Ie,"Switch",41),P(Ie,"While",42),P(Ie,"If",43),P(Ie,"In",44),P(Ie,"Or",45),P(Ie,"Not",46),P(Ie,"Method",47),P(Ie,"Else",48),P(Ie,"To",49),P(Ie,"By",50),P(Ie,"Type",51),P(Ie,"Import",52),P(Ie,"As",53),P(Ie,"Enum",54),P(Ie,"Map",55),P(Ie,"ColorLiteral",56),P(Ie,"StringLiteral",57),P(Ie,"Identifier",58),P(Ie,"HIDDEN_",59),P(Ie,"COMMENT_",60),P(Ie,"NEWLINE",61),P(Ie,"EOF",rp.EOF),P(Ie,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),P(Ie,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),P(Ie,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),P(Ie,"modeNames",["DEFAULT_MODE"]),P(Ie,"ruleNames",["Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE","SHORT_STRING","DIGIT","DIGITS","HEX_DIGIT","SPACES","COMMENT","EXP"]),P(Ie,"_serializedATN",[4,0,61,447,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,214,8,28,1,29,1,29,1,30,1,30,1,30,3,30,221,8,30,1,30,1,30,1,30,1,30,3,30,227,8,30,3,30,229,8,30,1,30,3,30,232,8,30,3,30,234,8,30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,362,8,53,1,54,1,54,1,55,1,55,5,55,368,8,55,10,55,12,55,371,9,55,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,58,1,58,1,58,3,58,384,8,58,1,58,1,58,3,58,388,8,58,1,58,3,58,391,8,58,3,58,393,8,58,1,58,1,58,1,59,1,59,1,59,1,59,5,59,401,8,59,10,59,12,59,404,9,59,1,59,1,59,1,59,1,59,1,59,5,59,411,8,59,10,59,12,59,414,9,59,1,59,3,59,417,8,59,1,60,1,60,1,61,4,61,422,8,61,11,61,12,61,423,1,62,1,62,1,63,4,63,429,8,63,11,63,12,63,430,1,64,1,64,1,64,1,64,5,64,437,8,64,10,64,12,64,440,9,64,1,65,1,65,3,65,444,8,65,1,65,1,65,0,0,66,1,3,3,4,5,5,7,6,9,7,11,8,13,9,15,10,17,11,19,12,21,13,23,14,25,15,27,16,29,17,31,18,33,19,35,20,37,21,39,22,41,23,43,24,45,25,47,26,49,27,51,28,53,29,55,30,57,31,59,32,61,33,63,34,65,35,67,36,69,37,71,38,73,39,75,40,77,41,79,42,81,43,83,44,85,45,87,46,89,47,91,48,93,49,95,50,97,51,99,52,101,53,103,54,105,55,107,56,109,57,111,58,113,59,115,60,117,61,119,0,121,0,123,0,125,0,127,0,129,0,131,0,1,0,10,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,1,0,39,39,1,0,34,34,1,0,48,57,3,0,48,57,65,70,97,102,2,0,9,9,32,32,2,0,10,10,12,13,2,0,69,69,101,101,2,0,43,43,45,45,460,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,1,133,1,0,0,0,3,135,1,0,0,0,5,138,1,0,0,0,7,141,1,0,0,0,9,144,1,0,0,0,11,147,1,0,0,0,13,149,1,0,0,0,15,151,1,0,0,0,17,153,1,0,0,0,19,155,1,0,0,0,21,157,1,0,0,0,23,159,1,0,0,0,25,161,1,0,0,0,27,163,1,0,0,0,29,165,1,0,0,0,31,167,1,0,0,0,33,169,1,0,0,0,35,171,1,0,0,0,37,174,1,0,0,0,39,177,1,0,0,0,41,180,1,0,0,0,43,183,1,0,0,0,45,186,1,0,0,0,47,189,1,0,0,0,49,192,1,0,0,0,51,195,1,0,0,0,53,198,1,0,0,0,55,201,1,0,0,0,57,213,1,0,0,0,59,215,1,0,0,0,61,233,1,0,0,0,63,235,1,0,0,0,65,241,1,0,0,0,67,245,1,0,0,0,69,252,1,0,0,0,71,256,1,0,0,0,73,260,1,0,0,0,75,269,1,0,0,0,77,275,1,0,0,0,79,282,1,0,0,0,81,288,1,0,0,0,83,291,1,0,0,0,85,294,1,0,0,0,87,297,1,0,0,0,89,301,1,0,0,0,91,308,1,0,0,0,93,313,1,0,0,0,95,316,1,0,0,0,97,319,1,0,0,0,99,324,1,0,0,0,101,331,1,0,0,0,103,334,1,0,0,0,105,339,1,0,0,0,107,361,1,0,0,0,109,363,1,0,0,0,111,365,1,0,0,0,113,372,1,0,0,0,115,376,1,0,0,0,117,392,1,0,0,0,119,416,1,0,0,0,121,418,1,0,0,0,123,421,1,0,0,0,125,425,1,0,0,0,127,428,1,0,0,0,129,432,1,0,0,0,131,441,1,0,0,0,133,134,5,46,0,0,134,2,1,0,0,0,135,136,5,91,0,0,136,137,6,1,0,0,137,4,1,0,0,0,138,139,5,93,0,0,139,140,6,2,1,0,140,6,1,0,0,0,141,142,5,40,0,0,142,143,6,3,2,0,143,8,1,0,0,0,144,145,5,41,0,0,145,146,6,4,3,0,146,10,1,0,0,0,147,148,5,44,0,0,148,12,1,0,0,0,149,150,5,61,0,0,150,14,1,0,0,0,151,152,5,63,0,0,152,16,1,0,0,0,153,154,5,58,0,0,154,18,1,0,0,0,155,156,5,43,0,0,156,20,1,0,0,0,157,158,5,45,0,0,158,22,1,0,0,0,159,160,5,42,0,0,160,24,1,0,0,0,161,162,5,47,0,0,162,26,1,0,0,0,163,164,5,37,0,0,164,28,1,0,0,0,165,166,5,35,0,0,166,30,1,0,0,0,167,168,5,60,0,0,168,32,1,0,0,0,169,170,5,62,0,0,170,34,1,0,0,0,171,172,5,60,0,0,172,173,5,61,0,0,173,36,1,0,0,0,174,175,5,62,0,0,175,176,5,61,0,0,176,38,1,0,0,0,177,178,5,61,0,0,178,179,5,61,0,0,179,40,1,0,0,0,180,181,5,33,0,0,181,182,5,61,0,0,182,42,1,0,0,0,183,184,5,42,0,0,184,185,5,61,0,0,185,44,1,0,0,0,186,187,5,47,0,0,187,188,5,61,0,0,188,46,1,0,0,0,189,190,5,37,0,0,190,191,5,61,0,0,191,48,1,0,0,0,192,193,5,43,0,0,193,194,5,61,0,0,194,50,1,0,0,0,195,196,5,45,0,0,196,197,5,61,0,0,197,52,1,0,0,0,198,199,5,61,0,0,199,200,5,62,0,0,200,54,1,0,0,0,201,202,5,58,0,0,202,203,5,61,0,0,203,56,1,0,0,0,204,205,5,116,0,0,205,206,5,114,0,0,206,207,5,117,0,0,207,214,5,101,0,0,208,209,5,102,0,0,209,210,5,97,0,0,210,211,5,108,0,0,211,212,5,115,0,0,212,214,5,101,0,0,213,204,1,0,0,0,213,208,1,0,0,0,214,58,1,0,0,0,215,216,3,123,61,0,216,60,1,0,0,0,217,218,5,46,0,0,218,220,3,123,61,0,219,221,3,131,65,0,220,219,1,0,0,0,220,221,1,0,0,0,221,234,1,0,0,0,222,231,3,123,61,0,223,228,5,46,0,0,224,226,3,123,61,0,225,227,3,131,65,0,226,225,1,0,0,0,226,227,1,0,0,0,227,229,1,0,0,0,228,224,1,0,0,0,228,229,1,0,0,0,229,232,1,0,0,0,230,232,3,131,65,0,231,223,1,0,0,0,231,230,1,0,0,0,232,234,1,0,0,0,233,217,1,0,0,0,233,222,1,0,0,0,234,62,1,0,0,0,235,236,5,98,0,0,236,237,5,114,0,0,237,238,5,101,0,0,238,239,5,97,0,0,239,240,5,107,0,0,240,64,1,0,0,0,241,242,5,97,0,0,242,243,5,110,0,0,243,244,5,100,0,0,244,66,1,0,0,0,245,246,5,101,0,0,246,247,5,120,0,0,247,248,5,112,0,0,248,249,5,111,0,0,249,250,5,114,0,0,250,251,5,116,0,0,251,68,1,0,0,0,252,253,5,102,0,0,253,254,5,111,0,0,254,255,5,114,0,0,255,70,1,0,0,0,256,257,5,118,0,0,257,258,5,97,0,0,258,259,5,114,0,0,259,72,1,0,0,0,260,261,5,99,0,0,261,262,5,111,0,0,262,263,5,110,0,0,263,264,5,116,0,0,264,265,5,105,0,0,265,266,5,110,0,0,266,267,5,117,0,0,267,268,5,101,0,0,268,74,1,0,0,0,269,270,5,118,0,0,270,271,5,97,0,0,271,272,5,114,0,0,272,273,5,105,0,0,273,274,5,112,0,0,274,76,1,0,0,0,275,276,5,115,0,0,276,277,5,119,0,0,277,278,5,105,0,0,278,279,5,116,0,0,279,280,5,99,0,0,280,281,5,104,0,0,281,78,1,0,0,0,282,283,5,119,0,0,283,284,5,104,0,0,284,285,5,105,0,0,285,286,5,108,0,0,286,287,5,101,0,0,287,80,1,0,0,0,288,289,5,105,0,0,289,290,5,102,0,0,290,82,1,0,0,0,291,292,5,105,0,0,292,293,5,110,0,0,293,84,1,0,0,0,294,295,5,111,0,0,295,296,5,114,0,0,296,86,1,0,0,0,297,298,5,110,0,0,298,299,5,111,0,0,299,300,5,116,0,0,300,88,1,0,0,0,301,302,5,109,0,0,302,303,5,101,0,0,303,304,5,116,0,0,304,305,5,104,0,0,305,306,5,111,0,0,306,307,5,100,0,0,307,90,1,0,0,0,308,309,5,101,0,0,309,310,5,108,0,0,310,311,5,115,0,0,311,312,5,101,0,0,312,92,1,0,0,0,313,314,5,116,0,0,314,315,5,111,0,0,315,94,1,0,0,0,316,317,5,98,0,0,317,318,5,121,0,0,318,96,1,0,0,0,319,320,5,116,0,0,320,321,5,121,0,0,321,322,5,112,0,0,322,323,5,101,0,0,323,98,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,100,1,0,0,0,331,332,5,97,0,0,332,333,5,115,0,0,333,102,1,0,0,0,334,335,5,101,0,0,335,336,5,110,0,0,336,337,5,117,0,0,337,338,5,109,0,0,338,104,1,0,0,0,339,340,5,109,0,0,340,341,5,97,0,0,341,342,5,112,0,0,342,106,1,0,0,0,343,344,5,35,0,0,344,345,3,125,62,0,345,346,3,125,62,0,346,347,3,125,62,0,347,348,3,125,62,0,348,349,3,125,62,0,349,350,3,125,62,0,350,362,1,0,0,0,351,352,5,35,0,0,352,353,3,125,62,0,353,354,3,125,62,0,354,355,3,125,62,0,355,356,3,125,62,0,356,357,3,125,62,0,357,358,3,125,62,0,358,359,3,125,62,0,359,360,3,125,62,0,360,362,1,0,0,0,361,343,1,0,0,0,361,351,1,0,0,0,362,108,1,0,0,0,363,364,3,119,59,0,364,110,1,0,0,0,365,369,7,0,0,0,366,368,7,1,0,0,367,366,1,0,0,0,368,371,1,0,0,0,369,367,1,0,0,0,369,370,1,0,0,0,370,112,1,0,0,0,371,369,1,0,0,0,372,373,3,127,63,0,373,374,1,0,0,0,374,375,6,56,4,0,375,114,1,0,0,0,376,377,3,129,64,0,377,378,1,0,0,0,378,379,6,57,5,0,379,116,1,0,0,0,380,381,4,58,0,0,381,393,3,127,63,0,382,384,5,13,0,0,383,382,1,0,0,0,383,384,1,0,0,0,384,385,1,0,0,0,385,388,5,10,0,0,386,388,2,12,13,0,387,383,1,0,0,0,387,386,1,0,0,0,388,390,1,0,0,0,389,391,3,127,63,0,390,389,1,0,0,0,390,391,1,0,0,0,391,393,1,0,0,0,392,380,1,0,0,0,392,387,1,0,0,0,393,394,1,0,0,0,394,395,6,58,6,0,395,118,1,0,0,0,396,402,5,39,0,0,397,401,8,2,0,0,398,399,5,92,0,0,399,401,5,39,0,0,400,397,1,0,0,0,400,398,1,0,0,0,401,404,1,0,0,0,402,400,1,0,0,0,402,403,1,0,0,0,403,405,1,0,0,0,404,402,1,0,0,0,405,417,5,39,0,0,406,412,5,34,0,0,407,411,8,3,0,0,408,409,5,92,0,0,409,411,5,34,0,0,410,407,1,0,0,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,417,5,34,0,0,416,396,1,0,0,0,416,406,1,0,0,0,417,120,1,0,0,0,418,419,7,4,0,0,419,122,1,0,0,0,420,422,3,121,60,0,421,420,1,0,0,0,422,423,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,124,1,0,0,0,425,426,7,5,0,0,426,126,1,0,0,0,427,429,7,6,0,0,428,427,1,0,0,0,429,430,1,0,0,0,430,428,1,0,0,0,430,431,1,0,0,0,431,128,1,0,0,0,432,433,5,47,0,0,433,434,5,47,0,0,434,438,1,0,0,0,435,437,8,7,0,0,436,435,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,438,439,1,0,0,0,439,130,1,0,0,0,440,438,1,0,0,0,441,443,7,8,0,0,442,444,7,9,0,0,443,442,1,0,0,0,443,444,1,0,0,0,444,445,1,0,0,0,445,446,3,123,61,0,446,132,1,0,0,0,22,0,213,220,226,228,231,233,361,369,383,387,390,392,400,402,410,412,416,423,430,438,443,7,1,1,0,1,2,1,1,3,2,1,4,3,0,1,0,0,2,0,1,58,4]),P(Ie,"__ATN"),P(Ie,"DecisionsToDFA",Ie._ATN.decisionToState.map((e,n)=>new tp(e,n)));let kl=Ie;var z=(t=>(t.BOOL="bool",t.INT="int",t.FLOAT="float",t.ARRAY="array",t.BOX="box",t.CHART_POINT="chart.point",t.COLOR="color",t.CONST="const",t.LABEL="label",t.LINE="line",t.LINEFILL="linefill",t.MAP="map",t.MATRIX="matrix",t.POLYLINE="polyline",t.SERIES="series",t.SIMPLE="simple",t.STRING="string",t.TABLE="table",t.UNDETERMINED="undetermined type",t.INPUT="input",t.NA="na",t.VOID="void",t.ENUM="enum",t))(z||{}),ye=(t=>(t.FlowStmt="FlowStmt",t.DeclareAssign="DeclareAssign",t.VarBlockStmt="VarBlockStmt",t.VarSingle="VarSingle",t.VarMultiple="VarMultiple",t.ParenthesizedExpression="ParenthesizedExpression",t.AdditiveExpression="AdditiveExpression",t.RelationalExpression="RelationalExpression",t.EqualityExpression="EqualityExpression",t.TernaryExpression="TernaryExpression",t.UnaryExpression="UnaryExpression",t.NotExpression="NotExpression",t.MemberIndexExpression="MemberIndexExpression",t.MethodExpression="MethodExpression",t.LogicalAndExpression="LogicalAndExpression",t.LogicalOrExpression="LogicalOrExpression",t.MultiplicativeExpression="MultiplicativeExpression",t.Brackethesized="Brackethesized",t.IfStatement="IfStatement",t.ForToStatement="ForToStatement",t.ForInStatement="ForInStatement",t.SwitchStatement="SwitchStatement",t.CaseClause="CaseClause",t.DefaultCaluse="DefaultCaluse",t.WhileStatement="WhileStatement",t.ImportElement="ImportElement",t.Literal="Literal",t.ArrowFunction="ArrowFunction",t.ArrowMethod="ArrowMethod",t.TypeStatement="TypeStatement",t.Name="Name",t.AgainAssign="AgainAssign",t.EnumStatement="EnumStatement",t))(ye||{}),Zt=(t=>(t.description="description",t.field="field",t.function="function",t.param="param",t.returns="returns",t.type="type",t.variable="variable",t.enum="enum",t))(Zt||{}),Ui=(t=>(t.library="library",t.indicator="indicator",t.strategy="strategy",t))(Ui||{});const xe={onlyInLoop:"'$text' is only allowed inside loops",invalidType:"Invalid argument 'expr$index' in 'operator SQBR' call",typeUseError:"Cannot specify a type form '$text' without also specifying the type.",notTypeKeyword:"'$text' is not a valid type keyword in variable declaration",undeclared:"Undeclared identifier '$name'",repeatVar:"'$name' is already defined",typeRepeatErr:"$keyword '$name' is already defined.",typeMismatch:"Cannot call '$operator' with argument '$index'. An argument of '$typeE' type was used but a '$typeR' is expected.",assignTypeMismatch:"Cannot assign a value of the `$typeE` type to the '$name' variable. The variable is declared with the `$typeR` type.",voidNotVar:"Void expression cannot be assigned to a variable",declareTypeErr:"Declared type '$type' is not compatible with assigned type '$valueType'",mapKeyValErr:"Cannot put <$typeA, $typeB> pairs into a map containing `$typeC` keys and `$typeD` values. The maps passed into the `$name()` function must have the same key types and value types.",inputSourceErr:"Invalid value for the '$name' parameter of the '$funcName' function. Possible values: [open, high, low, close, hl2, hlc3, ohlc4, hlcc4, volume].",buildInUseErr:"Cannot use '$name' as the default value of a type's field. The default value cannot be a function, variable or calculation.",argsLenErr:"Too many arguments passed into the `$name()` function call. Passed $lenA arguments but expected $lenB.",requiredParamErr:"No value assigned to the `$argName` parameter in $name()",argsSyntaxErr:"Syntax error after the argument for `$argName`. Arguments without their parameter name cannot be used after arguments with parameter names.",requestArgsErr:"Type $type cannot be used in $name '$argName' argument",mapKeyErr:"Incorrect `key` type `$type` in the variable. The `key` type must be one of the following: int, float, string, bool, color.",templateErr:"Incorrect number of arguments for the template: $countA expected, $countB passed.",templateNoSupportErr:"The '$name()' function does not support templates",ifOrSwitchTypeErr:"Return type of one of the '$keyword' blocks is not compatible with return type of other block(s) ($types)",argsNameErr:"The '$name' function does not have an argument with the name '$argName'",noFiledErr:"Object has no field $name",methodNotExistErr:"Could not find method or method reference '$methodName' for '$name'",tupleVarErr:"Syntax error: The quantities of tuple elements on each side of the assignment operator do not match. The right side has $indexA but the left side has $indexB.",tupleLeftVarErr:"Invalid assignment. Cannot assign a tuple to a variable '$name'.",tupleRightVarErr:"Cannot assign a variable to a tuple. The right side must be a function call or structure ('if', 'switch', 'for', 'while') returning a tuple with the same number of elements.",tempateTypeErr:"Syntax error: Only templates for arrays and matrices consist of a single type identifier enclosed in angle brackets.",qualifierErr:"'$name' is not a valid type qualifier. Possible values: 'const', 'simple', 'series'",notFindFuncErr:"Could not find function or function reference '$name'",naVarErr:"Value with NA type cannot be assigned to a variable that was defined without type keyword",notHistoryErr:"Variable '$name' doesn't have history values",defaultValueErr:"The default value cannot be a function, variable or calculation.",defaultValueTypeErr:"Default value of type $typeE can not be assigned to an argument of type $typeR",typeFieldErr:"In a type declaration, all fields without a default value must be explicitly typified.",unaryErr:"Syntax error at input '$sign'",funcArgAssignErr:"Function arguments cannot be mutable ('$name')",declaredErr:"A variable declared with the '$prefix' keyword cannot accept values of the '$type' form. Assign a '$prefix' value to this variable or remove the '$prefix' keyword from its declaration.",globalFuncErr:"Cannot use '$name' in local scope",onlyStatementErr:"Scripts must contain one declaration statement: `indicator()`, `strategy()` or `library()`, Your script has $count.",modifyGlobalVarErr:"Cannot modify global variable '$name' in function",inputDefvalErr:"Arguments of input function must be of constant type, or 'source' builtin variables.",objectIsNaErr:"Cannot access the '$name' $type of an na object. The object is 'na'.",buidinAssignErr:"Cannot assign a new value to the built-in variable '$name'.",buidinVarErr:"Cannot shadow the built-in variable `$name` because it has already been used as a built-in.",useNaErr:"Cannot use an `na` value of an unspecified type in the `$name` function.",libraryTitleErr:"Invalid argument 'title' in 'library' call. It cannot contain spaces, special characters or begin with a digit.",exportFuncArgErr:"All exported functions args should be typified",indiRunErr:"An indicator must contain at least one of the following: any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, `alertcondition()`, or any drawing (line, label, box, table, polyline).",libraryExportErr:"A library must contain at least one exported function, method, or type.",strategyRunErr:"A strategy must contain at least one of the following: any `strategy.*()` function that creates orders, any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, or any drawing (line, label, box, table, polyline).",exportUseErr:"Only libraries can contain exported $type.",funcRepeatErr:"The '$name' function has overloads with the same parameters. The type of parameters must be different in overloaded versions of functions.",importMultipleErr:"Cannot import a library more than once",importNotExitErr:"The user '$username' does not have a published library titled '$libraryName'",importNameRepeatErr:"More than one import uses the same alias: $name. Previous usage at line: $line",exportFuncHasInputErr:"The exported function '$func' depends on the '$name' input variable, which is not allowed.",libraryTitleIsKeywordErr:"Invalid argument 'title' in 'library' call. Token: '$name' can't be used as library title.",exportFuncUseGlobalVarErr:"Cannot use global variables in exported functions. Function: $func",loopRuntimeErr:"Loop takes too long to execute (> 500 ms)",paramsErr:"Invalid value '$value' for '$param' parameter of the '$func' function. Possible values: $targetVal",displayErr:"Invalid argument 'display' in '$func' call. Possible values: $values",exportFuncUseReqErr:"Cannot use `request.*()` call in exported function `$name()`",requestExprErr:"Type series $type cannot be used in $name 'expression' argument",argDefaultErr:"The default value assigned to a parameter must be either a literal value (e.g., `5`) or a built-in variable (e.g., `close`)",overloadFuncErr:"Cannot use global variables or any values qualified as 'input' in the local scopes of overloaded functions or methods. Remove any global variables or inputs from the scopes of all '$name()' overloads.",againAssignErr:"Unable to determine the object for the field assignment. Try putting the object into a separate variable before assigning values to its fields.",requestUserInLoopErr:"Cannot use `request.*()` call within loops or conditional structures.",enumVarNameErr:"Invalid enum name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumVarNameBuiltinErr:"Invalid object name: $name. Namespaces of built-ins cannot be used.",typeNameErr:"Invalid user-defined type name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumUseErr:"Cannot use the '$name' as a value. Use one of the enum's fields instead.",conditionalErr:"'$name' conditional expression must be of a bool type!",fortoErr:'The value of the "for" loop must be a number.',indicatorUseStrategyFuncErr:"You cannot use strategy $type ($name) in indicator script."},Ir={repeatVar:"Shadowing variable '$name' which exists in parent scope. Did you want to use the ':=' operator instead of '=' ?",typeMismatch:"The `$index` parameter of the `$operator` function accepts a '$type' argument. To avoid potential unexpected results, pass a '$type' value or expression to this parameter.",moreSameArg:"More than one '$arg' arguments are supplied. Only the first one will be used.",localScopeGetHistory:"The variable '$name' is declared in local scope, which may not be executed at every update. So, obtaining its historical values may lead to unexpected results",localScopeWarning:"The function '$name' should be called on each calculation for consistency. It is recommended to extract the call from this scope",strategyCalcTickWarn:"Strategies without `calc_on_every_tick = true` only calculate on confirmed chart bars. In this case, `barstate.islast` may not initially return `true` on realtime bars, as the last bar is unconfirmed until it closes. If you need to check whether a bar is the latest before it closes, enable `calc_on_every_tick` in the `strategy()` function.",conditionWarning:"The `condition` parameter of the `$name` accepts a 'bool' argument. To avoid potential unexpected results, pass a 'bool' value or expression to this parameter."},Vi=[z.SERIES,z.SIMPLE,z.INPUT,z.CONST],mu=[z.INT,z.FLOAT,z.BOOL,z.COLOR,z.STRING],Ol=["indicator","strategy","library"],wl=["plot","plotbar","plotchar","plotarrow","plotshape","plotcandle","hline","alertcondition","barcolor","bgcolor","fill"],uy=[...wl,"indicator","library","strategy","strategy.risk.max_drawdown","strategy.risk.allow_entry_in","strategy.risk.max_cons_loss_days","max_intraday_filled_orders","strategy.risk.max_intraday_loss","strategy.risk.max_position_size"],cy=[...wl,"table.new","label.new","line.new","box.new","polyline.new","linefill.new"],ly=["strategy.entry","strategy.order","strategy.exit","strategy.close","strategy.cancel","strategy.close_all","strategy.cancel_all"],Sp=["strategy","input","table","color","line","linefill","label","box"],Rl=["close","open","high","low","hl2","hlc3","hlcc4","ohlc4","volume"],fy=/^\/\/\s*@(description|field|function|param|returns|type|enum|variable)/,Nn=["case","catch","default","delete","do","finally","function","instanceof","new","return","this","throw","try","typeof","void","with"],Tp=["session","ta","syminfo","timeframe","strategy","barstate","label","line","linefill","box","table","chart","earnings","polyline","math","adjustment","hline","position","size","plot","format","dayofweek","shape","location","scale","currency","barmerge","xloc","yloc","extend","display","text","font","order","alert","dividends","splits","color","input","str","request","ticker","array","matrix","runtime","log","map"];var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var py={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Tt,function(){var n=1e3,r=6e4,a=36e5,c="millisecond",h="second",d="minute",E="hour",b="day",T="week",x="month",w="quarter",F="year",R="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(se){var re=["th","st","nd","rd"],ue=se%100;return"["+se+(re[(ue-20)%10]||re[ue]||re[0])+"]"}},O=function(se,re,ue){var ce=String(se);return!ce||ce.length>=re?se:""+Array(re+1-ce.length).join(ue)+se},D={s:O,z:function(se){var re=-se.utcOffset(),ue=Math.abs(re),ce=Math.floor(ue/60),Ee=ue%60;return(re<=0?"+":"-")+O(ce,2,"0")+":"+O(Ee,2,"0")},m:function se(re,ue){if(re.date()<ue.date())return-se(ue,re);var ce=12*(ue.year()-re.year())+(ue.month()-re.month()),Ee=re.clone().add(ce,x),Te=ue-Ee<0,_e=re.clone().add(ce+(Te?-1:1),x);return+(-(ce+(ue-Ee)/(Te?Ee-_e:_e-Ee))||0)},a:function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},p:function(se){return{M:x,y:F,w:T,d:b,D:R,h:E,m:d,s:h,ms:c,Q:w}[se]||String(se||"").toLowerCase().replace(/s$/,"")},u:function(se){return se===void 0}},I="en",L={};L[I]=A;var H="$isDayjsObject",M=function(se){return se instanceof Y||!(!se||!se[H])},G=function se(re,ue,ce){var Ee;if(!re)return I;if(typeof re=="string"){var Te=re.toLowerCase();L[Te]&&(Ee=Te),ue&&(L[Te]=ue,Ee=Te);var _e=re.split("-");if(!Ee&&_e.length>1)return se(_e[0])}else{var oe=re.name;L[oe]=re,Ee=oe}return!ce&&Ee&&(I=Ee),Ee||!ce&&I},N=function(se,re){if(M(se))return se.clone();var ue=typeof re=="object"?re:{};return ue.date=se,ue.args=arguments,new Y(ue)},K=D;K.l=G,K.i=M,K.w=function(se,re){return N(se,{locale:re.$L,utc:re.$u,x:re.$x,$offset:re.$offset})};var Y=function(){function se(ue){this.$L=G(ue.locale,null,!0),this.parse(ue),this.$x=this.$x||ue.x||{},this[H]=!0}var re=se.prototype;return re.parse=function(ue){this.$d=function(ce){var Ee=ce.date,Te=ce.utc;if(Ee===null)return new Date(NaN);if(K.u(Ee))return new Date;if(Ee instanceof Date)return new Date(Ee);if(typeof Ee=="string"&&!/Z$/i.test(Ee)){var _e=Ee.match(p);if(_e){var oe=_e[2]-1||0,Z=(_e[7]||"0").substring(0,3);return Te?new Date(Date.UTC(_e[1],oe,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Z)):new Date(_e[1],oe,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Z)}}return new Date(Ee)}(ue),this.init()},re.init=function(){var ue=this.$d;this.$y=ue.getFullYear(),this.$M=ue.getMonth(),this.$D=ue.getDate(),this.$W=ue.getDay(),this.$H=ue.getHours(),this.$m=ue.getMinutes(),this.$s=ue.getSeconds(),this.$ms=ue.getMilliseconds()},re.$utils=function(){return K},re.isValid=function(){return this.$d.toString()!==v},re.isSame=function(ue,ce){var Ee=N(ue);return this.startOf(ce)<=Ee&&Ee<=this.endOf(ce)},re.isAfter=function(ue,ce){return N(ue)<this.startOf(ce)},re.isBefore=function(ue,ce){return this.endOf(ce)<N(ue)},re.$g=function(ue,ce,Ee){return K.u(ue)?this[ce]:this.set(Ee,ue)},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this.$d.getTime()},re.startOf=function(ue,ce){var Ee=this,Te=!!K.u(ce)||ce,_e=K.p(ue),oe=function(ht,wt){var yt=K.w(Ee.$u?Date.UTC(Ee.$y,wt,ht):new Date(Ee.$y,wt,ht),Ee);return Te?yt:yt.endOf(b)},Z=function(ht,wt){return K.w(Ee.toDate()[ht].apply(Ee.toDate("s"),(Te?[0,0,0,0]:[23,59,59,999]).slice(wt)),Ee)},J=this.$W,te=this.$M,ve=this.$D,me="set"+(this.$u?"UTC":"");switch(_e){case F:return Te?oe(1,0):oe(31,11);case x:return Te?oe(1,te):oe(0,te+1);case T:var Ze=this.$locale().weekStart||0,Ve=(J<Ze?J+7:J)-Ze;return oe(Te?ve-Ve:ve+(6-Ve),te);case b:case R:return Z(me+"Hours",0);case E:return Z(me+"Minutes",1);case d:return Z(me+"Seconds",2);case h:return Z(me+"Milliseconds",3);default:return this.clone()}},re.endOf=function(ue){return this.startOf(ue,!1)},re.$set=function(ue,ce){var Ee,Te=K.p(ue),_e="set"+(this.$u?"UTC":""),oe=(Ee={},Ee[b]=_e+"Date",Ee[R]=_e+"Date",Ee[x]=_e+"Month",Ee[F]=_e+"FullYear",Ee[E]=_e+"Hours",Ee[d]=_e+"Minutes",Ee[h]=_e+"Seconds",Ee[c]=_e+"Milliseconds",Ee)[Te],Z=Te===b?this.$D+(ce-this.$W):ce;if(Te===x||Te===F){var J=this.clone().set(R,1);J.$d[oe](Z),J.init(),this.$d=J.set(R,Math.min(this.$D,J.daysInMonth())).$d}else oe&&this.$d[oe](Z);return this.init(),this},re.set=function(ue,ce){return this.clone().$set(ue,ce)},re.get=function(ue){return this[K.p(ue)]()},re.add=function(ue,ce){var Ee,Te=this;ue=Number(ue);var _e=K.p(ce),oe=function(te){var ve=N(Te);return K.w(ve.date(ve.date()+Math.round(te*ue)),Te)};if(_e===x)return this.set(x,this.$M+ue);if(_e===F)return this.set(F,this.$y+ue);if(_e===b)return oe(1);if(_e===T)return oe(7);var Z=(Ee={},Ee[d]=r,Ee[E]=a,Ee[h]=n,Ee)[_e]||1,J=this.$d.getTime()+ue*Z;return K.w(J,this)},re.subtract=function(ue,ce){return this.add(-1*ue,ce)},re.format=function(ue){var ce=this,Ee=this.$locale();if(!this.isValid())return Ee.invalidDate||v;var Te=ue||"YYYY-MM-DDTHH:mm:ssZ",_e=K.z(this),oe=this.$H,Z=this.$m,J=this.$M,te=Ee.weekdays,ve=Ee.months,me=Ee.meridiem,Ze=function(wt,yt,St,Ct){return wt&&(wt[yt]||wt(ce,Te))||St[yt].slice(0,Ct)},Ve=function(wt){return K.s(oe%12||12,wt,"0")},ht=me||function(wt,yt,St){var Ct=wt<12?"AM":"PM";return St?Ct.toLowerCase():Ct};return Te.replace(g,function(wt,yt){return yt||function(St){switch(St){case"YY":return String(ce.$y).slice(-2);case"YYYY":return K.s(ce.$y,4,"0");case"M":return J+1;case"MM":return K.s(J+1,2,"0");case"MMM":return Ze(Ee.monthsShort,J,ve,3);case"MMMM":return Ze(ve,J);case"D":return ce.$D;case"DD":return K.s(ce.$D,2,"0");case"d":return String(ce.$W);case"dd":return Ze(Ee.weekdaysMin,ce.$W,te,2);case"ddd":return Ze(Ee.weekdaysShort,ce.$W,te,3);case"dddd":return te[ce.$W];case"H":return String(oe);case"HH":return K.s(oe,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return ht(oe,Z,!0);case"A":return ht(oe,Z,!1);case"m":return String(Z);case"mm":return K.s(Z,2,"0");case"s":return String(ce.$s);case"ss":return K.s(ce.$s,2,"0");case"SSS":return K.s(ce.$ms,3,"0");case"Z":return _e}return null}(wt)||_e.replace(":","")})},re.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},re.diff=function(ue,ce,Ee){var Te,_e=this,oe=K.p(ce),Z=N(ue),J=(Z.utcOffset()-this.utcOffset())*r,te=this-Z,ve=function(){return K.m(_e,Z)};switch(oe){case F:Te=ve()/12;break;case x:Te=ve();break;case w:Te=ve()/3;break;case T:Te=(te-J)/6048e5;break;case b:Te=(te-J)/864e5;break;case E:Te=te/a;break;case d:Te=te/r;break;case h:Te=te/n;break;default:Te=te}return Ee?Te:K.a(Te)},re.daysInMonth=function(){return this.endOf(x).$D},re.$locale=function(){return L[this.$L]},re.locale=function(ue,ce){if(!ue)return this.$L;var Ee=this.clone(),Te=G(ue,ce,!0);return Te&&(Ee.$L=Te),Ee},re.clone=function(){return K.w(this.$d,this)},re.toDate=function(){return new Date(this.valueOf())},re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toISOString=function(){return this.$d.toISOString()},re.toString=function(){return this.$d.toUTCString()},se}(),ne=Y.prototype;return N.prototype=ne,[["$ms",c],["$s",h],["$m",d],["$H",E],["$W",b],["$M",x],["$y",F],["$D",R]].forEach(function(se){ne[se[1]]=function(re){return this.$g(re,se[0],se[1])}}),N.extend=function(se,re){return se.$i||(se(re,Y,N),se.$i=!0),N},N.locale=G,N.isDayjs=M,N.unix=function(se){return N(1e3*se)},N.en=L[I],N.Ls=L,N.p={},N})})(py);function Se(t,e){return t.replace(/\$(\w+)/g,(n,r)=>String(e[r])||n)}class dy extends Bm{constructor(){super(...arguments);P(this,"visitProgram");P(this,"visitGlobalStmt");P(this,"visitBlockStmt");P(this,"visitStmt");P(this,"visitSimpleStmt");P(this,"visitFlowStmt");P(this,"visitBlock");P(this,"visitBlockLine");P(this,"visitVariableDeclarationStmt");P(this,"visitDeclareAssign");P(this,"visitAgainAssign");P(this,"visitVarModifier");P(this,"visitBlockSequence");P(this,"visitExpressionSequence");P(this,"visitExpressionBlockSequence");P(this,"visitVarBlockStmt");P(this,"visitVarSingle");P(this,"visitVarMultiple");P(this,"visitBlockExpression");P(this,"visitParenthesizedExpression");P(this,"visitAdditiveExpression");P(this,"visitRelationalExpression");P(this,"visitTernaryExpression");P(this,"visitLogicalAndExpression");P(this,"visitNameExpression");P(this,"visitLiteralExpression");P(this,"visitLogicalOrExpression");P(this,"visitUnaryExpression");P(this,"visitNotExpression");P(this,"visitMemberIndexExpression");P(this,"visitMethodExpression");P(this,"visitEqualityExpression");P(this,"visitMultiplicativeExpression");P(this,"visitBrackethesized");P(this,"visitArguments");P(this,"visitArgument");P(this,"visitIfStatement");P(this,"visitForToStatement");P(this,"visitForInStatement");P(this,"visitSwitchStatement");P(this,"visitCaseClause");P(this,"visitDefaultCaluse");P(this,"visitWhileStatement");P(this,"visitImportStmt");P(this,"visitImportElement");P(this,"visitLiteral");P(this,"visitMethodStmt");P(this,"visitMethodElement");P(this,"visitMethodName");P(this,"visitArrowFunction");P(this,"visitArrowFunctionParameters");P(this,"visitFormalParameterList");P(this,"visitFormalParameterArg");P(this,"visitArrowMethod");P(this,"visitArrowMethodParameters");P(this,"visitTypeStatement");P(this,"visitTypeElement");P(this,"visitAssignmentOperator");P(this,"visitTypeMap");P(this,"visitTypeSeries");P(this,"visitTypeArray");P(this,"visitTypeGather");P(this,"visitIdentifier");P(this,"visitTypeName");P(this,"visitName");P(this,"visitEnumStatement");P(this,"visitEnumElement")}}class _y extends dy{constructor(n){super();P(this,"_buildinVariables");P(this,"_buildinTypes");P(this,"_buildinConstants");P(this,"_buildinMethods");P(this,"_buildinFunctions");this._buildinVariables=new Map,this._buildinConstants=new Map,this._buildinFunctions=new Map,this._buildinTypes=new Map,this._buildinMethods=new Map,this._buildinHandle(n)}_buildinHandle(n){for(const r in n){const a=new Map(Object.entries(n[r]));switch(r){case"constants":this._buildinConstants=a;break;case"functions":this._buildinFunctions=a;break;case"methods":this._buildinMethods=a;break;case"types":this._buildinTypes=a;break;case"variables":this._buildinVariables=a;break}}}_typeHandle(n=[],r){if(!n.length)return z.UNDETERMINED;if(n=n.filter(h=>!h.endsWith(z.NA)),!n.length)return`${z.SIMPLE} ${z.NA}`;let a=100,c="";for(const h of n){if(h===z.UNDETERMINED)return z.UNDETERMINED;h.startsWith(z.SERIES)?a=0:h.startsWith(z.SIMPLE)&&a>0?a=1:h.startsWith(z.INPUT)&&a>1?a=2:h.startsWith(z.CONST)&&a>2&&(a=3);const d=this._removePrefix(h);(d!==z.INT||!c)&&(c=d)}return a===100?c:`${Vi[a]} ${r||c}`}_returnTypesOtherHandle(n,r,a,c){if(!a.length||a[0].includes("<>")){const h=n.type;let d=h;if(!h||h===z.UNDETERMINED)return[z.UNDETERMINED];switch(r){case"series <type>":d=this._getArrayType(h),d||(d=this._removePrefix(h)),a=[this._typeAddSeries(d)];break;case"array<type>":case"matrix<type>":case"type[]":if(this._isMapType(h)){const E=this._getMapType(h)||[];c.includes("keys")?d=E[0]:d=E[1]}else d=this._getArrayType(h),d||(d=this._removePrefix(h));a=[this._typeReplace(r,d)];break;case"<matrix_type>":d=this._getArrayType(h),a=[this._typeAddSeries(d)];break;case"map<keyType, valueType>":a=[d];break;case"<value_type>":d=this._getMapType(h),a=[d[1]];break}}return a}_checkMethodThisType(n,r){if(!n||!n.length||n[0].includes("<>"))return!0;const a=r.replace("int","float");return n.some(c=>c===r||a===c||c.endsWith(r))}_priorityComparison(n,r){if(!n)return!1;if(this._isArrayType(n)||this._isMatrixType(n))return this._getArrayType(r)!==z.INT;{const a=this._getPrefix(n),c=this._getPrefix(r);return a===c?!!n.endsWith(z.INT):!(Vi.indexOf(a)<Vi.indexOf(c))}}_compareType(n,r){if(n===z.UNDETERMINED||r===z.UNDETERMINED)return!0;const a=[z.FLOAT,z.INT];if(this._isArrayType(n)||this._isMatrixType(n)){const c=this._getArrayType(n)||"",h=this._getArrayType(r)||"";return c===h||a.includes(c)&&a.includes(h)}else if(this._isMapType(n)){const c=this._getMapType(n)||[],h=this._getMapType(r)||[];return(c[0]===h[0]||a.includes(c[0])&&a.includes(h[0]))&&(c[1]===h[1]||a.includes(c[1])&&a.includes(h[1]))}else{const c=this._removePrefix(n),h=this._removePrefix(r);return c===z.NA||h===z.NA||c===h||a.includes(c)&&a.includes(h)}}_typeAddSeries(n){return this._buildinTypes.get(n)&&n!==z.CHART_POINT?`${z.SERIES} ${n}`:n}_typeAddConst(n){return mu.includes(n)?`${z.CONST} ${n}`:this._typeAddSeries(n)}_getOriginMethodName(n,r){let a="";return this._isArrayType(n)?a=`${z.ARRAY}.${r}`:this._isMatrixType(n)?a=`${z.MATRIX}.${r}`:this._isMapType(n)?a=`${z.MAP}.${r}`:a=`${this._removePrefix(n)}.${r}`,a}_returnedTypesParse(n){if(!n||!n.length)return[];const r=n[0];return/^\[.+\]$/.test(r)?r.replace(/[[\]]/g,"").split(",").map(a=>a.trim()):n}_removePrefix(n=""){return n.replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}_getPrefix(n){if(!n)return"";const r=n.replace(/(series|simple|const|input).+/,"$1");return Vi.includes(r)?r:""}_getArrayType(n){let r=/\w+<([\w\d.]+)>/.exec(n);return r||(r=/([\w\d.]+)\[\]/.exec(n)),r==null?void 0:r[1]}_getMapType(n){const r=/\w+<(\w+),\s*([\w\d.]+)>/.exec(n);return(r==null?void 0:r[1])&&(r==null?void 0:r[2])&&[r==null?void 0:r[1],r==null?void 0:r[2]]}_isMatrixType(n){return/^matrix<[\w\d.]+>$/.test(n)}_isArrayType(n){return/^array<[\w\d.]+>$/.test(n)||/^[\w\d.]+\[\]$/.test(n)}_isMapType(n){return/^map<\w+,\s*[\w\d.]+>$/.test(n)}_arrayTypeConvert(n){return!this._isArrayType(n)||!n.includes("<")?n:`${this._getArrayType(n)}[]`}_getMethodTypeName(n){return this._isArrayType(n)?z.ARRAY:this._isMapType(n)?z.MAP:this._isMatrixType(n)?z.MATRIX:this._removePrefix(n)}_typeReplace(n,r){return r===z.UNDETERMINED?r:(r=this._removePrefix(r),this._arrayTypeConvert(n.startsWith(z.SERIES)?n.replace("<type>",r):n.replace("type",r)))}}var Vn=(t=>(t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error",t))(Vn||{});class Ap extends _y{constructor(n,r,a){super(n);P(this,"_loopCount");P(this,"_errors");P(this,"_variables");P(this,"_functions");P(this,"_methods");P(this,"_types");P(this,"_enums");P(this,"_currentBlockVars");P(this,"_currentFuncParams");P(this,"_isNeedCalc");P(this,"_blockCount");P(this,"_isInFunc");P(this,"_currentExportFunc");P(this,"_onlyStatementsCount");P(this,"_blockRanges");P(this,"_overloadsFuncs");P(this,"_hasMemberIndex");P(this,"_isInLocalScop");P(this,"_comments");P(this,"_currentLine",0);P(this,"_hasDrawFunc",!1);P(this,"_hasCreateOrderFunc",!1);P(this,"_scriptType");P(this,"_exportFunctions");P(this,"_exportMethods");P(this,"_exportTypes");P(this,"_exportEnums");P(this,"_exportPositions");P(this,"_description","");P(this,"_endExport");P(this,"_importLibs");P(this,"_getImportLibraryFunc");P(this,"_isEndExpr");P(this,"_inputVarName");P(this,"_hasRequest");P(this,"_strategyFuncName");P(this,"_strategyVarName");P(this,"visitProgram",async n=>{const{children:r}=n;let a=0;const c=[];for(this._pushBlockRanges(n);a<r.length;a++){const h=r[a];h.ruleIndex===j.RULE_globalStmt&&c.push(await this.visit(h))}return this._onlyStatementsCount<=0?this._errors.push({startColumn:0,endColumn:0,startLineNumber:0,endLineNumber:0,type:Vn.Error,message:Se(xe.onlyStatementErr,{count:this._onlyStatementsCount})}):this._scriptType===Ui.indicator&&(this._strategyFuncName?this._errorHandle(Se(xe.indicatorUseStrategyFuncErr,{name:this._strategyFuncName.name,type:"functions"}),this._strategyFuncName.ctx):this._strategyVarName&&this._errorHandle(Se(xe.indicatorUseStrategyFuncErr,{name:this._strategyVarName.name,type:"variables"}),this._strategyVarName.ctx)),c});P(this,"visitGlobalStmt",async n=>{const{children:r}=n;if(r&&r.length){const a=r[0],c=await this.visit(a);return a.ruleIndex===j.RULE_methodStmt&&Ol.includes(c.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(Se(xe.onlyStatementErr,{count:this._onlyStatementsCount}),a):this._scriptType=c.exprs[0].name),c}return null});P(this,"visitBlockStmt",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_variableDeclarationStmt:c.push(...this.visit(h));break;case j.RULE_varBlockStmt:c.push(this.visit(h));break;case j.RULE_blockExpression:c.push(this.visit(h));break}}return c});P(this,"visitStmt",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});P(this,"visitSimpleStmt",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});P(this,"visitFlowStmt",n=>{const{children:r}=n,{column:a,line:c,text:h}=r[0].symbol;if(this._currentLine=c,this._loopCount<=0){const d=a+1;this._errors.push({startColumn:d,endColumn:parseInt(d+h.length),startLineNumber:c,endLineNumber:c,message:Se(xe.onlyInLoop,{text:h})})}return{ruleType:ye.FlowStmt,value:h}});P(this,"visitBlock",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return a.ruleIndex===j.RULE_simpleStmt?this._inBlock(a):this.visit(a)}return null});P(this,"visitBlockLine",n=>{const{children:r}=n;if(!r)return null;let a=0;const c=[];this._blockCount++,this._pushBlockRanges(n);const h=this._isEndExpr;for(;a<r.length;a++){const d=r[a];d.ruleIndex===j.RULE_stmt&&(this._isInFunc&&(this._isEndExpr=r.length-2===a&&h),c.push(this.visit(d)))}return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),c});P(this,"visitDeclareAssign",n=>{var h;const{children:r}=n;let a=0;const c={ruleType:ye.DeclareAssign};for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case j.RULE_varArrayDeclaration:c.nameList=this.visit(d),this._inputVarName=(h=c.nameList)==null?void 0:h.name;break;case j.RULE_singleExpression:c.value=this.visit(d),this._inputVarName=void 0;break}}return this._variablesHandle(c,n),c});P(this,"visitAgainAssign",n=>{const{children:r,start:a}=n;if(this._currentLine=a.line,r.length>=3){const c=this.visit(r[0]);this._verifyGloablVar(c,r[0]);const h=this.visit(r[2]),d=this.visit(r[1]);return c.type?this._againAssignHandle([c,h],[r[0],r[2]],d):null}return null});P(this,"visitVarModifier",n=>{const{children:r}=n;return r[0].symbol.text});P(this,"visitExpressionSequence",n=>{const{children:r,start:a}=n;let c=0;const h=[];for(this._currentLine=a.line;c<r.length;c++){const d=r[c];if(d.ruleIndex===j.RULE_singleExpression){const E=this.visit(d);E&&(E.ctx=d,h.push(E))}}return h});P(this,"visitExpressionBlockSequence",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_singleExpression:c.push(this.visit(h));break;case j.RULE_variableDeclarationList:c.push(this.visit(h));break;case j.RULE_blockExpression:c.push(this.visit(h));break;case j.RULE_varBlockStmt:c.push(this.visit(h));break}}return c});P(this,"visitBlockSequence",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_variableDeclarationList:c.push(this.visit(h));break;case j.RULE_singleExpression:c.push(this.visit(h));break}}return c});P(this,"visitVariableDeclarationStmt",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_variableDeclarationList:c.push(this.visit(h));break;case j.RULE_methodStmt:const d=this.visit(h);Ol.includes(d.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(Se(xe.onlyStatementErr,{count:this._onlyStatementsCount}),h):this._scriptType=d.exprs[0].name),c.push(d);break}}return c});P(this,"visitVarBlockStmt",n=>{const{children:r}=n;let a=0;const c={ruleType:ye.VarBlockStmt,ctx:n},h=[];for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case j.RULE_varArrayDeclaration:c.nameList=this.visit(d);break;case j.RULE_assignmentOperator:c.operator=this.visit(d);break;case j.RULE_name:h.push(d),c.name=this.visit(d);break;case j.RULE_blockExpression:this._isNeedCalc=!0,c.value=this.visit(d),h.push(d);const E=this._getBlockReturnTypes(c.value);E.length===1?c.value.type=E[0]:c.value.types=E,this._isNeedCalc=!1;break}}return c.name?this._againAssignHandle([c.name,c.value],h,c.operator):(this._variablesHandle(c,n),c)});P(this,"visitVarSingle",n=>{const{children:r,start:a}=n,c={ruleType:ye.VarSingle};let h=0;const d=this._commentsParser(a.line,[Zt.variable]);c.desc=d==null?void 0:d[Zt.variable],this._currentLine=a.line;let E={lineNumber:0,column:0};for(;h<r.length;h++){const b=r[h];switch(b.ruleIndex){case j.RULE_varModifier:c.declare=this.visit(b);break;case j.RULE_typeGather:const T=this.visit(b);c.prefix=this._getPrefix(T),c.type=T&&this._typeAddConst(T);break;case j.RULE_identifier:const x=this.visit(b);this._repeatVarJudge(x,b),E={lineNumber:b.start.line,column:b.start.column},c.name=x,c.pos=E;break}}return c});P(this,"_commentsParser",(n,r,a=!1)=>{var b;const c=this._comments.filter(T=>T.line<n&&T.line>=this._currentLine),h={},d={line:0,key:"",secKey:""},E=[Zt.field,Zt.param];for(const T of c){const[x,w]=fy.exec(T.text)||[];if(w&&r.includes(w)){const F=T.text.replace(x,"").trim();if(Object.assign(d,{line:T.line,key:w}),E.includes(w)){const[R,...v]=F.split(" ");R&&(Object.assign(d,{secKey:R}),h[w]=Object.assign(h[w]||{},{[R]:v.join(" ").trim()}))}else h[w]=[F]}else if(a&&d.key){const F=T.text.replace("//","").trim();E.includes(d.key)?h[d.key][d.secKey]+=` ${F}`:(b=h[d.key])==null||b.push(F)}}return h});P(this,"visitVarMultiple",n=>{const{children:r,start:a}=n;let c=0;const h=[],d=[];for(this._currentLine=a.line;c<r.length;c++){const E=r[c];if(E.ruleIndex===j.RULE_identifier){const b=this.visit(E);this._repeatVarJudge(b,E),h.push(b),d.push({lineNumber:E.start.line,column:E.start.column})}}return{ruleType:ye.VarMultiple,names:h,posList:d}});P(this,"visitBlockExpression",n=>{const{children:r,start:a}=n;if(this._currentLine=a.line,r&&r.length){const c=r[0];return this.visit(c)}return null});P(this,"visitParenthesizedExpression",n=>{const{children:r}=n,a=r[1],c=this.visit(a);return{ruleType:ye.ParenthesizedExpression,type:c.type,ctx:n,exprs:c}});P(this,"visitAdditiveExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const E=r[a];E.ruleIndex===j.RULE_singleExpression?h.push(this.visit(E)):c=E.symbol.text}const d={ruleType:ye.AdditiveExpression,operator:c,ctx:n,exprs:h};if(["+","-"].includes(c)){const E=[z.UNDETERMINED,z.INT,z.FLOAT];c==="+"&&E.push(z.STRING);const b=this._sameTypeJudge(h,[r[0],r[2]],c,E);d.type=this._typeHandle(b)}else{const E=this._calcTypeJudge(h[0],r[0],c),b=this._calcTypeJudge(h[1],r[2],c,1);d.type=this._typeHandle([E,b])}return d});P(this,"visitRelationalExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const b=r[a];b.ruleIndex===j.RULE_singleExpression?h.push(this.visit(b)):c=b.symbol.text}const d=this._calcTypeJudge(h[0],r[0],c),E=this._calcTypeJudge(h[1],r[2],c,1);return{ruleType:ye.RelationalExpression,operator:c,ctx:n,type:this._typeHandle([d,E],z.BOOL),exprs:h}});P(this,"visitEqualityExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const E=r[a];E.ruleIndex===j.RULE_singleExpression?h.push(this.visit(E)):c=E.symbol.text}const d=this._sameTypeJudge(h,[r[0],r[2]],c,[z.UNDETERMINED,z.COLOR,z.STRING,z.BOOL,z.INT,z.FLOAT]);return{ruleType:ye.EqualityExpression,operator:c,ctx:n,type:this._typeHandle(d,z.BOOL),exprs:h}});P(this,"visitTernaryExpression",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const d=r[a];d.ruleIndex===j.RULE_singleExpression&&c.push(this.visit(d))}let h=z.UNDETERMINED;if(c.length>=3){this._boolTypeJudge(c[0],r[0],"?:");const d=this._sameTypeJudge(c.slice(1),[r[2],r[4]],"?:",[]),E=this._getPrefix(c[0].type);h=this._typeHandle(d),E&&this._getPrefix(h)&&(h=this._typeHandle([h,`${E} ${this._removePrefix(h)}`]))}return{ruleType:ye.TernaryExpression,type:h,ctx:n,exprs:c}});P(this,"visitNameExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});P(this,"visitLiteralExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});P(this,"visitUnaryExpression",n=>{var b;const{children:r}=n,[a,c]=r,h=[this.visit(c)],d=a.symbol.text,E=this._calcTypeJudge(h[0],c,d);return((b=h[0])==null?void 0:b.ruleType)===ye.UnaryExpression&&this._errors.push({message:Se(xe.unaryErr,{sign:d}),startColumn:a.symbol.column+1,startLineNumber:a.symbol.line,endColumn:a.symbol.column+2,endLineNumber:a.symbol.line}),{ruleType:ye.UnaryExpression,operator:d,type:E,ctx:n,exprs:h}});P(this,"visitNotExpression",n=>{const{children:r}=n,a=r[1],c=[this.visit(a)],h=this._boolTypeJudge(c[0],a,"not");return{ruleType:ye.NotExpression,ctx:n,type:this._typeHandle([h],z.BOOL),exprs:c}});P(this,"visitMemberIndexExpression",n=>{var h,d;const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const E=r[a];E.ruleIndex===j.RULE_singleExpression&&c.push(this.visit(E))}if(this._memberIndexVerify(c[0],n),this._hasMemberIndex=!0,((h=c[0])==null?void 0:h.ruleType)===ye.MemberIndexExpression){const E=r[1];this._errors.push({message:Se(xe.unaryErr,{sign:"["}),startColumn:E.symbol.column+1,startLineNumber:E.symbol.line,endColumn:E.symbol.column+2,endLineNumber:E.symbol.line}),this._hasMemberIndex=!1}return{ruleType:ye.MemberIndexExpression,type:(d=c[0])==null?void 0:d.type,ctx:n,isInFunc:this._isInFunc,exprs:c}});P(this,"visitMethodStmt",n=>{var T;const{children:r,start:a}=n;let c=0;const h=[],d=[],E=this._commentsParser(a.line,[Zt.description],!0);this._currentLine=a.line;let b;for(;c<r.length;c++){const x=r[c];x.ruleIndex===j.RULE_methodElement&&(h.push(this.visit(x)),d.push(x))}return((T=h[0])==null?void 0:T.name)===Ui.library&&E.description&&(this._description=E.description.join(`
12
12
  `)),b=this._getMethodTypes(h,d)||[],this._inputFuncTitleVerify(h,n),{ruleType:ye.MethodExpression,types:b.length>1||b.isBrackethesized||b.isUnknown?b:void 0,ctx:n,type:b.length===1?b[0]:void 0,exprs:h}});P(this,"visitMethodExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});P(this,"visitLogicalAndExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const b=r[a];b.ruleIndex===j.RULE_singleExpression?h.push(this.visit(b)):c=b.symbol.text}const d=this._boolTypeJudge(h[0],r[0],c),E=this._boolTypeJudge(h[1],r[2],c,1);return{ruleType:ye.LogicalAndExpression,type:this._typeHandle([d,E],z.BOOL),operator:c,ctx:n,exprs:h}});P(this,"visitLogicalOrExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const b=r[a];b.ruleIndex===j.RULE_singleExpression?h.push(this.visit(b)):c=b.symbol.text}const d=this._boolTypeJudge(h[0],r[0],c),E=this._boolTypeJudge(h[1],r[2],c,1);return{ruleType:ye.LogicalOrExpression,operator:c,ctx:n,type:this._typeHandle([d,E],z.BOOL),exprs:h}});P(this,"visitMultiplicativeExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const b=r[a];b.ruleIndex===j.RULE_singleExpression?h.push(this.visit(b)):c=b.symbol.text}const d=this._calcTypeJudge(h[0],r[0],c),E=this._calcTypeJudge(h[1],r[2],c,1);return{ruleType:ye.MultiplicativeExpression,operator:c,ctx:n,type:this._typeHandle([d,E]),exprs:h}});P(this,"visitBrackethesized",n=>{const{children:r,start:a}=n,c=r[1];return this._currentLine=a.line,{ruleType:ye.Brackethesized,ctx:n,exprs:this.visit(c)}});P(this,"visitArguments",n=>{const{children:r}=n;let a=0;const c={params:[]};let h="";for(;a<r.length;a++){const d=r[a];if(d.ruleIndex===j.RULE_argument){const E=this.visit(d),b=E.paramKey;b?(h=b,c[b]?this._errorHandle(Se(Ir.moreSameArg,{arg:b}),n.parentCtx,Vn.Warning):(c[b]=E.param,c[b].ctx=d)):h?this._errorHandle(Se(xe.argsSyntaxErr,{argName:h}),d):(E.ctx=d,c.params.push(E))}}return c});P(this,"visitArgument",n=>{const{children:r}=n;return r.length===1?this.visit(r[0]):{paramKey:this.visit(r[0]),param:this.visit(r[2])}});P(this,"visitIfStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:ye.IfStatement,condition:[],block:[],ctx:n,typeList:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_singleExpression:const d=this.visit(h);if(!d)break;d.ctx=h,c.condition.push(d);break;case j.RULE_blockLine:const E=this._isInLocalScop;this._isInLocalScop=!0;const b=this.visit(h);c.typeList.push(this._getBlockReturnTypes(b)),c.block.push(b),this._isInLocalScop=E;break}}return this._verifyIf(c),c});P(this,"visitForToStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:ye.ForToStatement,numerical:[],ctx:n,block:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_varModifier:c.declare=this.visit(h);break;case j.RULE_typeGather:const d=this.visit(h);c.type=d&&this._typeAddSeries(d);break;case j.RULE_identifier:c.name=this.visit(h),this._repeatVarJudge(c.name,h);break;case j.RULE_singleExpression:const E=this.visit(h);E&&(E.ctx=h,c.numerical.push(E));break;case j.RULE_blockLine:if(this._blockCount++,this._pushBlockRanges(n),c.name){const T=c.numerical[0].type;this._variablesHandle({nameList:{name:c.name,isForVar:!0,type:c.type},value:{type:T||`${z.SERIES} ${z.INT}`}},n)}this._blockCount--,this._blockRanges.pop(),this._loopCount++;const b=this._isInLocalScop;this._isInLocalScop=!0,c.block=this.visit(h),this._loopCount--,this._isInLocalScop=b,c.returnedTypes=this._getBlockReturnTypes(c.block);break}}return this._verifyForTo(c),c});P(this,"visitForInStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:ye.ForInStatement,ctx:n,names:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_identifier:const d=this.visit(h);this._repeatVarJudge(d,h),c.names.push(d);break;case j.RULE_singleExpression:c.array=this.visit(h);const E=c.array.type;this._isArrayType(E)||this._isMatrixType(E)||E===z.UNDETERMINED||this._errorHandle(Se(xe.typeMismatch,{operator:"foreach",index:"id",typeE:E,typeR:"array<fun_arg>"}),h);break;case j.RULE_blockLine:if(this._blockCount++,this._pushBlockRanges(n),c.names.length){let[T,x]=c.names;const w=c.array.type;x?this._variablesHandle({nameList:{name:T,isForVar:!0,type:`${z.SERIES} ${z.INT}`},value:{type:`${z.SERIES} ${z.INT}`}},n):x=T;const F=w===z.UNDETERMINED?w:this._isMatrixType(w)?`${this._getArrayType(w)}[]`:this._typeAddSeries(this._getArrayType(w));this._variablesHandle({nameList:{name:x,isForVar:!0,type:F},value:{type:F}},n)}this._blockCount--,this._blockRanges.pop(),this._loopCount++;const b=this._isInLocalScop;this._isInLocalScop=!0,c.block=this.visit(h),this._isInLocalScop=b,this._loopCount--,c.returnedTypes=this._getBlockReturnTypes(c.block);break}}return c});P(this,"visitSwitchStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:ye.SwitchStatement,condition:!0,ctx:n,cases:[],defaultCase:void 0};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_singleExpression:if(c.condition=this.visit(h),!h.children)break;c.condition.ctx=h;break;case j.RULE_caseClause:c.cases.push(this.visit(h));break;case j.RULE_defaultCaluse:c.defaultCase=this.visit(h);break}}return this._verifySwitch(c),c});P(this,"visitCaseClause",n=>{const{children:r}=n,a={ruleType:ye.CaseClause},c=this._isInLocalScop;return this._isInLocalScop=!0,a.condition=this.visit(r[0]),a.condition&&(a.condition.ctx=r[0],a.block=this.visit(r[2]),this._isInLocalScop=c,a.returnedTypes=this._getBlockReturnTypes(a.block)),a});P(this,"visitDefaultCaluse",n=>{const{children:r}=n,a={ruleType:ye.DefaultCaluse},c=this._isInLocalScop;return this._isInLocalScop=!0,a.block=this.visit(r[1]),this._isInLocalScop=c,a.returnedTypes=this._getBlockReturnTypes(a.block),a});P(this,"visitWhileStatement",n=>{const{children:r}=n,a={ruleType:ye.WhileStatement,ctx:n};if(a.condition=this.visit(r[1]),!a.condition)return a;a.condition.ctx=r[1],this._loopCount++;const c=this._isInLocalScop;return this._isInLocalScop=!0,a.block=this.visit(r[2]),this._isInLocalScop=c,this._loopCount--,a.returnedTypes=this._getBlockReturnTypes(a.block),this._verifyWhile(a),a});P(this,"visitImportStmt",async n=>{const{children:r,start:a}=n;let c=0;const h=[];for(this._currentLine=a.line;c<r.length;c++){const d=r[c];if(d.ruleIndex===j.RULE_importElement){const E=await this.visit(d);E&&h.push(E)}}return h});P(this,"visitImportElement",async n=>{const{children:r}=n;if(!r||!r.length)return;let a=0;const c=[],h={ruleType:ye.ImportElement,ctx:n};for(;a<r.length;a++){const d=r[a];d.ruleIndex===j.RULE_identifier?c.push(this.visit(d)):d.symbol&&d.symbol.type===j.IntegerLiteral&&(h.libraryVersion=d.symbol.text)}return h.username=c[0],h.libraryName=c[1],h.name=c[2],await this._importHandle(h,n),h});P(this,"visitLiteral",n=>{const{children:r}=n,a=r[0],{type:c,text:h}=a.symbol,d={ruleType:ye.Literal,ctx:n,type:"",value:h};switch(c){case j.ColorLiteral:d.type=z.COLOR;break;case j.BooleanLiteral:d.type=z.BOOL;break;case j.StringLiteral:if(d.type=z.STRING,h.includes(`
13
13
  `)){const E=h.replace(/\s*(\n|\r)\s*/g," ");d.value=`\`${E.substring(1,E.length-1)}\``}break;case j.IntegerLiteral:d.type=z.INT;break;case j.DecimalLiteral:d.type=z.FLOAT;break}return d.type&&(d.type=`${z.CONST} ${d.type}`),d});P(this,"visitMethodElement",n=>{const{children:r}=n,[a,c]=r,[h,d,E]=this.visit(a),b=this.visit(c);return h.startsWith("request.")&&this._isInFunc&&(this._currentExportFunc&&this._errorHandle(Se(xe.exportFuncUseReqErr,{name:h}),n),this._hasRequest=!0),{name:h,type:d,args:b,expr:E}});P(this,"visitMethodName",n=>{const{children:r}=n,a=[],c=[];let h=0,d=null;for(;h<r.length;h++){const b=r[h],T=b.ruleIndex,x=b.symbol;switch(T){case j.RULE_identifier:a.push(this.visit(b));break;case j.RULE_singleExpression:d=this.visit(b);break;case j.RULE_typeName:const w=this.visit(b);c.push(w),this._typeCheck(w,j.RULE_typeName,b);break;default:x&&x.text==="."&&a.push(".")}}const E=a.join("");return cy.includes(E)?this._hasDrawFunc=!0:ly.includes(E)&&(this._hasCreateOrderFunc=!0),[E,c,d]});P(this,"visitArrowFunction",n=>{const{children:r,start:a,stop:c}=n,h={ruleType:ye.ArrowFunction,returnedTypes:[]};let d=0,E={lineNumber:0,column:0};const b=this._commentsParser(a.line,[Zt.function,Zt.param,Zt.returns],!0);Object.assign(h,{desc:b[Zt.function],paramsDesc:b[Zt.param],returnsDesc:b[Zt.returns]}),this._currentLine=a.line;let T=null;for(;d<r.length;d++){const x=r[d],w=x.ruleIndex,F=x.symbol;switch(w){case j.RULE_identifier:E={lineNumber:x.start.line,column:x.start.column},h.name=this.visit(x);break;case j.RULE_arrowFunctionParameters:h.params=this.visit(x),h.isExport&&this._exportArgsTypeVerify(h.params),this._setFuncParams(h,{endColumn:c.column,endLineNumber:c.line-1,startColumn:a.column,startLineNumber:a.line}),T=x;break;case j.RULE_block:this._isInFunc=!0,h.isExport&&(this._currentExportFunc=h.name),this._hasMemberIndex=!1,this._hasRequest=!1,h.block=this.visit(x),h.hasMemberIndex=this._hasMemberIndex,h.returnedTypes=this._getBlockReturnTypes(h.block),this._isInFunc=!1,this._currentExportFunc="";break;default:F&&F.type===j.Export&&(h.isExport=!0,this._addExportPos(F,"functions"))}}return h.hasRequest=this._hasRequest,this._setFunc(h,E,T,c.line-1),this._hasRequest=!1,this._currentFuncParams.clear(),h});P(this,"visitArrowFunctionParameters",n=>{const{children:r}=n;let a=0,c=[];for(;a<r.length;a++){const h=r[a];h.ruleIndex===j.RULE_formalParameterList&&(c=this.visit(h))}return c});P(this,"visitFormalParameterList",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];h.ruleIndex===j.RULE_formalParameterArg&&c.push(this.visit(h))}return c});P(this,"visitFormalParameterArg",n=>{const{children:r}=n;let a=0;const c={};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case j.RULE_typeGather:const d=this.visit(h);c.type=d&&this._typeAddSeries(d);break;case j.RULE_identifier:c.name=this.visit(h);break;case j.RULE_singleExpression:c.defaultValue=this.visit(h),delete c.defaultValue.ctx}}return c.ctx=n,this._verifyArgsDefaultValue(c,n),c.type=c.type||z.UNDETERMINED,c});P(this,"visitArrowMethod",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:ye.ArrowMethod,returnedTypes:[]};let E={lineNumber:0,column:0};const b=this._commentsParser(a.line,[Zt.function,Zt.param,Zt.returns],!0);Object.assign(d,{desc:b[Zt.function],paramsDesc:b[Zt.param],returnsDesc:b[Zt.returns]}),this._currentLine=a.line;let T=null;for(;h<r.length;h++){const x=r[h];switch(x.ruleIndex){case j.RULE_identifier:E={lineNumber:x.start.line,column:x.start.column},d.name=this.visit(x);break;case j.RULE_arrowMethodParameters:d.params=this.visit(x),d.isExport&&this._exportArgsTypeVerify(d.params),this._setFuncParams(d,{endColumn:c.column,endLineNumber:c.line-1,startColumn:a.column,startLineNumber:a.line}),T=x;break;case j.RULE_block:this._isInFunc=!0,d.isExport&&(this._currentExportFunc=d.name),this._hasMemberIndex=!1,this._hasRequest=!1,d.block=this.visit(x),d.hasMemberIndex=this._hasMemberIndex,d.returnedTypes=this._getBlockReturnTypes(d.block),this._isInFunc=!1,this._currentExportFunc="";break;default:x.symbol&&x.symbol.type===j.Export&&(d.isExport=!0,this._addExportPos(x.symbol,"methods"));break}}return d.hasRequest=this._hasRequest,this._setFunc(d,E,T,c.line-1),this._setMethod(d,E),this._hasRequest=!1,this._currentFuncParams.clear(),d});P(this,"visitArrowMethodParameters",n=>{const{children:r}=n;let a=0;const c={};let h=[];for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case j.RULE_typeGather:const E=this.visit(d);c.type=E&&this._typeAddSeries(E);break;case j.RULE_identifier:c.ctx=d,c.name=this.visit(d);break;case j.RULE_formalParameterList:h=this.visit(d);break}}return[c,...h]});P(this,"visitTypeStatement",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:ye.TypeStatement,fields:[]},E=this._commentsParser(a.line,[Zt.type,Zt.field]);Object.assign(d,{desc:E[Zt.type],fieldsDesc:E[Zt.field]}),this._currentLine=a.line;let b={lineNumber:0,column:0},T=null;for(;h<r.length;h++){const x=r[h];switch(x.ruleIndex){case j.RULE_identifier:b={lineNumber:x.start.line,column:x.start.column},T=x,d.name=this.visit(x),this._verifyTypeName(d.name,x);break;case j.RULE_typeElement:d.fields.push(this.visit(x));break;default:x.symbol&&x.symbol.type===j.Export&&(d.isExport=!0,this._addExportPos(x.symbol,"types"));break}}if(d.isExport){const x=c.line-1,{line:w=0}=this._endExport;x>w&&(this._endExport={line:x,name:d.name})}return this._setUserType(d,b,T),this._setNewFunc(d,b),this._setCopyFunc(d,b),this._setCopyMethod(d,b),d});P(this,"visitTypeElement",n=>{const{children:r,start:a}=n;let c=0;const h={};let d=null,E=null;for(this._currentLine=a.line;c<r.length;c++){const b=r[c];switch(b.ruleIndex){case j.RULE_typeGather:const T=this.visit(b);if(b.children[0].ruleIndex===j.RULE_typeSeries){const{column:x,line:w,text:F}=b.start,R=x+1;this._errors.push({startColumn:R,endColumn:parseInt(R+F.length),startLineNumber:w,endLineNumber:w,message:Se(this._buildinTypes.has(F)?xe.typeUseError:xe.notTypeKeyword,{text:F})}),h.type=z.UNDETERMINED}else h.type=T&&this._typeAddSeries(T);break;case j.RULE_identifier:h.name=this.visit(b),E=b;break;case j.RULE_singleExpression:d=b,h.value=this.visit(b);break;default:b.symbol&&b.symbol.type===j.Varip&&(h.isVarip=!0);break}}return this._typeElementVerify(h,d,E),h});P(this,"visitAssignmentOperator",n=>{const{children:r}=n;return r&&r[0].symbol.text});P(this,"visitTypeMap",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];if(h.ruleIndex===j.RULE_typeName){const d=this.visit(h);c.push(d),this._typeCheck(d,j.RULE_typeName,h)}}return`map<${c[0]},${c[1]}>`});P(this,"visitTypeSeries",n=>{const{children:r}=n,[a,c]=r,h=this.visit(a),d=this.visit(c);return this._typeCheck(h,j.RULE_typeSeries,a),this._typeCheck(d,j.RULE_typeName,c),`${h} ${d}`});P(this,"visitTypeArray",n=>{const{children:r}=n,a=r[0];let c=this.visit(a),h=c;if(r.length===3)c=z.ARRAY;else{this._typeCheck(c,j.RULE_typeArray,a);let d=1;for(;d<r.length;d++){const E=r[d];E.ruleIndex===j.RULE_typeName&&(h=this.visit(E),this._typeCheck(h,j.RULE_typeName,E))}}return this._arrayTypeConvert(`${c}<${h}>`)});P(this,"visitTypeGather",n=>{const{children:r}=n;if(r&&r.length){const a=r[0],c=this.visit(a);return a.ruleIndex===j.RULE_typeName&&this._typeCheck(c,j.RULE_typeName,a),c}return null});P(this,"visitIdentifier",n=>n.children&&n.children[0].symbol.text);P(this,"visitTypeName",n=>{const{children:r}=n;let a=0,c="";for(;a<r.length;a++){const h=r[a];h.ruleIndex===j.RULE_identifier?c=`${c}${this.visit(h)}`:c=`${c}.`}return c});P(this,"visitEnumStatement",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:ye.EnumStatement,fields:[]},E=this._commentsParser(a.line,[Zt.enum,Zt.field]);Object.assign(d,{desc:E[Zt.enum],fieldsDesc:E[Zt.field]}),this._currentLine=a.line;let b={lineNumber:0,column:0},T=null;for(;h<r.length;h++){const x=r[h];switch(x.ruleIndex){case j.RULE_identifier:b={lineNumber:x.start.line,column:x.start.column},T=x,d.name=this.visit(x),this._verifyEnumName(d.name,x);break;case j.RULE_enumElement:d.fields.push(this.visit(x));break;default:x.symbol&&x.symbol.type===j.Export&&(d.isExport=!0,this._addExportPos(x.symbol,"enums"));break}}if(d.isExport){const x=c.line-1,{line:w=0}=this._endExport;x>w&&(this._endExport={line:x,name:d.name})}return this._setUserEnum(d,b,T),d});P(this,"visitEnumElement",n=>{const{children:r,start:a}=n;let c=0;const h={};for(this._currentLine=a.line;c<r.length;c++){const d=r[c];switch(d.ruleIndex){case j.RULE_identifier:h.name=this.visit(d);break;default:d.symbol&&d.symbol.type===j.StringLiteral&&(h.value=d.symbol.text);break}}return h});P(this,"visitName",n=>{const{children:r}=n;let a=0,c=!1;const h=[];let d=null;for(;a<r.length;a++){const E=r[a];switch(E.ruleIndex){case j.RULE_identifier:h.push(this.visit(E));break;case j.RULE_singleExpression:d=this.visit(E);break;case j.RULE_methodElement:c=!0;const b=this.visit(E);b.ctx=E,h.push(b);break}}return this._nameHandle(c,h,d,n)});this._loopCount=0,this._errors=[],this._variables=new Map,this._functions=new Map,this._methods=new Map,this._currentFuncParams=new Map,this._types=new Map,this._enums=new Map,this._currentBlockVars=[new Map],this._blockCount=0,this._isInFunc=!1,this._isNeedCalc=!1,this._blockRanges=[],this._overloadsFuncs=[],this._hasMemberIndex=!1,this._isInLocalScop=!1,this._onlyStatementsCount=0,this._comments=r,this._exportFunctions=[],this._exportMethods=[],this._exportTypes=[],this._exportEnums=[],this._exportPositions=[],this._endExport={},this._importLibs=new Map,this._getImportLibraryFunc=a}get overloadsFuncs(){return this._overloadsFuncs}get errors(){return this._errors}get userEnums(){return this._enums}get userTypes(){return this._types}get userFunctions(){return this._functions}get userVariables(){return this._variables}get userMethods(){return this._methods}get hasUseDrawFunc(){return this._hasDrawFunc}get hasUseCreateOrderFunc(){return this._hasCreateOrderFunc}get scriptType(){return this._scriptType}get exportLibs(){return{functions:[...this._exportFunctions],methods:[...this._exportMethods],types:[...this._exportTypes],enums:[...this._exportEnums]}}get description(){return this._description}get exportPositions(){return this._exportPositions}get endExport(){return this._endExport}get imports(){return this._importLibs}_verifyGloablVar(n,r){const{name:a,varPos:c,isBuiltIn:h}=n;if(h&&this._errorHandle(Se(xe.buidinAssignErr,{name:a}),r),!c)return;const d=this._currentBlockVars[0].get(a);if(!d)return;const{column:E,lineNumber:b}=d.pos||{};this._isInFunc&&E===c.column&&b===c.lineNumber&&this._errorHandle(Se(xe.modifyGlobalVarErr,{name:a}),r)}_inputFuncTitleVerify(n,r){if(!(n!=null&&n.length)||n.length>1)return;const{name:a,args:c,isBuiltIn:h}=n[0];if(h&&!this._strategyFuncName&&a.startsWith(Ui.strategy))this._strategyFuncName={ctx:r,name:a};else if(!a.startsWith(z.INPUT))return;this._inputVarName&&!(c.params.some(d=>d.originName==="title")||c.title)&&(c.title={value:`"${this._inputVarName}"`,ruleType:ye.Literal,type:`${z.CONST} ${z.STRING}`})}_verifyIf(n){const{condition:r}=n;if(r!=null&&r.length)for(const a of r){const{type:c,ctx:h}=a;if(c===z.UNDETERMINED)continue;const d=this._removePrefix(c);[z.INT,z.FLOAT].includes(d)?this._errorHandle(Se(Ir.conditionWarning,{name:"if"}),h,Vn.Warning):d!==z.BOOL&&this._errorHandle(Se(xe.conditionalErr,{name:"if"}),h)}}_verifyForTo(n){const{numerical:r}=n;if(r!=null&&r.length)for(const a of r){const{type:c,ctx:h}=a;if(c===z.UNDETERMINED)continue;const d=this._removePrefix(c);[z.INT,z.FLOAT].includes(d)||this._errorHandle(xe.fortoErr,h)}}_verifySwitch(n){var r;if(n.cases){const a=(r=n.condition)==null?void 0:r.type;if(a===z.UNDETERMINED)return;if(a&&this._types.has(a)){this._errorHandle(Se(xe.typeMismatch,{operator:"switch",index:"expr0",typeE:a,typeR:`${z.SIMPLE} ${z.STRING}`}),n.condition.ctx);return}for(const c of n.cases){const{condition:{type:h,ctx:d}}=c;if(h!==z.UNDETERMINED)if(this._types.has(h))this._errorHandle(Se(xe.typeMismatch,{operator:"case",index:"expr1",typeE:h,typeR:`${z.SIMPLE} ${z.STRING}`}),d);else if(a){if(!this._compareType(a,h)){const E=this._removePrefix(a),b=this._removePrefix(h);E===z.BOOL&&[z.INT,z.FLOAT].includes(b)?this._errorHandle(Se(Ir.conditionWarning,{name:"switch"}),d,Vn.Warning):[z.INT,z.FLOAT].includes(E)&&b===z.BOOL?this._errorHandle(Se(Ir.conditionWarning,{name:"switch"}),n.condition.ctx,Vn.Warning):this._errorHandle(Se(xe.typeMismatch,{operator:"case",index:"expr1",typeE:h,typeR:`${a}`}),d)}}else{const E=this._removePrefix(h);[z.INT,z.FLOAT].includes(E)?this._errorHandle(Se(Ir.conditionWarning,{name:"switch"}),d,Vn.Warning):E!==z.BOOL&&this._errorHandle(Se(xe.conditionalErr,{name:"switch"}),d)}}}}_verifyWhile(n){const{condition:r}=n;if(r){const{type:a,ctx:c}=r;if(a===z.UNDETERMINED)return;const h=this._removePrefix(a);[z.INT,z.FLOAT].includes(h)?this._errorHandle(Se(Ir.conditionWarning,{name:"while"}),c,Vn.Warning):h!==z.BOOL&&this._errorHandle(Se(xe.conditionalErr,{name:"while"}),c)}}async _importHandle(n,r){const{stop:a,start:c}=r,{username:h,libraryName:d,libraryVersion:E,name:b}=n,T=`${h}/${d}/${E}`;if(this._importLibs.has(T))return this._errorHandle(xe.importMultipleErr,r),n;for(const[F,R]of this._importLibs)if(R.name&&R.name===b||!R.name&&!b&&R.libraryName===d)return this._errorHandle(Se(xe.importNameRepeatErr,{name:b,line:R.startLine}),r),n;let x=b||d;const w=await this._getImportLibraryFunc({...n,libraryId:T,ctx:void 0,startLine:c.line,endLine:a.line,startColumn:c.column,endColumn:a.column+a.text.length+1});if(w){const{codeStr:F,description:R}=w;this._importLibs.set(T,{...n,libraryId:T,startLine:c.line,endLine:a.line,ctx:void 0,desc:R}),this._importDataHandle(w,x),Nn.includes(x)&&(x=`$${x}`),n.code=F.replace("$name",x)}else this._errorHandle(Se(xe.importNotExitErr,{username:h,libraryName:d}),r)}_importDataHandle(n,r){const{functions:a,methods:c,types:h}=n;for(const d of a){const{name:E}=d,b=`${r}.${E}`,T=this._functions.get(b)||[];T.push({...this._importTypeUpdate(d,h,r),name:b,isUser:void 0,isImport:!0}),this._functions.set(b,T)}for(const d of c){const E=this._importTypeUpdate(d,h,r),b=E.originalName||E.name,T=this._methods.get(b)||[];T.push({...E,isImport:!0,isUser:void 0}),this._methods.set(b,T)}for(const d of h){const E=`${r}.${d.name}`,b=this._types.get(E)||[];b.push({...this._importTypeUpdate(d,h,r),name:E,isImport:!0}),this._types.set(E,b)}}_importTypeUpdate(n,r,a){var F;let{args:c,returnedTypes:h,thisType:d,fields:E,name:b,originalName:T}=n,x="";if(c&&c.length&&(c=c.map(R=>{const{allowedTypeIDs:v,displayType:p,name:g}=R,A=p&&this._replaceTypeName(p,r,a);return x=x?`${x}, ${A} ${g}`:`${A} ${g}`,{...R,allowedTypeIDs:v==null?void 0:v.map(O=>this._replaceTypeName(O,r,a)),displayType:A}})),h!=null&&h.length&&(h=[this._replaceTypeName(h[0],r,a)]),d!=null&&d.length){const R=this._replaceTypeName(d[0],r,a);R!==d[0]&&(T=`${a}.${T||b}`),d=[R]}E!=null&&E.length&&(E=E.map(R=>{const{type:v}=R;return{...R,type:v&&this._replaceTypeName(v,r,a)}}));const w={...n,args:c,returnedTypes:h,thisType:d,fields:E,originalName:T};return(F=w.syntax)!=null&&F.length&&(w.syntax=[`${T||`${a}.${b}`}(${x}) → ${(h==null?void 0:h[0])||"void"}`]),w}_replaceTypeName(n,r,a){const c=r.find(h=>n.includes(h.name));return c?n.replace(c.name,`${a}.${c.name}`):n}_verifyArgsDefaultValue(n,r){const{defaultValue:a,type:c}=n;if(!a)return;const{ruleType:h,isBuiltIn:d,type:E}=a,b=this._removePrefix(E);if(h!==ye.Literal&&!d)delete n.defaultValue,this._errorHandle(xe.argDefaultErr,r);else if(c&&c!==z.UNDETERMINED&&E!==z.UNDETERMINED){const T=this._removePrefix(c);if(T===z.FLOAT&&b===z.INT)return;b!==T&&this._errorHandle(Se(xe.defaultValueTypeErr,{typeE:E,typeR:c}),r)}else c||(n.type=this._typeAddSeries(b===z.INT?z.FLOAT:b))}_exportArgsTypeVerify(n){for(const r of n)(r.type===z.UNDETERMINED||!r.type)&&this._errorHandle(xe.exportFuncArgErr,r.ctx)}_verifyTypeName(n,r){mu.includes(n)?this._errorHandle(Se(xe.typeNameErr,{name:n}),r):Tp.includes(n)&&this._errorHandle(Se(xe.enumVarNameBuiltinErr,{name:n}),r)}_addExportPos(n,r){const{line:a,column:c,text:h}=n;this._exportPositions.push({startLineNumber:a,startColumn:c,endLineNumber:a,endColumn:c+h.length+1,type:r})}_verifyEnumName(n,r){mu.includes(n)?this._errorHandle(Se(xe.enumVarNameErr,{name:n}),r):Tp.includes(n)&&this._errorHandle(Se(xe.enumVarNameBuiltinErr,{name:n}),r)}_nameHandle(n,r,a,c){var d,E;const h={ruleType:ye.Name,hasMethod:n,exprs:r,expr:a};if(n){let b="";const T=[];for(const w of r)typeof w=="string"?b=b?`${b}.${w}`:w:(b&&(w.name=`${b}.${w.name}`),T.push(w),b="");h.exprs=[...T,b];const x=this._getMethodTypes(T,Array.from(T,()=>c));if(x&&x.length){const w=Se(xe.noFiledErr,{name:b});x.length>1&&this._errorHandle(w,c),h.type=((E=this._nameCheck(this._getOriginMethodName(x[0],b),c,w))==null?void 0:E.type)||z.UNDETERMINED}}else{let b=r.join(".");if(a&&a.type&&a.type===z.UNDETERMINED)h.type=z.UNDETERMINED,b=`expr0.${b}`;else{a&&a.type&&(b=`${this._getMethodTypeName(a.type)}.${b}`);const T=this._nameCheck(b,c)||{};(d=T.title)!=null&&d.startsWith("built-in")&&(h.isBuiltIn=!0,h.isConst=T.isConst,!this._strategyVarName&&b.startsWith(Ui.strategy)&&(this._strategyVarName={ctx:c,name:b})),h.enumName=T.enumName,h.varPos=T.pos,h.varScope=T.scope,h.declare=T.declare,h.type=(T==null?void 0:T.type)||z.UNDETERMINED,T!=null&&T.isArg&&(h.arg=T),h.scope=this._blockCount,T.isEnum?this._errorHandle(Se(xe.enumUseErr,{name:b}),c):this._isInFunc&&this._currentExportFunc&&(h.type.startsWith(z.INPUT)?this._errorHandle(Se(xe.exportFuncHasInputErr,{name:b,func:this._currentExportFunc}),c):T.scope===0&&this._errorHandle(Se(xe.exportFuncUseGlobalVarErr,{func:this._currentExportFunc}),c))}h.name=b}return h}_typeElementVerify(n,r,a){var E,b;const{type:c,value:h}=n;if(!h){c||this._errorHandle(xe.typeFieldErr,a);return}if(![ye.Literal,ye.UnaryExpression].includes(h.ruleType)&&!h.isBuiltIn){this._errorHandle(xe.defaultValueErr,r);return}else if(h.ruleType===ye.UnaryExpression){const{exprs:T}=h;if(![ye.Literal,ye.UnaryExpression].includes((E=T[0])==null?void 0:E.ruleType)&&!((b=T[0])!=null&&b.isBuiltIn)){this._errorHandle(xe.defaultValueErr,r);return}}if(!c){const T=h.type,x=this._getPrefix(T);n.type=x?this._typeAddSeries(this._removePrefix(T)):T;return}(!this._compareType(c,h.type)||c.endsWith(z.INT)&&h.type.endsWith(z.FLOAT))&&this._errorHandle(Se(xe.defaultValueTypeErr,{typeE:h.type,typeR:c}),r)}_memberIndexVerify(n,r){if(n.ruleType===ye.Name&&!n.hasMethod&&this._blockCount){const c=this._currentBlockVars[this._blockCount],h=c&&c.get(n.name);h&&(h.isForVar?this._errorHandle(Se(xe.notHistoryErr,{name:n.name}),r):!(this._blockCount===1&&this._isInFunc)&&this._errorHandle(Se(Ir.localScopeGetHistory,{name:n.name}),r,Vn.Warning))}const a=n&&n.type;if(a){const c=this._removePrefix(a);!this._types.has(c)&&!this._buildinTypes.has(c)&&!this._isArrayType(c)&&!this._isMatrixType(c)&&!this._isMapType(c)&&c!==z.UNDETERMINED&&this._errorHandle(Se(xe.invalidType,{index:0}),r)}}_setFuncParams(n,r){var a;for(const c of n.params){const h=(a=this._types.get(c.type))==null?void 0:a[0];if(c.scope=this._blockCount+1,h&&h.fields)for(const d of h.fields){const E=`${c.name}.${d.name}`;this._currentFuncParams.set(E,{...d,originName:E,varScope:c.scope})}delete c.ctx,c.range=r,this._setVariablesMap(c,!0),this._currentFuncParams.set(c.name,c)}}_pushBlockRanges(n){!n||!n.start||!n.stop||this._blockRanges.push({startColumn:n.start.column,endColumn:n.stop.column,startLineNumber:n.start.line,endLineNumber:n.stop.line})}_setUserEnum(n,r,a){const{fields:c,name:h,desc:d,fieldsDesc:E}=n,b={members:c.map(T=>({name:T.name,value:T.value,enumName:h,isEnumMember:!0,desc:E==null?void 0:E[T.name],type:`${z.CONST} ${h}`})),name:h,desc:d,pos:r};if(this._enums.has(h)){this._errorHandle(Se(xe.typeRepeatErr,{name:h,keyword:Zt.enum}),a);return}else if(this._types.has(h)){this._errorHandle(Se(xe.typeRepeatErr,{name:h,keyword:Zt.type}),a);return}n.isExport&&this._exportEnums.push(b),this._enums.set(h,[{...b}]),this._addEnumToMap(h,h,r)}_setUserType(n,r,a){const{fields:c,name:h,desc:d,fieldsDesc:E}=n,b={fields:c.map(T=>({name:T.name,desc:E==null?void 0:E[T.name],type:T.type})),name:h,desc:d,pos:r};if(this._enums.has(h)){this._errorHandle(Se(xe.typeRepeatErr,{name:h,keyword:Zt.enum}),a);return}else if(this._types.has(h)){this._errorHandle(Se(xe.typeRepeatErr,{name:h,keyword:Zt.type}),a);return}n.isExport&&this._exportTypes.push(b),this._types.set(h,[{...b}]),this._addVarToMap(h,h,r,!1,!1)}_againAssignHandle(n,r,a){const c=a!==":="?a.replace("=",""):a,h=a!==":="?[z.UNDETERMINED,z.INT,z.FLOAT]:[];c==="+"&&h.push(z.STRING);const[d,E]=n;d.arg&&!d.name.includes(".")&&this._errorHandle(Se(xe.funcArgAssignErr,{name:d.name}),r[0]);const b=this._sameTypeJudge(n,r,c,h),T=this._typeHandle(b);return this._updateUserVar(d.name,T,E.type),d.type=T,{ruleType:ye.AgainAssign,name:d,operator:a,type:T,value:E}}_typeCheck(n,r,a){const c=[z.SERIES,z.SIMPLE,z.CONST];switch(r){case j.RULE_typeName:const h=this._buildinTypes.get(n);h&&![...c,z.ARRAY,z.MATRIX,z.MAP].includes(h[0].name)||this._types.get(n)||this._errorHandle(Se(xe.notTypeKeyword,{text:n}),a);break;case j.RULE_typeArray:[z.ARRAY,z.MATRIX].includes(n)||this._errorHandle(xe.tempateTypeErr,a);break;case j.RULE_typeSeries:c.includes(n)||this._errorHandle(Se(xe.qualifierErr,{name:n}),a);break}}_getBuildVar(n){const r=this._buildinVariables.get(n);if(r&&r[0])return r[0];const a=this._buildinConstants.get(n);return a&&a[0]?Object.assign(a[0],{isConst:!0}):this._specialTreatmentChartPoint(n)}_specialTreatmentChartPoint(n){var r,a;if(n.startsWith("chart.point")){const c=n.split("."),h=c.pop(),d=c.join(".");return(((a=(r=this._buildinTypes.get(d))==null?void 0:r[0])==null?void 0:a.fields)||[]).find(b=>b.name===h)}}_verifyName(n,r){var c,h;const a=this._getBuildVar(n);if(a)return a;if(n.includes(".")){const d=n.split("."),E=d.pop(),b=d.join(".");let T=this._blockCount;for(;T>=0;){if(!this._currentBlockVars[T]){T--;continue}const w=this._currentBlockVars[T].get(b);if(r&&this._judgeGatherValue(E||"",r,w==null?void 0:w.valueType,!0),(w==null?void 0:w.type)==="chart.point"){const R=(((h=(c=this._buildinTypes.get(w.type))==null?void 0:c[0])==null?void 0:h.fields)||[]).find(v=>v.name===E);if(R)return Object.assign(R,{pos:w.pos})}T--}const x=this._specialTreatmentChartPoint(n);if(x)return x}return this._getUserVar(n)}_judgeGatherValue(n,r,a,c){return a!==`${z.SIMPLE} ${z.NA}`?!0:(c&&this._errorHandle(Se(xe.objectIsNaErr,{name:n,type:"field"}),r),!1)}_nameCheck(n,r,a=Se(xe.undeclared,{name:n})){const c=this._verifyName(n,r);return c||this._errorHandle(a,r),c}_inBlock(n){this._blockCount++,this._pushBlockRanges(n);const r=this.visit(n);return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),r}_errorHandle(n,r,a=Vn.Error){this._errors.push({message:n,startColumn:r.start.column+1,startLineNumber:r.start.line,endColumn:r.start.column+2+r.stop.stop-r.start.start,endLineNumber:r.stop.line,type:a})}_boolTypeJudge(n,r,a,c=0){return this._typeJudge(n,r,a,z.BOOL,[z.UNDETERMINED,z.INT,z.FLOAT,z.BOOL],c)}_calcTypeJudge(n,r,a,c=0){return this._typeJudge(n,r,a,"int/float",[z.UNDETERMINED,z.INT,z.FLOAT],c)}_typeJudge(n,r,a,c,h,d=0){const E=n&&n.type;if(E){const b=this._removePrefix(E);if(!h.includes(b)&&b!==z.NA)return this._errorHandle(Se(xe.typeMismatch,{operator:`operator ${a}`,index:`expr${d}`,typeE:b,typeR:c}),r),z.UNDETERMINED;c===z.BOOL&&[z.INT,z.FLOAT].includes(b)&&this._errorHandle(Se(Ir.typeMismatch,{operator:`operator ${a}`,index:`expr${d}`,type:z.BOOL}),r,Vn.Warning)}return E||z.UNDETERMINED}_sameTypeJudge(n,r,a,c){let h="";const d=[],E=["plot_display","plot_simple_display"];["+","-","+=","-="].includes(a)&&(c=c.concat(E));for(const[b,T]of n.entries()){let x=T&&T.type||z.UNDETERMINED;const w=this._removePrefix(x);if(h||(h=w),!c.includes(w)&&c.length&&w!==z.NA){this._errorHandle(Se(xe.typeMismatch,{operator:`operator ${a}`,index:`expr${b}`,typeE:x,typeR:c.slice(1).join("/")}),r[b]),h=z.UNDETERMINED,d.push(h);continue}if(h===z.UNDETERMINED||w===z.UNDETERMINED)x=h=z.UNDETERMINED;else if(h!==w&&h!==z.NA&&w!==z.NA&&(![z.INT,z.FLOAT].includes(h)||![z.INT,z.FLOAT].includes(w)))if(a===":=")this._errorHandle(Se(xe.assignTypeMismatch,{typeE:w,name:n[0].name,typeR:h}),r[0]),x=h=z.UNDETERMINED;else if(["==","!=","?:"].includes(a)&&[z.INT,z.FLOAT,z.BOOL].includes(h)&&[z.INT,z.FLOAT,z.BOOL].includes(w))this._errorHandle(Se(Ir.typeMismatch,{operator:`operator ${a}`,index:`expr${b}`,type:h}),r[b],Vn.Warning),x=h=z.UNDETERMINED;else if(E.includes(h)&&E.includes(w)){if(h!==w){const F=this._getPrefix(x);d[b-1]=`${this._getPrefix(d[b-1])} ${E[0]}`,x=h=`${F} ${E[0]}`}}else this._errorHandle(Se(xe.typeMismatch,{operator:`operator ${a}`,index:`expr${b}`,typeE:w,typeR:h}),r[b]),x=h=z.UNDETERMINED;d.push(x)}return d}_getUserVar(n,r=!1){for(let a=this._blockCount;a>=0;a--){const c=this._currentBlockVars[a];if(a<=0){const h=this._currentFuncParams.get(n);if(h)return h.isArg=!0,h}if(c){const h=c.get(n);if(h)return h}}if(n.includes(".")&&!r){let a=!1,c=null;if(n.split(".").reduce((h,d)=>{let E=h?`${h}.${d}`:d;const b=this._getUserVar(E,!0);return b!=null&&b.type?b.type===z.UNDETERMINED?a=!0:(E=b.type,c=b):c=null,E},""),a)return{name:n,type:z.UNDETERMINED};if(c)return c}return null}_repeatVarJudge(n,r){this._getBuildVar(n)&&this._errorHandle(Se(xe.buidinVarErr,{name:n}),r);for(let c=0;c<=this._blockCount;c++){const h=this._currentBlockVars[c];if(h&&h.get(n)){if(this._blockCount===c)return this._errorHandle(Se(xe.repeatVar,{name:n}),r),!0;this._errorHandle(Se(Ir.repeatVar,{name:n}),r,Vn.Warning)}}}_judgeVarBuildIn(n){for(let r=0;r<=this._blockCount;r++){const a=this._currentBlockVars[r];if(a&&a.get(n))return!0}return!1}_updateUserVar(n,r,a){for(let c=0;c<=this._blockCount;c++){const h=this._currentBlockVars[c];if(h){const d=h.get(n);if(d){d.type=r,d.valueType=a;return}}}}_variablesHandle(n,r){var h,d,E,b;if(!(n&&n.nameList))return;const a=n.nameList;if(a.name==="_")return;const c=n.value;if(a.ruleType===ye.VarMultiple){a.types=[],this._checkVarMultiple(a.names,c,r);for(const[T,x]of a.names.entries()){const w=this._varTypeJudge("",((h=c==null?void 0:c.types)==null?void 0:h[T])||z.UNDETERMINED,r);a.types.push(w),this._addVarToMap(x,w,a.posList[T],!0)}}else{const T=(c==null?void 0:c.type)||((d=c==null?void 0:c.returnedTypes)==null?void 0:d[0]);((E=c==null?void 0:c.types)!=null&&E.isBrackethesized||(b=c==null?void 0:c.returnedTypes)!=null&&b.isBrackethesized)&&this._errorHandle(Se(xe.tupleLeftVarErr,{name:a.name}),r),!a.type&&T===`${z.SIMPLE} ${z.NA}`&&this._errorHandle(xe.naVarErr,r),a.prefix&&Vi.indexOf(a.prefix)>Vi.indexOf(this._getPrefix(T))&&this._errorHandle(Se(xe.declaredErr,{prefix:a.prefix,type:T}),r);const x=this._varTypeJudge(a.type,T||z.UNDETERMINED,r);a.type=x,this._addVarToMap(a.name,x,a.pos,!0,a.isForVar,a.declare,c.type,a.desc)}}_checkVarMultiple(n,r,a){var b,T,x,w;const c=n.length,h=(r.types||r.returnedTypes||[]).length,d=((b=r.types)==null?void 0:b.isBrackethesized)||((T=r.returnedTypes)==null?void 0:T.isBrackethesized);(x=r.types)!=null&&x.isUnknown||(w=r.returnedTypes)!=null&&w.isUnknown||(h===1&&!d||!h?this._errorHandle(xe.tupleRightVarErr,a):c!==h&&this._errorHandle(Se(xe.tupleVarErr,{indexA:h,indexB:c}),a))}_addEnumToMap(n,r,a){var E;const c=this._currentBlockVars[this._blockCount]||new Map,h=(E=this._enums.get(n))==null?void 0:E[0];if(h&&h.members)for(const b of h.members)c.set(`${n}.${b.name}`,b);const d={name:n,isEnum:!0,type:`${z.CONST} ${r}`,pos:a};c.set(n,d),this._currentBlockVars[this._blockCount]=c}_addVarToMap(n,r,a,c=!0,h=!1,d,E,b){var F;const T=this._currentBlockVars[this._blockCount]||new Map,x=(F=this._types.get(r))==null?void 0:F[0];if(x&&x.fields)for(const R of x.fields)T.set(`${n}.${R.name}`,R);const w={name:n,type:r,pos:a,valueType:E,desc:b};c&&this._setVariablesMap(w),T.set(n,Object.assign(w,{isForVar:h,declare:d})),this._currentBlockVars[this._blockCount]=T}_setVariablesMap(n,r=!1){const a=this._blockRanges[this._blockCount];r||(n.range=a,n.scope=this._blockCount);const c=this._variables.get(n.name)||[];c.push(n),this._variables.set(n.name,c)}_varTypeJudge(n,r,a){if(r===z.VOID)return this._errorHandle(xe.voidNotVar,a),z.UNDETERMINED;if(n&&r!==z.UNDETERMINED){const c=this._removePrefix(n),h=this._removePrefix(r);return h!==c&&h!==z.NA&&!(c===z.FLOAT&&h===z.INT)?(this._errorHandle(Se(xe.declareTypeErr,{type:n,valueType:r}),a),z.UNDETERMINED):this._typeHandle([n,r])}else if(r===z.UNDETERMINED)return z.UNDETERMINED;return n||r||z.UNDETERMINED}_getAllowTypes(n){const r=[];if(n===z.UNDETERMINED)return r;const a=this._getPrefix(n);if(a){const c=this._removePrefix(n);let h=-1;for(const[d,E]of Vi.entries())E===a&&(h=d),h>=0&&h<=d&&(c===z.FLOAT&&r.push(`${E} ${z.INT}`),r.push(`${E} ${c}`))}else n=this._arrayTypeConvert(n)||"",r.push(n),n.includes(z.FLOAT)&&r.push(n.replace(/float/,z.INT));return r}_setNewFunc(n,r){const a=`${n.name}.new`,c=[],h=[];for(const E of n.fields)c.push({name:E.name,required:!1,allowedTypeIDs:this._getAllowTypes(E.type),displayType:E.type}),h.push(`${E.type} ${E.name}`);const d={name:a,args:c,returnedTypes:[n.name],pos:r,syntax:[`${a}(${h.join(", ")}) → ${n.name}`]};n.isExport&&this._exportFunctions.push(d),this._functions.set(a,[{...d,isUser:!0}])}_setCopyFunc(n,r){const a=n.name,c=`${a}.copy`,h={name:c,args:[{name:"object",required:!0,allowedTypeIDs:[a],displayType:a}],returnedTypes:[a],pos:r,info:"The identifier of the object to be copied.",syntax:[`${c}(${a} object) → ${a}`]};n.isExport&&this._exportFunctions.push(h),this._functions.set(c,[{...h,isUser:!0}])}_setCopyMethod(n,r){const a=n.name,c=`${a}.copy`,h={name:c,originalName:c,args:[],returnedTypes:[a],thisType:[a],pos:r,syntax:[`${c}() → ${a}`]};n.isExport&&this._exportMethods.push(h),this._methods.set(c,[{...h,isUser:!0}])}_setFunc(n,r,a,c){const h=[],d=[],{desc:E,paramsDesc:b,returnsDesc:T,params:x,hasMemberIndex:w}=n;for(const A of x){const{type:O,name:D,defaultValue:I}=A;h.push({name:D,desc:b==null?void 0:b[D],required:!I,allowedTypeIDs:this._getAllowTypes(O),displayType:O}),d.push(`${O===z.UNDETERMINED?"":`${O} `}${D}`)}const{returnedTypes:F=[]}=n,R=n.name,v=F.length>1?`[${F.join(", ")}]`:F.toString(),p={name:R,desc:E,args:h,syntax:[`${R}(${d.join(", ")}) → ${v||"void"}`],hasMemberIndex:w,pos:r,isUser:!0,returnedTypes:F,returns:T,hasRequest:this._hasRequest};let g=this._functions.get(R);if(g){const A=g.length;p.index=A,n.index=A,this._verifyFuncRepeat(g,p,a),g.push(p),this._overloadsFuncs.push({name:R,index:A,line:r.lineNumber,startColumn:r.column+1,endColumn:r.column+R.length})}else g=[p];if(n.isExport){const{line:A=0}=this._endExport;c>A&&(this._endExport={line:c,name:R,index:p.index}),this._exportFunctions.push(p)}this._functions.set(R,g)}_setMethod(n,r){var O;const{name:a,returnedTypes:c,params:h,desc:d,paramsDesc:E,returnsDesc:b}=n,T=h[0].type,x=[],w=[];for(const D of h.slice(1)){const{type:I,name:L,defaultValue:H}=D;x.push({name:L,desc:E==null?void 0:E[L],required:!H,allowedTypeIDs:this._getAllowTypes(I),displayType:I}),w.push(`${I} ${L}`)}const F=c.length>1?`[${c.join(", ")}]`:c.toString(),R=this._getMethodTypeName(T),v=`${R}.${a}`;n.typeName=R;const p={name:a,args:x,desc:d,originalName:v,syntax:[`${a}(${w.join(", ")}) → ${F||"void"}`],returnedTypes:c,hasMemberIndex:n.hasMemberIndex,pos:r,thisType:[T],returns:b,hasRequest:this._hasRequest};let g=this._methods.get(v),A=this._functions.get(a);if(A){const D=A.filter(H=>!H.isImport).length,I=((O=g==null?void 0:g.filter(H=>!H.isImport))==null?void 0:O.length)||0;let L=D;D>I&&(L=D-1),p.index=L,n.index=L}g?g.push(p):g=[p],n.isExport&&this._exportMethods.push(p),this._methods.set(v,g)}_verifyFuncRepeat(n,r,a){const{args:c}=r;n.some(d=>{const{args:E}=d;return(E==null?void 0:E.length)!=(c==null?void 0:c.length)?!1:!(E!=null&&E.length)&&!(c!=null&&c.length)?!0:E==null?void 0:E.every((b,T)=>{var x;return b.displayType===((x=c==null?void 0:c[T])==null?void 0:x.displayType)})})&&this._errorHandle(Se(xe.funcRepeatErr,{name:r.name}),a)}_getMethodTypes(n,r){let a;for(const[c,h]of n.entries()){const{type:d,expr:E,args:b}=h;let{name:T}=h;const x=r[c];if(E){if(E.type===z.UNDETERMINED)return[z.UNDETERMINED];T=`${this._getMethodTypeName(E.type)}${T}`,b.params.unshift(E)}if(a&&a.length>=1)if(a.length===1){const w=a[0];if(w===z.UNDETERMINED)return[z.UNDETERMINED];const F=this._getOriginMethodName(w,T);T.includes(".")?a=this._getOtherNamesMethodType(F,a,x,b,h):a=this._expandMethodHandle(F,x,b,{type:w},w,h)}else this._errorHandle(Se(xe.noFiledErr,{name:T}),x);else{const[w,F]=this._tempFuncNameHandle(T,x,d);T=F;const R=this._buildinFunctions.get(w);if(R)this._globalFuncVerify(R[0],x),this._hasMemberIndexVerify(R[0],x,h),h.isBuiltIn=!0,a=this._getBuildInReturnTypes(R,b,T,x,void 0,d);else{const v=this._functions.get(T);if(v)if(v.length<=1){this._hasMemberIndexVerify(v[0],x,h),a=v[0].returnedTypes;const{hasErr:p}=this._checkArgs(b,v[0].args||[],T,x,a[0]);if(p)return[z.UNDETERMINED]}else{const p=this._overloadsFuncGetTypes(v,b,x,void 0,h);a=this._returnedTypesParse([p])}else a=this._getOtherNamesMethodType(T,a,x,b,h)}}h.returnTypes=a}return a===void 0&&this._errorHandle(Se(xe.notFindFuncErr,{name:n[0].name}),r[0]),a}_globalFuncVerify(n,r){this._blockCount!==0&&uy.includes(n.name)&&this._errorHandle(Se(xe.globalFuncErr,{name:n.name}),r)}_hasMemberIndexVerify(n,r,a){n.hasRequest&&(a.hasRequest=!0,this._hasRequest=!0),n.hasMemberIndex||n.name.startsWith("ta.")||n.name==="math.sum"?(this._hasMemberIndex=this._isInFunc,a.hasMemberIndex=!0,a.position=r.start.tokenIndex):n.name.startsWith("request.")&&this._isInLocalScop&&this._errorHandle(xe.requestUserInLoopErr,r)}_tempFuncNameHandle(n,r,a){let c=n;if(a&&a.length>=1){const h=["array.new","matrix.new"].includes(n),d=n==="map.new";if(a.length===1)if(h)c=`${n}<type>`,n=`${n}<${a[0]}>`;else return d?this._errorHandle(Se(xe.templateErr,{countA:2,countB:1}),r):this._errorHandle(Se(xe.templateNoSupportErr,{name:n}),r),[z.UNDETERMINED];else{if(!d)return h?this._errorHandle(Se(xe.templateErr,{countA:1,countB:2}),r):this._errorHandle(Se(xe.templateNoSupportErr,{name:n}),r),[z.UNDETERMINED];if(!mu.includes(a[0]))return this._errorHandle(Se(xe.mapKeyErr,{type:this._typeAddSeries(a[0])}),r),[z.UNDETERMINED];c=`${n}<type,type>`,n=`${n}<${a[0]},${a[1]}>`}}return[c,n]}_getOtherNamesMethodType(n,r,a,c,h){const d=n.split("."),E=d.length-1,b=d.slice(0,E).join("."),T=this._getUserVar(b);this._judgeGatherValue(d[E],a,T==null?void 0:T.valueType)||(h.name=`${b}?.${d[E]}`);const w=T==null?void 0:T.type;if(w){if(w===z.UNDETERMINED)return r=[z.UNDETERMINED],r.isUnknown=!0,r;const F=this._getOriginMethodName(w,d[E]);h.varScope=T.scope,r=this._expandMethodHandle(F,a,c,T,b,h)}else{let F="",R="",v="";for(const p of d.slice(0,E)){F?R=this._getOriginMethodName(F,p):R=R?`${R}.${p}`:p;const g=this._verifyName(R);g!=null&&g.type?(F=g.type,v=""):this._buildinTypes.get(R)?v=Se(xe.methodNotExistErr,{name:R,methodName:d[E]}):v=Se(xe.noFiledErr,{name:p})}v&&this._errorHandle(v,a)}return r}_expandMethodHandle(n,r,a,c,h,d){var T,x;let E;const b=this._buildinMethods.get(n);if(b)d.name=d.name.split(".").join("?."),E=this._getBuildInReturnTypes(b,a,n,r,c);else{const w=this._methods.get(n);if(w&&w.length)if(w.length<=1){const F=w[0],R=this._getMethodTypeName(((T=F.thisType)==null?void 0:T[0])||"");if(this._types.get(R))d.name=d.name.split(".").join("?.");else{const g=this._functions.get(F.name);g&&(d.selfArg=(x=g[F.index||0].args)==null?void 0:x[0])}d.funcName=F.name,d.index=F.index,this._hasMemberIndexVerify(F,r,d),E=F.returnedTypes;const{hasErr:p}=this._checkArgs(a,F.args||[],n,r,(E==null?void 0:E[0])||"");if(p)return[z.UNDETERMINED]}else{const F=this._overloadsFuncGetTypes(w,a,r,c,d);E=this._returnedTypesParse([F])}else this._errorHandle(Se(xe.methodNotExistErr,{methodName:n.split(".").slice(-1)[0],name:h}),r)}return E}_getBuildInReturnTypes(n,r,a,c,h,d){var b;let E;if(n.length===1){const{returnedTypes:T,syntax:x,args:w=[],thisType:F}=n[0],R=x[0].split("→")[1].trim(),v=h||r.params[0]||((b=w[0])==null?void 0:b.name)&&r[w[0].name];v&&!this._checkMethodThisType(F,v.type)&&this._errorHandle(Se(xe.typeMismatch,{operator:a,index:v.name||"id",typeE:v.type,typeR:F[0]}),c);const{hasErr:p,types:g}=this._checkArgs(r,w,a,c,R,v);if(p)return[z.UNDETERMINED];if(E=g.length&&g||this._returnedTypesParse(T),E.length>1)return E;(d==null?void 0:d.length)===1?E=[this._typeReplace(R,d[0])]:(d==null?void 0:d.length)===2&&(E=[`${z.MAP}<${d[0]},${d[1]}>`]),E=this._returnTypesOtherHandle(v,R,E,a)}else{const T=this._overloadsFuncGetTypes(n,r,c,h);E=this._returnedTypesParse([T])}return E}_overloadsFuncGetTypes(n,r,a,c,h){var F,R,v;let d="",E=[],b=[],T=0;for(const[p,g]of n.entries()){const{args:A,returnedTypes:O,name:D,thisType:I}=g,L=c||r.params[0]||r[A[0].name],{errMsg:H,warnMsg:M}=this._overloadsCheckArgs(r,A,D,a,L);L&&!this._checkMethodThisType(I,L.type)&&H.unshift({msg:Se(xe.typeMismatch,{operator:D,index:L.name||"id",typeE:L.type,typeR:I[0]}),ctx:a}),p===0?(E=H,b=M,!H.length&&(d=O[0])):H.length?((F=E[0])!=null&&F.isLenErr&&!((R=H[0])!=null&&R.isLenErr)||E.length>H.length)&&(E=H,b=M,T=p):this._priorityComparison(d,O[0])||(O[0]===`${z.ARRAY}<>`?d=`${L.type}[]`:d=O[0],E=H,b=M,T=p)}for(const p of E)this._errorHandle(p.msg,p.ctx);for(const p of b)this._errorHandle(p.msg,p.ctx,Vn.Warning);const x=a.children[0],w=n[0].name;if(x&&this._overloadsFuncs.push({name:w,index:T,line:x.start.line,startColumn:x.start.column+1,endColumn:x.start.column+w.length}),h){const p=n[T],{thisType:g,name:A,index:O}=p;if(this._hasMemberIndexVerify(p,a,h),h.index=O||T,g){const D=this._getMethodTypeName((g==null?void 0:g[0])||"");if(this._types.get(D))h.name=h.name.split(".").join("?.");else{const L=this._functions.get(A);L&&(h.selfArg=(v=L[0].args)==null?void 0:v[0])}}}return this._funcArgsAddOriginName(r,n[T].args,w),d||z.UNDETERMINED}_funcArgsAddOriginName(n,r,a){const c=n.params||[];for(const[h,d]of r.entries())h<c.length&&(c[h].originName=d.name);if(a==="input"){const h=c[0]||n.defval;Object.assign(n,{inputType:{name:`'${h!=null&&h.isSourceType?"source":this._removePrefix(h==null?void 0:h.type)}'`}})}}_overloadsCheckArgs(n,r,a,c,h){const d={...n},E=d.params;delete d.params;const b=Object.keys(d).length+E.length,T=r.length,x=[],w=[];if(b>T&&!r.some(R=>["arg0, arg1, ...","number0, number1, ..."].includes(R.name)))return x.push({msg:Se(xe.argsLenErr,{name:a,lenA:b,lenB:T}),isLenErr:!0,ctx:c}),{errMsg:x,warnMsg:w};for(const[F,R]of r.entries()){let v=d[R.name];if(F<E.length&&(v&&w.push({msg:Se(Ir.moreSameArg,{arg:R.name}),ctx:c}),v=E[F]),!v)R.required&&x.push({msg:Se(xe.requiredParamErr,{name:a,argName:R.name}),ctx:c});else{const p=v.type!==`${z.SIMPLE} na`?this._checkArg(v,R,a,h,v.ctx,!0):"";p&&x.push({msg:p,ctx:v.ctx}),delete d[R.name]}if(["arg0, arg1, ...","number0, number1, ..."].includes(R.name)&&E.length>F+1){const p=E.slice(F+1);let g=E[F];for(const A of p){g.type===`${z.SIMPLE} ${z.NA}`&&(g=A);const O=A.type!==`${z.SIMPLE} ${z.NA}`?this._checkArg(A,R,a,g,A.ctx,!0):"";O&&x.push({msg:O,ctx:A.ctx})}}}if(Object.keys(d).length)for(const F of Object.keys(d))x.push({msg:Se(xe.argsNameErr,{name:a,argName:F}),ctx:d[F].ctx});return{errMsg:x,warnMsg:w}}_checkArgs(n,r,a,c,h,d){var R;const E={...n},b=E.params;delete E.params;const T=Object.keys(E).length+b.length,x=r.length;let w=!1,F=[];if(T>x&&!r.some(p=>["arg0, arg1, ...","number0, number1, ..."].includes(p.name)))return this._errorHandle(Se(xe.argsLenErr,{name:a,lenA:T,lenB:x}),c),w=!0,{hasErr:w,types:F};for(const[v,p]of r.entries()){let g=E[p.name];if(v<b.length&&(g&&this._errorHandle(Se(Ir.moreSameArg,{arg:p.name}),c,Vn.Warning),g=b[v],g.originName=p.name),!g)p.required&&(this._errorHandle(Se(xe.requiredParamErr,{name:a,argName:p.name}),c),w=!0);else{const A=g.type!==`${z.SIMPLE} ${z.NA}`?this._checkArg(g,p,a,d,g.ctx):"";if(A)this._errorHandle(A,g.ctx),w=!0;else if(A===!1)w=!0;else if(a.startsWith("request.")&&p.name==="expression")if(g.ruleType===ye.Brackethesized)F=g.exprs.map(O=>this._typeReplace(h,O.type));else if((R=g.types||g.returnedTypes)!=null&&R.isBrackethesized)F=(g.types||g.returnedTypes).map(O=>this._typeReplace(h,O));else{const O=this._typeReplace(h,g.type);F.push(O)}else if(a==="input.enum"&&p.name==="defval"){const O=this._removePrefix(g.type);F.push(`${z.INPUT} ${O}`)}delete E[p.name]}}if(Object.keys(E).length)for(const v of Object.keys(E))this._errorHandle(Se(xe.argsNameErr,{name:a,argName:v}),E[v].ctx),w=!0;return{hasErr:w,types:F}}_checkArg(n,r,a,c,h,d){var v,p;const{ruleType:E,exprs:b,name:T}=n;let x=n.type;E===ye.Brackethesized&&(x=`[${b.map(g=>g.type).join(", ")}]`);const{allowedTypeIDs:w=[],displayType:F,name:R}=r;if(!(!x||x===z.UNDETERMINED||F===z.UNDETERMINED)){if(a==="input"&&R==="defval"&&!x.startsWith(z.CONST))if(Rl.includes(T))n.isSourceType=!0;else return xe.inputDefvalErr;if(!(this._checkMethodThisType(w,this._arrayTypeConvert(x))&&!(["input.source","input.enum"].includes(a)&&R==="defval"))){if(R==="condition"&&(F!=null&&F.endsWith(z.BOOL))){if(x.endsWith(z.INT)||x.endsWith(z.FLOAT)){h&&this._errorHandle(Se(Ir.typeMismatch,{index:R,operator:a,type:z.BOOL}),h,Vn.Warning);return}}else if(a==="str.tostring"&&R==="value"){const g=this._removePrefix(x);if(this._enums.get(g))return}switch(F){case"tuple of const string values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${z.CONST} ${z.STRING}`],a,x);case"tuple of const int/float values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${z.CONST} ${z.FLOAT}`,`${z.CONST} ${z.INT}`],a,x);case"tuple of const int values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${z.CONST} ${z.INT}`],a,x);case"open/high/low/close/hl2/hlc3/ohlc4/hlcc4":if(!T||!Rl.includes(T))return Se(xe.inputSourceErr,{name:R,funcName:a});if(this._judgeVarBuildIn(T))return Se(xe.buildInUseErr,{name:T});n.isSourceType=!0;break;case"<matrix_type>":case"<array_type>":const g=this._getArrayType(a)||"";if(!x.endsWith(g)&&!(x.endsWith(z.INT)&&g===z.FLOAT))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:this._typeAddSeries(g)});break;case"any matrix type":if(this._isMatrixType(x)){if(R==="id2"){const G=this._getArrayType(c==null?void 0:c.type);if(!G)return;const N=this._getArrayType(x)||"";if(G!==N)return Se(xe.typeMismatch,{operator:a,index:R,typeE:N,typeR:G})}}else return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:"matrix<fun_arg>"});break;case"any array type":if(this._isArrayType(x)){if(R==="id2"){const G=this._getArrayType(c==null?void 0:c.type);if(!G)return;const N=this._getArrayType(x)||"";if(G!==N)return Se(xe.typeMismatch,{operator:a,index:R,typeE:N,typeR:G})}}else return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:"array<fun_arg>"});break;case"series <type of the matrix's elements>":case"series <type of the array's elements>":const A=this._getArrayType(c==null?void 0:c.type)||"";if(!x.endsWith(A)&&!(x.endsWith(z.INT)&&A===z.FLOAT))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:this._typeAddSeries(A)});break;case"any map type":if(this._isMapType(x)){if(R==="id2"){const G=this._getMapType(c==null?void 0:c.type);if(!G)return;const N=this._getMapType(x)||[];if(G[0]!==N[0]||G[1]!==N[1])return Se(xe.mapKeyValErr,{typeA:this._typeAddSeries(N[0]),typeB:this._typeAddSeries(N[1]),typeC:this._typeAddSeries(G[0]),typeD:this._typeAddSeries(G[1]),name:a})}}else return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:"map<type, type>"});break;case"series <type of the map's elements>":const O=this._getMapType(c==null?void 0:c.type);if(!O)return;const D=R==="key"?0:1;if(!x.endsWith(O[D])&&!(x.endsWith(z.INT)&&O[D]===z.FLOAT))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:this._typeAddSeries(O[D])});break;case"<arg_expr_type>":if(E===ye.Brackethesized)return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:F||""});break;case"<arg_type>":case"variable, function, object, array or matrix of series int/float/bool/string/color, or a tuple of these":const I=this._removePrefix(x);[z.BOX,z.LABEL,z.LINE,z.LINEFILL,z.POLYLINE,z.TABLE].includes(I)&&h&&this._errorHandle(Se(xe.requestExprErr,{type:I,name:a}),h);break;case"variable, object or function of series int/float/bool/string/color, or a tuple of these":if(E===ye.Brackethesized){for(const G of b)if(!w.includes(G.type))return this._errorHandle(Se(xe.requestArgsErr,{name:a,argName:R,type:G.type}),G.ctx),!1}break;case"const int/float/bool/string/color or source-type built-ins":if(Rl.includes(n.name)&&w[0].endsWith(this._removePrefix(x)))n.isSourceType=!0;else return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:"const int/float/bool/string/color"});break;case"<arg..._type>":if(E===ye.Brackethesized||this._isArrayType(x)||this._isMapType(x)||this._isMatrixType(x))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:`${z.SERIES} ${z.INT}`});if(x!==(c==null?void 0:c.type))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:c==null?void 0:c.type});break;case"simple enum":const L=this._removePrefix(x);if(!this._enums.has(L))return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:"const enum"});break;case"tuple of enum fields: [enumName.field1, enumName.field2, ...]":const H=c==null?void 0:c.enumName;if(H&&!((v=n.exprs)==null?void 0:v.every(N=>N.enumName===H)))return Se(xe.typeMismatch,{operator:a,index:R,typeE:`${n.exprs?`[${(p=n.exprs)==null?void 0:p.map(N=>N.type).join(", ")}]`:n.type}`,typeR:`[const ${H}...]`});break;default:const M=this._removePrefix(n.type);if(n.arg&&n.arg.isArg&&!d){const G=w.find(N=>N.endsWith(M));if(G){n.type=G,n.arg.type=G;return}}if(w.length===1&&w[0].endsWith(M)){const G=this._getPrefix(n.type),N=this._getPrefix(w[0]);if(Vi.indexOf(G)>=Vi.indexOf(N))return}if(F)return Se(xe.typeMismatch,{operator:a,index:R,typeE:x,typeR:F})}}}}_tupleToCheck(n,r,a,c,h){var d,E;if(a.push(`${z.SIMPLE} ${z.NA}`),n.ruleType===ye.Brackethesized){const b=[];let T=!1;for(const x of n.exprs)b.push(x.type),a.includes(x.type)||(T=!0);if(T)return Se(xe.typeMismatch,{operator:c,index:r.name,typeE:`[${b.join(", ")}]`,typeR:((d=r.allowedTypeIDs)==null?void 0:d[0])||""})}else return Se(xe.typeMismatch,{operator:c,index:r.name,typeE:h,typeR:((E=r.allowedTypeIDs)==null?void 0:E[0])||""})}_getBlockReturnTypes(n){var w,F;let r=n;if(Array.isArray(n)&&(r=n.slice(-1)[0],Array.isArray(r)&&(r=r.slice(-1)[0])),!r)return[z.UNDETERMINED];const{ruleType:a,type:c,types:h,returnedTypes:d,exprs:E,nameList:b,typeList:T,block:x}=r;if(h&&h.length)return h;if(d&&d.length)return d;if(c)return[c];switch(a){case ye.Brackethesized:const R=E.map(H=>H.type);return R.isBrackethesized=!0,R;case ye.VarBlockStmt:case ye.DeclareAssign:return b?b.ruleType===ye.VarMultiple?b.types:[b.type]:[((w=r.name)==null?void 0:w.type)||z.UNDETERMINED];case ye.SwitchStatement:if(!this._isNeedCalc&&this._isInFunc&&this._isEndExpr===!1)return[z.UNDETERMINED];const v=[...r.cases];r.defaultCase&&v.push(r.defaultCase);let p=((F=v[0])==null?void 0:F.returnedTypes)||[],g=p.length<=1?p[0]:`[${p.join(", ")}]`,A=null;for(const H of v.slice(1)){const M=H.returnedTypes||[z.UNDETERMINED];g+=M.length<=1?`; ${M[0]}`:`; [${M.join(", ")}]`;const G=Array.isArray(H.block)?H.block.slice(-1)[0]:H.block;if(M.length!==p.length)A=G.ctx;else for(const[N,K]of p.entries())if(this._compareType(M[N],K))(M[N].includes(z.FLOAT)&&!K.includes(z.FLOAT)||p[N]===`${z.SIMPLE} ${z.NA}`||p[N]===z.UNDETERMINED)&&(p[N]=M[N]);else{A=G.ctx;break}}return A&&(this._errorHandle(Se(xe.ifOrSwitchTypeErr,{keyword:"switch",types:g}),A),p=p.map(()=>z.UNDETERMINED)),r.returnedTypes=p,p;case ye.IfStatement:if(!this._isNeedCalc&&!this._isInFunc)return[z.UNDETERMINED];if(!T.filter(H=>H&&H.length).length)return[z.UNDETERMINED];let O=T[0]||[],D=O.length<=1?O[0]:`[${O.join(", ")}]`,I=0,L=0;for(const H of T.slice(1))if(H)if(I++,D+=H.length<=1?`; ${H[0]}`:`; [${H.join(", ")}]`,H.length!==O.length)L=I;else for(const[M,G]of O.entries())if(this._compareType(H[M],G))(H[M].includes(z.FLOAT)&&!G.includes(z.FLOAT)||O[M]===`${z.SIMPLE} ${z.NA}`)&&(O[M]=H[M]);else{L=I;break}if(L){const H=x[L].slice(-1)[0],M=Array.isArray(H)?H.slice(-1)[0]:H;this._errorHandle(Se(xe.ifOrSwitchTypeErr,{keyword:"if",types:D}),M.ctx),O=O.map(()=>z.UNDETERMINED)}return r.returnedTypes=O,O}return[z.UNDETERMINED]}}var Cp={exports:{}};function my(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fl={exports:{}},yy={},gy=Object.freeze({__proto__:null,default:yy}),vy=hy(gy),Dp;function Lt(){return Dp||(Dp=1,function(t,e){(function(n,r){t.exports=r()})(Tt,function(){var n=n||function(r,a){var c;if(typeof window<"u"&&window.crypto&&(c=window.crypto),typeof self<"u"&&self.crypto&&(c=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window<"u"&&window.msCrypto&&(c=window.msCrypto),!c&&typeof Tt<"u"&&Tt.crypto&&(c=Tt.crypto),!c&&typeof my=="function")try{c=vy}catch{}var h=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function A(){}return function(O){var D;return A.prototype=O,D=new A,A.prototype=null,D}}(),E={},b=E.lib={},T=b.Base=function(){return{extend:function(A){var O=d(this);return A&&O.mixIn(A),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var O in A)A.hasOwnProperty(O)&&(this[O]=A[O]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=b.WordArray=T.extend({init:function(A,O){A=this.words=A||[],O!=a?this.sigBytes=O:this.sigBytes=A.length*4},toString:function(A){return(A||F).stringify(this)},concat:function(A){var O=this.words,D=A.words,I=this.sigBytes,L=A.sigBytes;if(this.clamp(),I%4)for(var H=0;H<L;H++){var M=D[H>>>2]>>>24-H%4*8&255;O[I+H>>>2]|=M<<24-(I+H)%4*8}else for(var G=0;G<L;G+=4)O[I+G>>>2]=D[G>>>2];return this.sigBytes+=L,this},clamp:function(){var A=this.words,O=this.sigBytes;A[O>>>2]&=4294967295<<32-O%4*8,A.length=r.ceil(O/4)},clone:function(){var A=T.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var O=[],D=0;D<A;D+=4)O.push(h());return new x.init(O,A)}}),w=E.enc={},F=w.Hex={stringify:function(A){for(var O=A.words,D=A.sigBytes,I=[],L=0;L<D;L++){var H=O[L>>>2]>>>24-L%4*8&255;I.push((H>>>4).toString(16)),I.push((H&15).toString(16))}return I.join("")},parse:function(A){for(var O=A.length,D=[],I=0;I<O;I+=2)D[I>>>3]|=parseInt(A.substr(I,2),16)<<24-I%8*4;return new x.init(D,O/2)}},R=w.Latin1={stringify:function(A){for(var O=A.words,D=A.sigBytes,I=[],L=0;L<D;L++){var H=O[L>>>2]>>>24-L%4*8&255;I.push(String.fromCharCode(H))}return I.join("")},parse:function(A){for(var O=A.length,D=[],I=0;I<O;I++)D[I>>>2]|=(A.charCodeAt(I)&255)<<24-I%4*8;return new x.init(D,O)}},v=w.Utf8={stringify:function(A){try{return decodeURIComponent(escape(R.stringify(A)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(A){return R.parse(unescape(encodeURIComponent(A)))}},p=b.BufferedBlockAlgorithm=T.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=v.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var O,D=this._data,I=D.words,L=D.sigBytes,H=this.blockSize,M=H*4,G=L/M;A?G=r.ceil(G):G=r.max((G|0)-this._minBufferSize,0);var N=G*H,K=r.min(N*4,L);if(N){for(var Y=0;Y<N;Y+=H)this._doProcessBlock(I,Y);O=I.splice(0,N),D.sigBytes-=K}return new x.init(O,K)},clone:function(){var A=T.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0});b.Hasher=p.extend({cfg:T.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var O=this._doFinalize();return O},blockSize:16,_createHelper:function(A){return function(O,D){return new A.init(D).finalize(O)}},_createHmacHelper:function(A){return function(O,D){return new g.HMAC.init(A,D).finalize(O)}}});var g=E.algo={};return E}(Math);return n})}(Fl)),Fl.exports}var Nl={exports:{}},kp;function yu(){return kp||(kp=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.Base,d=c.WordArray,E=a.x64={};E.Word=h.extend({init:function(b,T){this.high=b,this.low=T}}),E.WordArray=h.extend({init:function(b,T){b=this.words=b||[],T!=r?this.sigBytes=T:this.sigBytes=b.length*8},toX32:function(){for(var b=this.words,T=b.length,x=[],w=0;w<T;w++){var F=b[w];x.push(F.high),x.push(F.low)}return d.create(x,this.sigBytes)},clone:function(){for(var b=h.clone.call(this),T=b.words=this.words.slice(0),x=T.length,w=0;w<x;w++)T[w]=T[w].clone();return b}})}(),n})}(Nl)),Nl.exports}var Il={exports:{}},Op;function by(){return Op||(Op=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,a=r.lib,c=a.WordArray,h=c.init,d=c.init=function(E){if(E instanceof ArrayBuffer&&(E=new Uint8Array(E)),(E instanceof Int8Array||typeof Uint8ClampedArray<"u"&&E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array)&&(E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength)),E instanceof Uint8Array){for(var b=E.byteLength,T=[],x=0;x<b;x++)T[x>>>2]|=E[x]<<24-x%4*8;h.call(this,T,b)}else h.apply(this,arguments)};d.prototype=c}}(),n.lib.WordArray})}(Il)),Il.exports}var Pl={exports:{}},wp;function Ey(){return wp||(wp=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=r.enc;h.Utf16=h.Utf16BE={stringify:function(E){for(var b=E.words,T=E.sigBytes,x=[],w=0;w<T;w+=2){var F=b[w>>>2]>>>16-w%4*8&65535;x.push(String.fromCharCode(F))}return x.join("")},parse:function(E){for(var b=E.length,T=[],x=0;x<b;x++)T[x>>>1]|=E.charCodeAt(x)<<16-x%2*16;return c.create(T,b*2)}},h.Utf16LE={stringify:function(E){for(var b=E.words,T=E.sigBytes,x=[],w=0;w<T;w+=2){var F=d(b[w>>>2]>>>16-w%4*8&65535);x.push(String.fromCharCode(F))}return x.join("")},parse:function(E){for(var b=E.length,T=[],x=0;x<b;x++)T[x>>>1]|=d(E.charCodeAt(x)<<16-x%2*16);return c.create(T,b*2)}};function d(E){return E<<8&4278255360|E>>>8&16711935}}(),n.enc.Utf16})}(Pl)),Pl.exports}var Bl={exports:{}},Rp;function xo(){return Rp||(Rp=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=r.enc;h.Base64={stringify:function(E){var b=E.words,T=E.sigBytes,x=this._map;E.clamp();for(var w=[],F=0;F<T;F+=3)for(var R=b[F>>>2]>>>24-F%4*8&255,v=b[F+1>>>2]>>>24-(F+1)%4*8&255,p=b[F+2>>>2]>>>24-(F+2)%4*8&255,g=R<<16|v<<8|p,A=0;A<4&&F+A*.75<T;A++)w.push(x.charAt(g>>>6*(3-A)&63));var O=x.charAt(64);if(O)for(;w.length%4;)w.push(O);return w.join("")},parse:function(E){var b=E.length,T=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var w=0;w<T.length;w++)x[T.charCodeAt(w)]=w}var F=T.charAt(64);if(F){var R=E.indexOf(F);R!==-1&&(b=R)}return d(E,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(E,b,T){for(var x=[],w=0,F=0;F<b;F++)if(F%4){var R=T[E.charCodeAt(F-1)]<<F%4*2,v=T[E.charCodeAt(F)]>>>6-F%4*2,p=R|v;x[w>>>2]|=p<<24-w%4*8,w++}return c.create(x,w)}}(),n.enc.Base64})}(Bl)),Bl.exports}var Ll={exports:{}},Fp;function xy(){return Fp||(Fp=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=r.enc;h.Base64url={stringify:function(E,b){b===void 0&&(b=!0);var T=E.words,x=E.sigBytes,w=b?this._safe_map:this._map;E.clamp();for(var F=[],R=0;R<x;R+=3)for(var v=T[R>>>2]>>>24-R%4*8&255,p=T[R+1>>>2]>>>24-(R+1)%4*8&255,g=T[R+2>>>2]>>>24-(R+2)%4*8&255,A=v<<16|p<<8|g,O=0;O<4&&R+O*.75<x;O++)F.push(w.charAt(A>>>6*(3-O)&63));var D=w.charAt(64);if(D)for(;F.length%4;)F.push(D);return F.join("")},parse:function(E,b){b===void 0&&(b=!0);var T=E.length,x=b?this._safe_map:this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var F=0;F<x.length;F++)w[x.charCodeAt(F)]=F}var R=x.charAt(64);if(R){var v=E.indexOf(R);v!==-1&&(T=v)}return d(E,T,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(E,b,T){for(var x=[],w=0,F=0;F<b;F++)if(F%4){var R=T[E.charCodeAt(F-1)]<<F%4*2,v=T[E.charCodeAt(F)]>>>6-F%4*2,p=R|v;x[w>>>2]|=p<<24-w%4*8,w++}return c.create(x,w)}}(),n.enc.Base64url})}(Ll)),Ll.exports}var Ml={exports:{}},Np;function So(){return Np||(Np=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.WordArray,d=c.Hasher,E=a.algo,b=[];(function(){for(var v=0;v<64;v++)b[v]=r.abs(r.sin(v+1))*4294967296|0})();var T=E.MD5=d.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,p){for(var g=0;g<16;g++){var A=p+g,O=v[A];v[A]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var D=this._hash.words,I=v[p+0],L=v[p+1],H=v[p+2],M=v[p+3],G=v[p+4],N=v[p+5],K=v[p+6],Y=v[p+7],ne=v[p+8],se=v[p+9],re=v[p+10],ue=v[p+11],ce=v[p+12],Ee=v[p+13],Te=v[p+14],_e=v[p+15],oe=D[0],Z=D[1],J=D[2],te=D[3];oe=x(oe,Z,J,te,I,7,b[0]),te=x(te,oe,Z,J,L,12,b[1]),J=x(J,te,oe,Z,H,17,b[2]),Z=x(Z,J,te,oe,M,22,b[3]),oe=x(oe,Z,J,te,G,7,b[4]),te=x(te,oe,Z,J,N,12,b[5]),J=x(J,te,oe,Z,K,17,b[6]),Z=x(Z,J,te,oe,Y,22,b[7]),oe=x(oe,Z,J,te,ne,7,b[8]),te=x(te,oe,Z,J,se,12,b[9]),J=x(J,te,oe,Z,re,17,b[10]),Z=x(Z,J,te,oe,ue,22,b[11]),oe=x(oe,Z,J,te,ce,7,b[12]),te=x(te,oe,Z,J,Ee,12,b[13]),J=x(J,te,oe,Z,Te,17,b[14]),Z=x(Z,J,te,oe,_e,22,b[15]),oe=w(oe,Z,J,te,L,5,b[16]),te=w(te,oe,Z,J,K,9,b[17]),J=w(J,te,oe,Z,ue,14,b[18]),Z=w(Z,J,te,oe,I,20,b[19]),oe=w(oe,Z,J,te,N,5,b[20]),te=w(te,oe,Z,J,re,9,b[21]),J=w(J,te,oe,Z,_e,14,b[22]),Z=w(Z,J,te,oe,G,20,b[23]),oe=w(oe,Z,J,te,se,5,b[24]),te=w(te,oe,Z,J,Te,9,b[25]),J=w(J,te,oe,Z,M,14,b[26]),Z=w(Z,J,te,oe,ne,20,b[27]),oe=w(oe,Z,J,te,Ee,5,b[28]),te=w(te,oe,Z,J,H,9,b[29]),J=w(J,te,oe,Z,Y,14,b[30]),Z=w(Z,J,te,oe,ce,20,b[31]),oe=F(oe,Z,J,te,N,4,b[32]),te=F(te,oe,Z,J,ne,11,b[33]),J=F(J,te,oe,Z,ue,16,b[34]),Z=F(Z,J,te,oe,Te,23,b[35]),oe=F(oe,Z,J,te,L,4,b[36]),te=F(te,oe,Z,J,G,11,b[37]),J=F(J,te,oe,Z,Y,16,b[38]),Z=F(Z,J,te,oe,re,23,b[39]),oe=F(oe,Z,J,te,Ee,4,b[40]),te=F(te,oe,Z,J,I,11,b[41]),J=F(J,te,oe,Z,M,16,b[42]),Z=F(Z,J,te,oe,K,23,b[43]),oe=F(oe,Z,J,te,se,4,b[44]),te=F(te,oe,Z,J,ce,11,b[45]),J=F(J,te,oe,Z,_e,16,b[46]),Z=F(Z,J,te,oe,H,23,b[47]),oe=R(oe,Z,J,te,I,6,b[48]),te=R(te,oe,Z,J,Y,10,b[49]),J=R(J,te,oe,Z,Te,15,b[50]),Z=R(Z,J,te,oe,N,21,b[51]),oe=R(oe,Z,J,te,ce,6,b[52]),te=R(te,oe,Z,J,M,10,b[53]),J=R(J,te,oe,Z,re,15,b[54]),Z=R(Z,J,te,oe,L,21,b[55]),oe=R(oe,Z,J,te,ne,6,b[56]),te=R(te,oe,Z,J,_e,10,b[57]),J=R(J,te,oe,Z,K,15,b[58]),Z=R(Z,J,te,oe,Ee,21,b[59]),oe=R(oe,Z,J,te,G,6,b[60]),te=R(te,oe,Z,J,ue,10,b[61]),J=R(J,te,oe,Z,H,15,b[62]),Z=R(Z,J,te,oe,se,21,b[63]),D[0]=D[0]+oe|0,D[1]=D[1]+Z|0,D[2]=D[2]+J|0,D[3]=D[3]+te|0},_doFinalize:function(){var v=this._data,p=v.words,g=this._nDataBytes*8,A=v.sigBytes*8;p[A>>>5]|=128<<24-A%32;var O=r.floor(g/4294967296),D=g;p[(A+64>>>9<<4)+15]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,p[(A+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,v.sigBytes=(p.length+1)*4,this._process();for(var I=this._hash,L=I.words,H=0;H<4;H++){var M=L[H];L[H]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return I},clone:function(){var v=d.clone.call(this);return v._hash=this._hash.clone(),v}});function x(v,p,g,A,O,D,I){var L=v+(p&g|~p&A)+O+I;return(L<<D|L>>>32-D)+p}function w(v,p,g,A,O,D,I){var L=v+(p&A|g&~A)+O+I;return(L<<D|L>>>32-D)+p}function F(v,p,g,A,O,D,I){var L=v+(p^g^A)+O+I;return(L<<D|L>>>32-D)+p}function R(v,p,g,A,O,D,I){var L=v+(g^(p|~A))+O+I;return(L<<D|L>>>32-D)+p}a.MD5=d._createHelper(T),a.HmacMD5=d._createHmacHelper(T)}(Math),n.MD5})}(Ml)),Ml.exports}var Ul={exports:{}},Ip;function Pp(){return Ip||(Ip=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=a.Hasher,d=r.algo,E=[],b=d.SHA1=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,x){for(var w=this._hash.words,F=w[0],R=w[1],v=w[2],p=w[3],g=w[4],A=0;A<80;A++){if(A<16)E[A]=T[x+A]|0;else{var O=E[A-3]^E[A-8]^E[A-14]^E[A-16];E[A]=O<<1|O>>>31}var D=(F<<5|F>>>27)+g+E[A];A<20?D+=(R&v|~R&p)+1518500249:A<40?D+=(R^v^p)+1859775393:A<60?D+=(R&v|R&p|v&p)-1894007588:D+=(R^v^p)-899497514,g=p,p=v,v=R<<30|R>>>2,R=F,F=D}w[0]=w[0]+F|0,w[1]=w[1]+R|0,w[2]=w[2]+v|0,w[3]=w[3]+p|0,w[4]=w[4]+g|0},_doFinalize:function(){var T=this._data,x=T.words,w=this._nDataBytes*8,F=T.sigBytes*8;return x[F>>>5]|=128<<24-F%32,x[(F+64>>>9<<4)+14]=Math.floor(w/4294967296),x[(F+64>>>9<<4)+15]=w,T.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var T=h.clone.call(this);return T._hash=this._hash.clone(),T}});r.SHA1=h._createHelper(b),r.HmacSHA1=h._createHmacHelper(b)}(),n.SHA1})}(Ul)),Ul.exports}var Vl={exports:{}},Bp;function jl(){return Bp||(Bp=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.WordArray,d=c.Hasher,E=a.algo,b=[],T=[];(function(){function F(g){for(var A=r.sqrt(g),O=2;O<=A;O++)if(!(g%O))return!1;return!0}function R(g){return(g-(g|0))*4294967296|0}for(var v=2,p=0;p<64;)F(v)&&(p<8&&(b[p]=R(r.pow(v,1/2))),T[p]=R(r.pow(v,1/3)),p++),v++})();var x=[],w=E.SHA256=d.extend({_doReset:function(){this._hash=new h.init(b.slice(0))},_doProcessBlock:function(F,R){for(var v=this._hash.words,p=v[0],g=v[1],A=v[2],O=v[3],D=v[4],I=v[5],L=v[6],H=v[7],M=0;M<64;M++){if(M<16)x[M]=F[R+M]|0;else{var G=x[M-15],N=(G<<25|G>>>7)^(G<<14|G>>>18)^G>>>3,K=x[M-2],Y=(K<<15|K>>>17)^(K<<13|K>>>19)^K>>>10;x[M]=N+x[M-7]+Y+x[M-16]}var ne=D&I^~D&L,se=p&g^p&A^g&A,re=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),ue=(D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25),ce=H+ue+ne+T[M]+x[M],Ee=re+se;H=L,L=I,I=D,D=O+ce|0,O=A,A=g,g=p,p=ce+Ee|0}v[0]=v[0]+p|0,v[1]=v[1]+g|0,v[2]=v[2]+A|0,v[3]=v[3]+O|0,v[4]=v[4]+D|0,v[5]=v[5]+I|0,v[6]=v[6]+L|0,v[7]=v[7]+H|0},_doFinalize:function(){var F=this._data,R=F.words,v=this._nDataBytes*8,p=F.sigBytes*8;return R[p>>>5]|=128<<24-p%32,R[(p+64>>>9<<4)+14]=r.floor(v/4294967296),R[(p+64>>>9<<4)+15]=v,F.sigBytes=R.length*4,this._process(),this._hash},clone:function(){var F=d.clone.call(this);return F._hash=this._hash.clone(),F}});a.SHA256=d._createHelper(w),a.HmacSHA256=d._createHmacHelper(w)}(Math),n.SHA256})}(Vl)),Vl.exports}var $l={exports:{}},Lp;function Sy(){return Lp||(Lp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),jl())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=r.algo,d=h.SHA256,E=h.SHA224=d.extend({_doReset:function(){this._hash=new c.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=d._doFinalize.call(this);return b.sigBytes-=4,b}});r.SHA224=d._createHelper(E),r.HmacSHA224=d._createHmacHelper(E)}(),n.SHA224})}($l)),$l.exports}var Hl={exports:{}},Mp;function Up(){return Mp||(Mp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),yu())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.Hasher,h=r.x64,d=h.Word,E=h.WordArray,b=r.algo;function T(){return d.create.apply(d,arguments)}var x=[T(1116352408,3609767458),T(1899447441,602891725),T(3049323471,3964484399),T(3921009573,2173295548),T(961987163,4081628472),T(1508970993,3053834265),T(2453635748,2937671579),T(2870763221,3664609560),T(3624381080,2734883394),T(310598401,1164996542),T(607225278,1323610764),T(1426881987,3590304994),T(1925078388,4068182383),T(2162078206,991336113),T(2614888103,633803317),T(3248222580,3479774868),T(3835390401,2666613458),T(4022224774,944711139),T(264347078,2341262773),T(604807628,2007800933),T(770255983,1495990901),T(1249150122,1856431235),T(1555081692,3175218132),T(1996064986,2198950837),T(2554220882,3999719339),T(2821834349,766784016),T(2952996808,2566594879),T(3210313671,3203337956),T(3336571891,1034457026),T(3584528711,2466948901),T(113926993,3758326383),T(338241895,168717936),T(666307205,1188179964),T(773529912,1546045734),T(1294757372,1522805485),T(1396182291,2643833823),T(1695183700,2343527390),T(1986661051,1014477480),T(2177026350,1206759142),T(2456956037,344077627),T(2730485921,1290863460),T(2820302411,3158454273),T(3259730800,3505952657),T(3345764771,106217008),T(3516065817,3606008344),T(3600352804,1432725776),T(4094571909,1467031594),T(275423344,851169720),T(430227734,3100823752),T(506948616,1363258195),T(659060556,3750685593),T(883997877,3785050280),T(958139571,3318307427),T(1322822218,3812723403),T(1537002063,2003034995),T(1747873779,3602036899),T(1955562222,1575990012),T(2024104815,1125592928),T(2227730452,2716904306),T(2361852424,442776044),T(2428436474,593698344),T(2756734187,3733110249),T(3204031479,2999351573),T(3329325298,3815920427),T(3391569614,3928383900),T(3515267271,566280711),T(3940187606,3454069534),T(4118630271,4000239992),T(116418474,1914138554),T(174292421,2731055270),T(289380356,3203993006),T(460393269,320620315),T(685471733,587496836),T(852142971,1086792851),T(1017036298,365543100),T(1126000580,2618297676),T(1288033470,3409855158),T(1501505948,4234509866),T(1607167915,987167468),T(1816402316,1246189591)],w=[];(function(){for(var R=0;R<80;R++)w[R]=T()})();var F=b.SHA512=c.extend({_doReset:function(){this._hash=new E.init([new d.init(1779033703,4089235720),new d.init(3144134277,2227873595),new d.init(1013904242,4271175723),new d.init(2773480762,1595750129),new d.init(1359893119,2917565137),new d.init(2600822924,725511199),new d.init(528734635,4215389547),new d.init(1541459225,327033209)])},_doProcessBlock:function(R,v){for(var p=this._hash.words,g=p[0],A=p[1],O=p[2],D=p[3],I=p[4],L=p[5],H=p[6],M=p[7],G=g.high,N=g.low,K=A.high,Y=A.low,ne=O.high,se=O.low,re=D.high,ue=D.low,ce=I.high,Ee=I.low,Te=L.high,_e=L.low,oe=H.high,Z=H.low,J=M.high,te=M.low,ve=G,me=N,Ze=K,Ve=Y,ht=ne,wt=se,yt=re,St=ue,Ct=ce,le=Ee,we=Te,be=_e,pt=oe,Et=Z,Rt=J,yn=te,Dt=0;Dt<80;Dt++){var It,kt,Pt=w[Dt];if(Dt<16)kt=Pt.high=R[v+Dt*2]|0,It=Pt.low=R[v+Dt*2+1]|0;else{var nn=w[Dt-15],ir=nn.high,W=nn.low,Fe=(ir>>>1|W<<31)^(ir>>>8|W<<24)^ir>>>7,Ue=(W>>>1|ir<<31)^(W>>>8|ir<<24)^(W>>>7|ir<<25),Pe=w[Dt-2],Qe=Pe.high,Ht=Pe.low,ft=(Qe>>>19|Ht<<13)^(Qe<<3|Ht>>>29)^Qe>>>6,fn=(Ht>>>19|Qe<<13)^(Ht<<3|Qe>>>29)^(Ht>>>6|Qe<<26),gn=w[Dt-7],jr=gn.high,On=gn.low,rn=w[Dt-16],Ri=rn.high,$r=rn.low;It=Ue+On,kt=Fe+jr+(It>>>0<Ue>>>0?1:0),It=It+fn,kt=kt+ft+(It>>>0<fn>>>0?1:0),It=It+$r,kt=kt+Ri+(It>>>0<$r>>>0?1:0),Pt.high=kt,Pt.low=It}var Fi=Ct&we^~Ct&pt,or=le&be^~le&Et,Or=ve&Ze^ve&ht^Ze&ht,eo=me&Ve^me&wt^Ve&wt,gi=(ve>>>28|me<<4)^(ve<<30|me>>>2)^(ve<<25|me>>>7),fr=(me>>>28|ve<<4)^(me<<30|ve>>>2)^(me<<25|ve>>>7),Hr=(Ct>>>14|le<<18)^(Ct>>>18|le<<14)^(Ct<<23|le>>>9),to=(le>>>14|Ct<<18)^(le>>>18|Ct<<14)^(le<<23|Ct>>>9),dt=x[Dt],er=dt.high,B=dt.low,q=yn+to,ee=Rt+Hr+(q>>>0<yn>>>0?1:0),q=q+or,ee=ee+Fi+(q>>>0<or>>>0?1:0),q=q+B,ee=ee+er+(q>>>0<B>>>0?1:0),q=q+It,ee=ee+kt+(q>>>0<It>>>0?1:0),ae=fr+eo,he=gi+Or+(ae>>>0<fr>>>0?1:0);Rt=pt,yn=Et,pt=we,Et=be,we=Ct,be=le,le=St+q|0,Ct=yt+ee+(le>>>0<St>>>0?1:0)|0,yt=ht,St=wt,ht=Ze,wt=Ve,Ze=ve,Ve=me,me=q+ae|0,ve=ee+he+(me>>>0<q>>>0?1:0)|0}N=g.low=N+me,g.high=G+ve+(N>>>0<me>>>0?1:0),Y=A.low=Y+Ve,A.high=K+Ze+(Y>>>0<Ve>>>0?1:0),se=O.low=se+wt,O.high=ne+ht+(se>>>0<wt>>>0?1:0),ue=D.low=ue+St,D.high=re+yt+(ue>>>0<St>>>0?1:0),Ee=I.low=Ee+le,I.high=ce+Ct+(Ee>>>0<le>>>0?1:0),_e=L.low=_e+be,L.high=Te+we+(_e>>>0<be>>>0?1:0),Z=H.low=Z+Et,H.high=oe+pt+(Z>>>0<Et>>>0?1:0),te=M.low=te+yn,M.high=J+Rt+(te>>>0<yn>>>0?1:0)},_doFinalize:function(){var R=this._data,v=R.words,p=this._nDataBytes*8,g=R.sigBytes*8;v[g>>>5]|=128<<24-g%32,v[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),v[(g+128>>>10<<5)+31]=p,R.sigBytes=v.length*4,this._process();var A=this._hash.toX32();return A},clone:function(){var R=c.clone.call(this);return R._hash=this._hash.clone(),R},blockSize:1024/32});r.SHA512=c._createHelper(F),r.HmacSHA512=c._createHmacHelper(F)}(),n.SHA512})}(Hl)),Hl.exports}var Gl={exports:{}},Vp;function Ty(){return Vp||(Vp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),yu(),Up())})(Tt,function(n){return function(){var r=n,a=r.x64,c=a.Word,h=a.WordArray,d=r.algo,E=d.SHA512,b=d.SHA384=E.extend({_doReset:function(){this._hash=new h.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var T=E._doFinalize.call(this);return T.sigBytes-=16,T}});r.SHA384=E._createHelper(b),r.HmacSHA384=E._createHmacHelper(b)}(),n.SHA384})}(Gl)),Gl.exports}var Kl={exports:{}},jp;function Ay(){return jp||(jp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),yu())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.WordArray,d=c.Hasher,E=a.x64,b=E.Word,T=a.algo,x=[],w=[],F=[];(function(){for(var p=1,g=0,A=0;A<24;A++){x[p+5*g]=(A+1)*(A+2)/2%64;var O=g%5,D=(2*p+3*g)%5;p=O,g=D}for(var p=0;p<5;p++)for(var g=0;g<5;g++)w[p+5*g]=g+(2*p+3*g)%5*5;for(var I=1,L=0;L<24;L++){for(var H=0,M=0,G=0;G<7;G++){if(I&1){var N=(1<<G)-1;N<32?M^=1<<N:H^=1<<N-32}I&128?I=I<<1^113:I<<=1}F[L]=b.create(H,M)}})();var R=[];(function(){for(var p=0;p<25;p++)R[p]=b.create()})();var v=T.SHA3=d.extend({cfg:d.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new b.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var A=this._state,O=this.blockSize/2,D=0;D<O;D++){var I=p[g+2*D],L=p[g+2*D+1];I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360;var H=A[D];H.high^=L,H.low^=I}for(var M=0;M<24;M++){for(var G=0;G<5;G++){for(var N=0,K=0,Y=0;Y<5;Y++){var H=A[G+5*Y];N^=H.high,K^=H.low}var ne=R[G];ne.high=N,ne.low=K}for(var G=0;G<5;G++)for(var se=R[(G+4)%5],re=R[(G+1)%5],ue=re.high,ce=re.low,N=se.high^(ue<<1|ce>>>31),K=se.low^(ce<<1|ue>>>31),Y=0;Y<5;Y++){var H=A[G+5*Y];H.high^=N,H.low^=K}for(var Ee=1;Ee<25;Ee++){var N,K,H=A[Ee],Te=H.high,_e=H.low,oe=x[Ee];oe<32?(N=Te<<oe|_e>>>32-oe,K=_e<<oe|Te>>>32-oe):(N=_e<<oe-32|Te>>>64-oe,K=Te<<oe-32|_e>>>64-oe);var Z=R[w[Ee]];Z.high=N,Z.low=K}var J=R[0],te=A[0];J.high=te.high,J.low=te.low;for(var G=0;G<5;G++)for(var Y=0;Y<5;Y++){var Ee=G+5*Y,H=A[Ee],ve=R[Ee],me=R[(G+1)%5+5*Y],Ze=R[(G+2)%5+5*Y];H.high=ve.high^~me.high&Ze.high,H.low=ve.low^~me.low&Ze.low}var H=A[0],Ve=F[M];H.high^=Ve.high,H.low^=Ve.low}},_doFinalize:function(){var p=this._data,g=p.words;this._nDataBytes*8;var A=p.sigBytes*8,O=this.blockSize*32;g[A>>>5]|=1<<24-A%32,g[(r.ceil((A+1)/O)*O>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var D=this._state,I=this.cfg.outputLength/8,L=I/8,H=[],M=0;M<L;M++){var G=D[M],N=G.high,K=G.low;N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,H.push(K),H.push(N)}return new h.init(H,I)},clone:function(){for(var p=d.clone.call(this),g=p._state=this._state.slice(0),A=0;A<25;A++)g[A]=g[A].clone();return p}});a.SHA3=d._createHelper(v),a.HmacSHA3=d._createHmacHelper(v)}(Math),n.SHA3})}(Kl)),Kl.exports}var zl={exports:{}},$p;function Cy(){return $p||($p=1,function(t,e){(function(n,r){t.exports=r(Lt())})(Tt,function(n){/** @preserve
@@ -23,9 +23,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
24
24
  * derived from CryptoJS.mode.CTR
25
25
  * Jan Hruby jhruby.web@gmail.com
26
- */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(d){if((d>>24&255)===255){var E=d>>16&255,b=d>>8&255,T=d&255;E===255?(E=0,b===255?(b=0,T===255?T=0:++T):++b):++E,d=0,d+=E<<16,d+=b<<8,d+=T}else d+=1<<24;return d}function c(d){return(d[0]=a(d[0]))===0&&(d[1]=a(d[1])),d}var h=r.Encryptor=r.extend({processBlock:function(d,E){var b=this._cipher,T=b.blockSize,x=this._iv,w=this._counter;x&&(w=this._counter=x.slice(0),this._iv=void 0),c(w);var F=w.slice(0);b.encryptBlock(F,0);for(var R=0;R<T;R++)d[E+R]^=F[R]}});return r.Decryptor=h,r}(),n.mode.CTRGladman})}(ef)),ef.exports}var tf={exports:{}},Yp;function Ry(){return Yp||(Yp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(c,h){var d=this._cipher,E=d.blockSize,b=this._iv,T=this._keystream;b&&(T=this._keystream=b.slice(0),this._iv=void 0),d.encryptBlock(T,0);for(var x=0;x<E;x++)c[h+x]^=T[x]}});return r.Decryptor=a,r}(),n.mode.OFB})}(tf)),tf.exports}var nf={exports:{}},Zp;function Fy(){return Zp||(Zp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,c){this._cipher.encryptBlock(a,c)}}),r.Decryptor=r.extend({processBlock:function(a,c){this._cipher.decryptBlock(a,c)}}),r}(),n.mode.ECB})}(nf)),nf.exports}var rf={exports:{}},Qp;function Ny(){return Qp||(Qp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.AnsiX923={pad:function(r,a){var c=r.sigBytes,h=a*4,d=h-c%h,E=c+d-1;r.clamp(),r.words[E>>>2]|=d<<24-E%4*8,r.sigBytes+=d},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(rf)),rf.exports}var of={exports:{}},Jp;function Iy(){return Jp||(Jp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.Iso10126={pad:function(r,a){var c=a*4,h=c-r.sigBytes%c;r.concat(n.lib.WordArray.random(h-1)).concat(n.lib.WordArray.create([h<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(of)),of.exports}var af={exports:{}},ed;function Py(){return ed||(ed=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(af)),af.exports}var sf={exports:{}},td;function By(){return td||(td=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.ZeroPadding={pad:function(r,a){var c=a*4;r.clamp(),r.sigBytes+=c-(r.sigBytes%c||c)},unpad:function(r){for(var a=r.words,c=r.sigBytes-1,c=r.sigBytes-1;c>=0;c--)if(a[c>>>2]>>>24-c%4*8&255){r.sigBytes=c+1;break}}},n.pad.ZeroPadding})}(sf)),sf.exports}var uf={exports:{}},nd;function Ly(){return nd||(nd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(uf)),uf.exports}var cf={exports:{}},rd;function My(){return rd||(rd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.CipherParams,d=a.enc,E=d.Hex,b=a.format;b.Hex={stringify:function(T){return T.ciphertext.toString(E)},parse:function(T){var x=E.parse(T);return h.create({ciphertext:x})}}}(),n.format.Hex})}(cf)),cf.exports}var lf={exports:{}},id;function Uy(){return id||(id=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.BlockCipher,h=r.algo,d=[],E=[],b=[],T=[],x=[],w=[],F=[],R=[],v=[],p=[];(function(){for(var O=[],D=0;D<256;D++)D<128?O[D]=D<<1:O[D]=D<<1^283;for(var I=0,L=0,D=0;D<256;D++){var H=L^L<<1^L<<2^L<<3^L<<4;H=H>>>8^H&255^99,d[I]=H,E[H]=I;var M=O[I],G=O[M],N=O[G],K=O[H]*257^H*16843008;b[I]=K<<24|K>>>8,T[I]=K<<16|K>>>16,x[I]=K<<8|K>>>24,w[I]=K;var K=N*16843009^G*65537^M*257^I*16843008;F[H]=K<<24|K>>>8,R[H]=K<<16|K>>>16,v[H]=K<<8|K>>>24,p[H]=K,I?(I=M^O[O[O[N^M]]],L^=O[O[L]]):I=L=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],A=h.AES=c.extend({_doReset:function(){var O;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,I=D.words,L=D.sigBytes/4,H=this._nRounds=L+6,M=(H+1)*4,G=this._keySchedule=[],N=0;N<M;N++)N<L?G[N]=I[N]:(O=G[N-1],N%L?L>6&&N%L==4&&(O=d[O>>>24]<<24|d[O>>>16&255]<<16|d[O>>>8&255]<<8|d[O&255]):(O=O<<8|O>>>24,O=d[O>>>24]<<24|d[O>>>16&255]<<16|d[O>>>8&255]<<8|d[O&255],O^=g[N/L|0]<<24),G[N]=G[N-L]^O);for(var K=this._invKeySchedule=[],Y=0;Y<M;Y++){var N=M-Y;if(Y%4)var O=G[N];else var O=G[N-4];Y<4||N<=4?K[Y]=O:K[Y]=F[d[O>>>24]]^R[d[O>>>16&255]]^v[d[O>>>8&255]]^p[d[O&255]]}}},encryptBlock:function(O,D){this._doCryptBlock(O,D,this._keySchedule,b,T,x,w,d)},decryptBlock:function(O,D){var I=O[D+1];O[D+1]=O[D+3],O[D+3]=I,this._doCryptBlock(O,D,this._invKeySchedule,F,R,v,p,E);var I=O[D+1];O[D+1]=O[D+3],O[D+3]=I},_doCryptBlock:function(O,D,I,L,H,M,G,N){for(var K=this._nRounds,Y=O[D]^I[0],ne=O[D+1]^I[1],se=O[D+2]^I[2],re=O[D+3]^I[3],ue=4,ce=1;ce<K;ce++){var Ee=L[Y>>>24]^H[ne>>>16&255]^M[se>>>8&255]^G[re&255]^I[ue++],Te=L[ne>>>24]^H[se>>>16&255]^M[re>>>8&255]^G[Y&255]^I[ue++],_e=L[se>>>24]^H[re>>>16&255]^M[Y>>>8&255]^G[ne&255]^I[ue++],oe=L[re>>>24]^H[Y>>>16&255]^M[ne>>>8&255]^G[se&255]^I[ue++];Y=Ee,ne=Te,se=_e,re=oe}var Ee=(N[Y>>>24]<<24|N[ne>>>16&255]<<16|N[se>>>8&255]<<8|N[re&255])^I[ue++],Te=(N[ne>>>24]<<24|N[se>>>16&255]<<16|N[re>>>8&255]<<8|N[Y&255])^I[ue++],_e=(N[se>>>24]<<24|N[re>>>16&255]<<16|N[Y>>>8&255]<<8|N[ne&255])^I[ue++],oe=(N[re>>>24]<<24|N[Y>>>16&255]<<16|N[ne>>>8&255]<<8|N[se&255])^I[ue++];O[D]=Ee,O[D+1]=Te,O[D+2]=_e,O[D+3]=oe},keySize:256/32});r.AES=c._createHelper(A)}(),n.AES})}(lf)),lf.exports}var ff={exports:{}},od;function Vy(){return od||(od=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=a.BlockCipher,d=r.algo,E=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],b=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],T=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],w=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],F=d.DES=h.extend({_doReset:function(){for(var g=this._key,A=g.words,O=[],D=0;D<56;D++){var I=E[D]-1;O[D]=A[I>>>5]>>>31-I%32&1}for(var L=this._subKeys=[],H=0;H<16;H++){for(var M=L[H]=[],G=T[H],D=0;D<24;D++)M[D/6|0]|=O[(b[D]-1+G)%28]<<31-D%6,M[4+(D/6|0)]|=O[28+(b[D+24]-1+G)%28]<<31-D%6;M[0]=M[0]<<1|M[0]>>>31;for(var D=1;D<7;D++)M[D]=M[D]>>>(D-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var N=this._invSubKeys=[],D=0;D<16;D++)N[D]=L[15-D]},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._subKeys)},decryptBlock:function(g,A){this._doCryptBlock(g,A,this._invSubKeys)},_doCryptBlock:function(g,A,O){this._lBlock=g[A],this._rBlock=g[A+1],R.call(this,4,252645135),R.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),R.call(this,1,1431655765);for(var D=0;D<16;D++){for(var I=O[D],L=this._lBlock,H=this._rBlock,M=0,G=0;G<8;G++)M|=x[G][((H^I[G])&w[G])>>>0];this._lBlock=H,this._rBlock=L^M}var N=this._lBlock;this._lBlock=this._rBlock,this._rBlock=N,R.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),R.call(this,16,65535),R.call(this,4,252645135),g[A]=this._lBlock,g[A+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function R(g,A){var O=(this._lBlock>>>g^this._rBlock)&A;this._rBlock^=O,this._lBlock^=O<<g}function v(g,A){var O=(this._rBlock>>>g^this._lBlock)&A;this._lBlock^=O,this._rBlock^=O<<g}r.DES=h._createHelper(F);var p=d.TripleDES=h.extend({_doReset:function(){var g=this._key,A=g.words;if(A.length!==2&&A.length!==4&&A.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var O=A.slice(0,2),D=A.length<4?A.slice(0,2):A.slice(2,4),I=A.length<6?A.slice(0,2):A.slice(4,6);this._des1=F.createEncryptor(c.create(O)),this._des2=F.createEncryptor(c.create(D)),this._des3=F.createEncryptor(c.create(I))},encryptBlock:function(g,A){this._des1.encryptBlock(g,A),this._des2.decryptBlock(g,A),this._des3.encryptBlock(g,A)},decryptBlock:function(g,A){this._des3.decryptBlock(g,A),this._des2.encryptBlock(g,A),this._des1.decryptBlock(g,A)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=h._createHelper(p)}(),n.TripleDES})}(ff)),ff.exports}var hf={exports:{}},ad;function jy(){return ad||(ad=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=h.RC4=c.extend({_doReset:function(){for(var T=this._key,x=T.words,w=T.sigBytes,F=this._S=[],R=0;R<256;R++)F[R]=R;for(var R=0,v=0;R<256;R++){var p=R%w,g=x[p>>>2]>>>24-p%4*8&255;v=(v+F[R]+g)%256;var A=F[R];F[R]=F[v],F[v]=A}this._i=this._j=0},_doProcessBlock:function(T,x){T[x]^=E.call(this)},keySize:256/32,ivSize:0});function E(){for(var T=this._S,x=this._i,w=this._j,F=0,R=0;R<4;R++){x=(x+1)%256,w=(w+T[x])%256;var v=T[x];T[x]=T[w],T[w]=v,F|=T[(T[x]+T[w])%256]<<24-R*8}return this._i=x,this._j=w,F}r.RC4=c._createHelper(d);var b=h.RC4Drop=d.extend({cfg:d.cfg.extend({drop:192}),_doReset:function(){d._doReset.call(this);for(var T=this.cfg.drop;T>0;T--)E.call(this)}});r.RC4Drop=c._createHelper(b)}(),n.RC4})}(hf)),hf.exports}var pf={exports:{}},sd;function $y(){return sd||(sd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=[],E=[],b=[],T=h.Rabbit=c.extend({_doReset:function(){for(var w=this._key.words,F=this.cfg.iv,R=0;R<4;R++)w[R]=(w[R]<<8|w[R]>>>24)&16711935|(w[R]<<24|w[R]>>>8)&4278255360;var v=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],p=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var R=0;R<4;R++)x.call(this);for(var R=0;R<8;R++)p[R]^=v[R+4&7];if(F){var g=F.words,A=g[0],O=g[1],D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=D>>>16|I&4294901760,H=I<<16|D&65535;p[0]^=D,p[1]^=L,p[2]^=I,p[3]^=H,p[4]^=D,p[5]^=L,p[6]^=I,p[7]^=H;for(var R=0;R<4;R++)x.call(this)}},_doProcessBlock:function(w,F){var R=this._X;x.call(this),d[0]=R[0]^R[5]>>>16^R[3]<<16,d[1]=R[2]^R[7]>>>16^R[5]<<16,d[2]=R[4]^R[1]>>>16^R[7]<<16,d[3]=R[6]^R[3]>>>16^R[1]<<16;for(var v=0;v<4;v++)d[v]=(d[v]<<8|d[v]>>>24)&16711935|(d[v]<<24|d[v]>>>8)&4278255360,w[F+v]^=d[v]},blockSize:128/32,ivSize:64/32});function x(){for(var w=this._X,F=this._C,R=0;R<8;R++)E[R]=F[R];F[0]=F[0]+1295307597+this._b|0,F[1]=F[1]+3545052371+(F[0]>>>0<E[0]>>>0?1:0)|0,F[2]=F[2]+886263092+(F[1]>>>0<E[1]>>>0?1:0)|0,F[3]=F[3]+1295307597+(F[2]>>>0<E[2]>>>0?1:0)|0,F[4]=F[4]+3545052371+(F[3]>>>0<E[3]>>>0?1:0)|0,F[5]=F[5]+886263092+(F[4]>>>0<E[4]>>>0?1:0)|0,F[6]=F[6]+1295307597+(F[5]>>>0<E[5]>>>0?1:0)|0,F[7]=F[7]+3545052371+(F[6]>>>0<E[6]>>>0?1:0)|0,this._b=F[7]>>>0<E[7]>>>0?1:0;for(var R=0;R<8;R++){var v=w[R]+F[R],p=v&65535,g=v>>>16,A=((p*p>>>17)+p*g>>>15)+g*g,O=((v&4294901760)*v|0)+((v&65535)*v|0);b[R]=A^O}w[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,w[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,w[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,w[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,w[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,w[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,w[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,w[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}r.Rabbit=c._createHelper(T)}(),n.Rabbit})}(pf)),pf.exports}var df={exports:{}},ud;function Hy(){return ud||(ud=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=[],E=[],b=[],T=h.RabbitLegacy=c.extend({_doReset:function(){var w=this._key.words,F=this.cfg.iv,R=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],v=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var p=0;p<4;p++)x.call(this);for(var p=0;p<8;p++)v[p]^=R[p+4&7];if(F){var g=F.words,A=g[0],O=g[1],D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=D>>>16|I&4294901760,H=I<<16|D&65535;v[0]^=D,v[1]^=L,v[2]^=I,v[3]^=H,v[4]^=D,v[5]^=L,v[6]^=I,v[7]^=H;for(var p=0;p<4;p++)x.call(this)}},_doProcessBlock:function(w,F){var R=this._X;x.call(this),d[0]=R[0]^R[5]>>>16^R[3]<<16,d[1]=R[2]^R[7]>>>16^R[5]<<16,d[2]=R[4]^R[1]>>>16^R[7]<<16,d[3]=R[6]^R[3]>>>16^R[1]<<16;for(var v=0;v<4;v++)d[v]=(d[v]<<8|d[v]>>>24)&16711935|(d[v]<<24|d[v]>>>8)&4278255360,w[F+v]^=d[v]},blockSize:128/32,ivSize:64/32});function x(){for(var w=this._X,F=this._C,R=0;R<8;R++)E[R]=F[R];F[0]=F[0]+1295307597+this._b|0,F[1]=F[1]+3545052371+(F[0]>>>0<E[0]>>>0?1:0)|0,F[2]=F[2]+886263092+(F[1]>>>0<E[1]>>>0?1:0)|0,F[3]=F[3]+1295307597+(F[2]>>>0<E[2]>>>0?1:0)|0,F[4]=F[4]+3545052371+(F[3]>>>0<E[3]>>>0?1:0)|0,F[5]=F[5]+886263092+(F[4]>>>0<E[4]>>>0?1:0)|0,F[6]=F[6]+1295307597+(F[5]>>>0<E[5]>>>0?1:0)|0,F[7]=F[7]+3545052371+(F[6]>>>0<E[6]>>>0?1:0)|0,this._b=F[7]>>>0<E[7]>>>0?1:0;for(var R=0;R<8;R++){var v=w[R]+F[R],p=v&65535,g=v>>>16,A=((p*p>>>17)+p*g>>>15)+g*g,O=((v&4294901760)*v|0)+((v&65535)*v|0);b[R]=A^O}w[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,w[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,w[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,w[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,w[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,w[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,w[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,w[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}r.RabbitLegacy=c._createHelper(T)}(),n.RabbitLegacy})}(df)),df.exports}var _f={exports:{}},cd;function Gy(){return cd||(cd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.BlockCipher,h=r.algo;const d=16,E=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],b=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var T={pbox:[],sbox:[]};function x(p,g){let A=g>>24&255,O=g>>16&255,D=g>>8&255,I=g&255,L=p.sbox[0][A]+p.sbox[1][O];return L=L^p.sbox[2][D],L=L+p.sbox[3][I],L}function w(p,g,A){let O=g,D=A,I;for(let L=0;L<d;++L)O=O^p.pbox[L],D=x(p,O)^D,I=O,O=D,D=I;return I=O,O=D,D=I,D=D^p.pbox[d],O=O^p.pbox[d+1],{left:O,right:D}}function F(p,g,A){let O=g,D=A,I;for(let L=d+1;L>1;--L)O=O^p.pbox[L],D=x(p,O)^D,I=O,O=D,D=I;return I=O,O=D,D=I,D=D^p.pbox[1],O=O^p.pbox[0],{left:O,right:D}}function R(p,g,A){for(let H=0;H<4;H++){p.sbox[H]=[];for(let M=0;M<256;M++)p.sbox[H][M]=b[H][M]}let O=0;for(let H=0;H<d+2;H++)p.pbox[H]=E[H]^g[O],O++,O>=A&&(O=0);let D=0,I=0,L=0;for(let H=0;H<d+2;H+=2)L=w(p,D,I),D=L.left,I=L.right,p.pbox[H]=D,p.pbox[H+1]=I;for(let H=0;H<4;H++)for(let M=0;M<256;M+=2)L=w(p,D,I),D=L.left,I=L.right,p.sbox[H][M]=D,p.sbox[H][M+1]=I;return!0}var v=h.Blowfish=c.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,A=p.sigBytes/4;R(T,g,A)}},encryptBlock:function(p,g){var A=w(T,p[g],p[g+1]);p[g]=A.left,p[g+1]=A.right},decryptBlock:function(p,g){var A=F(T,p[g],p[g+1]);p[g]=A.left,p[g+1]=A.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=c._createHelper(v)}(),n.Blowfish})}(_f)),_f.exports}(function(t,e){(function(n,r,a){t.exports=r(Lt(),yu(),by(),Ey(),xo(),xy(),So(),Pp(),jl(),Sy(),Up(),Ty(),Ay(),Cy(),ql(),Dy(),uo(),Xn(),ky(),Oy(),wy(),Ry(),Fy(),Ny(),Iy(),Py(),By(),Ly(),My(),Uy(),Vy(),jy(),$y(),Hy(),Gy())})(Tt,function(n){return n})})(Cp);var ld=Cp.exports;class Ky{constructor(e){P(this,"_nameMap");P(this,"_prefixNameVar");P(this,"_prefixNameFunc");P(this,"_prefixNameConst");P(this,"_userTypes");P(this,"_isInFunc");P(this,"_currentFuncName");P(this,"_varlist");P(this,"_memberIndexList");P(this,"_blockCount");P(this,"_inputCount");P(this,"_count");P(this,"_isSwitch",!1);P(this,"_isInLoop",!1);P(this,"_codesCol");P(this,"_dependsObj");P(this,"_enums");this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._inputCount=0,this._count=0,this._codesCol=[[]],this._dependsObj={},this._enums=new Map}preParser(e){var r,a;const n=[];for(const c of e){if(!c)return;if(Array.isArray(c)){for(const h of c)if(n.push(this._parserStmt(h)),Ol.includes((a=(r=h.exprs)==null?void 0:r[0])==null?void 0:a.name))return n.join(`;
26
+ */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(d){if((d>>24&255)===255){var E=d>>16&255,b=d>>8&255,T=d&255;E===255?(E=0,b===255?(b=0,T===255?T=0:++T):++b):++E,d=0,d+=E<<16,d+=b<<8,d+=T}else d+=1<<24;return d}function c(d){return(d[0]=a(d[0]))===0&&(d[1]=a(d[1])),d}var h=r.Encryptor=r.extend({processBlock:function(d,E){var b=this._cipher,T=b.blockSize,x=this._iv,w=this._counter;x&&(w=this._counter=x.slice(0),this._iv=void 0),c(w);var F=w.slice(0);b.encryptBlock(F,0);for(var R=0;R<T;R++)d[E+R]^=F[R]}});return r.Decryptor=h,r}(),n.mode.CTRGladman})}(ef)),ef.exports}var tf={exports:{}},Yp;function Ry(){return Yp||(Yp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(c,h){var d=this._cipher,E=d.blockSize,b=this._iv,T=this._keystream;b&&(T=this._keystream=b.slice(0),this._iv=void 0),d.encryptBlock(T,0);for(var x=0;x<E;x++)c[h+x]^=T[x]}});return r.Decryptor=a,r}(),n.mode.OFB})}(tf)),tf.exports}var nf={exports:{}},Zp;function Fy(){return Zp||(Zp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,c){this._cipher.encryptBlock(a,c)}}),r.Decryptor=r.extend({processBlock:function(a,c){this._cipher.decryptBlock(a,c)}}),r}(),n.mode.ECB})}(nf)),nf.exports}var rf={exports:{}},Qp;function Ny(){return Qp||(Qp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.AnsiX923={pad:function(r,a){var c=r.sigBytes,h=a*4,d=h-c%h,E=c+d-1;r.clamp(),r.words[E>>>2]|=d<<24-E%4*8,r.sigBytes+=d},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(rf)),rf.exports}var of={exports:{}},Jp;function Iy(){return Jp||(Jp=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.Iso10126={pad:function(r,a){var c=a*4,h=c-r.sigBytes%c;r.concat(n.lib.WordArray.random(h-1)).concat(n.lib.WordArray.create([h<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(of)),of.exports}var af={exports:{}},ed;function Py(){return ed||(ed=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(af)),af.exports}var sf={exports:{}},td;function By(){return td||(td=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.ZeroPadding={pad:function(r,a){var c=a*4;r.clamp(),r.sigBytes+=c-(r.sigBytes%c||c)},unpad:function(r){for(var a=r.words,c=r.sigBytes-1,c=r.sigBytes-1;c>=0;c--)if(a[c>>>2]>>>24-c%4*8&255){r.sigBytes=c+1;break}}},n.pad.ZeroPadding})}(sf)),sf.exports}var uf={exports:{}},nd;function Ly(){return nd||(nd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(uf)),uf.exports}var cf={exports:{}},rd;function My(){return rd||(rd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),Xn())})(Tt,function(n){return function(r){var a=n,c=a.lib,h=c.CipherParams,d=a.enc,E=d.Hex,b=a.format;b.Hex={stringify:function(T){return T.ciphertext.toString(E)},parse:function(T){var x=E.parse(T);return h.create({ciphertext:x})}}}(),n.format.Hex})}(cf)),cf.exports}var lf={exports:{}},id;function Uy(){return id||(id=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.BlockCipher,h=r.algo,d=[],E=[],b=[],T=[],x=[],w=[],F=[],R=[],v=[],p=[];(function(){for(var O=[],D=0;D<256;D++)D<128?O[D]=D<<1:O[D]=D<<1^283;for(var I=0,L=0,D=0;D<256;D++){var H=L^L<<1^L<<2^L<<3^L<<4;H=H>>>8^H&255^99,d[I]=H,E[H]=I;var M=O[I],G=O[M],N=O[G],K=O[H]*257^H*16843008;b[I]=K<<24|K>>>8,T[I]=K<<16|K>>>16,x[I]=K<<8|K>>>24,w[I]=K;var K=N*16843009^G*65537^M*257^I*16843008;F[H]=K<<24|K>>>8,R[H]=K<<16|K>>>16,v[H]=K<<8|K>>>24,p[H]=K,I?(I=M^O[O[O[N^M]]],L^=O[O[L]]):I=L=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],A=h.AES=c.extend({_doReset:function(){var O;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,I=D.words,L=D.sigBytes/4,H=this._nRounds=L+6,M=(H+1)*4,G=this._keySchedule=[],N=0;N<M;N++)N<L?G[N]=I[N]:(O=G[N-1],N%L?L>6&&N%L==4&&(O=d[O>>>24]<<24|d[O>>>16&255]<<16|d[O>>>8&255]<<8|d[O&255]):(O=O<<8|O>>>24,O=d[O>>>24]<<24|d[O>>>16&255]<<16|d[O>>>8&255]<<8|d[O&255],O^=g[N/L|0]<<24),G[N]=G[N-L]^O);for(var K=this._invKeySchedule=[],Y=0;Y<M;Y++){var N=M-Y;if(Y%4)var O=G[N];else var O=G[N-4];Y<4||N<=4?K[Y]=O:K[Y]=F[d[O>>>24]]^R[d[O>>>16&255]]^v[d[O>>>8&255]]^p[d[O&255]]}}},encryptBlock:function(O,D){this._doCryptBlock(O,D,this._keySchedule,b,T,x,w,d)},decryptBlock:function(O,D){var I=O[D+1];O[D+1]=O[D+3],O[D+3]=I,this._doCryptBlock(O,D,this._invKeySchedule,F,R,v,p,E);var I=O[D+1];O[D+1]=O[D+3],O[D+3]=I},_doCryptBlock:function(O,D,I,L,H,M,G,N){for(var K=this._nRounds,Y=O[D]^I[0],ne=O[D+1]^I[1],se=O[D+2]^I[2],re=O[D+3]^I[3],ue=4,ce=1;ce<K;ce++){var Ee=L[Y>>>24]^H[ne>>>16&255]^M[se>>>8&255]^G[re&255]^I[ue++],Te=L[ne>>>24]^H[se>>>16&255]^M[re>>>8&255]^G[Y&255]^I[ue++],_e=L[se>>>24]^H[re>>>16&255]^M[Y>>>8&255]^G[ne&255]^I[ue++],oe=L[re>>>24]^H[Y>>>16&255]^M[ne>>>8&255]^G[se&255]^I[ue++];Y=Ee,ne=Te,se=_e,re=oe}var Ee=(N[Y>>>24]<<24|N[ne>>>16&255]<<16|N[se>>>8&255]<<8|N[re&255])^I[ue++],Te=(N[ne>>>24]<<24|N[se>>>16&255]<<16|N[re>>>8&255]<<8|N[Y&255])^I[ue++],_e=(N[se>>>24]<<24|N[re>>>16&255]<<16|N[Y>>>8&255]<<8|N[ne&255])^I[ue++],oe=(N[re>>>24]<<24|N[Y>>>16&255]<<16|N[ne>>>8&255]<<8|N[se&255])^I[ue++];O[D]=Ee,O[D+1]=Te,O[D+2]=_e,O[D+3]=oe},keySize:256/32});r.AES=c._createHelper(A)}(),n.AES})}(lf)),lf.exports}var ff={exports:{}},od;function Vy(){return od||(od=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.WordArray,h=a.BlockCipher,d=r.algo,E=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],b=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],T=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],w=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],F=d.DES=h.extend({_doReset:function(){for(var g=this._key,A=g.words,O=[],D=0;D<56;D++){var I=E[D]-1;O[D]=A[I>>>5]>>>31-I%32&1}for(var L=this._subKeys=[],H=0;H<16;H++){for(var M=L[H]=[],G=T[H],D=0;D<24;D++)M[D/6|0]|=O[(b[D]-1+G)%28]<<31-D%6,M[4+(D/6|0)]|=O[28+(b[D+24]-1+G)%28]<<31-D%6;M[0]=M[0]<<1|M[0]>>>31;for(var D=1;D<7;D++)M[D]=M[D]>>>(D-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var N=this._invSubKeys=[],D=0;D<16;D++)N[D]=L[15-D]},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._subKeys)},decryptBlock:function(g,A){this._doCryptBlock(g,A,this._invSubKeys)},_doCryptBlock:function(g,A,O){this._lBlock=g[A],this._rBlock=g[A+1],R.call(this,4,252645135),R.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),R.call(this,1,1431655765);for(var D=0;D<16;D++){for(var I=O[D],L=this._lBlock,H=this._rBlock,M=0,G=0;G<8;G++)M|=x[G][((H^I[G])&w[G])>>>0];this._lBlock=H,this._rBlock=L^M}var N=this._lBlock;this._lBlock=this._rBlock,this._rBlock=N,R.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),R.call(this,16,65535),R.call(this,4,252645135),g[A]=this._lBlock,g[A+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function R(g,A){var O=(this._lBlock>>>g^this._rBlock)&A;this._rBlock^=O,this._lBlock^=O<<g}function v(g,A){var O=(this._rBlock>>>g^this._lBlock)&A;this._lBlock^=O,this._rBlock^=O<<g}r.DES=h._createHelper(F);var p=d.TripleDES=h.extend({_doReset:function(){var g=this._key,A=g.words;if(A.length!==2&&A.length!==4&&A.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var O=A.slice(0,2),D=A.length<4?A.slice(0,2):A.slice(2,4),I=A.length<6?A.slice(0,2):A.slice(4,6);this._des1=F.createEncryptor(c.create(O)),this._des2=F.createEncryptor(c.create(D)),this._des3=F.createEncryptor(c.create(I))},encryptBlock:function(g,A){this._des1.encryptBlock(g,A),this._des2.decryptBlock(g,A),this._des3.encryptBlock(g,A)},decryptBlock:function(g,A){this._des3.decryptBlock(g,A),this._des2.encryptBlock(g,A),this._des1.decryptBlock(g,A)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=h._createHelper(p)}(),n.TripleDES})}(ff)),ff.exports}var hf={exports:{}},ad;function jy(){return ad||(ad=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=h.RC4=c.extend({_doReset:function(){for(var T=this._key,x=T.words,w=T.sigBytes,F=this._S=[],R=0;R<256;R++)F[R]=R;for(var R=0,v=0;R<256;R++){var p=R%w,g=x[p>>>2]>>>24-p%4*8&255;v=(v+F[R]+g)%256;var A=F[R];F[R]=F[v],F[v]=A}this._i=this._j=0},_doProcessBlock:function(T,x){T[x]^=E.call(this)},keySize:256/32,ivSize:0});function E(){for(var T=this._S,x=this._i,w=this._j,F=0,R=0;R<4;R++){x=(x+1)%256,w=(w+T[x])%256;var v=T[x];T[x]=T[w],T[w]=v,F|=T[(T[x]+T[w])%256]<<24-R*8}return this._i=x,this._j=w,F}r.RC4=c._createHelper(d);var b=h.RC4Drop=d.extend({cfg:d.cfg.extend({drop:192}),_doReset:function(){d._doReset.call(this);for(var T=this.cfg.drop;T>0;T--)E.call(this)}});r.RC4Drop=c._createHelper(b)}(),n.RC4})}(hf)),hf.exports}var pf={exports:{}},sd;function $y(){return sd||(sd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=[],E=[],b=[],T=h.Rabbit=c.extend({_doReset:function(){for(var w=this._key.words,F=this.cfg.iv,R=0;R<4;R++)w[R]=(w[R]<<8|w[R]>>>24)&16711935|(w[R]<<24|w[R]>>>8)&4278255360;var v=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],p=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var R=0;R<4;R++)x.call(this);for(var R=0;R<8;R++)p[R]^=v[R+4&7];if(F){var g=F.words,A=g[0],O=g[1],D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=D>>>16|I&4294901760,H=I<<16|D&65535;p[0]^=D,p[1]^=L,p[2]^=I,p[3]^=H,p[4]^=D,p[5]^=L,p[6]^=I,p[7]^=H;for(var R=0;R<4;R++)x.call(this)}},_doProcessBlock:function(w,F){var R=this._X;x.call(this),d[0]=R[0]^R[5]>>>16^R[3]<<16,d[1]=R[2]^R[7]>>>16^R[5]<<16,d[2]=R[4]^R[1]>>>16^R[7]<<16,d[3]=R[6]^R[3]>>>16^R[1]<<16;for(var v=0;v<4;v++)d[v]=(d[v]<<8|d[v]>>>24)&16711935|(d[v]<<24|d[v]>>>8)&4278255360,w[F+v]^=d[v]},blockSize:128/32,ivSize:64/32});function x(){for(var w=this._X,F=this._C,R=0;R<8;R++)E[R]=F[R];F[0]=F[0]+1295307597+this._b|0,F[1]=F[1]+3545052371+(F[0]>>>0<E[0]>>>0?1:0)|0,F[2]=F[2]+886263092+(F[1]>>>0<E[1]>>>0?1:0)|0,F[3]=F[3]+1295307597+(F[2]>>>0<E[2]>>>0?1:0)|0,F[4]=F[4]+3545052371+(F[3]>>>0<E[3]>>>0?1:0)|0,F[5]=F[5]+886263092+(F[4]>>>0<E[4]>>>0?1:0)|0,F[6]=F[6]+1295307597+(F[5]>>>0<E[5]>>>0?1:0)|0,F[7]=F[7]+3545052371+(F[6]>>>0<E[6]>>>0?1:0)|0,this._b=F[7]>>>0<E[7]>>>0?1:0;for(var R=0;R<8;R++){var v=w[R]+F[R],p=v&65535,g=v>>>16,A=((p*p>>>17)+p*g>>>15)+g*g,O=((v&4294901760)*v|0)+((v&65535)*v|0);b[R]=A^O}w[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,w[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,w[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,w[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,w[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,w[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,w[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,w[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}r.Rabbit=c._createHelper(T)}(),n.Rabbit})}(pf)),pf.exports}var df={exports:{}},ud;function Hy(){return ud||(ud=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.StreamCipher,h=r.algo,d=[],E=[],b=[],T=h.RabbitLegacy=c.extend({_doReset:function(){var w=this._key.words,F=this.cfg.iv,R=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],v=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var p=0;p<4;p++)x.call(this);for(var p=0;p<8;p++)v[p]^=R[p+4&7];if(F){var g=F.words,A=g[0],O=g[1],D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=D>>>16|I&4294901760,H=I<<16|D&65535;v[0]^=D,v[1]^=L,v[2]^=I,v[3]^=H,v[4]^=D,v[5]^=L,v[6]^=I,v[7]^=H;for(var p=0;p<4;p++)x.call(this)}},_doProcessBlock:function(w,F){var R=this._X;x.call(this),d[0]=R[0]^R[5]>>>16^R[3]<<16,d[1]=R[2]^R[7]>>>16^R[5]<<16,d[2]=R[4]^R[1]>>>16^R[7]<<16,d[3]=R[6]^R[3]>>>16^R[1]<<16;for(var v=0;v<4;v++)d[v]=(d[v]<<8|d[v]>>>24)&16711935|(d[v]<<24|d[v]>>>8)&4278255360,w[F+v]^=d[v]},blockSize:128/32,ivSize:64/32});function x(){for(var w=this._X,F=this._C,R=0;R<8;R++)E[R]=F[R];F[0]=F[0]+1295307597+this._b|0,F[1]=F[1]+3545052371+(F[0]>>>0<E[0]>>>0?1:0)|0,F[2]=F[2]+886263092+(F[1]>>>0<E[1]>>>0?1:0)|0,F[3]=F[3]+1295307597+(F[2]>>>0<E[2]>>>0?1:0)|0,F[4]=F[4]+3545052371+(F[3]>>>0<E[3]>>>0?1:0)|0,F[5]=F[5]+886263092+(F[4]>>>0<E[4]>>>0?1:0)|0,F[6]=F[6]+1295307597+(F[5]>>>0<E[5]>>>0?1:0)|0,F[7]=F[7]+3545052371+(F[6]>>>0<E[6]>>>0?1:0)|0,this._b=F[7]>>>0<E[7]>>>0?1:0;for(var R=0;R<8;R++){var v=w[R]+F[R],p=v&65535,g=v>>>16,A=((p*p>>>17)+p*g>>>15)+g*g,O=((v&4294901760)*v|0)+((v&65535)*v|0);b[R]=A^O}w[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,w[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,w[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,w[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,w[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,w[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,w[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,w[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}r.RabbitLegacy=c._createHelper(T)}(),n.RabbitLegacy})}(df)),df.exports}var _f={exports:{}},cd;function Gy(){return cd||(cd=1,function(t,e){(function(n,r,a){t.exports=r(Lt(),xo(),So(),uo(),Xn())})(Tt,function(n){return function(){var r=n,a=r.lib,c=a.BlockCipher,h=r.algo;const d=16,E=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],b=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var T={pbox:[],sbox:[]};function x(p,g){let A=g>>24&255,O=g>>16&255,D=g>>8&255,I=g&255,L=p.sbox[0][A]+p.sbox[1][O];return L=L^p.sbox[2][D],L=L+p.sbox[3][I],L}function w(p,g,A){let O=g,D=A,I;for(let L=0;L<d;++L)O=O^p.pbox[L],D=x(p,O)^D,I=O,O=D,D=I;return I=O,O=D,D=I,D=D^p.pbox[d],O=O^p.pbox[d+1],{left:O,right:D}}function F(p,g,A){let O=g,D=A,I;for(let L=d+1;L>1;--L)O=O^p.pbox[L],D=x(p,O)^D,I=O,O=D,D=I;return I=O,O=D,D=I,D=D^p.pbox[1],O=O^p.pbox[0],{left:O,right:D}}function R(p,g,A){for(let H=0;H<4;H++){p.sbox[H]=[];for(let M=0;M<256;M++)p.sbox[H][M]=b[H][M]}let O=0;for(let H=0;H<d+2;H++)p.pbox[H]=E[H]^g[O],O++,O>=A&&(O=0);let D=0,I=0,L=0;for(let H=0;H<d+2;H+=2)L=w(p,D,I),D=L.left,I=L.right,p.pbox[H]=D,p.pbox[H+1]=I;for(let H=0;H<4;H++)for(let M=0;M<256;M+=2)L=w(p,D,I),D=L.left,I=L.right,p.sbox[H][M]=D,p.sbox[H][M+1]=I;return!0}var v=h.Blowfish=c.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,A=p.sigBytes/4;R(T,g,A)}},encryptBlock:function(p,g){var A=w(T,p[g],p[g+1]);p[g]=A.left,p[g+1]=A.right},decryptBlock:function(p,g){var A=F(T,p[g],p[g+1]);p[g]=A.left,p[g+1]=A.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=c._createHelper(v)}(),n.Blowfish})}(_f)),_f.exports}(function(t,e){(function(n,r,a){t.exports=r(Lt(),yu(),by(),Ey(),xo(),xy(),So(),Pp(),jl(),Sy(),Up(),Ty(),Ay(),Cy(),ql(),Dy(),uo(),Xn(),ky(),Oy(),wy(),Ry(),Fy(),Ny(),Iy(),Py(),By(),Ly(),My(),Uy(),Vy(),jy(),$y(),Hy(),Gy())})(Tt,function(n){return n})})(Cp);var ld=Cp.exports;class Ky{constructor(e){P(this,"_nameMap");P(this,"_prefixNameVar");P(this,"_prefixNameFunc");P(this,"_prefixNameConst");P(this,"_userTypes");P(this,"_isInFunc");P(this,"_currentFuncName");P(this,"_varlist");P(this,"_memberIndexList");P(this,"_blockCount");P(this,"_inputCount");P(this,"_count");P(this,"_isSwitch",!1);P(this,"_isInLoop",!1);P(this,"_codesCol");P(this,"_dependsObj");P(this,"_enums");P(this,"_preRunMembers");this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._inputCount=0,this._count=0,this._codesCol=[[]],this._dependsObj={},this._enums=new Map,this._preRunMembers=[]}preParser(e){var r,a;const n=[];for(const c of e){if(!c)return;if(Array.isArray(c)){for(const h of c)if(n.push(this._parserStmt(h)),Ol.includes((a=(r=h.exprs)==null?void 0:r[0])==null?void 0:a.name))return n.join(`;
27
27
  `).replace(/;+/g,";")}else n.push(this._parserStmt(c))}return""}parser(e){const n=[];for(const a of e){if(!a)return;if(Array.isArray(a))for(const c of a)n.push(this._parserStmt(c));else n.push(this._parserStmt(a))}const r=this._memberIndexList[this._blockCount]||{};return n.push(...Object.values(r)),n.join(`;
28
- `).replace(/;+/g,";")}_parserStmt(e,n=!1){switch(e==null?void 0:e.ruleType){case ye.DeclareAssign:return this._parserDeclareAssign(e);case ye.MethodExpression:return`${this._parserMethodExpression(e)}`;case ye.ArrowFunction:return this._parserArrowFunction(e);case ye.ArrowMethod:return this._parserArrowMethod(e);case ye.IfStatement:return this._parserIfStatement(e,n);case ye.WhileStatement:return this._parserWhileStatement(e,n);case ye.SwitchStatement:return this._parserSwitchStatement(e,n);case ye.ForInStatement:return this._parserForInStatement(e,n);case ye.ForToStatement:return this._parserForToStatement(e,n);case ye.AgainAssign:return this._parserAgainAssign(e);case ye.ImportElement:return e.code||"";case ye.TypeStatement:return this._parserTypeStatement(e);case ye.VarBlockStmt:return this._parserVarBlockStmt(e);case ye.FlowStmt:return this._isSwitch&&e.value==="break"?this._isInLoop?"$$isBreak = true;":"":`${e.value};`;case ye.Brackethesized:return this._parserBrackethesized(e);case ye.EnumStatement:return this._parserEnumStatement(e);default:return this._parserSingleExpression(e)}}_parserEnumStatement(e){let{name:n,fields:r}=e;const a=[],c=[];for(const d of r){const{name:E,value:b}=d,T=b===void 0?`"${E}"`:b;c.push(T),a.push(`${E}: ${T}`)}Nn.includes(n)&&(n=`$${n}`),this._enums.set(n,c);const h=`const ${n} = {${a.join(", ")}}`;return this._codesCol[this._blockCount].push({code:h,varNames:[n],depends:[]}),h}_parserTypeStatement(e){const n=[],r=[];for(const h of e.fields){const{name:d,value:E}=h;h.isVarip&&r.push(`"${d}"`),n.push(`${d}: ${E?this._parserSingleExpression(E):"undefined"}`)}this._userTypes.push(e.name);let a=e.name;Nn.includes(a)&&(a=`$${a}`);const c=`const ${a} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${r.join()}])`;return this._codesCol[this._blockCount].push({code:c,varNames:[a],depends:[]}),c}_parserVarBlockStmt(e){const{nameList:n,value:r}=e;this._addVarList(n);const a=this._parserDeclareAssignNames(n);this._dependsObj[a]=new Map;const c=this._parserStmt(r,!0),h=`let ${a} = ${c}`,d={code:h,varNames:a.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(a)};return this._codesCol[this._blockCount].push(d),h}_getDepends(e){const n=[];for(const[r,a]of this._dependsObj[e])(a.scope||0)>this._blockCount||n.push(a);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:r,block:a,name:c}=e;const[h,d,E]=r,b=this._isInLoop;this._isInLoop=!0;const T=`$start${this._count++}`,x=`$$count${this._count}`,w=`$forTo${this._blockCount}`;n||(this._dependsObj[w]=new Map);const F=this._parserSingleExpression(h),R=this._parserSingleExpression(d),v=E?this._parserSingleExpression(E):"",p=this._parserBlockLine(a,n,!1,!0);Nn.includes(c)&&(c=`$${c}`);const g=`const ${T} = Date.now()`,A=`for (let ${c}=${F}; ${c}>=(${R}); ${c}+=(${v||"-1"})){
28
+ `).replace(/;+/g,";")}_parserStmt(e,n=!1,r=!1){let a="";switch(e==null?void 0:e.ruleType){case ye.DeclareAssign:a=this._parserDeclareAssign(e);break;case ye.MethodExpression:a=`${this._parserMethodExpression(e)}`;break;case ye.ArrowFunction:a=this._parserArrowFunction(e);break;case ye.ArrowMethod:a=this._parserArrowMethod(e);break;case ye.IfStatement:a=this._parserIfStatement(e,n);break;case ye.WhileStatement:a=this._parserWhileStatement(e,n);break;case ye.SwitchStatement:a=this._parserSwitchStatement(e,n);break;case ye.ForInStatement:a=this._parserForInStatement(e,n);break;case ye.ForToStatement:a=this._parserForToStatement(e,n);break;case ye.AgainAssign:a=this._parserAgainAssign(e);break;case ye.ImportElement:a=e.code||"";break;case ye.TypeStatement:a=this._parserTypeStatement(e);break;case ye.VarBlockStmt:a=this._parserVarBlockStmt(e);break;case ye.FlowStmt:if(this._isSwitch&&e.value==="break"){if(this._isInLoop){a="$$isBreak = true;";break}a="";break}a=`${e.value};`;break;case ye.Brackethesized:a=this._parserBrackethesized(e);break;case ye.EnumStatement:a=this._parserEnumStatement(e);break;default:a=this._parserSingleExpression(e);break}return this._preRunMembers.length&&(a=`${this._preRunMembers.join(`;
29
+ `)}${n&&r?`
30
+ /****/
31
+ `:`;
32
+ `}${a}`,this._preRunMembers=[]),a}_parserEnumStatement(e){let{name:n,fields:r}=e;const a=[],c=[];for(const d of r){const{name:E,value:b}=d,T=b===void 0?`"${E}"`:b;c.push(T),a.push(`${E}: ${T}`)}Nn.includes(n)&&(n=`$${n}`),this._enums.set(n,c);const h=`const ${n} = {${a.join(", ")}}`;return this._codesCol[this._blockCount].push({code:h,varNames:[n],depends:[]}),h}_parserTypeStatement(e){const n=[],r=[];for(const h of e.fields){const{name:d,value:E}=h;h.isVarip&&r.push(`"${d}"`),n.push(`${d}: ${E?this._parserSingleExpression(E):"undefined"}`)}this._userTypes.push(e.name);let a=e.name;Nn.includes(a)&&(a=`$${a}`);const c=`const ${a} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${r.join()}])`;return this._codesCol[this._blockCount].push({code:c,varNames:[a],depends:[]}),c}_parserVarBlockStmt(e){const{nameList:n,value:r}=e;this._addVarList(n);const a=this._parserDeclareAssignNames(n);this._dependsObj[a]=new Map;const c=this._parserStmt(r,!0),h=`let ${a} = ${c}`,d={code:h,varNames:a.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(a)};return this._codesCol[this._blockCount].push(d),h}_getDepends(e){const n=[];for(const[r,a]of this._dependsObj[e])(a.scope||0)>this._blockCount||n.push(a);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:r,block:a,name:c}=e;const[h,d,E]=r,b=this._isInLoop;this._isInLoop=!0;const T=`$start${this._count++}`,x=`$$count${this._count}`,w=`$forTo${this._blockCount}`;n||(this._dependsObj[w]=new Map);const F=this._parserSingleExpression(h),R=this._parserSingleExpression(d),v=E?this._parserSingleExpression(E):"",p=this._parserBlockLine(a,n,!1,!0);Nn.includes(c)&&(c=`$${c}`);const g=`const ${T} = Date.now()`,A=`for (let ${c}=${F}; ${c}>=(${R}); ${c}+=(${v||"-1"})){
29
33
  if (Date.now() - ${T} > 500) {
30
34
  throw new Error('${xe.loopRuntimeErr}')
31
35
  }
@@ -95,14 +99,17 @@ ${this._prefixNameVar}.againAssignParse(${E}, ${w});
95
99
  break;
96
100
  }
97
101
  `)}else c.push(this._getMembersCode());return this._varlist[this._blockCount]={},this._memberIndexList[this._blockCount]={},this._codesCol[this._blockCount]=[],this._blockCount--,`${c.filter(E=>E).join(`;
98
- `)}`}_parserReturnBlock(e,n=!1){let r="",a="";switch(e.ruleType){case ye.AgainAssign:return r=this._parserAgainAssign(e),a=this._getMembersCode(),n?`${r};
102
+ `)}`}_parserReturnBlock(e,n=!1){let r="",a="";switch(e.ruleType){case ye.AgainAssign:return r=this._parserStmt(e),a=this._getMembersCode(),n?`${r};
99
103
  ${a}
100
104
  return ${this._parserName(e.name,!0)}`:`${r};
101
105
  ${a}
102
- $$_result = ${this._parserName(e.name,!0)}`;case ye.DeclareAssign:r=this._parserSingleExpression(e.value),a=this._getMembersCode();break;case ye.FlowStmt:return this._getMembersCode();default:r=this._parserStmt(e,!0),a=this._getMembersCode()}return n?`${a}
103
-
104
- return ${r}`:`${a}
105
-
106
+ $$_result = ${this._parserName(e.name,!0)}`;case ye.DeclareAssign:a=`${this._parserStmt(e)}
107
+ ${this._getMembersCode()}`,r=this._parserDeclareAssignNames(e.nameList);break;case ye.FlowStmt:return this._getMembersCode();default:r=this._parserStmt(e,!0,n),a=this._getMembersCode()}if(n){const c=r.split(`
108
+ /****/
109
+ `);return c.length>1?`${a}
110
+ ${c[0]}
111
+ return ${c[1]}`:`${a}
112
+ return ${r}`}return`${a}
106
113
  $$_result = ${r}`}_getMembersCode(){const e=this._memberIndexList[this._blockCount]||{};return Object.values(e).join(`;
107
114
  `)}_parserArrowMethod(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params],a=e.index?`$${e.index}`:"";e.hasMemberIndex&&r.push({name:`${this._prefixNameVar}_position`}),n=`${n}${a}`,this._currentFuncName=n,this._dependsObj[n]=new Map;const c=this._parserBlock(e.block,!0,!0),h=e.hasRequest?", $paramsExpr":"";let d=`const ${n} = (${this._parserParameters(r)}$posStr${h}) => {
108
115
  ${c}
@@ -113,7 +120,7 @@ ${this._prefixNameVar}.againAssignParse(${E}, ${w});
113
120
  })
114
121
  `}return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:d}),d}_parserArrowFunction(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params];e.hasMemberIndex&&r.push({name:`${this._prefixNameVar}_position`}),n=`${n}${e.index?`$${e.index}`:""}`,this._currentFuncName=n,this._dependsObj[n]=new Map;const a=e.hasRequest?", $paramsExpr":"",c=`const ${n} = (${this._parserParameters(r)}$posStr${a}) => {
115
122
  ${this._parserBlock(e.block,!0,!0)}
116
- }`;return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:c}),c}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:r,defaultValue:a}=n;let c=r;if(a){const h=this._parserSingleExpression(a);c=`${c} = ${h}`}return c}).join(", ")}},`:""}_parserBlock(e,n=!1,r=!1){return r&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,r)}_addVarList(e){const n=this._varlist[this._blockCount]||{};if(e.names)for(const[r,a]of e.names.entries())n[a]=e.posList[r];else n[e.name]=e.pos;this._varlist[this._blockCount]=n}_parserDeclareAssign(e){var E;const{nameList:n,value:r}=e;if(n.name==="_")return"";const a=this._parserDeclareAssignNames(n);this._addVarList(n);const c={code:"",varNames:a.replace(/[\[\]]/g,"").split(", "),depends:[]};this._dependsObj[a]=new Map;const h=this._parserSingleExpression(r);let d=`let ${a} = ${h}`;if(n.declare){const b=`${n.pos.column}_${n.pos.lineNumber}`,T=this._isInFunc?`$posStr + "_${b}"`:`"${b}"`;d=`let ${a} = ${this._prefixNameVar}.getVarValue("${a}", ${T}, "${n.declare}") || ${this._prefixNameVar}.setVarValue("${a}", ${T}, ${h}, "${n.declare}")`}return c.code=d,c.depends=this._getDepends(a),(E=this._codesCol[this._blockCount])==null||E.push(c),d}_parserDeclareAssignNames(e){switch(e==null?void 0:e.ruleType){case"VarMultiple":return`[${e.names.map(n=>Nn.includes(n)?`$${n}`:n).join(", ")}]`;case"VarSingle":return Nn.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:r}=e;switch(e.ruleType){case ye.MemberIndexExpression:return this._parserMemberIndexExpression(e);case ye.MethodExpression:return this._parserMethodExpression(e);case ye.UnaryExpression:return`${r}${this._parserSingleExpression(n[0])}`;case ye.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case ye.AdditiveExpression:return this._parserAdditiveExpression(e);case ye.MultiplicativeExpression:case ye.RelationalExpression:case ye.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${r} ${this._parserSingleExpression(n[1])}`;case ye.LogicalAndExpression:return`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`;case ye.LogicalOrExpression:return`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`;case ye.TernaryExpression:return`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`;case ye.Name:return this._parserName(e);case ye.Literal:return this._parseLiteral(e);case ye.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:r}=e,a=this._parserSingleExpression(n[0]),c=this._parserSingleExpression(n[1]);return r==="-"?`${this._prefixNameVar}.sub(${a}, ${c})`:`${this._prefixNameVar}.add(${a}, ${c})`}_parserMemberIndexExpression(e){const{exprs:n,isInFunc:r,ctx:a}=e,c=n[0],h=this._parserSingleExpression(n[1]);if(c.ruleType===ye.Name&&!c.hasMethod){let T=this._blockCount;const x=c.name;for(c.isBuiltIn||this._setDepend({name:x,scope:c.varScope});T>=0;){const w=this._varlist[T]||{},F=w[x];if(F)return this._getUserVarMemberIndexs(F,x,T,h,r);if(c.isBuiltIn){const R=this._parserSingleExpression(c),v=this._memberIndexList[0]||{};return v[x]=`${this._prefixNameVar}.setCacheData("${x}", ${R})`,`${this._prefixNameVar}.getCacheData("${x}", ${h}, ${R})`}else if(x.includes(".")){const R=x.split(".")[0],v=w[R];if(v)return this._getUserVarMemberIndexs(v,x,T,h,r)}T--}}const d=a.start.tokenIndex,E=this._parserSingleExpression(c),b=r?`${this._prefixNameVar}_position`:d;return`${this._prefixNameVar}.getCacheData("m${d}_" + ${b}, ${h}, ${E})`}_getUserVarMemberIndexs(e,n,r,a,c){const h=this._memberIndexList[r]||{};let d=`${n}_${e.lineNumber}_${e.column}`;return d=c&&r!==0?`"${d}_" + $posStr`:`"${d}"`,h[d]=`${this._prefixNameVar}.setCacheData(${d}, ${n})`,this._memberIndexList[r]=h,`${this._prefixNameVar}.getCacheData(${d}, ${a}, ${n})`}_parseLiteral(e){return e.type.endsWith(z.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const r=parseInt(e.substring(1,3),16),a=parseInt(e.substring(3,5),16),c=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=(255-parseInt(h,16))/255:n=1,`rgba(${Math.round(r)}, ${Math.round(a)}, ${Math.round(c)}, ${n.toFixed(2)})`}return e}_parserName(e,n=!1){const{exprs:r,varScope:a,hasMethod:c,arg:h}=e,d=r.map(E=>{var w;if(typeof E=="string")return E;const{column:b,line:T}=((w=E==null?void 0:E.ctx)==null?void 0:w.start)||{},x=`${T}_${b}`;return this._parserMethodElement(E,x)});if(e.expr&&d.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn)d.join(".")==="strategy.opentrades"&&d.push("opentrades"),d.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar);else if(Nn.includes(d[0])&&(d[0]=`$${d[0]}`),!c){const E={name:d[0],scope:a||(h==null?void 0:h.varScope)||0,isAgainAssign:n,isArg:h==null?void 0:h.isArg,functionName:this._currentFuncName};this._setDepend(E)}return d.join(".")}_setDepend(e){const n=e.name;for(const r of Object.values(this._dependsObj)){const a=r.get(n),c={...e};a&&a.isAgainAssign&&(c.isAgainAssign=!0),r.set(n,c)}}_parserMethodExpression(e){const{exprs:n,ctx:r}=e,{column:a,line:c}=r.start,h=`${c}_${a}`;let d=this._isInFunc?`$posStr + "__${h}"`:`"${h}"`;return d=this._isInLoop?`$$count${this._count} + ${d}`:d,n.map(b=>this._parserMethodElement(b,d)).join(".")}_parserMethodElement(e,n){let r="",a="";const c={...e.args};e.hasMemberIndex&&(a=`${this._prefixNameVar}_position: ${e.position}`),e.expr&&(r=`(${this._parserSingleExpression(e.expr)})`),r=r?`${r}.${e.name}`:this._nameMap.get(e.name)||e.name;let h=!1;if(e.isBuiltIn){if(Sp.includes(r))r=`${r}.${r}`;else if(r==="max_bars_back"){const{name:E,varPos:b}=c.var||c.params[0];a=`var_name: "${b?`${E}_${b.lineNumber}_${b.column}`:E}"`}r.startsWith(z.INPUT)?(a=`index: ${this._inputCount}`,this._inputCount++):r.startsWith("request.")&&(h=!0),r=`${this._prefixNameFunc}.${r}`}else{const E=r.split(".");let b=E[0];Nn.includes(b)&&(b=`$${b}`,r=E.join("."))}if(e.selfArg){const E=r.split("."),b=E.length;Object.assign(c,{[e.selfArg.name]:{name:E.slice(0,b-1).join(".")}}),r=E[b-1],r=this._nameMap.get(r)||r,this._setDepend({name:E[0],scope:e.varScope||0})}r=`${r}${e.index?`$${e.index}`:""}`;const d=this._parserArguments(c,a,n,h,e.hasRequest,r);if(!e.isBuiltIn){const E=r.split(".");if(E.length>1?this._setDepend({name:E[0],scope:e.varScope||0}):this._setDepend({name:r,scope:0,hasRequest:e.hasRequest,isFunc:!0}),e.funcName){const b=this._nameMap.get(e.funcName)||e.funcName;this._setDepend({name:b,originName:r,scope:0,hasRequest:e.hasRequest,isFunc:!0})}}return r+d}_parserArguments(e,n,r,a=!1,c=!1,h){const d=e.params||[];delete e.params;const E=[],b=[];let T=[],x;const w=(R,v)=>{c&&(this._dependsObj[r]=new Map),a&&v==="expression"&&(this._dependsObj[`$arg_${v}${r}`]=new Map);let p=R.ruleType===ye.Brackethesized?this._parserBrackethesized(R):this._parserSingleExpression(R);if(v&&!["arg0, arg1, ...","number0, number1, ..."].includes(v)){R.isSourceType?E.push(`sourceTypeName: "${R.name}"`):v==="defval"&&h===`${this._prefixNameFunc}.input.enum`&&(x=this._enums.get(R.enumName));const g=this._requestParamsHandle(a,v,r,c,p,h);p=(g==null?void 0:g.code)||p,g!=null&&g.paramsExpr&&T.push(g==null?void 0:g.paramsExpr),E.push(`${v}: ${p}`)}else b.push(p)};for(const R of d)w(R,R.originName);for(const R of Object.keys(e))w(e[R],R);a&&this._isInFunc&&E.push("paramsExpr: $paramsExpr"),n&&E.push(n),x&&E.unshift(`options: [${x.join(", ")}]`);const F=T.length?`, [${this._isInFunc?"...$paramsExpr, ":""}${T.join(", ")}]`:"";return b.length?`({${E.join(", ")}}, [${b.join(", ")}], ${r}${F})`:E.length?`({${E.join(", ")}}, ${r}${F})`:`(${r}${F})`}_requestParamsHandle(e,n,r,a,c,h){if(e&&n==="expression"){const d=this._getDepends(`$arg_${n}${r}`),E=this._getExpressionContext(d);return E.push({scope:1,depends:d.map(b=>(b.isArg&&(b.functionName=this._currentFuncName),b)),code:c}),{code:`'${ld.AES.encrypt(JSON.stringify(E),"1234").toString()}'`}}else if(a){const d=this._getDepends(r),E=this._getExpressionContext(d);return E.push({scope:2,varNames:n,methodName:h,depends:d,dependSelf:d.some(b=>b.name===n),code:`${n} = ${c}`}),{paramsExpr:`'${ld.AES.encrypt(JSON.stringify(E),"1234").toString()}'`}}}_getExpressionContext(e){const n=[],r=[];return this._getDependsCode(e,n,r),n}_getDependsCode(e,n,r){var a,c;for(const h of e)if(!h.isArg){const d=this._codesCol[h.scope||0],E=d.find(T=>{var x;return((x=T.varNames)==null?void 0:x.includes(h.name))||T.funcName===h.name});E&&(r.includes(E)||(r.push(E),E.depends.length&&this._getDependsCode(E.depends,n,r),n.push({scope:h.scope||0,code:E.code,depends:E.depends,funcName:E.funcName,varNames:(a=E.varNames)==null?void 0:a.join(", ")})));const b=d.filter(T=>T.depends.some(x=>x.name===h.name&&x.scope===h.scope&&x.isAgainAssign));for(const T of b)r.includes(T)||(r.push(T),T.depends.length&&this._getDependsCode(T.depends,n,r),n.push({scope:h.scope||0,code:T.code,depends:T.depends,funcName:T.funcName,varNames:(c=T.varNames)==null?void 0:c.join(", ")}))}}_parserBrackethesized(e){return`[${e.exprs.map(r=>this._parserSingleExpression(r)).join(", ")}]`}_functionalProcess(e){return`(function () {
123
+ }`;return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:c}),c}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:r,defaultValue:a}=n;let c=r;if(a){const h=this._parserSingleExpression(a);c=`${c} = ${h}`}return c}).join(", ")}},`:""}_parserBlock(e,n=!1,r=!1){return r&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,r)}_addVarList(e){const n=this._varlist[this._blockCount]||{};if(e.names)for(const[r,a]of e.names.entries())n[a]=e.posList[r];else n[e.name]=e.pos;this._varlist[this._blockCount]=n}_parserDeclareAssign(e){var E;const{nameList:n,value:r}=e;if(n.name==="_")return"";const a=this._parserDeclareAssignNames(n);this._addVarList(n);const c={code:"",varNames:a.replace(/[\[\]]/g,"").split(", "),depends:[]};this._dependsObj[a]=new Map;const h=this._parserSingleExpression(r);let d=`let ${a} = ${h}`;if(n.declare){const b=`${n.pos.column}_${n.pos.lineNumber}`,T=this._isInFunc?`$posStr + "_${b}"`:`"${b}"`;d=`let ${a} = ${this._prefixNameVar}.getVarValue("${a}", ${T}, "${n.declare}") || ${this._prefixNameVar}.setVarValue("${a}", ${T}, ${h}, "${n.declare}")`}return c.code=d,c.depends=this._getDepends(a),(E=this._codesCol[this._blockCount])==null||E.push(c),d}_parserDeclareAssignNames(e){switch(e==null?void 0:e.ruleType){case"VarMultiple":return`[${e.names.map(n=>Nn.includes(n)?`$${n}`:n).join(", ")}]`;case"VarSingle":return Nn.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:r}=e;switch(e.ruleType){case ye.MemberIndexExpression:return this._parserMemberIndexExpression(e);case ye.MethodExpression:return this._parserMethodExpression(e);case ye.UnaryExpression:return`${r}${this._parserSingleExpression(n[0])}`;case ye.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case ye.AdditiveExpression:return this._parserAdditiveExpression(e);case ye.MultiplicativeExpression:case ye.RelationalExpression:case ye.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${r} ${this._parserSingleExpression(n[1])}`;case ye.LogicalAndExpression:return`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`;case ye.LogicalOrExpression:return`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`;case ye.TernaryExpression:return`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`;case ye.Name:return this._parserName(e);case ye.Literal:return this._parseLiteral(e);case ye.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:r}=e,a=this._parserSingleExpression(n[0]),c=this._parserSingleExpression(n[1]);return r==="-"?`${this._prefixNameVar}.sub(${a}, ${c})`:`${this._prefixNameVar}.add(${a}, ${c})`}_parserMemberIndexExpression(e){const{exprs:n,isInFunc:r,ctx:a}=e,c=n[0],h=this._parserSingleExpression(n[1]),d=this._parserSingleExpression(c),E=a.start.tokenIndex,b=r?`${this._prefixNameVar}_position`:E;if(c.ruleType===ye.Name&&!c.hasMethod){let T=this._blockCount;const x=c.name;for(c.isBuiltIn||this._setDepend({name:x,scope:c.varScope});T>=0;){const w=this._varlist[T]||{},F=w[x];if(F)return this._getUserVarMemberIndexs(F,x,T,h,r);if(c.isBuiltIn){const R=this._memberIndexList[0]||{};return R[x]=`${this._prefixNameVar}.setCacheData("${x}", ${d})`,`${this._prefixNameVar}.getCacheData("${x}", ${h}, ${d})`}else if(x.includes(".")){const R=x.split(".")[0],v=w[R];if(v)return this._getUserVarMemberIndexs(v,x,T,h,r)}T--}}else this._preRunMembers.push(`${this._prefixNameVar}.setCacheData("m${E}_" + ${b}, ${d})`);return`${this._prefixNameVar}.getCacheData("m${E}_" + ${b}, ${h}, ${d})`}_getUserVarMemberIndexs(e,n,r,a,c){const h=this._memberIndexList[r]||{};let d=`${n}_${e.lineNumber}_${e.column}`;return d=c&&r!==0?`"${d}_" + $posStr`:`"${d}"`,h[d]=`${this._prefixNameVar}.setCacheData(${d}, ${n})`,this._memberIndexList[r]=h,`${this._prefixNameVar}.getCacheData(${d}, ${a}, ${n})`}_parseLiteral(e){return e.type.endsWith(z.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const r=parseInt(e.substring(1,3),16),a=parseInt(e.substring(3,5),16),c=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=(255-parseInt(h,16))/255:n=1,`rgba(${Math.round(r)}, ${Math.round(a)}, ${Math.round(c)}, ${n.toFixed(2)})`}return e}_parserName(e,n=!1){const{exprs:r,varScope:a,hasMethod:c,arg:h}=e,d=r.map(E=>{var w;if(typeof E=="string")return E;const{column:b,line:T}=((w=E==null?void 0:E.ctx)==null?void 0:w.start)||{},x=`${T}_${b}`;return this._parserMethodElement(E,x)});if(e.expr&&d.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn)d.join(".")==="strategy.opentrades"&&d.push("opentrades"),d.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar);else if(Nn.includes(d[0])&&(d[0]=`$${d[0]}`),!c){const E={name:d[0],scope:a||(h==null?void 0:h.varScope)||0,isAgainAssign:n,isArg:h==null?void 0:h.isArg,functionName:this._currentFuncName};this._setDepend(E)}return d.join(".")}_setDepend(e){const n=e.name;for(const r of Object.values(this._dependsObj)){const a=r.get(n),c={...e};a&&a.isAgainAssign&&(c.isAgainAssign=!0),r.set(n,c)}}_parserMethodExpression(e){const{exprs:n,ctx:r}=e,{column:a,line:c}=r.start,h=`${c}_${a}`;let d=this._isInFunc?`$posStr + "__${h}"`:`"${h}"`;return d=this._isInLoop?`$$count${this._count} + ${d}`:d,n.map(b=>this._parserMethodElement(b,d)).join(".")}_parserMethodElement(e,n){let r="",a="";const c={...e.args};e.hasMemberIndex&&(a=`${this._prefixNameVar}_position: ${e.position}`),e.expr&&(r=`(${this._parserSingleExpression(e.expr)})`),r=r?`${r}.${e.name}`:this._nameMap.get(e.name)||e.name;let h=!1;if(e.isBuiltIn){if(Sp.includes(r))r=`${r}.${r}`;else if(r==="max_bars_back"){const{name:E,varPos:b}=c.var||c.params[0];a=`var_name: "${b?`${E}_${b.lineNumber}_${b.column}`:E}"`}r.startsWith(z.INPUT)?(a=`index: ${this._inputCount}`,this._inputCount++):r.startsWith("request.")&&(h=!0),r=`${this._prefixNameFunc}.${r}`}else{const E=r.split(".");let b=E[0];Nn.includes(b)&&(b=`$${b}`,r=E.join("."))}if(e.selfArg){const E=r.split("."),b=E.length;Object.assign(c,{[e.selfArg.name]:{name:E.slice(0,b-1).join(".")}}),r=E[b-1],r=this._nameMap.get(r)||r,this._setDepend({name:E[0],scope:e.varScope||0})}r=`${r}${e.index?`$${e.index}`:""}`;const d=this._parserArguments(c,a,n,h,e.hasRequest,r);if(!e.isBuiltIn){const E=r.split(".");if(E.length>1?this._setDepend({name:E[0],scope:e.varScope||0}):this._setDepend({name:r,scope:0,hasRequest:e.hasRequest,isFunc:!0}),e.funcName){const b=this._nameMap.get(e.funcName)||e.funcName;this._setDepend({name:b,originName:r,scope:0,hasRequest:e.hasRequest,isFunc:!0})}}return r+d}_parserArguments(e,n,r,a=!1,c=!1,h){const d=e.params||[];delete e.params;const E=[],b=[];let T=[],x;const w=(R,v)=>{c&&(this._dependsObj[r]=new Map),a&&v==="expression"&&(this._dependsObj[`$arg_${v}${r}`]=new Map);let p=R.ruleType===ye.Brackethesized?this._parserBrackethesized(R):this._parserSingleExpression(R);if(v&&!["arg0, arg1, ...","number0, number1, ..."].includes(v)){R.isSourceType?E.push(`sourceTypeName: "${R.name}"`):v==="defval"&&h===`${this._prefixNameFunc}.input.enum`&&(x=this._enums.get(R.enumName));const g=this._requestParamsHandle(a,v,r,c,p,h);p=(g==null?void 0:g.code)||p,g!=null&&g.paramsExpr&&T.push(g==null?void 0:g.paramsExpr),E.push(`${v}: ${p}`)}else b.push(p)};for(const R of d)w(R,R.originName);for(const R of Object.keys(e))w(e[R],R);a&&this._isInFunc&&E.push("paramsExpr: $paramsExpr"),n&&E.push(n),x&&E.unshift(`options: [${x.join(", ")}]`);const F=T.length?`, [${this._isInFunc?"...$paramsExpr, ":""}${T.join(", ")}]`:"";return b.length?`({${E.join(", ")}}, [${b.join(", ")}], ${r}${F})`:E.length?`({${E.join(", ")}}, ${r}${F})`:`(${r}${F})`}_requestParamsHandle(e,n,r,a,c,h){if(e&&n==="expression"){const d=this._getDepends(`$arg_${n}${r}`),E=this._getExpressionContext(d);return E.push({scope:1,depends:d.map(b=>(b.isArg&&(b.functionName=this._currentFuncName),b)),code:c}),{code:`'${ld.AES.encrypt(JSON.stringify(E),"1234").toString()}'`}}else if(a){const d=this._getDepends(r),E=this._getExpressionContext(d);return E.push({scope:2,varNames:n,methodName:h,depends:d,dependSelf:d.some(b=>b.name===n),code:`${n} = ${c}`}),{paramsExpr:`'${ld.AES.encrypt(JSON.stringify(E),"1234").toString()}'`}}}_getExpressionContext(e){const n=[],r=[];return this._getDependsCode(e,n,r),n}_getDependsCode(e,n,r){var a,c;for(const h of e)if(!h.isArg){const d=this._codesCol[h.scope||0],E=d.find(T=>{var x;return((x=T.varNames)==null?void 0:x.includes(h.name))||T.funcName===h.name});E&&(r.includes(E)||(r.push(E),E.depends.length&&this._getDependsCode(E.depends,n,r),n.push({scope:h.scope||0,code:E.code,depends:E.depends,funcName:E.funcName,varNames:(a=E.varNames)==null?void 0:a.join(", ")})));const b=d.filter(T=>T.depends.some(x=>x.name===h.name&&x.scope===h.scope&&x.isAgainAssign));for(const T of b)r.includes(T)||(r.push(T),T.depends.length&&this._getDependsCode(T.depends,n,r),n.push({scope:h.scope||0,code:T.code,depends:T.depends,funcName:T.funcName,varNames:(c=T.varNames)==null?void 0:c.join(", ")}))}}_parserBrackethesized(e){return`[${e.exprs.map(r=>this._parserSingleExpression(r)).join(", ")}]`}_functionalProcess(e){return`(function () {
117
124
  let $$_result=undefined;
118
125
  ${e}
119
126
  return $$_result
@@ -222,6 +229,6 @@ Input files:
222
229
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+gv(x)}else e.sourceMap.url&&(E.code+=`
223
230
  //# sourceMappingURL=`+e.sourceMap.url)}return e.nameCache&&e.mangle&&(e.mangle.cache&&(e.nameCache.vars=a_(e.mangle.cache)),e.mangle.properties&&e.mangle.properties.cache&&(e.nameCache.props=a_(e.mangle.properties.cache))),b&&b.source_map&&b.source_map.destroy(),r&&(r.end=Date.now(),E.timings={parse:.001*(r.rename-r.parse),rename:.001*(r.compress-r.rename),compress:.001*(r.scope-r.compress),scope:.001*(r.mangle-r.scope),mangle:.001*(r.properties-r.mangle),properties:.001*(r.format-r.properties),format:.001*(r.end-r.format),total:.001*(r.end-r.start)}),E}async function s_(t,e,n){const r=Ev(t,e,n);let a,c;do c=r.next(await a),a=c.value;while(!c.done);return c.value}function u_(t){const e=new Nm(t),n=new kl(e);n.removeErrorListeners();const r=new wm(n),a=new j(r);a._interp.predictionMode=Um.SLL,a.removeErrorListeners();const c=new Tv;n.addErrorListener(c),a.addErrorListener(c),a.buildParseTrees=!0;const h=a.program(),d=r.tokens.filter(E=>E.channel===2);return{errors:c.errors,ast:h,comments:d}}async function xv(t,e,n,r){const{errors:a,ast:c,comments:h}=u_(t+`
224
231
 
225
- `),d=new Ap(r,h,n),E=await d.visit(c);let b=a.splice(0,1);b.length||(b=d.errors);let T="";const x=new Ky("$"),w=e?"":x.preParser(E);if(e&&!b.some(F=>F.type===Vn.Error)){const F=x.parser(E)||"";T=(await s_(F,{compress:!0,mangle:!0})).code||"";const v={message:xe.indiRunErr,type:Vn.Error,startColumn:0,startLineNumber:0,endColumn:0,endLineNumber:0};if(d.hasUseDrawFunc){if(d.scriptType===Ui.library)d.exportPositions.length||(v.message=xe.libraryExportErr,b.push(v));else if(d.exportPositions.length){const p=d.exportPositions.map(g=>{const{type:A,...O}=g;return{message:Se(xe.exportUseErr,{type:A}),type:Vn.Error,...O}});b.push(...p)}}else switch(d.scriptType){case Ui.indicator:b.push(v);break;case Ui.strategy:d.hasUseCreateOrderFunc||(v.message=xe.strategyRunErr,b.push(v));break}}return{errors:b,functions:Object.fromEntries(d.userFunctions),variables:Object.fromEntries(d.userVariables),types:Object.fromEntries(d.userTypes),methods:Object.fromEntries(d.userMethods),overloadsFuncs:d.overloadsFuncs,imports:Object.fromEntries(d.imports),enums:Object.fromEntries(d.userEnums),codeStr:T,preParserCode:w}}async function Sv(t,e,n,r){const{ast:a,comments:c}=u_(t+`
232
+ `),d=new Ap(r,h,n),E=await d.visit(c);let b=a.splice(0,1);b.length||(b=d.errors);let T="";const x=new Ky("$"),w=e?"":x.preParser(E);if(e&&!b.some(F=>F.type===Vn.Error)){const F=x.parser(E)||"";T=(await s_(F,{compress:!0,mangle:!0})).code||"",console.log(F);const v={message:xe.indiRunErr,type:Vn.Error,startColumn:0,startLineNumber:0,endColumn:0,endLineNumber:0};if(d.hasUseDrawFunc){if(d.scriptType===Ui.library)d.exportPositions.length||(v.message=xe.libraryExportErr,b.push(v));else if(d.exportPositions.length){const p=d.exportPositions.map(g=>{const{type:A,...O}=g;return{message:Se(xe.exportUseErr,{type:A}),type:Vn.Error,...O}});b.push(...p)}}else switch(d.scriptType){case Ui.indicator:b.push(v);break;case Ui.strategy:d.hasUseCreateOrderFunc||(v.message=xe.strategyRunErr,b.push(v));break}}return{errors:b,functions:Object.fromEntries(d.userFunctions),variables:Object.fromEntries(d.userVariables),types:Object.fromEntries(d.userTypes),methods:Object.fromEntries(d.userMethods),overloadsFuncs:d.overloadsFuncs,imports:Object.fromEntries(d.imports),enums:Object.fromEntries(d.userEnums),codeStr:T,preParserCode:w}}async function Sv(t,e,n,r){const{ast:a,comments:c}=u_(t+`
226
233
 
227
234
  `),h=new Ap(r,c,n),d=await h.visit(a),{name:E,index:b}=h.endExport,T=d.findIndex(v=>v.name===E&&v.index===b),x=d.slice(0,T+1),F=new zy("$",e).parser(x)||"",R=await s_(F,{compress:!0,mangle:!0});return{...h.exportLibs,description:h.description,codeStr:R.code||""}}class Tv extends Rm{constructor(){super(...arguments);P(this,"errors",[])}syntaxError(n,r,a,c,h){this.errors.push({message:`syntax error: ${h.replace(/expecting.+/,"")}`,type:Vn.Error,startColumn:c,startLineNumber:a,endColumn:c,endLineNumber:a})}}yf({parseTcc:xv,parseLibraryCode:Sv})})();