-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantlr4.min.js
6 lines (6 loc) · 129 KB
/
antlr4.min.js
1
2
3
4
5
6
var antlr4 = exports = {};var cachedModules=[];;cachedModules[4684]={exports:{}},function(t,e){function n(t){return"["+t.join(", ")+"]"}function r(t,e){return t.equals(e)}function o(t){return t.hashString()}function i(t,e){return this.data={},this.hashFunction=t||o,this.equalsFunction=e||r,this}function s(){return this.data=[],this}function a(){return this.data={},this}function c(){return this}function u(t,e){return t=t.replace(" ","\\t"),t=t.replace("\n","\\n"),t=t.replace("\r","\\r"),e&&(t=t.replace(" ","·")),t}String.prototype.hashCode=function(t){var e=0;if(0===this.length)return e;for(var n=0;n<this.length;n++){var r=this.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e},Object.defineProperty(i.prototype,"length",{get:function(){return this.values().length}}),i.prototype.add=function(t){var e=this.hashFunction(t),n="hash_"+e.hashCode();if(n in this.data){var r,o=this.data[n];for(r=0;r<o.length;r++)if(this.equalsFunction(t,o[r]))return o[r];return o.push(t),t}return this.data[n]=[t],t},i.prototype.contains=function(t){var e=this.hashFunction(t),n=e.hashCode();if(n in this.data){var r,o=this.data[n];for(r=0;r<o.length;r++)if(this.equalsFunction(t,o[r]))return!0}return!1},i.prototype.values=function(){var t=[];for(var e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t},i.prototype.toString=function(){return n(this.values())},s.prototype.add=function(t){this.data[t]=!0},s.prototype.or=function(t){var e=this;Object.keys(t.data).map(function(t){e.add(t)})},s.prototype.remove=function(t){delete this.data[t]},s.prototype.contains=function(t){return this.data[t]===!0},s.prototype.values=function(){return Object.keys(this.data)},s.prototype.minValue=function(){return Math.min.apply(null,this.values())},s.prototype.hashString=function(){return this.values().toString()},s.prototype.equals=function(t){return t instanceof s?this.hashString()===t.hashString():!1},Object.defineProperty(s.prototype,"length",{get:function(){return this.values().length}}),s.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},a.prototype.get=function(t){return t="k-"+t,t in this.data?this.data[t]:null},a.prototype.put=function(t,e){t="k-"+t,this.data[t]=e},a.prototype.values=function(){var t=this.data,e=Object.keys(this.data);return e.map(function(e){return t[e]})},c.prototype.get=function(t,e){var n=this[t]||null;return null===n?null:n[e]||null},c.prototype.set=function(t,e,n){var r=this[t]||null;null===r&&(r={},this[t]=r),r[e]=n},e.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.titleCase=function(t){return t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1)})},e.Set=i,e.BitSet=s,e.AltDict=a,e.DoubleDict=c,e.escapeWhitespace=u,e.arrayToString=n}.call(this,cachedModules[4684],cachedModules[4684].exports),cachedModules[5924]={exports:{}},function(t,e){function n(){return 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,this}function r(t,e,o,i,s){return n.call(this),this.source=void 0!==t?t:r.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==o?o:n.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==s?s:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1,this}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1,Object.defineProperty(n.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t}}),n.prototype.getTokenSource=function(){return this.source[0]},n.prototype.getInputStream=function(){return this.source[1]},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.EMPTY_SOURCE=[null,null],r.prototype.clone=function(){var t=new r(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t},Object.defineProperty(r.prototype,"text",{get:function(){if(null!==this._text)return this._text;var t=this.getInputStream();if(null===t)return null;var e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"},set:function(t){this._text=t}}),r.prototype.toString=function(){var t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},e.Token=n,e.CommonToken=r}.call(this,cachedModules[5924],cachedModules[5924].exports),cachedModules[1265]={exports:{}},function(t,e){function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function r(){return n.call(this),this.stateType=n.BASIC,this}function o(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function i(){return o.call(this),this.endState=null,this}function s(){return i.call(this),this.stateType=n.BLOCK_START,this}function a(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function c(){return n.call(this),this.stateType=n.RULE_STOP,this}function u(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function l(){return o.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function p(){return i.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function h(){return i.call(this),this.stateType=n.STAR_BLOCK_START,this}function d(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function f(){return o.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.precedenceRuleDecision=null,this}function g(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function y(){return o.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.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"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(t){return t instanceof n?this.stateNumber===t.stateNumber:!1},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,o.prototype=Object.create(n.prototype),o.prototype.constructor=o,i.prototype=Object.create(o.prototype),i.prototype.constructor=i,s.prototype=Object.create(i.prototype),s.prototype.constructor=s,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c.prototype=Object.create(n.prototype),c.prototype.constructor=c,u.prototype=Object.create(n.prototype),u.prototype.constructor=u,l.prototype=Object.create(o.prototype),l.prototype.constructor=l,p.prototype=Object.create(i.prototype),p.prototype.constructor=p,h.prototype=Object.create(i.prototype),h.prototype.constructor=h,d.prototype=Object.create(n.prototype),d.prototype.constructor=d,f.prototype=Object.create(o.prototype),f.prototype.constructor=f,g.prototype=Object.create(n.prototype),g.prototype.constructor=g,y.prototype=Object.create(o.prototype),y.prototype.constructor=y,e.ATNState=n,e.BasicState=r,e.DecisionState=o,e.BlockStartState=i,e.BlockEndState=a,e.LoopEndState=g,e.RuleStartState=u,e.RuleStopState=c,e.TokensStartState=y,e.PlusLoopbackState=l,e.StarLoopbackState=d,e.StarLoopEntryState=f,e.PlusBlockStartState=p,e.StarBlockStartState=h,e.BasicBlockStartState=s}.call(this,cachedModules[1265],cachedModules[1265].exports),cachedModules[4709]={exports:{}},function(t,e){function n(){return this}function r(t,e,r){return n.call(this),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0===r?!1:r,this}function o(t){n.call(this),this.precedence=void 0===t?0:t}function i(t,e){n.call(this);var r=new a;t instanceof i?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof i?e.opnds.map(function(t){r.add(t)}):r.add(e);var s=o.filterPrecedencePredicates(r);if(s.length>0){var c=null;s.map(function(t){(null===c||t.precedence<c.precedence)&&(c=t)}),r.add(c)}return this.opnds=r.values(),this}function s(t,e){n.call(this);var r=new a;t instanceof s?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof s?e.opnds.map(function(t){r.add(t)}):r.add(e);var i=o.filterPrecedencePredicates(r);if(i.length>0){var c=i.sort(function(t,e){return t.compareTo(e)}),u=c[c.length-1];r.add(u)}return this.opnds=r.values(),this}var a=cachedModules[4684].exports.Set;n.prototype.evaluate=function(t,e){},n.prototype.evalPrecedence=function(t,e){return this},n.andContext=function(t,e){if(null===t||t===n.NONE)return e;if(null===e||e===n.NONE)return t;var r=new i(t,e);return 1===r.opnds.length?r.opnds[0]:r},n.orContext=function(t,e){if(null===t)return e;if(null===e)return t;if(t===n.NONE||e===n.NONE)return n.NONE;var r=new s(t,e);return 1===r.opnds.length?r.opnds[0]:r},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,n.NONE=new r,r.prototype.evaluate=function(t,e){var n=this.isCtxDependent?e:null;return t.sempred(n,this.ruleIndex,this.predIndex)},r.prototype.hashString=function(){return""+this.ruleIndex+"/"+this.predIndex+"/"+this.isCtxDependent},r.prototype.equals=function(t){return this===t?!0:t instanceof r?this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent:!1},r.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.evaluate=function(t,e){return t.precpred(e,this.precedence)},o.prototype.evalPrecedence=function(t,e){return t.precpred(e,this.precedence)?n.NONE:null},o.prototype.compareTo=function(t){return this.precedence-t.precedence},o.prototype.hashString=function(){return"31"},o.prototype.equals=function(t){return this===t?!0:t instanceof o?this.precedence===t.precedence:!1},o.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},o.filterPrecedencePredicates=function(t){var e=[];return t.values().map(function(t){t instanceof o&&e.push(t)}),e},i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.equals=function(t){return this===t?!0:t instanceof i?this.opnds===t.opnds:!1},i.prototype.hashString=function(){return""+this.opnds+"/AND"},i.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(t,e))return!1;return!0},i.prototype.evalPrecedence=function(t,e){for(var r=!1,o=[],i=0;i<this.opnds.length;i++){var s=this.opnds[i],a=s.evalPrecedence(t,e);if(r|=a!==s,null===a)return null;a!==n.NONE&&o.push(a)}if(!r)return this;if(0===o.length)return n.NONE;var c=null;return o.map(function(t){c=null===c?t:SemanticPredicate.andContext(c,t)}),c},i.prototype.toString=function(){var t="";return this.opnds.map(function(e){t+="&& "+e.toString()}),t.length>3?t.slice(3):t},s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.prototype.constructor=function(t){return this===t?!0:t instanceof s?this.opnds===t.opnds:!1},s.prototype.hashString=function(){return""+this.opnds+"/OR"},s.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(t,e))return!0;return!1},s.prototype.evalPrecedence=function(t,e){for(var r=!1,o=[],i=0;i<this.opnds.length;i++){var s=this.opnds[i],a=s.evalPrecedence(t,e);if(r|=a!==s,a===n.NONE)return n.NONE;null!==a&&o.push(a)}if(!r)return this;if(0===o.length)return null;var c=null;return o.map(function(t){return null===c?t:n.orContext(c,t)}),c},i.prototype.toString=function(){var t="";return this.opnds.map(function(e){t+="|| "+e.toString()}),t.length>3?t.slice(3):t},e.SemanticContext=n,e.PrecedencePredicate=o,e.Predicate=r}.call(this,cachedModules[4709],cachedModules[4709].exports),cachedModules[60]={exports:{}},function(t,e){function n(t,e){if(null===t){var n={state:null,alt:null,context:null,semanticContext:null};return e&&(n.reachesIntoOuterContext=0),n}var r={};return r.state=t.state||null,r.alt=t.alt||null,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}function r(t,e){return this.checkContext(t,e),t=n(t),e=n(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:s.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed,this}function o(t,e){r.call(this,t,e);var n=t.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e?this.checkNonGreedyDecision(e,this.state):!1,this}var i=cachedModules[1265].exports.DecisionState,s=cachedModules[4709].exports.SemanticContext;r.prototype.checkContext=function(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)},r.prototype.equals=function(t){return this===t?!0:t instanceof r?this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed:!1},r.prototype.shortHashString=function(){return""+this.state.stateNumber+"/"+this.alt+"/"+this.semanticContext},r.prototype.hashString=function(){return""+this.state.stateNumber+"/"+this.alt+"/"+(null===this.context?"":this.context.hashString())+"/"+this.semanticContext.hashString()},r.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==s.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.hashString=function(){return""+this.state.stateNumber+this.alt+this.context+this.semanticContext+(this.passedThroughNonGreedyDecision?1:0)+this.lexerActionExecutor},o.prototype.equals=function(t){return this===t?!0:t instanceof o?this.passedThroughNonGreedyDecision!==t.passedThroughNonGreedyDecision?!1:(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):t.lexerActionExecutor)?r.prototype.equals.call(this,t):!1:!1},o.prototype.checkNonGreedyDecision=function(t,e){return t.passedThroughNonGreedyDecision||e instanceof i&&e.nonGreedy},e.ATNConfig=r,e.LexerATNConfig=o}.call(this,cachedModules[60],cachedModules[60].exports),cachedModules[6201]={exports:{}},function(t,e){function n(t,e){return this.start=t,this.stop=e,this}function r(){this.intervals=null,this.readOnly=!1}var o=cachedModules[5924].exports.Token;n.prototype.contains=function(t){return t>=this.start&&t<this.stop},n.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(n.prototype,"length",{get:function(){return this.stop-this.start}}),r.prototype.first=function(t){return null===this.intervals||0===this.intervals.length?o.INVALID_TYPE:this.intervals[0].start},r.prototype.addOne=function(t){this.addInterval(new n(t,t+1))},r.prototype.addRange=function(t,e){this.addInterval(new n(t,e+1))},r.prototype.addInterval=function(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t);else{for(var e=0;e<this.intervals.length;e++){var r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e].start=t.start);if(t.start<=r.stop)return this.intervals[e]=new n(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t)}},r.prototype.addSet=function(t){if(null!==t.intervals)for(var e=0;e<t.intervals.length;e++){var r=t.intervals[e];this.addInterval(new n(r.start,r.stop))}return this},r.prototype.reduce=function(t){if(t<this.intervalslength-1){var e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.pop(t+1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new n(e.start,r.stop),this.intervals.pop(t+1))}},r.prototype.complement=function(t,e){var o=new r;o.addInterval(new n(t,e+1));for(var i=0;i<this.intervals.length;i++)o.removeRange(this.intervals[i]);return o},r.prototype.contains=function(t){if(null===this.intervals)return!1;for(var e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1},Object.defineProperty(r.prototype,"length",{get:function(){var t=0;return this.intervals.map(function(e){t+=e.length}),t}}),r.prototype.removeRange=function(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals)for(var e=0,r=0;r<this.intervals.length;r++){var o=this.intervals[e];if(t.stop<=o.start)return;if(t.start>o.start&&t.stop<o.stop){this.intervals[e]=new n(o.start,t.start);var i=new n(t.stop,o.stop);return void this.intervals.splice(e,0,i)}t.start<=o.start&&t.stop>=o.stop?(this.intervals.splice(e,1),e-=1):t.start<o.stop?this.intervals[e]=new n(o.start,t.start):t.stop<o.stop&&(this.intervals[e]=new n(t.stop,o.stop)),e+=1}},r.prototype.removeOne=function(t){if(null!==this.intervals)for(var e=0;e<this.intervals.length;e++){var r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new n(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new n(r.start,r.stop-1));if(t<r.stop-1){var o=new n(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,o)}}},r.prototype.toString=function(t,e,n){return t=t||null,e=e||null,n=n||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):n?this.toCharString():this.toIndexString()},r.prototype.toCharString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===o.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(n.start)+"'"):t.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]},r.prototype.toIndexString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===o.EOF?t.push("<EOF>"):t.push(n.start.toString()):t.push(n.start.toString()+".."+(n.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]},r.prototype.toTokenString=function(t,e){for(var n=[],r=0;r<this.intervals.length;r++)for(var o=this.intervals[r],i=o.start;i<o.stop;i++)n.push(this.elementName(t,e,i));return n.length>1?"{"+n.join(", ")+"}":n[0]},r.prototype.elementName=function(t,e,n){return n===o.EOF?"<EOF>":n===o.EPSILON?"<EPSILON>":t[n]||e[n]},e.Interval=n,e.IntervalSet=r}.call(this,cachedModules[6201],cachedModules[6201].exports),cachedModules[8378]={exports:{}},function(t,e){function n(t){if(void 0===t||null===t)throw"target cannot be null.";return this.target=t,this.isEpsilon=!1,this.label=null,this}function r(t,e){return n.call(this,t),this.label_=e,this.label=this.makeLabel(),this.serializationType=n.ATOM,this}function o(t,e,r,o){return n.call(this,t),this.ruleIndex=e,this.precedence=r,this.followState=o,this.serializationType=n.RULE,this.isEpsilon=!0,this}function i(t,e){return n.call(this,t),this.serializationType=n.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e,this}function s(t,e,r){return n.call(this,t),this.serializationType=n.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel(),this}function a(t){return n.call(this,t),this}function c(t,e,r,o){return a.call(this,t),this.serializationType=n.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=o,this.isEpsilon=!0,this}function u(t,e,r,o){return n.call(this,t),this.serializationType=n.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0===o?!1:o,this.isEpsilon=!0,this}function l(t,e){return n.call(this,t),this.serializationType=n.SET,void 0!==e&&null!==e?this.label=e:(this.label=new g,this.label.addOne(f.INVALID_TYPE)),this}function p(t,e){return l.call(this,t,e),this.serializationType=n.NOT_SET,this}function h(t){return n.call(this,t),this.serializationType=n.WILDCARD,this}function d(t,e){return a.call(this,t),this.serializationType=n.PRECEDENCE,this.precedence=e,this.isEpsilon=!0,this}var f=cachedModules[5924].exports.Token,g=(cachedModules[6201].exports.Interval,cachedModules[6201].exports.IntervalSet),y=cachedModules[4709].exports.Predicate,x=cachedModules[4709].exports.PrecedencePredicate;n.EPSILON=1,n.RANGE=2,n.RULE=3,n.PREDICATE=4,n.ATOM=5,n.ACTION=6,n.SET=7,n.NOT_SET=8,n.WILDCARD=9,n.PRECEDENCE=10,n.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n.serializationTypes={EpsilonTransition:n.EPSILON,RangeTransition:n.RANGE,RuleTransition:n.RULE,PredicateTransition:n.PREDICATE,AtomTransition:n.ATOM,ActionTransition:n.ACTION,SetTransition:n.SET,NotSetTransition:n.NOT_SET,WildcardTransition:n.WILDCARD,PrecedencePredicateTransition:n.PRECEDENCE},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.makeLabel=function(){var t=new g;return t.addOne(this.label_),t},r.prototype.matches=function(t,e,n){return this.label_===t},r.prototype.toString=function(){return this.label_},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.matches=function(t,e,n){return!1},i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.matches=function(t,e,n){return!1},i.prototype.toString=function(){return"epsilon"},s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.prototype.makeLabel=function(){var t=new g;return t.addRange(this.start,this.stop),t},s.prototype.matches=function(t,e,n){return t>=this.start&&t<=this.stop},s.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.matches=function(t,e,n){return!1},c.prototype.getPredicate=function(){return new y(this.ruleIndex,this.predIndex,this.isCtxDependent)},c.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.matches=function(t,e,n){return!1},u.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},l.prototype=Object.create(n.prototype),l.prototype.constructor=l,l.prototype.matches=function(t,e,n){return this.label.contains(t)},l.prototype.toString=function(){return this.label.toString()},p.prototype=Object.create(l.prototype),p.prototype.constructor=p,p.prototype.matches=function(t,e,n){return t>=e&&n>=t&&!l.prototype.matches.call(this,t,e,n)},p.prototype.toString=function(){return"~"+l.prototype.toString.call(this)},h.prototype=Object.create(n.prototype),h.prototype.constructor=h,h.prototype.matches=function(t,e,n){return t>=e&&n>=t},h.prototype.toString=function(){return"."},d.prototype=Object.create(a.prototype),d.prototype.constructor=d,d.prototype.matches=function(t,e,n){return!1},d.prototype.getPredicate=function(){return new x(this.precedence)},d.prototype.toString=function(){return this.precedence+" >= _p"},e.Transition=n,e.AtomTransition=r,e.SetTransition=l,e.NotSetTransition=p,e.RuleTransition=o,e.ActionTransition=u,e.EpsilonTransition=i,e.RangeTransition=s,e.WildcardTransition=h,e.PredicateTransition=c,e.PrecedencePredicateTransition=d,e.AbstractPredicateTransition=a}.call(this,cachedModules[8378],cachedModules[8378].exports),cachedModules[9020]={exports:{}},function(t,e){function n(){return this}function r(){return n.call(this),this}function o(){return r.call(this),this}function i(){return o.call(this),this}function s(){return o.call(this),this}function a(){return s.call(this),this}function c(){return this}function u(){return this}function l(t){return s.call(this),this.parentCtx=null,this.symbol=t,this}function p(t){return l.call(this,t),this}function h(){return this}var d=cachedModules[5924].exports.Token,f=cachedModules[6201].exports.Interval,g=new f(-1,-2),y=cachedModules[4684].exports;r.prototype=Object.create(n.prototype),r.prototype.constructor=r,o.prototype=Object.create(r.prototype),o.prototype.constructor=o,i.prototype=Object.create(o.prototype),i.prototype.constructor=i,s.prototype=Object.create(o.prototype),s.prototype.constructor=s,a.prototype=Object.create(s.prototype),a.prototype.constructor=a,c.prototype.visit=function(t){if(y.isArray(t)){var e=this;return t.map(function(t){return x(e,t)})}return x(this,t)};var x=function(t,e){if(void 0!==e.parser){var n=e.parser.ruleNames[e.ruleIndex],r="visit"+y.titleCase(n);return t[r](e)}};u.prototype.visitTerminal=function(t){},u.prototype.visitErrorNode=function(t){},u.prototype.enterEveryRule=function(t){},u.prototype.exitEveryRule=function(t){},l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.getChild=function(t){return null},l.prototype.getSymbol=function(){return this.symbol},l.prototype.getParent=function(){return this.parentCtx},l.prototype.getPayload=function(){return this.symbol},l.prototype.getSourceInterval=function(){if(null===this.symbol)return g;var t=this.symbol.tokenIndex;return new f(t,t)},l.prototype.getChildCount=function(){return 0},l.prototype.accept=function(t){return t.visitTerminal(this)},l.prototype.getText=function(){return this.symbol.text},l.prototype.toString=function(){return this.symbol.type===d.EOF?"<EOF>":this.symbol.text},p.prototype=Object.create(l.prototype),p.prototype.constructor=p,p.prototype.isErrorNode=function(){return!0},p.prototype.accept=function(t){return t.visitErrorNode(this)},h.prototype.walk=function(t,e){var n=e instanceof a||void 0!==e.isErrorNode&&e.isErrorNode();if(n)t.visitErrorNode(e);else if(e instanceof s)t.visitTerminal(e);else{this.enterRule(t,e);for(var r=0;r<e.getChildCount();r++){var o=e.getChild(r);this.walk(t,o)}this.exitRule(t,e)}},h.prototype.enterRule=function(t,e){var n=e.getRuleContext();t.enterEveryRule(n),n.enterRule(t)},h.prototype.exitRule=function(t,e){var n=e.getRuleContext();n.exitRule(t),t.exitEveryRule(n)},h.DEFAULT=new h,e.RuleNode=i,e.ErrorNode=a,e.TerminalNode=s,e.ErrorNodeImpl=p,e.TerminalNodeImpl=l,e.ParseTreeListener=u,e.ParseTreeVisitor=c,e.ParseTreeWalker=h,e.INVALID_INTERVAL=g}.call(this,cachedModules[9020],cachedModules[9020].exports),cachedModules[3248]={exports:{}},function(t,e){function n(){}var r=cachedModules[4684].exports,o=cachedModules[5924].exports.Token,i=cachedModules[9020].exports.RuleNode,s=cachedModules[9020].exports.ErrorNode,a=cachedModules[9020].exports.TerminalNode;n.toStringTree=function(t,e,o){e=e||null,o=o||null,null!==o&&(e=o.ruleNames);var i=n.getNodeText(t,e);i=r.escapeWhitespace(i,!1);var s=t.getChildCount();if(0===s)return i;var a="("+i+" ";s>0&&(i=n.toStringTree(t.getChild(0),e),a=a.concat(i));for(var c=1;s>c;c++)i=n.toStringTree(t.getChild(c),e),a=a.concat(" "+i);return a=a.concat(")")},n.getNodeText=function(t,e,n){if(e=e||null,n=n||null,null!==n&&(e=n.ruleNames),null!==e){if(t instanceof i)return e[t.getRuleContext().ruleIndex];if(t instanceof s)return t.toString();if(t instanceof a&&null!==t.symbol)return t.symbol.text}var r=t.getPayload();return r instanceof o?r.text:t.getPayload().toString()},n.getChildren=function(t){for(var e=[],n=0;n<t.getChildCount();n++)e.push(t.getChild(n));return e},n.getAncestors=function(t){var e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},n.findAllTokenNodes=function(t,e){return n.findAllNodes(t,e,!0)},n.findAllRuleNodes=function(t,e){return n.findAllNodes(t,e,!1)},n.findAllNodes=function(t,e,r){var o=[];return n._findAllNodes(t,e,r,o),o},n._findAllNodes=function(t,e,r,o){r&&t instanceof a?t.symbol.type===e&&o.push(t):!r&&t instanceof ParserRuleContext&&t.ruleIndex===e&&o.push(t);for(var i=0;i<t.getChildCount();i++)n._findAllNodes(t.getChild(i),e,r,o)},n.descendants=function(t){for(var e=[t],r=0;r<t.getChildCount();r++)e=e.concat(n.descendants(t.getChild(r)));return e},e.Trees=n}.call(this,cachedModules[3248],cachedModules[3248].exports),cachedModules[9958]={exports:{}},function(t,e){function n(t,e){return r.call(this),this.parentCtx=t||null,this.invokingState=e||-1,this}var r=cachedModules[9020].exports.RuleNode,o=cachedModules[9020].exports.INVALID_INTERVAL;n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.prototype.depth=function(){for(var t=0,e=this;null!==e;)e=e.parentCtx,t+=1;return t},n.prototype.isEmpty=function(){return-1===this.invokingState},n.prototype.getSourceInterval=function(){return o},n.prototype.getRuleContext=function(){return this},n.prototype.getPayload=function(){return this},n.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map(function(t){return t.getText()}).join("")},n.prototype.getChild=function(t){return null},n.prototype.getChildCount=function(){return 0},n.prototype.accept=function(t){return t.visitChildren(this)},e.RuleContext=n;var i=cachedModules[3248].exports.Trees;n.prototype.toStringTree=function(t,e){return i.toStringTree(this,t,e)},n.prototype.toString=function(t,e){t=t||null,e=e||null;for(var n=this,r="[";null!==n&&n!==e;){if(null===t)n.isEmpty()||(r+=n.invokingState);else{var o=n.ruleIndex,i=o>=0&&o<t.length?t[o]:""+o;r+=i}null===n.parentCtx||null===t&&n.parentCtx.isEmpty()||(r+=" "),n=n.parentCtx}return r+="]"}}.call(this,cachedModules[9958],cachedModules[9958].exports),cachedModules[552]={exports:{}},function(t,e){function n(t){this.cachedHashString=t}function r(t,e){return""+t+e}function o(){return""}function i(){return this.cache={},this}function s(t,e){var i=null!==t?r(t,e):o();n.call(this,i),this.parentCtx=t,this.returnState=e}function a(){return s.call(this,null,n.EMPTY_RETURN_STATE),this}function c(t,e){var o=r(t,e);return n.call(this,o),this.parents=t,this.returnStates=e,this}function u(t,e){if((void 0===e||null===e)&&(e=y.EMPTY),null===e.parentCtx||e===y.EMPTY)return n.EMPTY;var r=u(t,e.parentCtx),o=t.states[e.invokingState],i=o.transitions[0];return s.create(r,i.followState.stateNumber)}function l(t,e,n,r){if(t===e)return t;if(t instanceof s&&e instanceof s)return p(t,e,n,r);if(n){if(t instanceof a)return t;if(e instanceof a)return e}return t instanceof s&&(t=new c([t.getParent()],[t.returnState])),e instanceof s&&(e=new c([e.getParent()],[e.returnState])),d(t,e,n,r)}function p(t,e,n,r){if(null!==r){var o=r.get(t,e);if(null!==o)return o;if(o=r.get(e,t),null!==o)return o}var i=h(t,e,n);if(null!==i)return null!==r&&r.set(t,e,i),i;if(t.returnState===e.returnState){var a=l(t.parentCtx,e.parentCtx,n,r);if(a===t.parentCtx)return t;if(a===e.parentCtx)return e;var u=s.create(a,t.returnState);return null!==r&&r.set(t,e,u),u}var p=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(p=t.parentCtx),null!==p){var d=[t.returnState,e.returnState];t.returnState>e.returnState&&(d[0]=e.returnState,d[1]=t.returnState);var f=[p,p],g=new c(f,d);return null!==r&&r.set(t,e,g),g}var d=[t.returnState,e.returnState],f=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(d[0]=e.returnState,d[1]=t.returnState,f=[e.parentCtx,t.parentCtx]);var y=new c(f,d);return null!==r&&r.set(t,e,y),
y}function h(t,e,r){if(r){if(t===n.EMPTY)return n.EMPTY;if(e===n.EMPTY)return n.EMPTY}else{if(t===n.EMPTY&&e===n.EMPTY)return n.EMPTY;if(t===n.EMPTY){var o=[e.returnState,n.EMPTY_RETURN_STATE],i=[e.parentCtx,null];return new c(i,o)}if(e===n.EMPTY){var o=[t.returnState,n.EMPTY_RETURN_STATE],i=[t.parentCtx,null];return new c(i,o)}}return null}function d(t,e,r,o){if(null!==o){var i=o.get(t,e);if(null!==i)return i;if(i=o.get(e,t),null!==i)return i}for(var a=0,u=0,p=0,h=[],d=[];a<t.returnStates.length&&u<e.returnStates.length;){var g=t.parents[a],y=e.parents[u];if(t.returnStates[a]===e.returnStates[u]){var x=t.returnStates[a],S=x===n.EMPTY_RETURN_STATE&&null===g&&null===y,T=null!==g&&null!==y&&g===y;if(S||T)d[p]=g,h[p]=x;else{var v=l(g,y,r,o);d[p]=v,h[p]=x}a+=1,u+=1}else t.returnStates[a]<e.returnStates[u]?(d[p]=g,h[p]=t.returnStates[a],a+=1):(d[p]=y,h[p]=e.returnStates[u],u+=1);p+=1}if(a<t.returnStates.length)for(var E=a;E<t.returnStates.length;E++)d[p]=t.parents[E],h[p]=t.returnStates[E],p+=1;else for(var E=u;E<e.returnStates.length;E++)d[p]=e.parents[E],h[p]=e.returnStates[E],p+=1;if(p<d.length){if(1===p){var m=s.create(d[0],h[0]);return null!==o&&o.set(t,e,m),m}d=d.slice(0,p),h=h.slice(0,p)}var A=new c(d,h);return A===t?(null!==o&&o.set(t,e,t),t):A===e?(null!==o&&o.set(t,e,e),e):(f(d),null!==o&&o.set(t,e,A),A)}function f(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r in e||(e[r]=r)}for(var o=0;o<t.length;o++)t[o]=e[t[o]]}function g(t,e,r){if(t.isEmpty())return t;var o=r[t]||null;if(null!==o)return o;if(o=e.get(t),null!==o)return r[t]=o,o;for(var i=!1,a=[],u=0;u<a.length;u++){var l=g(t.getParent(u),e,r);if(i||l!==t.getParent(u)){if(!i){a=[];for(var p=0;p<t.length;p++)a[p]=t.getParent(p);i=!0}a[u]=l}}if(!i)return e.add(t),r[t]=t,t;var h=null;return h=0===a.length?n.EMPTY:1===a.length?s.create(a[0],t.getReturnState(0)):new c(a,t.returnStates),e.add(h),r[h]=h,r[t]=h,h}var y=cachedModules[9958].exports.RuleContext;n.EMPTY=null,n.EMPTY_RETURN_STATE=2147483647,n.globalNodeCount=1,n.id=n.globalNodeCount,n.prototype.isEmpty=function(){return this===n.EMPTY},n.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===n.EMPTY_RETURN_STATE},n.prototype.hashString=function(){return this.cachedHashString},i.prototype.add=function(t){if(t===n.EMPTY)return n.EMPTY;var e=this.cache[t]||null;return null!==e?e:(this.cache[t]=t,t)},i.prototype.get=function(t){return this.cache[t]||null},Object.defineProperty(i.prototype,"length",{get:function(){return this.cache.length}}),s.prototype=Object.create(n.prototype),s.prototype.contructor=s,s.create=function(t,e){return e===n.EMPTY_RETURN_STATE&&null===t?n.EMPTY:new s(t,e)},Object.defineProperty(s.prototype,"length",{get:function(){return 1}}),s.prototype.getParent=function(t){return this.parentCtx},s.prototype.getReturnState=function(t){return this.returnState},s.prototype.equals=function(t){return this===t?!0:t instanceof s?this.hashString()!==t.hashString()?!1:this.returnState!==t.returnState?!1:null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx):!1},s.prototype.hashString=function(){return this.cachedHashString},s.prototype.toString=function(){var t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===this.EMPTY_RETURN_STATE?"$":""+this.returnState:""+this.returnState+" "+t},a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.isEmpty=function(){return!0},a.prototype.getParent=function(t){return null},a.prototype.getReturnState=function(t){return this.returnState},a.prototype.equals=function(t){return this===t},a.prototype.toString=function(){return"$"},n.EMPTY=new a,c.prototype=Object.create(n.prototype),c.prototype.constructor=c,c.prototype.isEmpty=function(){return this.returnStates[0]===n.EMPTY_RETURN_STATE},Object.defineProperty(c.prototype,"length",{get:function(){return this.returnStates.length}}),c.prototype.getParent=function(t){return this.parents[t]},c.prototype.getReturnState=function(t){return this.returnStates[t]},c.prototype.equals=function(t){return this===t?!0:t instanceof c?this.hashString!==t.hashString()?!1:this.returnStates===t.returnStates&&this.parents===t.parents:!1},c.prototype.toString=function(){if(this.isEmpty())return"[]";for(var t="[",e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==n.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"},e.merge=l,e.PredictionContext=n,e.PredictionContextCache=i,e.SingletonPredictionContext=s,e.predictionContextFromRuleContext=u,e.getCachedPredictionContext=g}.call(this,cachedModules[552],cachedModules[552].exports),cachedModules[6122]={exports:{}},function(t,e){function n(t){this.atn=t}var r=cachedModules[4684].exports.Set,o=cachedModules[4684].exports.BitSet,i=cachedModules[5924].exports.Token,s=cachedModules[60].exports.ATNConfig,a=(cachedModules[6201].exports.Interval,cachedModules[6201].exports.IntervalSet),c=cachedModules[1265].exports.RuleStopState,u=cachedModules[8378].exports.RuleTransition,l=cachedModules[8378].exports.NotSetTransition,p=cachedModules[8378].exports.WildcardTransition,h=cachedModules[8378].exports.AbstractPredicateTransition,d=cachedModules[552].exports,f=d.predictionContextFromRuleContext,g=d.PredictionContext,y=d.SingletonPredictionContext;n.HIT_PRED=i.INVALID_TYPE,n.prototype.getDecisionLookahead=function(t){if(null===t)return null;for(var e=t.transitions.length,i=[],s=0;e>s;s++){i[s]=new a;var c=new r,u=!1;this._LOOK(t.transition(s).target,null,g.EMPTY,i[s],c,new o,u,!1),(0===i[s].length||i[s].contains(n.HIT_PRED))&&(i[s]=null)}return i},n.prototype.LOOK=function(t,e,n){var i=new a,s=!0;n=n||null;var c=null!==n?f(t.atn,n):null;return this._LOOK(t,e,c,i,new r,new o,s,!0),i},n.prototype._LOOK=function(t,e,r,o,a,d,f,x){var S=new s({state:t,alt:0},r);if(!a.contains(S)){if(a.add(S),t===e){if(null===r)return void o.addOne(i.EPSILON);if(r.isEmpty()&&x)return void o.addOne(i.EOF)}if(t instanceof c){if(null===r)return void o.addOne(i.EPSILON);if(r.isEmpty()&&x)return void o.addOne(i.EOF);if(r!==g.EMPTY){for(var T=0;T<r.length;T++){var v=this.atn.states[r.getReturnState(T)],E=d.contains(v.ruleIndex);try{d.remove(v.ruleIndex),this._LOOK(v,e,r.getParent(T),o,a,d,f,x)}finally{E&&d.add(v.ruleIndex)}}return}}for(var m=0;m<t.transitions.length;m++){var A=t.transitions[m];if(A.constructor===u){if(d.contains(A.target.ruleIndex))continue;var C=y.create(r,A.followState.stateNumber);try{d.add(A.target.ruleIndex),this._LOOK(A.target,e,C,o,a,d,f,x)}finally{d.remove(A.target.ruleIndex)}}else if(A instanceof h)f?this._LOOK(A.target,e,r,o,a,d,f,x):o.addOne(n.HIT_PRED);else if(A.isEpsilon)this._LOOK(A.target,e,r,o,a,d,f,x);else if(A.constructor===p)o.addRange(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var _=A.label;null!==_&&(A instanceof l&&(_=_.complement(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),o.addSet(_))}}}},e.LL1Analyzer=n}.call(this,cachedModules[6122],cachedModules[6122].exports),cachedModules[7455]={exports:{}},function(t,e){function n(t,e){return this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}var r=cachedModules[6122].exports.LL1Analyzer,o=cachedModules[6201].exports.IntervalSet;n.prototype.nextTokensInContext=function(t,e){var n=new r(this);return n.LOOK(t,null,e)},n.prototype.nextTokensNoContext=function(t){return null!==t.nextTokenWithinRule?t.nextTokenWithinRule:(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0,t.nextTokenWithinRule)},n.prototype.nextTokens=function(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)},n.prototype.addState=function(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)},n.prototype.removeState=function(t){this.states[t.stateNumber]=null},n.prototype.defineDecisionState=function(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision},n.prototype.getDecisionState=function(t){return 0===this.decisionToState.length?null:this.decisionToState[t]};var i=cachedModules[5924].exports.Token;n.prototype.getExpectedTokens=function(t,e){if(0>t||t>=this.states.length)throw"Invalid state number.";var n=this.states[t],r=this.nextTokens(n);if(!r.contains(i.EPSILON))return r;var s=new o;for(s.addSet(r),s.removeOne(i.EPSILON);null!==e&&e.invokingState>=0&&r.contains(i.EPSILON);){var a=this.states[e.invokingState],c=a.transitions[0];r=this.nextTokens(c.followState),s.addSet(r),s.removeOne(i.EPSILON),e=e.parentCtx}return r.contains(i.EPSILON)&&s.addOne(i.EOF),s},n.INVALID_ALT_NUMBER=0,e.ATN=n}.call(this,cachedModules[7455],cachedModules[7455].exports),cachedModules[1757]={exports:{}},function(t,e){function n(){}n.LEXER=0,n.PARSER=1,e.ATNType=n}.call(this,cachedModules[1757],cachedModules[1757].exports),cachedModules[4674]={exports:{}},function(t,e){function n(t){return void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t?!0:t.verifyATN,this.generateRuleBypassTransitions=null===t?!1:t.generateRuleBypassTransitions,this}n.defaultOptions=new n,n.defaultOptions.readOnly=!0,e.ATNDeserializationOptions=n}.call(this,cachedModules[4674],cachedModules[4674].exports),cachedModules[6958]={exports:{}},function(t,e){function n(){}function r(t){return this.actionType=t,this.isPositionDependent=!1,this}function o(){return r.call(this,n.SKIP),this}function i(t){return r.call(this,n.TYPE),this.type=t,this}function s(t){return r.call(this,n.PUSH_MODE),this.mode=t,this}function a(){return r.call(this,n.POP_MODE),this}function c(){return r.call(this,n.MORE),this}function u(t){return r.call(this,n.MODE),this.mode=t,this}function l(t,e){return r.call(this,n.CUSTOM),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0,this}function p(t){return r.call(this,n.CHANNEL),this.channel=t,this}function h(t,e){return r.call(this,e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0,this}n.CHANNEL=0,n.CUSTOM=1,n.MODE=2,n.MORE=3,n.POP_MODE=4,n.PUSH_MODE=5,n.SKIP=6,n.TYPE=7,r.prototype.hashString=function(){return""+this.actionType},r.prototype.equals=function(t){return this===t},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.INSTANCE=new o,o.prototype.execute=function(t){t.skip()},o.prototype.toString=function(){return"skip"},i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.prototype.execute=function(t){t.type=this.type},i.prototype.hashString=function(){return""+this.actionType+this.type},i.prototype.equals=function(t){return this===t?!0:t instanceof i?this.type===t.type:!1},i.prototype.toString=function(){return"type("+this.type+")"},s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.prototype.execute=function(t){t.pushMode(this.mode)},s.prototype.hashString=function(){return""+this.actionType+this.mode},s.prototype.equals=function(t){return this===t?!0:t instanceof s?this.mode===t.mode:!1},s.prototype.toString=function(){return"pushMode("+this.mode+")"},a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.INSTANCE=new a,a.prototype.execute=function(t){t.popMode()},a.prototype.toString=function(){return"popMode"},c.prototype=Object.create(r.prototype),c.prototype.constructor=c,c.INSTANCE=new c,c.prototype.execute=function(t){t.more()},c.prototype.toString=function(){return"more"},u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.prototype.execute=function(t){t.mode(this.mode)},u.prototype.hashString=function(){return""+this.actionType+this.mode},u.prototype.equals=function(t){return this===t?!0:t instanceof u?this.mode===t.mode:!1},u.prototype.toString=function(){return"mode("+this.mode+")"},l.prototype=Object.create(r.prototype),l.prototype.constructor=l,l.prototype.execute=function(t){t.action(null,this.ruleIndex,this.actionIndex)},l.prototype.hashString=function(){return""+this.actionType+this.ruleIndex+this.actionIndex},l.prototype.equals=function(t){return this===t?!0:t instanceof l?this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex:!1},p.prototype=Object.create(r.prototype),p.prototype.constructor=p,p.prototype.execute=function(t){t._channel=this.channel},p.prototype.hashString=function(){return""+this.actionType+this.channel},p.prototype.equals=function(t){return this===t?!0:t instanceof p?this.channel===t.channel:!1},p.prototype.toString=function(){return"channel("+this.channel+")"},h.prototype=Object.create(r.prototype),h.prototype.constructor=h,h.prototype.execute=function(t){this.action.execute(t)},h.prototype.hashString=function(){return""+this.actionType+this.offset+this.action},h.prototype.equals=function(t){return this===t?!0:t instanceof h?this.offset===t.offset&&this.action===t.action:!1},e.LexerActionType=n,e.LexerSkipAction=o,e.LexerChannelAction=p,e.LexerCustomAction=l,e.LexerIndexedCustomAction=h,e.LexerMoreAction=c,e.LexerTypeAction=i,e.LexerPushModeAction=s,e.LexerPopModeAction=a,e.LexerModeAction=u}.call(this,cachedModules[6958],cachedModules[6958].exports),cachedModules[2084]={exports:{}},function(t,e){function n(t,e){var n=[];return n[t-1]=e,n.map(function(t){return e})}function r(t){return(void 0===t||null===t)&&(t=F.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null,this}function o(){for(var t=[],e=0;256>e;e++)t[e]=(e+256).toString(16).substr(1).toUpperCase();return t}var i=cachedModules[5924].exports.Token,s=cachedModules[7455].exports.ATN,a=cachedModules[1757].exports.ATNType,c=cachedModules[1265].exports,u=c.ATNState,l=c.BasicState,p=c.DecisionState,h=c.BlockStartState,d=c.BlockEndState,f=c.LoopEndState,g=c.RuleStartState,y=c.RuleStopState,x=c.TokensStartState,S=c.PlusLoopbackState,T=c.StarLoopbackState,v=c.StarLoopEntryState,E=c.PlusBlockStartState,m=c.StarBlockStartState,A=c.BasicBlockStartState,C=cachedModules[8378].exports,_=C.Transition,N=C.AtomTransition,M=C.SetTransition,O=C.NotSetTransition,I=C.RuleTransition,k=C.RangeTransition,L=C.ActionTransition,P=C.EpsilonTransition,R=C.WildcardTransition,b=C.PredicateTransition,D=C.PrecedencePredicateTransition,w=cachedModules[6201].exports.IntervalSet,F=(cachedModules[6201].exports.Interval,cachedModules[4674].exports.ATNDeserializationOptions),U=cachedModules[6958].exports,j=U.LexerActionType,B=U.LexerSkipAction,V=U.LexerChannelAction,z=U.LexerCustomAction,Y=U.LexerMoreAction,q=U.LexerTypeAction,K=U.LexerPushModeAction,H=U.LexerPopModeAction,G=U.LexerModeAction,W="AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",X=[W],J=3,Q=W;r.prototype.isFeatureSupported=function(t,e){var n=X.index(t);if(0>n)return!1;var r=X.index(e);return r>=n},r.prototype.deserialize=function(t){this.reset(t),this.checkVersion(),this.checkUUID();var e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);var n=this.readSets(e);return this.readEdges(e,n),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===a.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e},r.prototype.reset=function(t){var e=function(t){var e=t.charCodeAt(0);return e>1?e-2:-1},n=t.split("").map(e);n[0]=t.charCodeAt(0),this.data=n,this.pos=0},r.prototype.checkVersion=function(){var t=this.readInt();if(t!==J)throw"Could not deserialize ATN with version "+t+" (expected "+J+")."},r.prototype.checkUUID=function(){var t=this.readUUID();if(X.indexOf(t)<0)throw Q;this.uuid=t},r.prototype.readATN=function(){var t=this.readInt(),e=this.readInt();return new s(t,e)},r.prototype.readStates=function(t){for(var e,n,r,o=[],i=[],s=this.readInt(),a=0;s>a;a++){var c=this.readInt();if(c!==u.INVALID_TYPE){var l=this.readInt();65535===l&&(l=-1);var p=this.stateFactory(c,l);if(c===u.LOOP_END){var d=this.readInt();o.push([p,d])}else if(p instanceof h){var f=this.readInt();i.push([p,f])}t.addState(p)}else t.addState(null)}for(e=0;e<o.length;e++)n=o[e],n[0].loopBackState=t.states[n[1]];for(e=0;e<i.length;e++)n=i[e],n[0].endState=t.states[n[1]];var g=this.readInt();for(e=0;g>e;e++)r=this.readInt(),t.states[r].nonGreedy=!0;var y=this.readInt();for(e=0;y>e;e++)r=this.readInt(),t.states[r].isPrecedenceRule=!0},r.prototype.readRules=function(t){var e,r=this.readInt();for(t.grammarType===a.LEXER&&(t.ruleToTokenType=n(r,0)),t.ruleToStartState=n(r,0),e=0;r>e;e++){var o=this.readInt(),s=t.states[o];if(t.ruleToStartState[e]=s,t.grammarType===a.LEXER){var c=this.readInt();65535===c&&(c=i.EOF),t.ruleToTokenType[e]=c}}for(t.ruleToStopState=n(r,0),e=0;e<t.states.length;e++){var u=t.states[e];u instanceof y&&(t.ruleToStopState[u.ruleIndex]=u,t.ruleToStartState[u.ruleIndex].stopState=u)}},r.prototype.readModes=function(t){for(var e=this.readInt(),n=0;e>n;n++){var r=this.readInt();t.modeToStartState.push(t.states[r])}},r.prototype.readSets=function(t){for(var e=[],n=this.readInt(),r=0;n>r;r++){var o=new w;e.push(o);var i=this.readInt(),s=this.readInt();0!==s&&o.addOne(-1);for(var a=0;i>a;a++){var c=this.readInt(),u=this.readInt();o.addRange(c,u)}}return e},r.prototype.readEdges=function(t,e){var n,r,o,i,s,a=this.readInt();for(n=0;a>n;n++){var c=this.readInt(),u=this.readInt(),l=this.readInt(),p=this.readInt(),d=this.readInt(),f=this.readInt();i=this.edgeFactory(t,l,c,u,p,d,f,e);var g=t.states[c];g.addTransition(i)}for(n=0;n<t.states.length;n++)for(o=t.states[n],r=0;r<o.transitions.length;r++){var y=o.transitions[r];if(y instanceof I){var x=-1;t.ruleToStartState[y.target.ruleIndex].isPrecedenceRule&&0===y.precedence&&(x=y.target.ruleIndex),i=new P(y.followState,x),t.ruleToStopState[y.target.ruleIndex].addTransition(i)}}for(n=0;n<t.states.length;n++){if(o=t.states[n],o instanceof h){if(null===o.endState)throw"IllegalState";if(null!==o.endState.startState)throw"IllegalState";o.endState.startState=o}if(o instanceof S)for(r=0;r<o.transitions.length;r++)s=o.transitions[r].target,s instanceof E&&(s.loopBackState=o);else if(o instanceof T)for(r=0;r<o.transitions.length;r++)s=o.transitions[r].target,s instanceof v&&(s.loopBackState=o)}},r.prototype.readDecisions=function(t){for(var e=this.readInt(),n=0;e>n;n++){var r=this.readInt(),o=t.states[r];t.decisionToState.push(o),o.decision=n}},r.prototype.readLexerActions=function(t){if(t.grammarType===a.LEXER){var e=this.readInt();t.lexerActions=n(e,null);for(var r=0;e>r;r++){var o=this.readInt(),i=this.readInt();65535===i&&(i=-1);var s=this.readInt();65535===s&&(s=-1);var c=this.lexerActionFactory(o,i,s);t.lexerActions[r]=c}}},r.prototype.generateRuleBypassTransitions=function(t){var e,n=t.ruleToStartState.length;for(e=0;n>e;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;n>e;e++)this.generateRuleBypassTransition(t,e)},r.prototype.generateRuleBypassTransition=function(t,e){var n,r,o=new A;o.ruleIndex=e,t.addState(o);var i=new d;i.ruleIndex=e,t.addState(i),o.endState=i,t.defineDecisionState(o),i.startState=o;var s=null,a=null;if(t.ruleToStartState[e].isPrecedenceRule){for(a=null,n=0;n<t.states.length;n++)if(r=t.states[n],this.stateIsEndStateFor(r,e)){a=r,s=r.loopBackState.transitions[0];break}if(null===s)throw"Couldn't identify final state of the precedence rule prefix section."}else a=t.ruleToStopState[e];for(n=0;n<t.states.length;n++){r=t.states[n];for(var c=0;c<r.transitions.length;c++){var u=r.transitions[c];u!==s&&u.target===a&&(u.target=i)}}for(var p=t.ruleToStartState[e],h=p.transitions.length;h>0;)o.addTransition(p.transitions[h-1]),p.transitions=p.transitions.slice(-1);t.ruleToStartState[e].addTransition(new P(o)),i.addTransition(new P(a));var f=new l;t.addState(f),f.addTransition(new N(i,t.ruleToTokenType[e])),o.addTransition(new P(f))},r.prototype.stateIsEndStateFor=function(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof v))return null;var n=t.transitions[t.transitions.length-1].target;return n instanceof f&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof y?t:null},r.prototype.markPrecedenceDecisions=function(t){for(var e=0;e<t.states.length;e++){var n=t.states[e];if(n instanceof v&&t.ruleToStartState[n.ruleIndex].isPrecedenceRule){var r=n.transitions[n.transitions.length-1].target;r instanceof f&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof y&&(n.precedenceRuleDecision=!0)}}},r.prototype.verifyATN=function(t){if(this.deserializationOptions.verifyATN)for(var e=0;e<t.states.length;e++){var n=t.states[e];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof E)this.checkCondition(null!==n.loopBackState);else if(n instanceof v)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof m)this.checkCondition(n.transitions[1].target instanceof f),this.checkCondition(!n.nonGreedy);else{if(!(n.transitions[0].target instanceof f))throw"IllegalState";this.checkCondition(n.transitions[1].target instanceof m),this.checkCondition(n.nonGreedy)}else n instanceof T?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof v)):n instanceof f?this.checkCondition(null!==n.loopBackState):n instanceof g?this.checkCondition(null!==n.stopState):n instanceof h?this.checkCondition(null!==n.endState):n instanceof d?this.checkCondition(null!==n.startState):n instanceof p?this.checkCondition(n.transitions.length<=1||n.decision>=0):this.checkCondition(n.transitions.length<=1||n instanceof y)}},r.prototype.checkCondition=function(t,e){if(!t)throw(void 0===e||null===e)&&(e="IllegalState"),e},r.prototype.readInt=function(){return this.data[this.pos++]},r.prototype.readInt32=function(){var t=this.readInt(),e=this.readInt();return t|e<<16},r.prototype.readLong=function(){var t=this.readInt32(),e=this.readInt32();return 4294967295&t|e<<32};var $=o();r.prototype.readUUID=function(){for(var t=[],e=7;e>=0;e--){var n=this.readInt();t[2*e+1]=255&n,t[2*e]=n>>8&255}return $[t[0]]+$[t[1]]+$[t[2]]+$[t[3]]+"-"+$[t[4]]+$[t[5]]+"-"+$[t[6]]+$[t[7]]+"-"+$[t[8]]+$[t[9]]+"-"+$[t[10]]+$[t[11]]+$[t[12]]+$[t[13]]+$[t[14]]+$[t[15]]},r.prototype.edgeFactory=function(t,e,n,r,o,s,a,c){var u=t.states[r];switch(e){case _.EPSILON:return new P(u);case _.RANGE:return 0!==a?new k(u,i.EOF,s):new k(u,o,s);case _.RULE:return new I(t.states[o],s,a,u);case _.PREDICATE:return new b(u,o,s,0!==a);case _.PRECEDENCE:return new D(u,o);case _.ATOM:return 0!==a?new N(u,i.EOF):new N(u,o);case _.ACTION:return new L(u,o,s,0!==a);case _.SET:return new M(u,c[o]);case _.NOT_SET:return new O(u,c[o]);case _.WILDCARD:return new R(u);default:throw"The specified transition type: "+e+" is not valid."}},r.prototype.stateFactory=function(t,e){if(null===this.stateFactories){var n=[];n[u.INVALID_TYPE]=null,n[u.BASIC]=function(){return new l},n[u.RULE_START]=function(){return new g},n[u.BLOCK_START]=function(){return new A},n[u.PLUS_BLOCK_START]=function(){return new E},n[u.STAR_BLOCK_START]=function(){return new m},n[u.TOKEN_START]=function(){return new x},n[u.RULE_STOP]=function(){return new y},n[u.BLOCK_END]=function(){return new d},n[u.STAR_LOOP_BACK]=function(){return new T},n[u.STAR_LOOP_ENTRY]=function(){return new v},n[u.PLUS_LOOP_BACK]=function(){return new S},n[u.LOOP_END]=function(){return new f},this.stateFactories=n}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";var r=this.stateFactories[t]();return null!==r?(r.ruleIndex=e,r):void 0},r.prototype.lexerActionFactory=function(t,e,n){if(null===this.actionFactories){var r=[];r[j.CHANNEL]=function(t,e){return new V(t)},r[j.CUSTOM]=function(t,e){return new z(t,e)},r[j.MODE]=function(t,e){return new G(t)},r[j.MORE]=function(t,e){return Y.INSTANCE},r[j.POP_MODE]=function(t,e){return H.INSTANCE},r[j.PUSH_MODE]=function(t,e){return new K(t)},r[j.SKIP]=function(t,e){return B.INSTANCE},r[j.TYPE]=function(t,e){return new q(t)},this.actionFactories=r}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,n)},e.ATNDeserializer=r}.call(this,cachedModules[2084],cachedModules[2084].exports),cachedModules[1068]={exports:{}},function(t,e){function n(){return this}function r(){return n.call(this),this}function o(t){if(n.call(this),null===t)throw"delegates";return this.delegates=t,this}n.prototype.syntaxError=function(t,e,n,r,o,i){},n.prototype.reportAmbiguity=function(t,e,n,r,o,i,s){},n.prototype.reportAttemptingFullContext=function(t,e,n,r,o,i){},n.prototype.reportContextSensitivity=function(t,e,n,r,o,i){},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.INSTANCE=new r,r.prototype.syntaxError=function(t,e,n,r,o,i){console.error("line "+n+":"+r+" "+o)},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.syntaxError=function(t,e,n,r,o,i){this.delegates.map(function(s){s.syntaxError(t,e,n,r,o,i)})},o.prototype.reportAmbiguity=function(t,e,n,r,o,i,s){this.delegates.map(function(a){a.reportAmbiguity(t,e,n,r,o,i,s)})},o.prototype.reportAttemptingFullContext=function(t,e,n,r,o,i){this.delegates.map(function(s){s.reportAttemptingFullContext(t,e,n,r,o,i)})},o.prototype.reportContextSensitivity=function(t,e,n,r,o,i){this.delegates.map(function(s){s.reportContextSensitivity(t,e,n,r,o,i)})},e.ErrorListener=n,e.ConsoleErrorListener=r,e.ProxyErrorListener=o}.call(this,cachedModules[1068],cachedModules[1068].exports),cachedModules[9960]={exports:{}},function(t,e){function n(){return this._listeners=[o.INSTANCE],this._interp=null,this._stateNumber=-1,this}var r=cachedModules[5924].exports.Token,o=cachedModules[1068].exports.ConsoleErrorListener,i=cachedModules[1068].exports.ProxyErrorListener;n.tokenTypeMapCache={},n.ruleIndexMapCache={},n.prototype.checkVersion=function(t){var e="4.5.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)},n.prototype.addErrorListener=function(t){this._listeners.push(t)},n.prototype.removeErrorListeners=function(){this._listeners=[]},n.prototype.getTokenTypeMap=function(){var t=this.getTokenNames();if(null===t)throw"The current recognizer does not provide a list of token names.";var e=this.tokenTypeMapCache[t];return void 0===e&&(e=t.reduce(function(t,e,n){t[e]=n}),e.EOF=r.EOF,this.tokenTypeMapCache[t]=e),e},n.prototype.getRuleIndexMap=function(){var t=this.getRuleNames();if(null===t)throw"The current recognizer does not provide a list of rule names.";var e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce(function(t,e,n){t[e]=n}),this.ruleIndexMapCache[t]=e),e},n.prototype.getTokenType=function(t){var e=this.getTokenTypeMap()[t];return void 0!==e?e:r.INVALID_TYPE},n.prototype.getErrorHeader=function(t){var e=t.getOffendingToken().line,n=t.getOffendingToken().column;return"line "+e+":"+n},n.prototype.getTokenErrorDisplay=function(t){if(null===t)return"<no token>";var e=t.text;return null===e&&(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),e=e.replace("\n","\\n").replace("\r","\\r").replace(" ","\\t"),"'"+e+"'"},n.prototype.getErrorListenerDispatch=function(){return new i(this._listeners)},n.prototype.sempred=function(t,e,n){return!0},n.prototype.precpred=function(t,e){return!0},Object.defineProperty(n.prototype,"state",{get:function(){return this._stateNumber},set:function(t){this._stateNumber=t}}),e.Recognizer=n}.call(this,cachedModules[9960],cachedModules[9960].exports),cachedModules[9092]={exports:{}},function(t,e){function n(){return this}function r(t){return n.call(this),this.copyText=void 0===t?!1:t,this}var o=cachedModules[5924].exports.CommonToken;r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.DEFAULT=new r,r.prototype.create=function(t,e,n,r,i,s,a,c){var u=new o(t,e,r,i,s);return u.line=a,u.column=c,null!==n?u.text=n:this.copyText&&null!==t[1]&&(u.text=t[1].getText(i,s)),u},r.prototype.createThin=function(t,e){var n=new o(null,t);return n.text=e,n},e.CommonTokenFactory=r}.call(this,cachedModules[9092],cachedModules[9092].exports),cachedModules[3628]={exports:{}},function(t,e){function n(t){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,n);else{(new Error).stack}return this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function r(t,e,r,o){return n.call(this,{message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=o,this}function o(t,e,r,o,i,s){s=s||t._ctx,o=o||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),n.call(this,{message:"",recognizer:t,input:e,ctx:s}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=o}function i(t){n.call(this,{message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}function s(t,e,r){n.call(this,{message:this.formatMessage(e,r||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});var o=t._interp.atn.states[t.state],i=o.transitions[0];return i instanceof c?(this.ruleIndex=i.ruleIndex,this.predicateIndex=i.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken(),this}function a(){return Error.call(this),Error.captureStackTrace(this,a),this}var c=cachedModules[8378].exports.PredicateTransition;n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},n.prototype.toString=function(){return this.message},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.toString=function(){var t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+t},o.prototype=Object.create(n.prototype),o.prototype.constructor=o,i.prototype=Object.create(n.prototype),i.prototype.constructor=i,s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.prototype.formatMessage=function(t,e){return null!==e?e:"failed predicate: {"+t+"}?"},a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,e.RecognitionException=n,e.NoViableAltException=o,e.LexerNoViableAltException=r,e.InputMismatchException=i,e.FailedPredicateException=s}.call(this,cachedModules[3628],cachedModules[3628].exports),cachedModules[7822]={exports:{}},function(t,e){function n(t){return o.call(this),this._input=t,this._factory=i.DEFAULT,this._tokenFactorySourcePair=[this,t],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=r.DEFAULT_CHANNEL,this._type=r.INVALID_TYPE,this._modeStack=[],this._mode=n.DEFAULT_MODE,this._text=null,this}var r=cachedModules[5924].exports.Token,o=cachedModules[9960].exports.Recognizer,i=cachedModules[9092].exports.CommonTokenFactory,s=cachedModules[3628].exports.LexerNoViableAltException;n.prototype=Object.create(o.prototype),n.prototype.constructor=n,n.DEFAULT_MODE=0,n.MORE=-2,n.SKIP=-3,n.DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL,n.HIDDEN=r.HIDDEN_CHANNEL,n.MIN_CHAR_VALUE="\x00",n.MAX_CHAR_VALUE="",n.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=r.INVALID_TYPE,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=n.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},n.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var t=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var e=!1;;){this._type=r.INVALID_TYPE;
var o=n.SKIP;try{o=this._interp.match(this._input,this._mode)}catch(i){this.notifyListeners(i),this.recover(i)}if(this._input.LA(1)===r.EOF&&(this._hitEOF=!0),this._type===r.INVALID_TYPE&&(this._type=o),this._type===n.SKIP){e=!0;break}if(this._type!==n.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(t)}},n.prototype.skip=function(){this._type=n.SKIP},n.prototype.more=function(){this._type=n.MORE},n.prototype.mode=function(t){this._mode=t},n.prototype.pushMode=function(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)},n.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(n.prototype,"inputStream",{get:function(){return this._input},set:function(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(n.prototype,"sourceName",{get:function(){return this._input.sourceName}}),n.prototype.emitToken=function(t){this._token=t},n.prototype.emit=function(){var t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t},n.prototype.emitEOF=function(){var t=this.column,e=this.line,n=this._factory.create(this._tokenFactorySourcePair,r.EOF,null,r.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emitToken(n),n},Object.defineProperty(n.prototype,"type",{get:function(){return this.type},set:function(t){this._type=t}}),Object.defineProperty(n.prototype,"line",{get:function(){return this._interp.line},set:function(t){this._interp.line=t}}),Object.defineProperty(n.prototype,"column",{get:function(){return this._interp.column},set:function(t){this._interp.column=t}}),n.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(n.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(t){this._text=t}}),n.prototype.getAllTokens=function(){for(var t=[],e=this.nextToken();e.type!==r.EOF;)t.push(e),e=this.nextToken();return t},n.prototype.notifyListeners=function(t){var e=this._tokenStartCharIndex,n=this._input.index,r=this._input.getText(e,n),o="token recognition error at: '"+this.getErrorDisplay(r)+"'",i=this.getErrorListenerDispatch();i.syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,o,t)},n.prototype.getErrorDisplay=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e.join("")},n.prototype.getErrorDisplayForChar=function(t){return t.charCodeAt(0)===r.EOF?"<EOF>":"\n"===t?"\\n":" "===t?"\\t":"\r"===t?"\\r":t},n.prototype.getCharErrorDisplay=function(t){return"'"+this.getErrorDisplayForChar(t)+"'"},n.prototype.recover=function(t){this._input.LA(1)!==r.EOF&&(t instanceof s?this._interp.consume(this._input):this._input.consume())},e.Lexer=n}.call(this,cachedModules[7822],cachedModules[7822].exports),cachedModules[3945]={exports:{}},function(t,e){function n(t){return t.shortHashString()}function r(t,e){return t===e?!0:null===t||null===e?!1:t.state.stateNumber===e.state.stateNumber&&t.alt===e.alt&&t.semanticContext.equals(e.semanticContext)}function o(t){return this.configLookup=new c(n,r),this.fullCtx=void 0===t?!0:t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashString="-1",this}function i(){return o.call(this),this.configLookup=new c,this}var s=cachedModules[7455].exports.ATN,a=cachedModules[4684].exports,c=a.Set,u=cachedModules[4709].exports.SemanticContext,l=cachedModules[552].exports.merge;o.prototype.add=function(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==u.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var n=this.configLookup.add(t);if(n===t)return this.cachedHashString="-1",this.configs.push(t),!0;var r=!this.fullCtx,o=l(n.context,t.context,r,e);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=o,!0},o.prototype.getStates=function(){for(var t=new c,e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t},o.prototype.getPredicates=function(){for(var t=[],e=0;e<this.configs.length;e++){var n=this.configs[e].semanticContext;n!==u.NONE&&t.push(n.semanticContext)}return t},Object.defineProperty(o.prototype,"items",{get:function(){return this.configs}}),o.prototype.optimizeConfigs=function(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(var e=0;e<this.configs.length;e++){var n=this.configs[e];n.context=t.getCachedContext(n.context)}},o.prototype.addAll=function(t){for(var e=0;e<t.length;e++)this.add(t[e]);return!1},o.prototype.equals=function(t){return this===t?!0:t instanceof o?null!==this.configs&&this.configs.equals(t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext:!1},o.prototype.hashString=function(){return this.readOnly?("-1"===this.cachedHashString&&(this.cachedHashString=this.hashConfigs()),this.cachedHashString):this.hashConfigs()},o.prototype.hashConfigs=function(){var t="";return this.configs.map(function(e){t+=e.toString()}),t},Object.defineProperty(o.prototype,"length",{get:function(){return this.configs.length}}),o.prototype.isEmpty=function(){return 0===this.configs.length},o.prototype.contains=function(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)},o.prototype.containsFast=function(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)},o.prototype.clear=function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashString="-1",this.configLookup=new c},o.prototype.setReadonly=function(t){this.readOnly=t,t&&(this.configLookup=null)},o.prototype.toString=function(){return a.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==s.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")},i.prototype=Object.create(o.prototype),i.prototype.constructor=i,e.ATNConfigSet=o,e.OrderedATNConfigSet=i}.call(this,cachedModules[3945],cachedModules[3945].exports),cachedModules[5495]={exports:{}},function(t,e){function n(t,e){return this.alt=e,this.pred=t,this}function r(t,e){return null===t&&(t=-1),null===e&&(e=new o),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}var o=cachedModules[3945].exports.ATNConfigSet;n.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},r.prototype.getAltSet=function(){var t=new Set;if(null!==this.configs)for(var e=0;e<this.configs.length;e++){var n=this.configs[e];t.add(n.alt)}return 0===t.length?null:t},r.prototype.equals=function(t){return this===t?!0:t instanceof r?this.configs.equals(t.configs):!1},r.prototype.toString=function(){return""+this.stateNumber+":"+this.hashString()},r.prototype.hashString=function(){return""+this.configs+(this.isAcceptState?"=>"+(null!==this.predicates?this.predicates:this.prediction):"")},e.DFAState=r,e.PredPrediction=n}.call(this,cachedModules[5495],cachedModules[5495].exports),cachedModules[5872]={exports:{}},function(t,e){function n(t,e){return this.atn=t,this.sharedContextCache=e,this}var r=cachedModules[5495].exports.DFAState,o=cachedModules[3945].exports.ATNConfigSet,i=cachedModules[552].exports.getCachedPredictionContext;n.ERROR=new r(2147483647,new o),n.prototype.getCachedContext=function(t){if(null===this.sharedContextCache)return t;var e={};return i(t,this.sharedContextCache,e)},e.ATNSimulator=n}.call(this,cachedModules[5872],cachedModules[5872].exports),cachedModules[599]={exports:{}},function(t,e){function n(t){return this.lexerActions=null===t?[]:t,this.hashString=t.toString(),this}var r=cachedModules[6958].exports.LexerIndexedCustomAction;n.append=function(t,e){if(null===t)return new n([e]);var r=t.lexerActions.concat([e]);return new n(r)},n.prototype.fixOffsetBeforeMatch=function(t){for(var e=null,o=0;o<this.lexerActions.length;o++)!this.lexerActions[o].isPositionDependent||this.lexerActions[o]instanceof r||(null===e&&(e=this.lexerActions.concat([])),e[o]=new r(t,this.lexerActions[o]));return null===e?this:new n(e)},n.prototype.execute=function(t,e,n){var o=!1,i=e.index;try{for(var s=0;s<this.lexerActions.length;s++){var a=this.lexerActions[s];if(a instanceof r){var c=a.offset;e.seek(n+c),a=a.action,o=n+c!==i}else a.isPositionDependent&&(e.seek(i),o=!1);a.execute(t)}}finally{o&&e.seek(i)}},n.prototype.hashString=function(){return this.hashString},n.prototype.equals=function(t){return this===t?!0:t instanceof n?this.hashString===t.hashString&&this.lexerActions===t.lexerActions:!1},e.LexerActionExecutor=n}.call(this,cachedModules[599],cachedModules[599].exports),cachedModules[9942]={exports:{}},function(t,e){function n(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}function r(){return n(this),this}function o(t,e,n,o){return c.call(this,e,o),this.decisionToDFA=n,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=s.DEFAULT_MODE,this.prevAccept=new r,this}var i=cachedModules[5924].exports.Token,s=cachedModules[7822].exports.Lexer,a=cachedModules[7455].exports.ATN,c=cachedModules[5872].exports.ATNSimulator,u=cachedModules[5495].exports.DFAState,l=(cachedModules[3945].exports.ATNConfigSet,cachedModules[3945].exports.OrderedATNConfigSet),p=cachedModules[552].exports.PredictionContext,h=cachedModules[552].exports.SingletonPredictionContext,d=cachedModules[1265].exports.RuleStopState,f=cachedModules[60].exports.LexerATNConfig,g=cachedModules[8378].exports.Transition,y=cachedModules[599].exports.LexerActionExecutor,x=cachedModules[3628].exports.LexerNoViableAltException;r.prototype.reset=function(){n(this)},o.prototype=Object.create(c.prototype),o.prototype.constructor=o,o.debug=!1,o.dfa_debug=!1,o.MIN_DFA_EDGE=0,o.MAX_DFA_EDGE=127,o.match_calls=0,o.prototype.copyState=function(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex},o.prototype.match=function(t,e){this.match_calls+=1,this.mode=e;var n=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();var r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(n)}},o.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=s.DEFAULT_MODE},o.prototype.matchATN=function(t){var e=this.atn.modeToStartState[this.mode];this.debug&&console.log("matchATN mode "+this.mode+" start: "+e);var n=this.mode,r=this.computeStartState(t,e),o=r.hasSemanticContext;r.hasSemanticContext=!1;var i=this.addDFAState(r);o||(this.decisionToDFA[this.mode].s0=i);var s=this.execATN(t,i);return this.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),s},o.prototype.execATN=function(t,e){this.debug&&console.log("start state closure="+e.configs),e.isAcceptState&&this.captureSimState(this.prevAccept,t,e);for(var n=t.LA(1),r=e;;){this.debug&&console.log("execATN loop starting closure: "+r.configs);var o=this.getExistingTargetState(r,n);if(null===o&&(o=this.computeTargetState(t,r,n)),o===c.ERROR)break;if(n!==i.EOF&&this.consume(t),o.isAcceptState&&(this.captureSimState(this.prevAccept,t,o),n===i.EOF))break;n=t.LA(1),r=o}return this.failOrAccept(this.prevAccept,t,r.configs,n)},o.prototype.getExistingTargetState=function(t,e){if(null===t.edges||e<o.MIN_DFA_EDGE||e>o.MAX_DFA_EDGE)return null;var n=t.edges[e-o.MIN_DFA_EDGE];return void 0===n&&(n=null),this.debug&&null!==n&&console.log("reuse state "+t.stateNumber+" edge to "+n.stateNumber),n},o.prototype.computeTargetState=function(t,e,n){var r=new l;return this.getReachableConfigSet(t,e.configs,r,n),0===r.items.length?(r.hasSemanticContext||this.addDFAEdge(e,n,c.ERROR),c.ERROR):this.addDFAEdge(e,n,null,r)},o.prototype.failOrAccept=function(t,e,n,r){if(null!==this.prevAccept.dfaState){var o=t.dfaState.lexerActionExecutor;return this.accept(e,o,this.startIndex,t.index,t.line,t.column),t.dfaState.prediction}if(r===i.EOF&&e.index===this.startIndex)return i.EOF;throw new x(this.recog,e,this.startIndex,n)},o.prototype.getReachableConfigSet=function(t,e,n,r){for(var o=a.INVALID_ALT_NUMBER,s=0;s<e.items.length;s++){var c=e.items[s],u=c.alt===o;if(!u||!c.passedThroughNonGreedyDecision){this.debug&&console.log("testing %s at %s\n",this.getTokenName(r),c.toString(this.recog,!0));for(var l=0;l<c.state.transitions.length;l++){var p=c.state.transitions[l],h=this.getReachableTarget(p,r);if(null!==h){var d=c.lexerActionExecutor;null!==d&&(d=d.fixOffsetBeforeMatch(t.index-this.startIndex));var g=r===i.EOF,y=new f({state:h,lexerActionExecutor:d},c);this.closure(t,y,n,u,!0,g)&&(o=c.alt)}}}}},o.prototype.accept=function(t,e,n,r,o,i){this.debug&&console.log("ACTION %s\n",e),t.seek(r),this.line=o,this.column=i,null!==e&&null!==this.recog&&e.execute(this.recog,t,n)},o.prototype.getReachableTarget=function(t,e){return t.matches(e,0,65534)?t.target:null},o.prototype.computeStartState=function(t,e){for(var n=p.EMPTY,r=new l,o=0;o<e.transitions.length;o++){var i=e.transitions[o].target,s=new f({state:i,alt:o+1,context:n},null);this.closure(t,s,r,!1,!1,!1)}return r},o.prototype.closure=function(t,e,n,r,o,i){var s=null;if(this.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof d){if(this.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.getRuleNames()[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return n.add(e),!0;n.add(new f({state:e.state,context:p.EMPTY},e)),r=!0}if(null!==e.context&&!e.context.isEmpty())for(var a=0;a<e.context.length;a++)if(e.context.getReturnState(a)!==p.EMPTY_RETURN_STATE){var c=e.context.getParent(a),u=this.atn.states[e.context.getReturnState(a)];s=new f({state:u,context:c},e),r=this.closure(t,s,n,r,o,i)}return r}e.state.epsilonOnlyTransitions||r&&e.passedThroughNonGreedyDecision||n.add(e);for(var l=0;l<e.state.transitions.length;l++){var h=e.state.transitions[l];s=this.getEpsilonTarget(t,e,h,n,o,i),null!==s&&(r=this.closure(t,s,n,r,o,i))}return r},o.prototype.getEpsilonTarget=function(t,e,n,r,o,s){var a=null;if(n.serializationType===g.RULE){var c=h.create(e.context,n.followState.stateNumber);a=new f({state:n.target,context:c},e)}else{if(n.serializationType===g.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===g.PREDICATE)this.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),r.hasSemanticContext=!0,this.evaluatePredicate(t,n.ruleIndex,n.predIndex,o)&&(a=new f({state:n.target},e));else if(n.serializationType===g.ACTION)if(null===e.context||e.context.hasEmptyPath()){var u=y.append(e.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);a=new f({state:n.target,lexerActionExecutor:u},e)}else a=new f({state:n.target},e);else n.serializationType===g.EPSILON?a=new f({state:n.target},e):(n.serializationType===g.ATOM||n.serializationType===g.RANGE||n.serializationType===g.SET)&&s&&n.matches(i.EOF,0,65535)&&(a=new f({state:n.target},e))}return a},o.prototype.evaluatePredicate=function(t,e,n,r){if(null===this.recog)return!0;if(!r)return this.recog.sempred(null,e,n);var o=this.column,i=this.line,s=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(null,e,n)}finally{this.column=o,this.line=i,t.seek(s),t.release(a)}},o.prototype.captureSimState=function(t,e,n){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=n},o.prototype.addDFAEdge=function(t,e,n,r){if(void 0===n&&(n=null),void 0===r&&(r=null),null===n&&null!==r){var i=r.hasSemanticContext;if(r.hasSemanticContext=!1,n=this.addDFAState(r),i)return n}return e<o.MIN_DFA_EDGE||e>o.MAX_DFA_EDGE?n:(this.debug&&console.log("EDGE "+t+" -> "+n+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-o.MIN_DFA_EDGE]=n,n)},o.prototype.addDFAState=function(t){for(var e=new u(null,t),n=null,r=0;r<t.items.length;r++){var o=t.items[r];if(o.state instanceof d){n=o;break}}null!==n&&(e.isAcceptState=!0,e.lexerActionExecutor=n.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);var i=e.hashString(),s=this.decisionToDFA[this.mode],a=s.states[i]||null;if(null!==a)return a;var c=e;return c.stateNumber=s.states.length,t.setReadonly(!0),c.configs=t,s.states[i]=c,c},o.prototype.getDFA=function(t){return this.decisionToDFA[t]},o.prototype.getText=function(t){return t.getText(this.startIndex,t.index-1)},o.prototype.consume=function(t){var e=t.LA(1);e==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()},o.prototype.getTokenName=function(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"},e.LexerATNSimulator=o}.call(this,cachedModules[9942],cachedModules[9942].exports),cachedModules[7512]={exports:{}},function(t,e){function n(){return this}var r=(cachedModules[4684].exports.Set,cachedModules[4684].exports.BitSet),o=cachedModules[4684].exports.AltDict,i=cachedModules[7455].exports.ATN,s=cachedModules[1265].exports.RuleStopState;n.SLL=0,n.LL=1,n.LL_EXACT_AMBIG_DETECTION=2,n.hasSLLConflictTerminatingPrediction=function(t,e){if(n.allConfigsInRuleStopStates(e))return!0;if(t===n.SLL&&e.hasSemanticContext){for(var r=new ATNConfigSet,o=0;o<e.items.length;o++){var i=e.items[o];i=new ATNConfig({semanticContext:SemanticContext.NONE},i),r.add(i)}e=r}var s=n.getConflictingAltSubsets(e);return n.hasConflictingAltSet(s)&&!n.hasStateAssociatedWithOneAlt(e)},n.hasConfigInRuleStopState=function(t){for(var e=0;e<t.items.length;e++){var n=t.items[e];if(n.state instanceof s)return!0}return!1},n.allConfigsInRuleStopStates=function(t){for(var e=0;e<t.items.length;e++){var n=t.items[e];if(!(n.state instanceof s))return!1}return!0},n.resolvesToJustOneViableAlt=function(t){return n.getSingleViableAlt(t)},n.allSubsetsConflict=function(t){return!n.hasNonConflictingAltSet(t)},n.hasNonConflictingAltSet=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.length)return!0}return!1},n.hasConflictingAltSet=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.length>1)return!0}return!1},n.allSubsetsEqual=function(t){for(var e=null,n=0;n<t.length;n++){var r=t[n];if(null===e)e=r;else if(r!==e)return!1}return!0},n.getUniqueAlt=function(t){var e=n.getAlts(t);return 1===e.length?e.minValue():i.INVALID_ALT_NUMBER},n.getAlts=function(t){var e=new r;return t.map(function(t){e.or(t)}),e},n.getConflictingAltSubsets=function(t){for(var e={},n=0;n<t.items.length;n++){var o=t.items[n],i="key_"+o.state.stateNumber+"/"+o.context,s=e[i]||null;null===s&&(s=new r,e[i]=s),s.add(o.alt)}var a=[];for(var c in e)0===c.indexOf("key_")&&a.push(e[c]);return a},n.getStateToAltMap=function(t){var e=new o;return t.items.map(function(t){var n=e.get(t.state);null===n&&(n=new r,e.put(t.state,n)),n.add(t.alt)}),e},n.hasStateAssociatedWithOneAlt=function(t){for(var e=n.getStateToAltMap(t).values(),r=0;r<e.length;r++)if(1===e[r].length)return!0;return!1},n.getSingleViableAlt=function(t){for(var e=null,n=0;n<t.length;n++){var r=t[n],o=r.minValue();if(null===e)e=o;else if(e!==o)return i.INVALID_ALT_NUMBER}return e},e.PredictionMode=n}.call(this,cachedModules[7512],cachedModules[7512].exports),cachedModules[8029]={exports:{}},function(t,e){function n(t,e){t=t||null,e=e||null,o.call(this,t,e),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function r(t,e,r){return n.call(t,e),this.ruleIndex=r,this}var o=cachedModules[9958].exports.RuleContext,i=cachedModules[9020].exports,s=i.INVALID_INTERVAL,a=i.TerminalNode,c=i.TerminalNodeImpl,u=i.ErrorNodeImpl,l=cachedModules[6201].exports.Interval;n.prototype=Object.create(o.prototype),n.prototype.constructor=n,n.prototype.copyFrom=function(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop},n.prototype.enterRule=function(t){},n.prototype.exitRule=function(t){},n.prototype.addChild=function(t){return null===this.children&&(this.children=[]),this.children.push(t),t},n.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},n.prototype.addTokenNode=function(t){var e=new c(t);return this.addChild(e),e.parentCtx=this,e},n.prototype.addErrorNode=function(t){var e=new u(t);return this.addChild(e),e.parentCtx=this,e},n.prototype.getChild=function(t,e){if(e=e||null,null===e)return this.children.length>=t?this.children[t]:null;for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof e){if(0===t)return r;t-=1}}return null},n.prototype.getToken=function(t,e){for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof a&&r.symbol.type===t){if(0===e)return r;e-=1}}return null},n.prototype.getTokens=function(t){if(null===this.children)return[];for(var e=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof a&&r.symbol.type===t&&e.push(r)}return e},n.prototype.getTypedRuleContext=function(t,e){return this.getChild(e,t)},n.prototype.getTypedRuleContexts=function(t){if(null===this.children)return[];for(var e=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof t&&e.push(r)}return e},n.prototype.getChildCount=function(){return null===this.children?0:this.children.length},n.prototype.getSourceInterval=function(){return null===this.start||null===this.stop?s:new l(this.start.tokenIndex,this.stop.tokenIndex)},o.EMPTY=new n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,e.ParserRuleContext=n}.call(this,cachedModules[8029],cachedModules[8029].exports),cachedModules[5137]={exports:{}},function(t,e){function n(t,e,n,r){return f.call(this,e,r),this.parser=t,this.decisionToDFA=n,this.predictionMode=g.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}var r=cachedModules[4684].exports,o=r.Set,i=r.BitSet,s=r.DoubleDict,a=cachedModules[7455].exports.ATN,u=cachedModules[60].exports.ATNConfig,l=cachedModules[3945].exports.ATNConfigSet,p=cachedModules[5924].exports.Token,h=cachedModules[5495].exports.DFAState,d=cachedModules[5495].exports.PredPrediction,f=cachedModules[5872].exports.ATNSimulator,g=cachedModules[7512].exports.PredictionMode,y=cachedModules[9958].exports.RuleContext,x=(cachedModules[8029].exports.ParserRuleContext,cachedModules[4709].exports.SemanticContext),S=cachedModules[1265].exports.StarLoopEntryState,T=cachedModules[1265].exports.RuleStopState,v=cachedModules[552].exports.PredictionContext,E=cachedModules[6201].exports.Interval,m=cachedModules[8378].exports,A=m.Transition,C=m.SetTransition,_=m.NotSetTransition,N=m.RuleTransition,M=m.ActionTransition,O=cachedModules[3628].exports.NoViableAltException,I=cachedModules[552].exports.SingletonPredictionContext,k=cachedModules[552].exports.predictionContextFromRuleContext;n.prototype=Object.create(f.prototype),n.prototype.constructor=n,n.prototype.debug=!1,n.prototype.debug_list_atn_decisions=!1,n.prototype.dfa_debug=!1,n.prototype.retry_debug=!1,n.prototype.reset=function(){},n.prototype.adaptivePredict=function(t,e,n){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=n;var r=this.decisionToDFA[e];this._dfa=r;var o=t.mark(),i=t.index;try{var s;if(s=r.precedenceDfa?r.getPrecedenceStartState(this.parser.getPrecedence()):r.s0,null===s){null===n&&(n=y.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+r.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+n.toString(this.parser.ruleNames)),!r.precedenceDfa&&r.atnStartState instanceof S&&r.atnStartState.precedenceRuleDecision&&r.setPrecedenceDfa(!0);var a=!1,c=this.computeStartState(r.atnStartState,y.EMPTY,a);r.precedenceDfa?(c=this.applyPrecedenceFilter(c),s=this.addDFAState(r,new h(null,c)),r.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(r,new h(null,c)),r.s0=s)}var u=this.execATN(r,s,t,i,n);return this.debug&&console.log("DFA after predictATN: "+r.toString(this.parser.literalNames)),u}finally{this._dfa=null,this.mergeCache=null,t.seek(i),t.release(o)}},n.prototype.execATN=function(t,e,n,r,o){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);var i,s=e;this.debug&&console.log("s0 = "+e);for(var c=n.LA(1);;){var u=this.getExistingTargetState(s,c);if(null===u&&(u=this.computeTargetState(t,s,c)),u===f.ERROR){var l=this.noViableAlt(n,o,s.configs,r);if(n.seek(r),i=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s.configs,o),i!==a.INVALID_ALT_NUMBER)return i;throw l}if(u.requiresFullContext&&this.predictionMode!==g.SLL){var h=null;if(null!==u.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var d=n.index;if(d!==r&&n.seek(r),h=this.evalSemanticContext(u.predicates,o,!0),1===h.length)return this.debug&&console.log("Full LL avoided"),h.minValue();d!==r&&n.seek(d)}this.dfa_debug&&console.log("ctx sensitive state "+o+" in "+u);var y=!0,x=this.computeStartState(t.atnStartState,o,y);return this.reportAttemptingFullContext(t,h,u.configs,r,n.index),i=this.execATNWithFullContext(t,u,x,n,r,o)}if(u.isAcceptState){if(null===u.predicates)return u.prediction;var S=n.index;n.seek(r);var T=this.evalSemanticContext(u.predicates,o,!0);if(0===T.length)throw this.noViableAlt(n,o,u.configs,r);return 1===T.length?T.minValue():(this.reportAmbiguity(t,u,r,S,!1,T,u.configs),T.minValue())}s=u,c!==p.EOF&&(n.consume(),c=n.LA(1))}},n.prototype.getExistingTargetState=function(t,e){var n=t.edges;return null===n?null:n[e+1]||null},n.prototype.computeTargetState=function(t,e,n){var o=this.computeReachSet(e.configs,n,!1);if(null===o)return this.addDFAEdge(t,e,n,f.ERROR),f.ERROR;var i=new h(null,o),s=this.getUniqueAlt(o);if(this.debug){var c=g.getConflictingAltSubsets(o);console.log("SLL altSubSets="+r.arrayToString(c)+", previous="+e.configs+", configs="+o+", predict="+s+", allSubsetsConflict="+g.allSubsetsConflict(c)+", conflictingAlts="+this.getConflictingAlts(o))}return s!==a.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=s,i.prediction=s):g.hasSLLConflictTerminatingPrediction(this.predictionMode,o)&&(i.configs.conflictingAlts=this.getConflictingAlts(o),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=a.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,n,i)},n.prototype.predicateDFAState=function(t,e){var n=e.transitions.length,r=this.getConflictingAltsOrUniqueAlt(t.configs),o=this.getPredsForAmbigAlts(r,t.configs,n);null!==o?(t.predicates=this.getPredicatePredictions(r,o),t.prediction=a.INVALID_ALT_NUMBER):t.prediction=r.minValue()},n.prototype.execATNWithFullContext=function(t,e,n,r,o,i){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+n);var s=!0,c=!1,u=null,l=n;r.seek(o);for(var h=r.LA(1),d=-1;;){if(u=this.computeReachSet(l,h,s),null===u){var f=this.noViableAlt(r,i,l,o);r.seek(o);var y=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,i);if(y!==a.INVALID_ALT_NUMBER)return y;throw f}var x=g.getConflictingAltSubsets(u);if(this.debug&&console.log("LL altSubSets="+x+", predict="+g.getUniqueAlt(x)+", resolvesToJustOneViableAlt="+g.resolvesToJustOneViableAlt(x)),u.uniqueAlt=this.getUniqueAlt(u),u.uniqueAlt!==a.INVALID_ALT_NUMBER){d=u.uniqueAlt;break}if(this.predictionMode!==g.LL_EXACT_AMBIG_DETECTION){if(d=g.resolvesToJustOneViableAlt(x),d!==a.INVALID_ALT_NUMBER)break}else if(g.allSubsetsConflict(x)&&g.allSubsetsEqual(x)){c=!0,d=g.getSingleViableAlt(x);break}l=u,h!==p.EOF&&(r.consume(),h=r.LA(1))}return u.uniqueAlt!==a.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,d,u,o,r.index),d):(this.reportAmbiguity(t,e,o,r.index,c,null,u),d)},n.prototype.computeReachSet=function(t,e,n){this.debug&&console.log("in computeReachSet, starting closure: "+t),null===this.mergeCache&&(this.mergeCache=new s);for(var r=new l(n),i=null,c=0;c<t.items.length;c++){var h=t.items[c];if(this.debug&&console.log("testing "+this.getTokenName(e)+" at "+h),h.state instanceof T)(n||e===p.EOF)&&(null===i&&(i=[]),i.push(h),this.debug&&console.log("added "+h+" to skippedStopStates"));else for(var d=0;d<h.state.transitions.length;d++){var f=h.state.transitions[d],y=this.getReachableTarget(f,e);if(null!==y){var x=new u({state:y},h);r.add(x,this.mergeCache),this.debug&&console.log("added "+x+" to intermediate")}}}var S=null;if(null===i&&e!==p.EOF&&(1===r.items.length?S=r:this.getUniqueAlt(r)!==a.INVALID_ALT_NUMBER&&(S=r)),null===S){S=new l(n);for(var v=new o,E=e===p.EOF,m=0;m<r.items.length;m++)this.closure(r.items[m],S,v,!1,n,E)}if(e===p.EOF&&(S=this.removeAllConfigsNotInRuleStopState(S,S===r)),!(null===i||n&&g.hasConfigInRuleStopState(S)))for(var A=0;A<i.length;A++)S.add(i[A],this.mergeCache);return 0===S.items.length?null:S},n.prototype.removeAllConfigsNotInRuleStopState=function(t,e){if(g.allConfigsInRuleStopStates(t))return t;for(var n=new l(t.fullCtx),r=0;r<t.items.length;r++){var o=t.items[r];if(o.state instanceof T)n.add(o,this.mergeCache);else if(e&&o.state.epsilonOnlyTransitions){var i=this.atn.nextTokens(o.state);if(i.contains(p.EPSILON)){var s=this.atn.ruleToStopState[o.state.ruleIndex];n.add(new u({state:s},o),this.mergeCache)}}}return n},n.prototype.computeStartState=function(t,e,n){for(var r=k(this.atn,e),i=new l(n),s=0;s<t.transitions.length;s++){var a=t.transitions[s].target,c=new u({state:a,alt:s+1,context:r},null),p=new o;this.closure(c,i,p,!0,n,!1)}return i},n.prototype.applyPrecedenceFilter=function(t){for(var e,n=[],r=new l(t.fullCtx),o=0;o<t.items.length;o++)if(e=t.items[o],1===e.alt){var i=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==i&&(n[e.state.stateNumber]=e.context,i!==e.semanticContext?r.add(new u({semanticContext:i},e),this.mergeCache):r.add(e,this.mergeCache))}for(o=0;o<t.items.length;o++)if(e=t.items[o],1!==e.alt){if(!e.precedenceFilterSuppressed){var s=n[e.state.stateNumber]||null;if(null!==s&&s.equals(e.context))continue}r.add(e,this.mergeCache)}return r},n.prototype.getReachableTarget=function(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null},n.prototype.getPredsForAmbigAlts=function(t,e,n){for(var o=[],i=0;i<e.items.length;i++){var s=e.items[i];t.contains(s.alt)&&(o[s.alt]=x.orContext(o[s.alt]||null,s.semanticContext))}var a=0;for(i=1;n+1>i;i++){var c=o[i]||null;null===c?o[i]=x.NONE:c!==x.NONE&&(a+=1)}return 0===a&&(o=null),this.debug&&console.log("getPredsForAmbigAlts result "+r.arrayToString(o)),o},n.prototype.getPredicatePredictions=function(t,e){for(var n=[],r=!1,o=1;o<e.length;o++){var i=e[o];null!==t&&t.contains(o)&&n.push(new d(i,o)),i!==x.NONE&&(r=!0)}return r?n:null},n.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule=function(t,e){var n=this.splitAccordingToSemanticValidity(t,e),r=n[0],o=n[1],i=this.getAltThatFinishedDecisionEntryRule(r);return i!==a.INVALID_ALT_NUMBER?i:o.items.length>0&&(i=this.getAltThatFinishedDecisionEntryRule(o),
i!==a.INVALID_ALT_NUMBER)?i:a.INVALID_ALT_NUMBER},n.prototype.getAltThatFinishedDecisionEntryRule=function(t){for(var e=[],n=0;n<t.items.length;n++){var r=t.items[n];(r.reachesIntoOuterContext>0||r.state instanceof T&&r.context.hasEmptyPath())&&e.indexOf(r.alt)<0&&e.push(r.alt)}return 0===e.length?a.INVALID_ALT_NUMBER:Math.min.apply(null,e)},n.prototype.splitAccordingToSemanticValidity=function(t,e){for(var n=new l(t.fullCtx),r=new l(t.fullCtx),o=0;o<t.items.length;o++){var i=t.items[o];if(i.semanticContext!==x.NONE){var s=i.semanticContext.evaluate(this.parser,e);s?n.add(i):r.add(i)}else n.add(i)}return[n,r]},n.prototype.evalSemanticContext=function(t,e,n){for(var r=new i,o=0;o<t.length;o++){var s=t[o];if(s.pred!==x.NONE){var a=s.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+s+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+s.alt),r.add(s.alt),!n))break}else if(r.add(s.alt),!n)break}return r},n.prototype.closure=function(t,e,n,r,o,i){var s=0;this.closureCheckingStopState(t,e,n,r,o,s,i)},n.prototype.closureCheckingStopState=function(t,e,n,r,o,i,s){if(this.debug&&(console.log("closure("+t.toString(this.parser,!0)+")"),console.log("configs("+e.toString()+")"),t.reachesIntoOuterContext>50))throw"problem";if(t.state instanceof T){if(!t.context.isEmpty()){for(var a=0;a<t.context.length;a++)if(t.context.getReturnState(a)!==v.EMPTY_RETURN_STATE){returnState=this.atn.states[t.context.getReturnState(a)],newContext=t.context.getParent(a);var l={state:returnState,alt:t.alt,context:newContext,semanticContext:t.semanticContext};c=new u(l,null),c.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(c,e,n,r,o,i-1,s)}else{if(o){e.add(new u({state:t.state,context:v.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,n,r,o,i,s)}return}if(o)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,n,r,o,i,s)},n.prototype.closure_=function(t,e,n,r,o,i,s){var a=t.state;a.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(var c=0;c<a.transitions.length;c++){var u=a.transitions[c],l=r&&!(u instanceof M),p=this.getEpsilonTarget(t,u,l,0===i,o,s);if(null!==p){if(!u.isEpsilon&&n.add(p)!==p)continue;var h=i;if(t.state instanceof T){if(n.add(p)!==p)continue;null!==this._dfa&&this._dfa.precedenceDfa&&u.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(p.precedenceFilterSuppressed=!0),p.reachesIntoOuterContext+=1,e.dipsIntoOuterContext=!0,h-=1,this.debug&&console.log("dips into outer ctx: "+p)}else u instanceof N&&h>=0&&(h+=1);this.closureCheckingStopState(p,e,n,l,o,h,s)}}},n.prototype.getRuleName=function(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"},n.prototype.getEpsilonTarget=function(t,e,n,r,o,i){switch(e.serializationType){case A.RULE:return this.ruleTransition(t,e);case A.PRECEDENCE:return this.precedenceTransition(t,e,n,r,o);case A.PREDICATE:return this.predTransition(t,e,n,r,o);case A.ACTION:return this.actionTransition(t,e);case A.EPSILON:return new u({state:e.target},t);case A.ATOM:case A.RANGE:case A.SET:return i&&e.matches(p.EOF,0,1)?new u({state:e.target},t):null;default:return null}},n.prototype.actionTransition=function(t,e){return this.debug&&console.log("ACTION edge "+e.ruleIndex+":"+e.actionIndex),new u({state:e.target},t)},n.prototype.precedenceTransition=function(t,e,n,o,i){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&o)if(i){var a=this._input.index;this._input.seek(this._startIndex);var c=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),c&&(s=new u({state:e.target},t))}else newSemCtx=x.andContext(t.semanticContext,e.getPredicate()),s=new u({state:e.target,semanticContext:newSemCtx},t);else s=new u({state:e.target},t);return this.debug&&console.log("config from pred transition="+s),s},n.prototype.predTransition=function(t,e,n,o,i){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&(e.isCtxDependent&&o||!e.isCtxDependent))if(i){var a=this._input.index;this._input.seek(this._startIndex);var c=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),c&&(s=new u({state:e.target},t))}else{var l=x.andContext(t.semanticContext,e.getPredicate());s=new u({state:e.target,semanticContext:l},t)}else s=new u({state:e.target},t);return this.debug&&console.log("config from pred transition="+s),s},n.prototype.ruleTransition=function(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);var n=e.followState,r=I.create(t.context,n.stateNumber);return new u({state:e.target,context:r},t)},n.prototype.getConflictingAlts=function(t){var e=g.getConflictingAltSubsets(t);return g.getAlts(e)},n.prototype.getConflictingAltsOrUniqueAlt=function(t){var e=null;return t.uniqueAlt!==a.INVALID_ALT_NUMBER?(e=new i,e.add(t.uniqueAlt)):e=t.conflictingAlts,e},n.prototype.getTokenName=function(t){if(t===p.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(t>=this.parser.literalNames.length))return this.parser.literalNames[t]+"<"+t+">";console.log(""+t+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+t},n.prototype.getLookaheadName=function(t){return this.getTokenName(t.LA(1))},n.prototype.dumpDeadEndConfigs=function(t){console.log("dead end configs: ");for(var e=t.getDeadEndConfigs(),n=0;n<e.length;n++){var r=e[n],o="no edges";if(r.state.transitions.length>0){var i=r.state.transitions[0];if(i instanceof AtomTransition)o="Atom "+this.getTokenName(i.label);else if(i instanceof C){var s=i instanceof _;o=(s?"~":"")+"Set "+i.set}}console.error(r.toString(this.parser,!0)+":"+o)}},n.prototype.noViableAlt=function(t,e,n,r){return new O(this.parser,t,t.get(r),t.LT(1),n,e)},n.prototype.getUniqueAlt=function(t){for(var e=a.INVALID_ALT_NUMBER,n=0;n<t.items.length;n++){var r=t.items[n];if(e===a.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return a.INVALID_ALT_NUMBER}return e},n.prototype.addDFAEdge=function(t,e,n,r){if(this.debug&&console.log("EDGE "+e+" -> "+r+" upon "+this.getTokenName(n)),null===r)return null;if(r=this.addDFAState(t,r),null===e||-1>n||n>this.atn.maxTokenType)return r;if(null===e.edges&&(e.edges=[]),e.edges[n+1]=r,this.debug){var o=null===this.parser?null:this.parser.literalNames;console.log("DFA=\n"+t.toString(o))}return r},n.prototype.addDFAState=function(t,e){if(e==f.ERROR)return e;var n=e.hashString(),r=t.states[n]||null;return null!==r?r:(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),t.states[n]=e,this.debug&&console.log("adding new DFA state: "+e),e)},n.prototype.reportAttemptingFullContext=function(t,e,n,r,o){if(this.debug||this.retry_debug){var i=new E(r,o+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(i))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,r,o,e,n)},n.prototype.reportContextSensitivity=function(t,e,n,r,o){if(this.debug||this.retry_debug){var i=new E(r,o+1);console.log("reportContextSensitivity decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(i))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,r,o,e,n)},n.prototype.reportAmbiguity=function(t,e,n,r,o,i,s){if(this.debug||this.retry_debug){var a=new E(n,r+1);console.log("reportAmbiguity "+i+":"+s+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,n,r,o,i,s)},e.ParserATNSimulator=n}.call(this,cachedModules[5137],cachedModules[5137].exports),cachedModules[9278]={exports:{}},function(t,e){e.ATN=cachedModules[7455].exports.ATN,e.ATNDeserializer=cachedModules[2084].exports.ATNDeserializer,e.LexerATNSimulator=cachedModules[9942].exports.LexerATNSimulator,e.ParserATNSimulator=cachedModules[5137].exports.ParserATNSimulator,e.PredictionMode=cachedModules[7512].exports.PredictionMode}.call(this,cachedModules[9278],cachedModules[9278].exports),cachedModules[5683]={exports:{}},function(t,e){function n(t,e,n){return this.dfa=t,this.literalNames=e||[],this.symbolicNames=n||[],this}function r(t){return n.call(this,t,null),this}n.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var t="",e=this.dfa.sortedStates(),n=0;n<e.length;n++){var r=e[n];if(null!==r.edges)for(var o=r.edges.length,i=0;o>i;i++){var s=r.edges[i]||null;null!==s&&2147483647!==s.stateNumber&&(t=t.concat(this.getStateString(r)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(i)),t=t.concat("->"),t=t.concat(this.getStateString(s)),t=t.concat("\n"))}}return 0===t.length?null:t},n.prototype.getEdgeLabel=function(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)},n.prototype.getStateString=function(t){var e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+t.predicates.toString():e+"=>"+t.prediction.toString():e},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.getEdgeLabel=function(t){return"'"+String.fromCharCode(t)+"'"},e.DFASerializer=n,e.LexerDFASerializer=r}.call(this,cachedModules[5683],cachedModules[5683].exports),cachedModules[165]={exports:{}},function(t,e){function n(){return this}function r(t,e){return void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new n,this.s0=null,this.precedenceDfa=!1,this}var o=cachedModules[5495].exports.DFAState,i=cachedModules[3945].exports.ATNConfigSet,s=cachedModules[5683].exports.DFASerializer,a=cachedModules[5683].exports.LexerDFASerializer;Object.defineProperty(n.prototype,"length",{get:function(){return Object.keys(this).length}}),r.prototype.getPrecedenceStartState=function(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return 0>t||t>=this.s0.edges.length?null:this.s0.edges[t]||null},r.prototype.setPrecedenceStartState=function(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";0>t||(this.s0.edges[t]=e)},r.prototype.setPrecedenceDfa=function(t){if(this.precedenceDfa!==t){if(this._states=new n,t){var e=new o(new i);e.edges=[],e.isAcceptState=!1,e.requiresFullContext=!1,this.s0=e}else this.s0=null;this.precedenceDfa=t}},Object.defineProperty(r.prototype,"states",{get:function(){return this._states}}),r.prototype.sortedStates=function(){for(var t=Object.keys(this._states),e=[],n=0;n<t.length;n++)e.push(this._states[t[n]]);return e.sort(function(t,e){return t.stateNumber-e.stateNumber})},r.prototype.toString=function(t,e){if(t=t||null,e=e||null,null===this.s0)return"";var n=new s(this,t,e);return n.toString()},r.prototype.toLexerString=function(){if(null===this.s0)return"";var t=new a(this);return t.toString()},e.DFA=r}.call(this,cachedModules[165],cachedModules[165].exports),cachedModules[9437]={exports:{}},function(t,e){e.DFA=cachedModules[165].exports.DFA,e.DFASerializer=cachedModules[5683].exports.DFASerializer,e.LexerDFASerializer=cachedModules[5683].exports.LexerDFASerializer,e.PredPrediction=cachedModules[5495].exports.PredPrediction}.call(this,cachedModules[9437],cachedModules[9437].exports),cachedModules[2160]={exports:{}},function(t,e){var n=cachedModules[9020].exports;e.Trees=cachedModules[9020].exports.Trees,e.RuleNode=n.RuleNode,e.ParseTreeListener=n.ParseTreeListener,e.ParseTreeVisitor=n.ParseTreeVisitor,e.ParseTreeWalker=n.ParseTreeWalker}.call(this,cachedModules[2160],cachedModules[2160].exports),cachedModules[6124]={exports:{}},function(t,e){function n(t){return o.call(this),t=t||!0,this.exactOnly=t,this}var r=cachedModules[4684].exports.BitSet,o=cachedModules[1068].exports.ErrorListener,i=cachedModules[6201].exports.Interval;n.prototype=Object.create(o.prototype),n.prototype.constructor=n,n.prototype.reportAmbiguity=function(t,e,n,r,o,s,a){if(!this.exactOnly||o){var c="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(s,a)+", input='"+t.getTokenStream().getText(new i(n,r))+"'";t.notifyErrorListeners(c)}},n.prototype.reportAttemptingFullContext=function(t,e,n,r,o,s){var a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new i(n,r))+"'";t.notifyErrorListeners(a)},n.prototype.reportContextSensitivity=function(t,e,n,r,o,s){var a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new i(n,r))+"'";t.notifyErrorListeners(a)},n.prototype.getDecisionDescription=function(t,e){var n=e.decision,r=e.atnStartState.ruleIndex,o=t.ruleNames;if(0>r||r>=o.length)return""+n;var i=o[r]||null;return null===i||0===i.length?""+n:""+n+" ("+i+")"},n.prototype.getConflictingAlts=function(t,e){if(null!==t)return t;for(var n=new r,o=0;o<e.items.length;o++)n.add(e.items[o].alt);return"{"+n.values().join(", ")+"}"},e.DiagnosticErrorListener=n}.call(this,cachedModules[6124],cachedModules[6124].exports),cachedModules[4286]={exports:{}},function(t,e){function n(){}function r(){return n.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function o(){return r.call(this),this}var i=cachedModules[5924].exports.Token,s=cachedModules[3628].exports,a=s.NoViableAltException,c=s.InputMismatchException,u=s.FailedPredicateException,l=s.ParseCancellationException,p=cachedModules[1265].exports.ATNState,h=cachedModules[6201].exports.Interval,d=cachedModules[6201].exports.IntervalSet;n.prototype.reset=function(t){},n.prototype.recoverInline=function(t){},n.prototype.recover=function(t,e){},n.prototype.sync=function(t){},n.prototype.inErrorRecoveryMode=function(t){},n.prototype.reportError=function(t){},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.reset=function(t){this.endErrorCondition(t)},r.prototype.beginErrorCondition=function(t){this.errorRecoveryMode=!0},r.prototype.inErrorRecoveryMode=function(t){return this.errorRecoveryMode},r.prototype.endErrorCondition=function(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},r.prototype.reportMatch=function(t){this.endErrorCondition(t)},r.prototype.reportError=function(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof a?this.reportNoViableAlternative(t,e):e instanceof c?this.reportInputMismatch(t,e):e instanceof u?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))},r.prototype.recover=function(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);var n=this.getErrorRecoverySet(t);this.consumeUntil(t,n)},r.prototype.sync=function(t){if(!this.inErrorRecoveryMode(t)){var e=t._interp.atn.states[t.state],n=t.getTokenStream().LA(1);if(n!==i.EOF&&!t.atn.nextTokens(e).contains(n)&&!t.isExpectedToken(n))switch(e.stateType){case p.BLOCK_START:case p.STAR_BLOCK_START:case p.PLUS_BLOCK_START:case p.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new c(t);case p.PLUS_LOOP_BACK:case p.STAR_LOOP_BACK:this.reportUnwantedToken(t);var r=new d;r.addSet(t.getExpectedTokens());var o=r.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,o)}}},r.prototype.reportNoViableAlternative=function(t,e){var n,r=t.getTokenStream();n=null!==r?e.startToken.type===i.EOF?"<EOF>":r.getText(new h(e.startToken,e.offendingToken)):"<unknown input>";var o="no viable alternative at input "+this.escapeWSAndQuote(n);t.notifyErrorListeners(o,e.offendingToken,e)},r.prototype.reportInputMismatch=function(t,e){var n="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e.offendingToken,e)},r.prototype.reportFailedPredicate=function(t,e){var n=t.ruleNames[t._ctx.ruleIndex],r="rule "+n+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)},r.prototype.reportUnwantedToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n=this.getTokenErrorDisplay(e),r=this.getExpectedTokens(t),o="extraneous input "+n+" expecting "+r.toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(o,e,null)}},r.prototype.reportMissingToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n=this.getExpectedTokens(t),r="missing "+n.toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}},r.prototype.recoverInline=function(t){var e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new c(t)},r.prototype.singleTokenInsertion=function(t){var e=t.getTokenStream().LA(1),n=t._interp.atn,r=n.states[t.state],o=r.transitions[0].target,i=n.nextTokens(o,t._ctx);return i.contains(e)?(this.reportMissingToken(t),!0):!1},r.prototype.singleTokenDeletion=function(t){var e=t.getTokenStream().LA(2),n=this.getExpectedTokens(t);if(n.contains(e)){this.reportUnwantedToken(t),t.consume();var r=t.getCurrentToken();return this.reportMatch(t),r}return null},r.prototype.getMissingSymbol=function(t){var e,n=t.getCurrentToken(),r=this.getExpectedTokens(t),o=r.first();e=o===i.EOF?"<missing EOF>":"<missing "+t.literalNames[o]+">";var s=n,a=t.getTokenStream().LT(-1);return s.type===i.EOF&&null!==a&&(s=a),t.getTokenFactory().create(s.source,o,e,i.DEFAULT_CHANNEL,-1,-1,s.line,s.column)},r.prototype.getExpectedTokens=function(t){return t.getExpectedTokens()},r.prototype.getTokenErrorDisplay=function(t){if(null===t)return"<no token>";var e=t.text;return null===e&&(e=t.type===i.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)},r.prototype.escapeWSAndQuote=function(t){return t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/\t/g,"\\t"),"'"+t+"'"},r.prototype.getErrorRecoverySet=function(t){for(var e=t._interp.atn,n=t._ctx,r=new d;null!==n&&n.invokingState>=0;){var o=e.states[n.invokingState],s=o.transitions[0],a=e.nextTokens(s.followState);r.addSet(a),n=n.parentCtx}return r.removeOne(i.EPSILON),r},r.prototype.consumeUntil=function(t,e){for(var n=t.getTokenStream().LA(1);n!==i.EOF&&!e.contains(n);)t.consume(),n=t.getTokenStream().LA(1)},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.recover=function(t,e){for(var n=t._ctx;null!==n;)n.exception=e,n=n.parentCtx;throw new l(e)},o.prototype.recoverInline=function(t){this.recover(t,new c(t))},o.prototype.sync=function(t){},e.BailErrorStrategy=o,e.DefaultErrorStrategy=r}.call(this,cachedModules[4286],cachedModules[4286].exports),cachedModules[5291]={exports:{}},function(t,e){e.RecognitionException=cachedModules[3628].exports.RecognitionException,e.NoViableAltException=cachedModules[3628].exports.NoViableAltException,e.LexerNoViableAltException=cachedModules[3628].exports.LexerNoViableAltException,e.InputMismatchException=cachedModules[3628].exports.InputMismatchException,e.FailedPredicateException=cachedModules[3628].exports.FailedPredicateException,e.DiagnosticErrorListener=cachedModules[6124].exports.DiagnosticErrorListener,e.BailErrorStrategy=cachedModules[4286].exports.BailErrorStrategy,e.ErrorListener=cachedModules[1068].exports.ErrorListener}.call(this,cachedModules[5291],cachedModules[5291].exports),cachedModules[9263]={exports:{}},function(t,e){function n(t){t._index=0,t.data=[];for(var e=0;e<t.strdata.length;e++)t.data.push(t.strdata.charCodeAt(e));t._size=t.data.length}function r(t){return this.name="<empty>",this.strdata=t,n(this),this}var o=cachedModules[5924].exports.Token;Object.defineProperty(r.prototype,"index",{get:function(){return this._index}}),Object.defineProperty(r.prototype,"size",{get:function(){return this._size}}),r.prototype.reset=function(){this._index=0},r.prototype.consume=function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1},r.prototype.LA=function(t){if(0===t)return 0;0>t&&(t+=1);var e=this._index+t-1;return 0>e||e>=this._size?o.EOF:this.data[e]},r.prototype.LT=function(t){return this.LA(t)},r.prototype.mark=function(){return-1},r.prototype.release=function(t){},r.prototype.seek=function(t){return t<=this._index?void(this._index=t):void(this._index=Math.min(t,this._size))},r.prototype.getText=function(t,e){return e>=this._size&&(e=this._size-1),t>=this._size?"":this.strdata.slice(t,e+1)},r.prototype.toString=function(){return this.strdata},e.InputStream=r}.call(this,cachedModules[9263],cachedModules[9263].exports),cachedModules[1338]={exports:{}},function(t,e){function n(t){var e=i.readFileSync(t,"utf8");return r.call(this,e),this.fileName=t,this}var r=cachedModules[9263].exports.InputStream,o="undefined"==typeof window&&"undefined"==typeof importScripts,i=o?require("fs"):null;n.prototype=Object.create(r.prototype),n.prototype.constructor=n,e.FileStream=n}.call(this,cachedModules[1338],cachedModules[1338].exports),cachedModules[1127]={exports:{}},function(t,e){function n(){return this}function r(t){return n.call(this),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}var o=cachedModules[5924].exports.Token,i=cachedModules[7822].exports.Lexer,s=cachedModules[6201].exports.Interval;r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.mark=function(){return 0},r.prototype.release=function(t){},r.prototype.reset=function(){this.seek(0)},r.prototype.seek=function(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)},r.prototype.get=function(t){return this.lazyInit(),this.tokens[t]},r.prototype.consume=function(){var t=!1;if(t=this.index>=0?this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length:!1,!t&&this.LA(1)===o.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))},r.prototype.sync=function(t){var e=t-this.tokens.length+1;if(e>0){var n=this.fetch(e);return n>=e}return!0},r.prototype.fetch=function(t){if(this.fetchedEOF)return 0;for(var e=0;t>e;e++){var n=this.tokenSource.nextToken();if(n.tokenIndex=this.tokens.length,this.tokens.push(n),n.type===o.EOF)return this.fetchedEOF=!0,e+1}return t},r.prototype.getTokens=function(t,e,n){if(void 0===n&&(n=null),0>t||0>e)return null;this.lazyInit();var r=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(var i=t;e>i;i++){var s=this.tokens[i];if(s.type===o.EOF)break;(null===n||n.contains(s.type))&&r.push(s)}return r},r.prototype.LA=function(t){return this.LT(t).type},r.prototype.LB=function(t){return this.index-t<0?null:this.tokens[this.index-t]},r.prototype.LT=function(t){if(this.lazyInit(),0===t)return null;if(0>t)return this.LB(-t);var e=this.index+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]},r.prototype.adjustSeekIndex=function(t){return t},r.prototype.lazyInit=function(){-1===this.index&&this.setup()},r.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},r.prototype.setTokenSource=function(t){this.tokenSource=t,this.tokens=[],this.index=-1},r.prototype.nextTokenOnChannel=function(t,e){if(this.sync(t),t>=this.tokens.length)return-1;for(var n=this.tokens[t];n.channel!==this.channel;){if(n.type===o.EOF)return-1;t+=1,this.sync(t),n=this.tokens[t]}return t},r.prototype.previousTokenOnChannel=function(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t},r.prototype.getHiddenTokensToRight=function(t,e){if(void 0===e&&(e=-1),this.lazyInit(),this.tokenIndex<0||t>=this.tokens.length)throw""+t+" not in 0.."+this.tokens.length-1;var n=this.nextTokenOnChannel(t+1,i.DEFAULT_TOKEN_CHANNEL),r=t+1,o=-1===n?this.tokens.length-1:n;return this.filterForChannel(r,o,e)},r.prototype.getHiddenTokensToLeft=function(t,e){if(void 0===e&&(e=-1),this.lazyInit(),0>t||t>=this.tokens.length)throw""+t+" not in 0.."+this.tokens.length-1;var n=this.previousTokenOnChannel(t-1,i.DEFAULT_TOKEN_CHANNEL);if(n===t-1)return null;var r=n+1,o=t-1;return this.filterForChannel(r,o,e)},r.prototype.filterForChannel=function(t,e,n){for(var r=[],o=t;e+1>o;o++){var s=this.tokens[o];-1===n?s.channel!==i.DEFAULT_TOKEN_CHANNEL&&r.push(s):s.channel===n&&r.push(s)}return 0===r.length?null:r},r.prototype.getSourceName=function(){return this.tokenSource.getSourceName()},r.prototype.getText=function(t){this.lazyInit(),this.fill(),(void 0===t||null===t)&&(t=new s(0,this.tokens.length-1));var e=t.start;e instanceof o&&(e=e.tokenIndex);var n=t.stop;if(n instanceof o&&(n=n.tokenIndex),null===e||null===n||0>e||0>n)return"";n>=this.tokens.length&&(n=this.tokens.length-1);for(var r="",i=e;n+1>i;i++){var a=this.tokens[i];if(a.type===o.EOF)break;r+=a.text}return r},r.prototype.fill=function(){for(this.lazyInit();1e3===this.fetch(1e3););},e.BufferedTokenStream=r}.call(this,cachedModules[1127],cachedModules[1127].exports),cachedModules[3488]={exports:{}},function(t,e){function n(t,e){return o.call(this,t),this.channel=void 0===e?r.DEFAULT_CHANNEL:e,this}var r=cachedModules[5924].exports.Token,o=cachedModules[1127].exports.BufferedTokenStream;n.prototype=Object.create(o.prototype),n.prototype.constructor=n,n.prototype.adjustSeekIndex=function(t){return this.nextTokenOnChannel(t,this.channel)},n.prototype.LB=function(t){if(0===t||this.index-t<0)return null;for(var e=this.index,n=1;t>=n;)e=this.previousTokenOnChannel(e-1,this.channel),n+=1;return 0>e?null:this.tokens[e]},n.prototype.LT=function(t){if(this.lazyInit(),0===t)return null;if(0>t)return this.LB(-t);for(var e=this.index,n=1;t>n;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),n+=1;return this.tokens[e]},n.prototype.getNumberOfOnChannelTokens=function(){var t=0;this.fill();for(var e=0;e<this.tokens.length;e++){var n=this.tokens[e];if(n.channel===this.channel&&(t+=1),n.type===r.EOF)break}return t},e.CommonTokenStream=n}.call(this,cachedModules[3488],cachedModules[3488].exports),cachedModules[169]={exports:{}},function(t,e){function n(t){return i.call(this),this.parser=t,this}function r(t){return s.call(this),this._input=null,this._errHandler=new a,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t),this}var o=cachedModules[5924].exports.Token,i=cachedModules[9020].exports.ParseTreeListener,s=cachedModules[9960].exports.Recognizer,a=cachedModules[4286].exports.DefaultErrorStrategy,c=cachedModules[2084].exports.ATNDeserializer,u=cachedModules[4674].exports.ATNDeserializationOptions;n.prototype=Object.create(i),n.prototype.constructor=n,n.prototype.enterEveryRule=function(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},n.prototype.visitTerminal=function(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},n.prototype.exitEveryRule=function(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},r.prototype=Object.create(s.prototype),r.prototype.contructor=r,r.bypassAltsAtnCache={},r.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},r.prototype.match=function(t){var e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e},r.prototype.matchWildcard=function(){var t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t},r.prototype.getParseListeners=function(){return this._parseListeners||[]},r.prototype.addParseListener=function(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)},r.prototype.removeParseListener=function(t){if(null!==this._parseListeners){var e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}},r.prototype.removeParseListeners=function(){this._parseListeners=null},r.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var t=this._ctx;this._parseListeners.map(function(e){e.enterEveryRule(t),t.enterRule(e)})}},r.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var t=this._ctx;this._parseListeners.slice(0).reverse().map(function(e){t.exitRule(e),e.exitEveryRule(t)})}},r.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},r.prototype.setTokenFactory=function(t){this._input.tokenSource._factory=t},r.prototype.getATNWithBypassAlts=function(){var t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";var e=this.bypassAltsAtnCache[t];if(null===e){var n=new u;n.generateRuleBypassTransitions=!0,e=new c(n).deserialize(t),this.bypassAltsAtnCache[t]=e}return e};var l=cachedModules[7822].exports.Lexer;r.prototype.compileParseTreePattern=function(t,e,n){if(n=n||null,null===n&&null!==this.getTokenStream()){var r=this.getTokenStream().tokenSource;r instanceof l&&(n=r)}if(null===n)throw"Parser can't discover a lexer to use";var o=new ParseTreePatternMatcher(n,this);return o.compile(t,e)},r.prototype.getInputStream=function(){return this.getTokenStream()},r.prototype.setInputStream=function(t){this.setTokenStream(t)},r.prototype.getTokenStream=function(){return this._input},r.prototype.setTokenStream=function(t){this._input=null,this.reset(),this._input=t},r.prototype.getCurrentToken=function(){return this._input.LT(1)},r.prototype.notifyErrorListeners=function(t,e,n){e=e||null,n=n||null,null===e&&(e=this.getCurrentToken()),this._syntaxErrors+=1;var r=e.line,o=e.column,i=this.getErrorListenerDispatch();i.syntaxError(this,e,r,o,t,n)},r.prototype.consume=function(){var t=this.getCurrentToken();t.type!==o.EOF&&this.getInputStream().consume();var e=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||e){var n;n=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(t):this._ctx.addTokenNode(t),n.invokingState=this.state,e&&this._parseListeners.map(function(t){t.visitTerminal(n)})}return t},r.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},r.prototype.enterRule=function(t,e,n){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},r.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},r.prototype.enterOuterAlt=function(t,e){this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t},r.prototype.getPrecedence=function(){
return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},r.prototype.enterRecursionRule=function(t,e,n,r){this.state=e,this._precedenceStack.push(r),this._ctx=t,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},r.prototype.pushNewRecursionContext=function(t,e,n){var r=this._ctx;r.parentCtx=t,r.invokingState=e,r.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=r.start,this.buildParseTrees&&this._ctx.addChild(r),null!==this._parseListeners&&this.triggerEnterRuleEvent()},r.prototype.unrollRecursionContexts=function(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var e=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)},r.prototype.getInvokingContext=function(t){for(var e=this._ctx;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null},r.prototype.precpred=function(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]},r.prototype.inContext=function(t){return!1},r.prototype.isExpectedToken=function(t){var e=this._interp.atn,n=this._ctx,r=e.states[this.state],i=e.nextTokens(r);if(i.contains(t))return!0;if(!i.contains(o.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&i.contains(o.EPSILON);){var s=e.states[n.invokingState],a=s.transitions[0];if(i=e.nextTokens(a.followState),i.contains(t))return!0;n=n.parentCtx}return i.contains(o.EPSILON)&&t===o.EOF?!0:!1},r.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},r.prototype.getExpectedTokensWithinCurrentRule=function(){var t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)},r.prototype.getRuleIndex=function(t){var e=this.getRuleIndexMap()[t];return null!==e?e:-1},r.prototype.getRuleInvocationStack=function(t){t=t||null,null===t&&(t=this._ctx);for(var e=[];null!==t;){var n=t.ruleIndex;0>n?e.push("n/a"):e.push(this.ruleNames[n]),t=t.parentCtx}return e},r.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},r.prototype.dumpDFA=function(){for(var t=!1,e=0;e<this._interp.decisionToDFA.length;e++){var n=this._interp.decisionToDFA[e];n.states.length>0&&(t&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),t=!0)}},r.prototype.getSourceName=function(){return this._input.sourceName},r.prototype.setTrace=function(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new n(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},e.Parser=r}.call(this,cachedModules[169],cachedModules[169].exports),exports.atn=cachedModules[9278].exports,exports.dfa=cachedModules[9437].exports,exports.tree=cachedModules[2160].exports,exports.error=cachedModules[5291].exports,exports.Token=cachedModules[5924].exports.Token,exports.CommonToken=cachedModules[5924].exports.CommonToken,exports.InputStream=cachedModules[9263].exports.InputStream,exports.FileStream=cachedModules[1338].exports.FileStream,exports.CommonTokenStream=cachedModules[3488].exports.CommonTokenStream,exports.Lexer=cachedModules[7822].exports.Lexer,exports.Parser=cachedModules[169].exports.Parser;var pc=cachedModules[552].exports;exports.PredictionContextCache=pc.PredictionContextCache,exports.ParserRuleContext=cachedModules[8029].exports.ParserRuleContext,exports.Interval=cachedModules[6201].exports.Interval,exports.Utils=cachedModules[4684].exports;
//# sourceMappingURL=UGLIFY_SOURCE_MAP_TOKEN