questmark-webrenderer 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- (()=>{var e={895:(e,t,n)=>{var i=n(5319).Token,o=n(4412).Lexer,a=n(4088).Interval;function TokenStream(){return this}function BufferedTokenStream(e){return TokenStream.call(this),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}BufferedTokenStream.prototype=Object.create(TokenStream.prototype),BufferedTokenStream.prototype.constructor=BufferedTokenStream,BufferedTokenStream.prototype.mark=function(){return 0},BufferedTokenStream.prototype.release=function(e){},BufferedTokenStream.prototype.reset=function(){this.seek(0)},BufferedTokenStream.prototype.seek=function(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)},BufferedTokenStream.prototype.get=function(e){return this.lazyInit(),this.tokens[e]},BufferedTokenStream.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===i.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))},BufferedTokenStream.prototype.sync=function(e){var t=e-this.tokens.length+1;return!(t>0)||this.fetch(t)>=t},BufferedTokenStream.prototype.fetch=function(e){if(this.fetchedEOF)return 0;for(var t=0;t<e;t++){var n=this.tokenSource.nextToken();if(n.tokenIndex=this.tokens.length,this.tokens.push(n),n.type===i.EOF)return this.fetchedEOF=!0,t+1}return e},BufferedTokenStream.prototype.getTokens=function(e,t,n){if(void 0===n&&(n=null),e<0||t<0)return null;this.lazyInit();var o=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(var a=e;a<t;a++){var s=this.tokens[a];if(s.type===i.EOF)break;(null===n||n.contains(s.type))&&o.push(s)}return o},BufferedTokenStream.prototype.LA=function(e){return this.LT(e).type},BufferedTokenStream.prototype.LB=function(e){return this.index-e<0?null:this.tokens[this.index-e]},BufferedTokenStream.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);var t=this.index+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]},BufferedTokenStream.prototype.adjustSeekIndex=function(e){return e},BufferedTokenStream.prototype.lazyInit=function(){-1===this.index&&this.setup()},BufferedTokenStream.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},BufferedTokenStream.prototype.setTokenSource=function(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1},BufferedTokenStream.prototype.nextTokenOnChannel=function(e,t){if(this.sync(e),e>=this.tokens.length)return-1;for(var n=this.tokens[e];n.channel!==this.channel;){if(n.type===i.EOF)return-1;e+=1,this.sync(e),n=this.tokens[e]}return e},BufferedTokenStream.prototype.previousTokenOnChannel=function(e,t){for(;e>=0&&this.tokens[e].channel!==t;)e-=1;return e},BufferedTokenStream.prototype.getHiddenTokensToRight=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.nextTokenOnChannel(e+1,o.DEFAULT_TOKEN_CHANNEL),i=e+1,a=-1===n?this.tokens.length-1:n;return this.filterForChannel(i,a,t)},BufferedTokenStream.prototype.getHiddenTokensToLeft=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.previousTokenOnChannel(e-1,o.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return null;var i=n+1,a=e-1;return this.filterForChannel(i,a,t)},BufferedTokenStream.prototype.filterForChannel=function(e,t,n){for(var i=[],a=e;a<t+1;a++){var s=this.tokens[a];-1===n?s.channel!==o.DEFAULT_TOKEN_CHANNEL&&i.push(s):s.channel===n&&i.push(s)}return 0===i.length?null:i},BufferedTokenStream.prototype.getSourceName=function(){return this.tokenSource.getSourceName()},BufferedTokenStream.prototype.getText=function(e){this.lazyInit(),this.fill(),null==e&&(e=new a(0,this.tokens.length-1));var t=e.start;t instanceof i&&(t=t.tokenIndex);var n=e.stop;if(n instanceof i&&(n=n.tokenIndex),null===t||null===n||t<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);for(var o="",s=t;s<n+1;s++){var c=this.tokens[s];if(c.type===i.EOF)break;o+=c.text}return o},BufferedTokenStream.prototype.fill=function(){for(this.lazyInit();1e3===this.fetch(1e3););},t.BufferedTokenStream=BufferedTokenStream},5689:(e,t,n)=>{var i=n(2732).InputStream,o="undefined"==typeof window&&"undefined"==typeof importScripts?n(7816):null,a={fromString:function(e){return new i(e,!0)},fromBlob:function(e,t,n,o){var a=FileReader();a.onload=function(e){var t=new i(e.target.result,!0);n(t)},a.onerror=o,a.readAsText(e,t)},fromBuffer:function(e,t){return new i(e.toString(t),!0)},fromPath:function(e,t,n){o.readFile(e,t,(function(e,t){var o=null;null!==t&&(o=new i(t,!0)),n(e,o)}))},fromPathSync:function(e,t){var n=o.readFileSync(e,t);return new i(n,!0)}};t.CharStreams=a},2058:(e,t,n)=>{var i=n(5319).CommonToken;function TokenFactory(){return this}function CommonTokenFactory(e){return TokenFactory.call(this),this.copyText=void 0!==e&&e,this}CommonTokenFactory.prototype=Object.create(TokenFactory.prototype),CommonTokenFactory.prototype.constructor=CommonTokenFactory,CommonTokenFactory.DEFAULT=new CommonTokenFactory,CommonTokenFactory.prototype.create=function(e,t,n,o,a,s,c,l){var p=new i(e,t,o,a,s);return p.line=c,p.column=l,null!==n?p.text=n:this.copyText&&null!==e[1]&&(p.text=e[1].getText(a,s)),p},CommonTokenFactory.prototype.createThin=function(e,t){var n=new i(null,e);return n.text=t,n},t.CommonTokenFactory=CommonTokenFactory},1259:(e,t,n)=>{var i=n(5319).Token,o=n(895).BufferedTokenStream;function CommonTokenStream(e,t){return o.call(this,e),this.channel=void 0===t?i.DEFAULT_CHANNEL:t,this}CommonTokenStream.prototype=Object.create(o.prototype),CommonTokenStream.prototype.constructor=CommonTokenStream,CommonTokenStream.prototype.adjustSeekIndex=function(e){return this.nextTokenOnChannel(e,this.channel)},CommonTokenStream.prototype.LB=function(e){if(0===e||this.index-e<0)return null;for(var t=this.index,n=1;n<=e;)t=this.previousTokenOnChannel(t-1,this.channel),n+=1;return t<0?null:this.tokens[t]},CommonTokenStream.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);for(var t=this.index,n=1;n<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),n+=1;return this.tokens[t]},CommonTokenStream.prototype.getNumberOfOnChannelTokens=function(){var e=0;this.fill();for(var t=0;t<this.tokens.length;t++){var n=this.tokens[t];if(n.channel===this.channel&&(e+=1),n.type===i.EOF)break}return e},t.CommonTokenStream=CommonTokenStream},654:(e,t,n)=>{var i=n(2732).InputStream,o="undefined"==typeof window&&"undefined"==typeof importScripts?n(7816):null;function FileStream(e,t){var n=o.readFileSync(e,"utf8");return i.call(this,n,t),this.fileName=e,this}FileStream.prototype=Object.create(i.prototype),FileStream.prototype.constructor=FileStream,t.FileStream=FileStream},2732:(e,t,n)=>{var i=n(5319).Token;function InputStream(e,t){return this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=t||!1,function _loadString(e){if(e._index=0,e.data=[],e.decodeToUnicodeCodePoints)for(var t=0;t<e.strdata.length;){var n=e.strdata.codePointAt(t);e.data.push(n),t+=n<=65535?1:2}else for(t=0;t<e.strdata.length;t++){var i=e.strdata.charCodeAt(t);e.data.push(i)}e._size=e.data.length}(this),this}n(5034),n(2085),Object.defineProperty(InputStream.prototype,"index",{get:function(){return this._index}}),Object.defineProperty(InputStream.prototype,"size",{get:function(){return this._size}}),InputStream.prototype.reset=function(){this._index=0},InputStream.prototype.consume=function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1},InputStream.prototype.LA=function(e){if(0===e)return 0;e<0&&(e+=1);var t=this._index+e-1;return t<0||t>=this._size?i.EOF:this.data[t]},InputStream.prototype.LT=function(e){return this.LA(e)},InputStream.prototype.mark=function(){return-1},InputStream.prototype.release=function(e){},InputStream.prototype.seek=function(e){e<=this._index?this._index=e:this._index=Math.min(e,this._size)},InputStream.prototype.getText=function(e,t){if(t>=this._size&&(t=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var n="",i=e;i<=t;i++)n+=String.fromCodePoint(this.data[i]);return n}return this.strdata.slice(e,t+1)},InputStream.prototype.toString=function(){return this.strdata},t.InputStream=InputStream},4088:(e,t,n)=>{var i=n(5319).Token;function Interval(e,t){return this.start=e,this.stop=t,this}function IntervalSet(){this.intervals=null,this.readOnly=!1}Interval.prototype.contains=function(e){return e>=this.start&&e<this.stop},Interval.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(Interval.prototype,"length",{get:function(){return this.stop-this.start}}),IntervalSet.prototype.first=function(e){return null===this.intervals||0===this.intervals.length?i.INVALID_TYPE:this.intervals[0].start},IntervalSet.prototype.addOne=function(e){this.addInterval(new Interval(e,e+1))},IntervalSet.prototype.addRange=function(e,t){this.addInterval(new Interval(e,t+1))},IntervalSet.prototype.addInterval=function(e){if(null===this.intervals)this.intervals=[],this.intervals.push(e);else{for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e.stop<n.start)return void this.intervals.splice(t,0,e);if(e.stop===n.start)return void(this.intervals[t].start=e.start);if(e.start<=n.stop)return this.intervals[t]=new Interval(Math.min(n.start,e.start),Math.max(n.stop,e.stop)),void this.reduce(t)}this.intervals.push(e)}},IntervalSet.prototype.addSet=function(e){if(null!==e.intervals)for(var t=0;t<e.intervals.length;t++){var n=e.intervals[t];this.addInterval(new Interval(n.start,n.stop))}return this},IntervalSet.prototype.reduce=function(e){if(e<this.intervalslength-1){var t=this.intervals[e],n=this.intervals[e+1];t.stop>=n.stop?(this.intervals.pop(e+1),this.reduce(e)):t.stop>=n.start&&(this.intervals[e]=new Interval(t.start,n.stop),this.intervals.pop(e+1))}},IntervalSet.prototype.complement=function(e,t){var n=new IntervalSet;n.addInterval(new Interval(e,t+1));for(var i=0;i<this.intervals.length;i++)n.removeRange(this.intervals[i]);return n},IntervalSet.prototype.contains=function(e){if(null===this.intervals)return!1;for(var t=0;t<this.intervals.length;t++)if(this.intervals[t].contains(e))return!0;return!1},Object.defineProperty(IntervalSet.prototype,"length",{get:function(){var e=0;return this.intervals.map((function(t){e+=t.length})),e}}),IntervalSet.prototype.removeRange=function(e){if(e.start===e.stop-1)this.removeOne(e.start);else if(null!==this.intervals)for(var t=0,n=0;n<this.intervals.length;n++){var i=this.intervals[t];if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new Interval(i.start,e.start);var o=new Interval(e.stop,i.stop);return void this.intervals.splice(t,0,o)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new Interval(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new Interval(e.stop,i.stop)),t+=1}},IntervalSet.prototype.removeOne=function(e){if(null!==this.intervals)for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e<n.start)return;if(e===n.start&&e===n.stop-1)return void this.intervals.splice(t,1);if(e===n.start)return void(this.intervals[t]=new Interval(n.start+1,n.stop));if(e===n.stop-1)return void(this.intervals[t]=new Interval(n.start,n.stop-1));if(e<n.stop-1){var i=new Interval(n.start,e);return n.start=e+1,void this.intervals.splice(t,0,i)}}},IntervalSet.prototype.toString=function(e,t,n){return e=e||null,t=t||null,n=n||!1,null===this.intervals?"{}":null!==e||null!==t?this.toTokenString(e,t):n?this.toCharString():this.toIndexString()},IntervalSet.prototype.toCharString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===i.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(n.start)+"'"):e.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]},IntervalSet.prototype.toIndexString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===i.EOF?e.push("<EOF>"):e.push(n.start.toString()):e.push(n.start.toString()+".."+(n.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]},IntervalSet.prototype.toTokenString=function(e,t){for(var n=[],i=0;i<this.intervals.length;i++)for(var o=this.intervals[i],a=o.start;a<o.stop;a++)n.push(this.elementName(e,t,a));return n.length>1?"{"+n.join(", ")+"}":n[0]},IntervalSet.prototype.elementName=function(e,t,n){return n===i.EOF?"<EOF>":n===i.EPSILON?"<EPSILON>":e[n]||t[n]},t.Interval=Interval,t.IntervalSet=IntervalSet},670:(e,t,n)=>{var i=n(8561).Set,o=n(8561).BitSet,a=n(5319).Token,s=n(3864).ATNConfig,c=(n(4088).Interval,n(4088).IntervalSet),l=n(9215).RuleStopState,p=n(5099).RuleTransition,h=n(5099).NotSetTransition,d=n(5099).WildcardTransition,f=n(5099).AbstractPredicateTransition,g=n(8758),x=g.predictionContextFromRuleContext,m=g.PredictionContext,y=g.SingletonPredictionContext;function LL1Analyzer(e){this.atn=e}LL1Analyzer.HIT_PRED=a.INVALID_TYPE,LL1Analyzer.prototype.getDecisionLookahead=function(e){if(null===e)return null;for(var t=e.transitions.length,n=[],a=0;a<t;a++){n[a]=new c;var s=new i;this._LOOK(e.transition(a).target,null,m.EMPTY,n[a],s,new o,!1,!1),(0===n[a].length||n[a].contains(LL1Analyzer.HIT_PRED))&&(n[a]=null)}return n},LL1Analyzer.prototype.LOOK=function(e,t,n){var a=new c,s=null!==(n=n||null)?x(e.atn,n):null;return this._LOOK(e,t,s,a,new i,new o,!0,!0),a},LL1Analyzer.prototype._LOOK=function(e,t,n,i,o,c,g,x){var S=new s({state:e,alt:0,context:n},null);if(!o.contains(S)){if(o.add(S),e===t){if(null===n)return void i.addOne(a.EPSILON);if(n.isEmpty()&&x)return void i.addOne(a.EOF)}if(e instanceof l){if(null===n)return void i.addOne(a.EPSILON);if(n.isEmpty()&&x)return void i.addOne(a.EOF);if(n!==m.EMPTY){for(var T=0;T<n.length;T++){var v=this.atn.states[n.getReturnState(T)],C=c.contains(v.ruleIndex);try{c.remove(v.ruleIndex),this._LOOK(v,t,n.getParent(T),i,o,c,g,x)}finally{C&&c.add(v.ruleIndex)}}return}}for(var A=0;A<e.transitions.length;A++){var E=e.transitions[A];if(E.constructor===p){if(c.contains(E.target.ruleIndex))continue;var k=y.create(n,E.followState.stateNumber);try{c.add(E.target.ruleIndex),this._LOOK(E.target,t,k,i,o,c,g,x)}finally{c.remove(E.target.ruleIndex)}}else if(E instanceof f)g?this._LOOK(E.target,t,n,i,o,c,g,x):i.addOne(LL1Analyzer.HIT_PRED);else if(E.isEpsilon)this._LOOK(E.target,t,n,i,o,c,g,x);else if(E.constructor===d)i.addRange(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var b=E.label;null!==b&&(E instanceof h&&(b=b.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(b))}}}},t.LL1Analyzer=LL1Analyzer},4412:(e,t,n)=>{var i=n(5319).Token,o=n(4489).Recognizer,a=n(2058).CommonTokenFactory,s=n(2874).RecognitionException,c=n(2874).LexerNoViableAltException;function Lexer(e){return o.call(this),this._input=e,this._factory=a.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=i.DEFAULT_CHANNEL,this._type=i.INVALID_TYPE,this._modeStack=[],this._mode=Lexer.DEFAULT_MODE,this._text=null,this}Lexer.prototype=Object.create(o.prototype),Lexer.prototype.constructor=Lexer,Lexer.DEFAULT_MODE=0,Lexer.MORE=-2,Lexer.SKIP=-3,Lexer.DEFAULT_TOKEN_CHANNEL=i.DEFAULT_CHANNEL,Lexer.HIDDEN=i.HIDDEN_CHANNEL,Lexer.MIN_CHAR_VALUE=0,Lexer.MAX_CHAR_VALUE=1114111,Lexer.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=i.INVALID_TYPE,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Lexer.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},Lexer.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var t=!1;;){this._type=i.INVALID_TYPE;var n=Lexer.SKIP;try{n=this._interp.match(this._input,this._mode)}catch(e){if(!(e instanceof s))throw console.log(e.stack),e;this.notifyListeners(e),this.recover(e)}if(this._input.LA(1)===i.EOF&&(this._hitEOF=!0),this._type===i.INVALID_TYPE&&(this._type=n),this._type===Lexer.SKIP){t=!0;break}if(this._type!==Lexer.MORE)break}if(!t)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}},Lexer.prototype.skip=function(){this._type=Lexer.SKIP},Lexer.prototype.more=function(){this._type=Lexer.MORE},Lexer.prototype.mode=function(e){this._mode=e},Lexer.prototype.pushMode=function(e){this._interp.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)},Lexer.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(Lexer.prototype,"inputStream",{get:function(){return this._input},set:function(e){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=e,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(Lexer.prototype,"sourceName",{get:function sourceName(){return this._input.sourceName}}),Lexer.prototype.emitToken=function(e){this._token=e},Lexer.prototype.emit=function(){var e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(e),e},Lexer.prototype.emitEOF=function(){var e=this.column,t=this.line,n=this._factory.create(this._tokenFactorySourcePair,i.EOF,null,i.DEFAULT_CHANNEL,this._input.index,this._input.index-1,t,e);return this.emitToken(n),n},Object.defineProperty(Lexer.prototype,"type",{get:function(){return this.type},set:function(e){this._type=e}}),Object.defineProperty(Lexer.prototype,"line",{get:function(){return this._interp.line},set:function(e){this._interp.line=e}}),Object.defineProperty(Lexer.prototype,"column",{get:function(){return this._interp.column},set:function(e){this._interp.column=e}}),Lexer.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(Lexer.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(e){this._text=e}}),Lexer.prototype.getAllTokens=function(){for(var e=[],t=this.nextToken();t.type!==i.EOF;)e.push(t),t=this.nextToken();return e},Lexer.prototype.notifyListeners=function(e){var t=this._tokenStartCharIndex,n=this._input.index,i=this._input.getText(t,n),o="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,o,e)},Lexer.prototype.getErrorDisplay=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t.join("")},Lexer.prototype.getErrorDisplayForChar=function(e){return e.charCodeAt(0)===i.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e},Lexer.prototype.getCharErrorDisplay=function(e){return"'"+this.getErrorDisplayForChar(e)+"'"},Lexer.prototype.recover=function(e){this._input.LA(1)!==i.EOF&&(e instanceof c?this._interp.consume(this._input):this._input.consume())},t.Lexer=Lexer},3709:(e,t,n)=>{var i=n(5319).Token,o=n(1065).ParseTreeListener,a=n(4489).Recognizer,s=n(1080).DefaultErrorStrategy,c=n(8833).ATNDeserializer,l=n(6477).ATNDeserializationOptions,p=n(1065).TerminalNode,h=n(1065).ErrorNode;function TraceListener(e){return o.call(this),this.parser=e,this}function Parser(e){return a.call(this),this._input=null,this._errHandler=new s,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e),this}TraceListener.prototype=Object.create(o.prototype),TraceListener.prototype.constructor=TraceListener,TraceListener.prototype.enterEveryRule=function(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},TraceListener.prototype.visitTerminal=function(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},TraceListener.prototype.exitEveryRule=function(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},Parser.prototype=Object.create(a.prototype),Parser.prototype.contructor=Parser,Parser.bypassAltsAtnCache={},Parser.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()},Parser.prototype.match=function(e){var t=this.getCurrentToken();return t.type===e?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t},Parser.prototype.matchWildcard=function(){var e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e},Parser.prototype.getParseListeners=function(){return this._parseListeners||[]},Parser.prototype.addParseListener=function(e){if(null===e)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(e)},Parser.prototype.removeParseListener=function(e){if(null!==this._parseListeners){var t=this._parseListeners.indexOf(e);t>=0&&this._parseListeners.splice(t,1),0===this._parseListeners.length&&(this._parseListeners=null)}},Parser.prototype.removeParseListeners=function(){this._parseListeners=null},Parser.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.map((function(t){t.enterEveryRule(e),e.enterRule(t)}))}},Parser.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.slice(0).reverse().map((function(t){e.exitRule(t),t.exitEveryRule(e)}))}},Parser.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},Parser.prototype.setTokenFactory=function(e){this._input.tokenSource._factory=e},Parser.prototype.getATNWithBypassAlts=function(){var e=this.getSerializedATN();if(null===e)throw"The current parser does not support an ATN with bypass alternatives.";var t=this.bypassAltsAtnCache[e];if(null===t){var n=new l;n.generateRuleBypassTransitions=!0,t=new c(n).deserialize(e),this.bypassAltsAtnCache[e]=t}return t};var d=n(4412).Lexer;Parser.prototype.compileParseTreePattern=function(e,t,n){if(null===(n=n||null)&&null!==this.getTokenStream()){var i=this.getTokenStream().tokenSource;i instanceof d&&(n=i)}if(null===n)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(n,this).compile(e,t)},Parser.prototype.getInputStream=function(){return this.getTokenStream()},Parser.prototype.setInputStream=function(e){this.setTokenStream(e)},Parser.prototype.getTokenStream=function(){return this._input},Parser.prototype.setTokenStream=function(e){this._input=null,this.reset(),this._input=e},Parser.prototype.getCurrentToken=function(){return this._input.LT(1)},Parser.prototype.notifyErrorListeners=function(e,t,n){n=n||null,null===(t=t||null)&&(t=this.getCurrentToken()),this._syntaxErrors+=1;var i=t.line,o=t.column;this.getErrorListenerDispatch().syntaxError(this,t,i,o,e,n)},Parser.prototype.consume=function(){var e=this.getCurrentToken();e.type!==i.EOF&&this.getInputStream().consume();var t,n=null!==this._parseListeners&&this._parseListeners.length>0;(this.buildParseTrees||n)&&((t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e)).invokingState=this.state,n&&this._parseListeners.map((function(e){t instanceof h||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof p&&e.visitTerminal(t)})));return e},Parser.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},Parser.prototype.enterRule=function(e,t,n){this.state=t,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.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},Parser.prototype.enterOuterAlt=function(e,t){e.setAltNumber(t),this.buildParseTrees&&this._ctx!==e&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e},Parser.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},Parser.prototype.enterRecursionRule=function(e,t,n,i){this.state=t,this._precedenceStack.push(i),this._ctx=e,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.prototype.pushNewRecursionContext=function(e,t,n){var i=this._ctx;i.parentCtx=e,i.invokingState=t,i.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=i.start,this.buildParseTrees&&this._ctx.addChild(i),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.prototype.unrollRecursionContexts=function(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var t=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;t.parentCtx=e,this.buildParseTrees&&null!==e&&e.addChild(t)},Parser.prototype.getInvokingContext=function(e){for(var t=this._ctx;null!==t;){if(t.ruleIndex===e)return t;t=t.parentCtx}return null},Parser.prototype.precpred=function(e,t){return t>=this._precedenceStack[this._precedenceStack.length-1]},Parser.prototype.inContext=function(e){return!1},Parser.prototype.isExpectedToken=function(e){var t=this._interp.atn,n=this._ctx,o=t.states[this.state],a=t.nextTokens(o);if(a.contains(e))return!0;if(!a.contains(i.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&a.contains(i.EPSILON);){var s=t.states[n.invokingState].transitions[0];if((a=t.nextTokens(s.followState)).contains(e))return!0;n=n.parentCtx}return!(!a.contains(i.EPSILON)||e!==i.EOF)},Parser.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},Parser.prototype.getExpectedTokensWithinCurrentRule=function(){var e=this._interp.atn,t=e.states[this.state];return e.nextTokens(t)},Parser.prototype.getRuleIndex=function(e){var t=this.getRuleIndexMap()[e];return null!==t?t:-1},Parser.prototype.getRuleInvocationStack=function(e){null===(e=e||null)&&(e=this._ctx);for(var t=[];null!==e;){var n=e.ruleIndex;n<0?t.push("n/a"):t.push(this.ruleNames[n]),e=e.parentCtx}return t},Parser.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},Parser.prototype.dumpDFA=function(){for(var e=!1,t=0;t<this._interp.decisionToDFA.length;t++){var n=this._interp.decisionToDFA[t];n.states.length>0&&(e&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),e=!0)}},Parser.prototype.getSourceName=function(){return this._input.sourceName},Parser.prototype.setTrace=function(e){e?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new TraceListener(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},t.Parser=Parser},5082:(e,t,n)=>{var i=n(8738).RuleContext,o=n(1065),a=o.INVALID_INTERVAL,s=o.TerminalNode,c=o.TerminalNodeImpl,l=o.ErrorNodeImpl,p=n(4088).Interval;function ParserRuleContext(e,t){e=e||null,t=t||null,i.call(this,e,t),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function InterpreterRuleContext(e,t,n){return ParserRuleContext.call(e,t),this.ruleIndex=n,this}ParserRuleContext.prototype=Object.create(i.prototype),ParserRuleContext.prototype.constructor=ParserRuleContext,ParserRuleContext.prototype.copyFrom=function(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map((function(e){e instanceof l&&(this.children.push(e),e.parentCtx=this)}),this))},ParserRuleContext.prototype.enterRule=function(e){},ParserRuleContext.prototype.exitRule=function(e){},ParserRuleContext.prototype.addChild=function(e){return null===this.children&&(this.children=[]),this.children.push(e),e},ParserRuleContext.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},ParserRuleContext.prototype.addTokenNode=function(e){var t=new c(e);return this.addChild(t),t.parentCtx=this,t},ParserRuleContext.prototype.addErrorNode=function(e){var t=new l(e);return this.addChild(t),t.parentCtx=this,t},ParserRuleContext.prototype.getChild=function(e,t){if(t=t||null,null===this.children||e<0||e>=this.children.length)return null;if(null===t)return this.children[e];for(var n=0;n<this.children.length;n++){var i=this.children[n];if(i instanceof t){if(0===e)return i;e-=1}}return null},ParserRuleContext.prototype.getToken=function(e,t){if(null===this.children||t<0||t>=this.children.length)return null;for(var n=0;n<this.children.length;n++){var i=this.children[n];if(i instanceof s&&i.symbol.type===e){if(0===t)return i;t-=1}}return null},ParserRuleContext.prototype.getTokens=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var i=this.children[n];i instanceof s&&i.symbol.type===e&&t.push(i)}return t},ParserRuleContext.prototype.getTypedRuleContext=function(e,t){return this.getChild(t,e)},ParserRuleContext.prototype.getTypedRuleContexts=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var i=this.children[n];i instanceof e&&t.push(i)}return t},ParserRuleContext.prototype.getChildCount=function(){return null===this.children?0:this.children.length},ParserRuleContext.prototype.getSourceInterval=function(){return null===this.start||null===this.stop?a:new p(this.start.tokenIndex,this.stop.tokenIndex)},i.EMPTY=new ParserRuleContext,InterpreterRuleContext.prototype=Object.create(ParserRuleContext.prototype),InterpreterRuleContext.prototype.constructor=InterpreterRuleContext,t.ParserRuleContext=ParserRuleContext},8758:(e,t,n)=>{var i=n(8738).RuleContext,o=n(8561).Hash,a=n(8561).Map;function PredictionContext(e){this.cachedHashCode=e}function PredictionContextCache(){return this.cache=new a,this}function SingletonPredictionContext(e,t){var n,i=new o;null!==e?i.update(e,t):i.update(1),n=i.finish(),PredictionContext.call(this,n),this.parentCtx=e,this.returnState=t}function EmptyPredictionContext(){return SingletonPredictionContext.call(this,null,PredictionContext.EMPTY_RETURN_STATE),this}function ArrayPredictionContext(e,t){var n=new o;n.update(e,t);var i=n.finish();return PredictionContext.call(this,i),this.parents=e,this.returnStates=t,this}function merge(e,t,n,i){if(e===t)return e;if(e instanceof SingletonPredictionContext&&t instanceof SingletonPredictionContext)return function mergeSingletons(e,t,n,i){if(null!==i){var o=i.get(e,t);if(null!==o)return o;if(null!==(o=i.get(t,e)))return o}var a=function mergeRoot(e,t,n){if(n){if(e===PredictionContext.EMPTY)return PredictionContext.EMPTY;if(t===PredictionContext.EMPTY)return PredictionContext.EMPTY}else{if(e===PredictionContext.EMPTY&&t===PredictionContext.EMPTY)return PredictionContext.EMPTY;if(e===PredictionContext.EMPTY){var i=[t.returnState,PredictionContext.EMPTY_RETURN_STATE];return new ArrayPredictionContext([t.parentCtx,null],i)}if(t===PredictionContext.EMPTY){i=[e.returnState,PredictionContext.EMPTY_RETURN_STATE];return new ArrayPredictionContext([e.parentCtx,null],i)}}return null}(e,t,n);if(null!==a)return null!==i&&i.set(e,t,a),a;if(e.returnState===t.returnState){var s=merge(e.parentCtx,t.parentCtx,n,i);if(s===e.parentCtx)return e;if(s===t.parentCtx)return t;var c=SingletonPredictionContext.create(s,e.returnState);return null!==i&&i.set(e,t,c),c}var l=null;if((e===t||null!==e.parentCtx&&e.parentCtx===t.parentCtx)&&(l=e.parentCtx),null!==l){var p=[e.returnState,t.returnState];e.returnState>t.returnState&&(p[0]=t.returnState,p[1]=e.returnState);var h=new ArrayPredictionContext(d=[l,l],p);return null!==i&&i.set(e,t,h),h}p=[e.returnState,t.returnState];var d=[e.parentCtx,t.parentCtx];e.returnState>t.returnState&&(p[0]=t.returnState,p[1]=e.returnState,d=[t.parentCtx,e.parentCtx]);var f=new ArrayPredictionContext(d,p);return null!==i&&i.set(e,t,f),f}(e,t,n,i);if(n){if(e instanceof EmptyPredictionContext)return e;if(t instanceof EmptyPredictionContext)return t}return e instanceof SingletonPredictionContext&&(e=new ArrayPredictionContext([e.getParent()],[e.returnState])),t instanceof SingletonPredictionContext&&(t=new ArrayPredictionContext([t.getParent()],[t.returnState])),function mergeArrays(e,t,n,i){if(null!==i){var o=i.get(e,t);if(null!==o)return o;if(null!==(o=i.get(t,e)))return o}var s=0,c=0,l=0,p=[],h=[];for(;s<e.returnStates.length&&c<t.returnStates.length;){var d=e.parents[s],f=t.parents[c];if(e.returnStates[s]===t.returnStates[c]){var g=e.returnStates[s];if(g===PredictionContext.EMPTY_RETURN_STATE&&null===d&&null===f||null!==d&&null!==f&&d===f)h[l]=d,p[l]=g;else{var x=merge(d,f,n,i);h[l]=x,p[l]=g}s+=1,c+=1}else e.returnStates[s]<t.returnStates[c]?(h[l]=d,p[l]=e.returnStates[s],s+=1):(h[l]=f,p[l]=t.returnStates[c],c+=1);l+=1}if(s<e.returnStates.length)for(var m=s;m<e.returnStates.length;m++)h[l]=e.parents[m],p[l]=e.returnStates[m],l+=1;else for(m=c;m<t.returnStates.length;m++)h[l]=t.parents[m],p[l]=t.returnStates[m],l+=1;if(l<h.length){if(1===l){var y=SingletonPredictionContext.create(h[0],p[0]);return null!==i&&i.set(e,t,y),y}h=h.slice(0,l),p=p.slice(0,l)}var S=new ArrayPredictionContext(h,p);if(S===e)return null!==i&&i.set(e,t,e),e;if(S===t)return null!==i&&i.set(e,t,t),t;(function combineCommonParents(e){for(var t=new a,n=0;n<e.length;n++){var i=e[n];t.containsKey(i)||t.put(i,i)}for(var o=0;o<e.length;o++)e[o]=t.get(e[o])})(h),null!==i&&i.set(e,t,S);return S}(e,t,n,i)}PredictionContext.EMPTY=null,PredictionContext.EMPTY_RETURN_STATE=2147483647,PredictionContext.globalNodeCount=1,PredictionContext.id=PredictionContext.globalNodeCount,PredictionContext.prototype.isEmpty=function(){return this===PredictionContext.EMPTY},PredictionContext.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===PredictionContext.EMPTY_RETURN_STATE},PredictionContext.prototype.hashCode=function(){return this.cachedHashCode},PredictionContext.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},PredictionContextCache.prototype.add=function(e){if(e===PredictionContext.EMPTY)return PredictionContext.EMPTY;var t=this.cache.get(e)||null;return null!==t?t:(this.cache.put(e,e),e)},PredictionContextCache.prototype.get=function(e){return this.cache.get(e)||null},Object.defineProperty(PredictionContextCache.prototype,"length",{get:function(){return this.cache.length}}),SingletonPredictionContext.prototype=Object.create(PredictionContext.prototype),SingletonPredictionContext.prototype.contructor=SingletonPredictionContext,SingletonPredictionContext.create=function(e,t){return t===PredictionContext.EMPTY_RETURN_STATE&&null===e?PredictionContext.EMPTY:new SingletonPredictionContext(e,t)},Object.defineProperty(SingletonPredictionContext.prototype,"length",{get:function(){return 1}}),SingletonPredictionContext.prototype.getParent=function(e){return this.parentCtx},SingletonPredictionContext.prototype.getReturnState=function(e){return this.returnState},SingletonPredictionContext.prototype.equals=function(e){return this===e||e instanceof SingletonPredictionContext&&(this.hashCode()===e.hashCode()&&(this.returnState===e.returnState&&(null==this.parentCtx?null==e.parentCtx:this.parentCtx.equals(e.parentCtx))))},SingletonPredictionContext.prototype.toString=function(){var e=null===this.parentCtx?"":this.parentCtx.toString();return 0===e.length?this.returnState===PredictionContext.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e},EmptyPredictionContext.prototype=Object.create(SingletonPredictionContext.prototype),EmptyPredictionContext.prototype.constructor=EmptyPredictionContext,EmptyPredictionContext.prototype.isEmpty=function(){return!0},EmptyPredictionContext.prototype.getParent=function(e){return null},EmptyPredictionContext.prototype.getReturnState=function(e){return this.returnState},EmptyPredictionContext.prototype.equals=function(e){return this===e},EmptyPredictionContext.prototype.toString=function(){return"$"},PredictionContext.EMPTY=new EmptyPredictionContext,ArrayPredictionContext.prototype=Object.create(PredictionContext.prototype),ArrayPredictionContext.prototype.constructor=ArrayPredictionContext,ArrayPredictionContext.prototype.isEmpty=function(){return this.returnStates[0]===PredictionContext.EMPTY_RETURN_STATE},Object.defineProperty(ArrayPredictionContext.prototype,"length",{get:function(){return this.returnStates.length}}),ArrayPredictionContext.prototype.getParent=function(e){return this.parents[e]},ArrayPredictionContext.prototype.getReturnState=function(e){return this.returnStates[e]},ArrayPredictionContext.prototype.equals=function(e){return this===e||e instanceof ArrayPredictionContext&&(this.hashCode()===e.hashCode()&&(this.returnStates===e.returnStates&&this.parents===e.parents))},ArrayPredictionContext.prototype.toString=function(){if(this.isEmpty())return"[]";for(var e="[",t=0;t<this.returnStates.length;t++)t>0&&(e+=", "),this.returnStates[t]!==PredictionContext.EMPTY_RETURN_STATE?(e+=this.returnStates[t],null!==this.parents[t]?e=e+" "+this.parents[t]:e+="null"):e+="$";return e+"]"},t.merge=merge,t.PredictionContext=PredictionContext,t.PredictionContextCache=PredictionContextCache,t.SingletonPredictionContext=SingletonPredictionContext,t.predictionContextFromRuleContext=function predictionContextFromRuleContext(e,t){if(null==t&&(t=i.EMPTY),null===t.parentCtx||t===i.EMPTY)return PredictionContext.EMPTY;var n=predictionContextFromRuleContext(e,t.parentCtx),o=e.states[t.invokingState].transitions[0];return SingletonPredictionContext.create(n,o.followState.stateNumber)},t.getCachedPredictionContext=function getCachedPredictionContext(e,t,n){if(e.isEmpty())return e;var i=n.get(e)||null;if(null!==i)return i;if(null!==(i=t.get(e)))return n.put(e,i),i;for(var o=!1,a=[],s=0;s<a.length;s++){var c=getCachedPredictionContext(e.getParent(s),t,n);if(o||c!==e.getParent(s)){if(!o){a=[];for(var l=0;l<e.length;l++)a[l]=e.getParent(l);o=!0}a[s]=c}}if(!o)return t.add(e),n.put(e,e),e;var p=null;return p=0===a.length?PredictionContext.EMPTY:1===a.length?SingletonPredictionContext.create(a[0],e.getReturnState(0)):new ArrayPredictionContext(a,e.returnStates),t.add(p),n.put(p,p),n.put(e,p),p}},4489:(e,t,n)=>{var i=n(5319).Token,o=n(5827).ConsoleErrorListener,a=n(5827).ProxyErrorListener;function Recognizer(){return this._listeners=[o.INSTANCE],this._interp=null,this._stateNumber=-1,this}Recognizer.tokenTypeMapCache={},Recognizer.ruleIndexMapCache={},Recognizer.prototype.checkVersion=function(e){"4.8"!==e&&console.log("ANTLR runtime and generated code versions disagree: 4.8!="+e)},Recognizer.prototype.addErrorListener=function(e){this._listeners.push(e)},Recognizer.prototype.removeErrorListeners=function(){this._listeners=[]},Recognizer.prototype.getTokenTypeMap=function(){var e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";var t=this.tokenTypeMapCache[e];return void 0===t&&((t=e.reduce((function(e,t,n){e[t]=n}))).EOF=i.EOF,this.tokenTypeMapCache[e]=t),t},Recognizer.prototype.getRuleIndexMap=function(){var e=this.ruleNames;if(null===e)throw"The current recognizer does not provide a list of rule names.";var t=this.ruleIndexMapCache[e];return void 0===t&&(t=e.reduce((function(e,t,n){e[t]=n})),this.ruleIndexMapCache[e]=t),t},Recognizer.prototype.getTokenType=function(e){var t=this.getTokenTypeMap()[e];return void 0!==t?t:i.INVALID_TYPE},Recognizer.prototype.getErrorHeader=function(e){return"line "+e.getOffendingToken().line+":"+e.getOffendingToken().column},Recognizer.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===i.EOF?"<EOF>":"<"+e.type+">"),"'"+(t=t.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},Recognizer.prototype.getErrorListenerDispatch=function(){return new a(this._listeners)},Recognizer.prototype.sempred=function(e,t,n){return!0},Recognizer.prototype.precpred=function(e,t){return!0},Object.defineProperty(Recognizer.prototype,"state",{get:function(){return this._stateNumber},set:function(e){this._stateNumber=e}}),t.Recognizer=Recognizer},8738:(e,t,n)=>{var i=n(1065).RuleNode,o=n(1065).INVALID_INTERVAL,a=n(3600).INVALID_ALT_NUMBER;function RuleContext(e,t){return i.call(this),this.parentCtx=e||null,this.invokingState=t||-1,this}RuleContext.prototype=Object.create(i.prototype),RuleContext.prototype.constructor=RuleContext,RuleContext.prototype.depth=function(){for(var e=0,t=this;null!==t;)t=t.parentCtx,e+=1;return e},RuleContext.prototype.isEmpty=function(){return-1===this.invokingState},RuleContext.prototype.getSourceInterval=function(){return o},RuleContext.prototype.getRuleContext=function(){return this},RuleContext.prototype.getPayload=function(){return this},RuleContext.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map((function(e){return e.getText()})).join("")},RuleContext.prototype.getAltNumber=function(){return a},RuleContext.prototype.setAltNumber=function(e){},RuleContext.prototype.getChild=function(e){return null},RuleContext.prototype.getChildCount=function(){return 0},RuleContext.prototype.accept=function(e){return e.visitChildren(this)},t.RuleContext=RuleContext;var s=n(2181).Trees;RuleContext.prototype.toStringTree=function(e,t){return s.toStringTree(this,e,t)},RuleContext.prototype.toString=function(e,t){e=e||null,t=t||null;for(var n=this,i="[";null!==n&&n!==t;){if(null===e)n.isEmpty()||(i+=n.invokingState);else{var o=n.ruleIndex;i+=o>=0&&o<e.length?e[o]:""+o}null===n.parentCtx||null===e&&n.parentCtx.isEmpty()||(i+=" "),n=n.parentCtx}return i+="]"}},5319:(e,t)=>{function Token(){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 CommonToken(e,t,n,i,o){return Token.call(this),this.source=void 0!==e?e:CommonToken.EMPTY_SOURCE,this.type=void 0!==t?t:null,this.channel=void 0!==n?n:Token.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==o?o:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1,this}Token.INVALID_TYPE=0,Token.EPSILON=-2,Token.MIN_USER_TOKEN_TYPE=1,Token.EOF=-1,Token.DEFAULT_CHANNEL=0,Token.HIDDEN_CHANNEL=1,Object.defineProperty(Token.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e}}),Token.prototype.getTokenSource=function(){return this.source[0]},Token.prototype.getInputStream=function(){return this.source[1]},CommonToken.prototype=Object.create(Token.prototype),CommonToken.prototype.constructor=CommonToken,CommonToken.EMPTY_SOURCE=[null,null],CommonToken.prototype.clone=function(){var e=new CommonToken(this.source,this.type,this.channel,this.start,this.stop);return e.tokenIndex=this.tokenIndex,e.line=this.line,e.column=this.column,e.text=this.text,e},Object.defineProperty(CommonToken.prototype,"text",{get:function(){if(null!==this._text)return this._text;var e=this.getInputStream();if(null===e)return null;var t=e.size;return this.start<t&&this.stop<t?e.getText(this.start,this.stop):"<EOF>"},set:function(e){this._text=e}}),CommonToken.prototype.toString=function(){var e=this.text;return e=null!==e?e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+e+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},t.Token=Token,t.CommonToken=CommonToken},8561:(e,t)=>{function arrayToString(e){return"["+e.join(", ")+"]"}function standardEqualsFunction(e,t){return e.equals(t)}function standardHashCodeFunction(e){return e.hashCode()}function Set(e,t){return this.data={},this.hashFunction=e||standardHashCodeFunction,this.equalsFunction=t||standardEqualsFunction,this}function BitSet(){return this.data=[],this}function Map(e,t){return this.data={},this.hashFunction=e||standardHashCodeFunction,this.equalsFunction=t||standardEqualsFunction,this}function AltDict(){return this.data={},this}function DoubleDict(e){return this.defaultMapCtor=e||Map,this.cacheMap=new this.defaultMapCtor,this}function Hash(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var e,t,n,i,o,a,s,c,l=this.toString();for(e=3&l.length,t=l.length-e,n=String.prototype.seed,o=3432918353,a=461845907,c=0;c<t;)s=255&l.charCodeAt(c)|(255&l.charCodeAt(++c))<<8|(255&l.charCodeAt(++c))<<16|(255&l.charCodeAt(++c))<<24,++c,n=27492+(65535&(i=5*(65535&(n=(n^=s=(65535&(s=(s=(65535&s)*o+(((s>>>16)*o&65535)<<16)&4294967295)<<15|s>>>17))*a+(((s>>>16)*a&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(s=0,e){case 3:s^=(255&l.charCodeAt(c+2))<<16;case 2:s^=(255&l.charCodeAt(c+1))<<8;case 1:n^=s=(65535&(s=(s=(65535&(s^=255&l.charCodeAt(c)))*o+(((s>>>16)*o&65535)<<16)&4294967295)<<15|s>>>17))*a+(((s>>>16)*a&65535)<<16)&4294967295}return n^=l.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0},Object.defineProperty(Set.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),Set.prototype.add=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data){for(var n=this.data[t],i=0;i<n.length;i++)if(this.equalsFunction(e,n[i]))return n[i];return n.push(e),e}return this.data[t]=[e],e},Set.prototype.contains=function(e){return null!=this.get(e)},Set.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++)if(this.equalsFunction(e,n[i]))return n[i];return null},Set.prototype.values=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},Set.prototype.toString=function(){return arrayToString(this.values())},BitSet.prototype.add=function(e){this.data[e]=!0},BitSet.prototype.or=function(e){var t=this;Object.keys(e.data).map((function(e){t.add(e)}))},BitSet.prototype.remove=function(e){delete this.data[e]},BitSet.prototype.contains=function(e){return!0===this.data[e]},BitSet.prototype.values=function(){return Object.keys(this.data)},BitSet.prototype.minValue=function(){return Math.min.apply(null,this.values())},BitSet.prototype.hashCode=function(){var e=new Hash;return e.update(this.values()),e.finish()},BitSet.prototype.equals=function(e){return e instanceof BitSet&&this.hashCode()===e.hashCode()},Object.defineProperty(BitSet.prototype,"length",{get:function(){return this.values().length}}),BitSet.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},Object.defineProperty(Map.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),Map.prototype.put=function(e,t){var n="hash_"+this.hashFunction(e);if(n in this.data){for(var i=this.data[n],o=0;o<i.length;o++){var a=i[o];if(this.equalsFunction(e,a.key)){var s=a.value;return a.value=t,s}}return i.push({key:e,value:t}),t}return this.data[n]=[{key:e,value:t}],t},Map.prototype.containsKey=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++){var o=n[i];if(this.equalsFunction(e,o.key))return!0}return!1},Map.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++){var o=n[i];if(this.equalsFunction(e,o.key))return o.value}return null},Map.prototype.entries=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},Map.prototype.getKeys=function(){return this.entries().map((function(e){return e.key}))},Map.prototype.getValues=function(){return this.entries().map((function(e){return e.value}))},Map.prototype.toString=function(){return"["+this.entries().map((function(e){return"{"+e.key+":"+e.value+"}"})).join(", ")+"]"},AltDict.prototype.get=function(e){return(e="k-"+e)in this.data?this.data[e]:null},AltDict.prototype.put=function(e,t){e="k-"+e,this.data[e]=t},AltDict.prototype.values=function(){var e=this.data;return Object.keys(this.data).map((function(t){return e[t]}))},Hash.prototype.update=function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(null!=t)if(Array.isArray(t))this.update.apply(this,t);else{var n=0;switch(typeof t){case"undefined":case"function":continue;case"number":case"boolean":n=t;break;case"string":n=t.hashCode();break;default:t.updateHashCode?t.updateHashCode(this):console.log("No updateHashCode for "+t.toString());continue}n=(n*=3432918353)<<15|n>>>17,n*=461845907,this.count=this.count+1;var i=this.hash^n;i=5*(i=i<<13|i>>>19)+3864292196,this.hash=i}}},Hash.prototype.finish=function(){var e=this.hash^4*this.count;return e^=e>>>16,e*=2246822507,e^=e>>>13,e*=3266489909,e^=e>>>16},DoubleDict.prototype.get=function(e,t){var n=this.cacheMap.get(e)||null;return null===n?null:n.get(t)||null},DoubleDict.prototype.set=function(e,t,n){var i=this.cacheMap.get(e)||null;null===i&&(i=new this.defaultMapCtor,this.cacheMap.put(e,i)),i.put(t,n)},t.Hash=Hash,t.Set=Set,t.Map=Map,t.BitSet=BitSet,t.AltDict=AltDict,t.DoubleDict=DoubleDict,t.hashStuff=function hashStuff(){var e=new Hash;return e.update.apply(e,arguments),e.finish()},t.escapeWhitespace=function escapeWhitespace(e,t){return e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"·")),e},t.arrayToString=arrayToString,t.titleCase=function titleCase(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}))},t.equalArrays=function equalArrays(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].equals(t[n]))return!1;return!0}},3600:(e,t,n)=>{var i=n(670).LL1Analyzer,o=n(4088).IntervalSet;function ATN(e,t){return this.grammarType=e,this.maxTokenType=t,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}ATN.prototype.nextTokensInContext=function(e,t){return new i(this).LOOK(e,null,t)},ATN.prototype.nextTokensNoContext=function(e){return null!==e.nextTokenWithinRule||(e.nextTokenWithinRule=this.nextTokensInContext(e,null),e.nextTokenWithinRule.readOnly=!0),e.nextTokenWithinRule},ATN.prototype.nextTokens=function(e,t){return void 0===t?this.nextTokensNoContext(e):this.nextTokensInContext(e,t)},ATN.prototype.addState=function(e){null!==e&&(e.atn=this,e.stateNumber=this.states.length),this.states.push(e)},ATN.prototype.removeState=function(e){this.states[e.stateNumber]=null},ATN.prototype.defineDecisionState=function(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision},ATN.prototype.getDecisionState=function(e){return 0===this.decisionToState.length?null:this.decisionToState[e]};var a=n(5319).Token;ATN.prototype.getExpectedTokens=function(e,t){if(e<0||e>=this.states.length)throw"Invalid state number.";var n=this.states[e],i=this.nextTokens(n);if(!i.contains(a.EPSILON))return i;var s=new o;for(s.addSet(i),s.removeOne(a.EPSILON);null!==t&&t.invokingState>=0&&i.contains(a.EPSILON);){var c=this.states[t.invokingState].transitions[0];i=this.nextTokens(c.followState),s.addSet(i),s.removeOne(a.EPSILON),t=t.parentCtx}return i.contains(a.EPSILON)&&s.addOne(a.EOF),s},ATN.INVALID_ALT_NUMBER=0,t.ATN=ATN},3864:(e,t,n)=>{var i=n(9215).DecisionState,o=n(2105).SemanticContext,a=n(8561).Hash;function checkParams(e,t){if(null===e){var n={state:null,alt:null,context:null,semanticContext:null};return t&&(n.reachesIntoOuterContext=0),n}var i={};return i.state=e.state||null,i.alt=void 0===e.alt?null:e.alt,i.context=e.context||null,i.semanticContext=e.semanticContext||null,t&&(i.reachesIntoOuterContext=e.reachesIntoOuterContext||0,i.precedenceFilterSuppressed=e.precedenceFilterSuppressed||!1),i}function ATNConfig(e,t){return this.checkContext(e,t),e=checkParams(e),t=checkParams(t,!0),this.state=null!==e.state?e.state:t.state,this.alt=null!==e.alt?e.alt:t.alt,this.context=null!==e.context?e.context:t.context,this.semanticContext=null!==e.semanticContext?e.semanticContext:null!==t.semanticContext?t.semanticContext:o.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,this.precedenceFilterSuppressed=t.precedenceFilterSuppressed,this}function LexerATNConfig(e,t){ATNConfig.call(this,e,t);var n=e.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==t?t.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==t&&this.checkNonGreedyDecision(t,this.state),this}ATNConfig.prototype.checkContext=function(e,t){null!==e.context&&void 0!==e.context||null!==t&&null!==t.context&&void 0!==t.context||(this.context=null)},ATNConfig.prototype.hashCode=function(){var e=new a;return this.updateHashCode(e),e.finish()},ATNConfig.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},ATNConfig.prototype.equals=function(e){return this===e||e instanceof ATNConfig&&(this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed)},ATNConfig.prototype.hashCodeForConfigSet=function(){var e=new a;return e.update(this.state.stateNumber,this.alt,this.semanticContext),e.finish()},ATNConfig.prototype.equalsForConfigSet=function(e){return this===e||e instanceof ATNConfig&&(this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.semanticContext.equals(e.semanticContext))},ATNConfig.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==o.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},LexerATNConfig.prototype=Object.create(ATNConfig.prototype),LexerATNConfig.prototype.constructor=LexerATNConfig,LexerATNConfig.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},LexerATNConfig.prototype.equals=function(e){return this===e||e instanceof LexerATNConfig&&this.passedThroughNonGreedyDecision==e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&ATNConfig.prototype.equals.call(this,e)},LexerATNConfig.prototype.hashCodeForConfigSet=LexerATNConfig.prototype.hashCode,LexerATNConfig.prototype.equalsForConfigSet=LexerATNConfig.prototype.equals,LexerATNConfig.prototype.checkNonGreedyDecision=function(e,t){return e.passedThroughNonGreedyDecision||t instanceof i&&t.nonGreedy},t.ATNConfig=ATNConfig,t.LexerATNConfig=LexerATNConfig},8254:(e,t,n)=>{var i=n(3600).ATN,o=n(8561),a=o.Hash,s=o.Set,c=n(2105).SemanticContext,l=n(8758).merge;function hashATNConfig(e){return e.hashCodeForConfigSet()}function equalATNConfigs(e,t){return e===t||null!==e&&null!==t&&e.equalsForConfigSet(t)}function ATNConfigSet(e){return this.configLookup=new s(hashATNConfig,equalATNConfigs),this.fullCtx=void 0===e||e,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function OrderedATNConfigSet(){return ATNConfigSet.call(this),this.configLookup=new s,this}ATNConfigSet.prototype.add=function(e,t){if(void 0===t&&(t=null),this.readOnly)throw"This set is readonly";e.semanticContext!==c.NONE&&(this.hasSemanticContext=!0),e.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var n=this.configLookup.add(e);if(n===e)return this.cachedHashCode=-1,this.configs.push(e),!0;var i=!this.fullCtx,o=l(n.context,e.context,i,t);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,e.reachesIntoOuterContext),e.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=o,!0},ATNConfigSet.prototype.getStates=function(){for(var e=new s,t=0;t<this.configs.length;t++)e.add(this.configs[t].state);return e},ATNConfigSet.prototype.getPredicates=function(){for(var e=[],t=0;t<this.configs.length;t++){var n=this.configs[t].semanticContext;n!==c.NONE&&e.push(n.semanticContext)}return e},Object.defineProperty(ATNConfigSet.prototype,"items",{get:function(){return this.configs}}),ATNConfigSet.prototype.optimizeConfigs=function(e){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];n.context=e.getCachedContext(n.context)}},ATNConfigSet.prototype.addAll=function(e){for(var t=0;t<e.length;t++)this.add(e[t]);return!1},ATNConfigSet.prototype.equals=function(e){return this===e||e instanceof ATNConfigSet&&o.equalArrays(this.configs,e.configs)&&this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext},ATNConfigSet.prototype.hashCode=function(){var e=new a;return e.update(this.configs),e.finish()},ATNConfigSet.prototype.updateHashCode=function(e){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),e.update(this.cachedHashCode)):e.update(this.hashCode())},Object.defineProperty(ATNConfigSet.prototype,"length",{get:function(){return this.configs.length}}),ATNConfigSet.prototype.isEmpty=function(){return 0===this.configs.length},ATNConfigSet.prototype.contains=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(e)},ATNConfigSet.prototype.containsFast=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(e)},ATNConfigSet.prototype.clear=function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new s},ATNConfigSet.prototype.setReadonly=function(e){this.readOnly=e,e&&(this.configLookup=null)},ATNConfigSet.prototype.toString=function(){return o.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==i.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")},OrderedATNConfigSet.prototype=Object.create(ATNConfigSet.prototype),OrderedATNConfigSet.prototype.constructor=OrderedATNConfigSet,t.ATNConfigSet=ATNConfigSet,t.OrderedATNConfigSet=OrderedATNConfigSet},6477:(e,t)=>{function ATNDeserializationOptions(e){return void 0===e&&(e=null),this.readOnly=!1,this.verifyATN=null===e||e.verifyATN,this.generateRuleBypassTransitions=null!==e&&e.generateRuleBypassTransitions,this}ATNDeserializationOptions.defaultOptions=new ATNDeserializationOptions,ATNDeserializationOptions.defaultOptions.readOnly=!0,t.ATNDeserializationOptions=ATNDeserializationOptions},8833:(e,t,n)=>{var i=n(5319).Token,o=n(3600).ATN,a=n(1463).ATNType,s=n(9215),c=s.ATNState,l=s.BasicState,p=s.DecisionState,h=s.BlockStartState,d=s.BlockEndState,f=s.LoopEndState,g=s.RuleStartState,x=s.RuleStopState,m=s.TokensStartState,y=s.PlusLoopbackState,S=s.StarLoopbackState,T=s.StarLoopEntryState,v=s.PlusBlockStartState,C=s.StarBlockStartState,A=s.BasicBlockStartState,E=n(5099),k=E.Transition,b=E.AtomTransition,P=E.SetTransition,L=E.NotSetTransition,_=E.RuleTransition,N=E.RangeTransition,I=E.ActionTransition,O=E.EpsilonTransition,F=E.WildcardTransition,R=E.PredicateTransition,w=E.PrecedencePredicateTransition,D=n(4088).IntervalSet,M=(n(4088).Interval,n(6477).ATNDeserializationOptions),B=n(7653),z=B.LexerActionType,j=B.LexerSkipAction,H=B.LexerChannelAction,U=B.LexerCustomAction,V=B.LexerMoreAction,W=B.LexerTypeAction,K=B.LexerPushModeAction,$=B.LexerPopModeAction,Y=B.LexerModeAction,G="59627784-3BE5-417A-B9EB-8131A7286089",Q=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",G],X=G;function initArray(e,t){var n=[];return n[e-1]=t,n.map((function(e){return t}))}function ATNDeserializer(e){return null==e&&(e=M.defaultOptions),this.deserializationOptions=e,this.stateFactories=null,this.actionFactories=null,this}ATNDeserializer.prototype.isFeatureSupported=function(e,t){var n=Q.indexOf(e);return!(n<0)&&Q.indexOf(t)>=n},ATNDeserializer.prototype.deserialize=function(e){this.reset(e),this.checkVersion(),this.checkUUID();var t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);var n=[];return this.readSets(t,n,this.readInt.bind(this)),this.isFeatureSupported(G,this.uuid)&&this.readSets(t,n,this.readInt32.bind(this)),this.readEdges(t,n),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===a.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t},ATNDeserializer.prototype.reset=function(e){var t=e.split("").map((function(e){var t=e.charCodeAt(0);return t>1?t-2:t+65534}));t[0]=e.charCodeAt(0),this.data=t,this.pos=0},ATNDeserializer.prototype.checkVersion=function(){var e=this.readInt();if(3!==e)throw"Could not deserialize ATN with version "+e+" (expected 3)."},ATNDeserializer.prototype.checkUUID=function(){var e=this.readUUID();if(Q.indexOf(e)<0)throw X;this.uuid=e},ATNDeserializer.prototype.readATN=function(){var e=this.readInt(),t=this.readInt();return new o(e,t)},ATNDeserializer.prototype.readStates=function(e){for(var t,n,i,o=[],a=[],s=this.readInt(),l=0;l<s;l++){var p=this.readInt();if(p!==c.INVALID_TYPE){var d=this.readInt();65535===d&&(d=-1);var f=this.stateFactory(p,d);if(p===c.LOOP_END){var g=this.readInt();o.push([f,g])}else if(f instanceof h){var x=this.readInt();a.push([f,x])}e.addState(f)}else e.addState(null)}for(t=0;t<o.length;t++)(n=o[t])[0].loopBackState=e.states[n[1]];for(t=0;t<a.length;t++)(n=a[t])[0].endState=e.states[n[1]];var m=this.readInt();for(t=0;t<m;t++)i=this.readInt(),e.states[i].nonGreedy=!0;var y=this.readInt();for(t=0;t<y;t++)i=this.readInt(),e.states[i].isPrecedenceRule=!0},ATNDeserializer.prototype.readRules=function(e){var t,n=this.readInt();for(e.grammarType===a.LEXER&&(e.ruleToTokenType=initArray(n,0)),e.ruleToStartState=initArray(n,0),t=0;t<n;t++){var o=this.readInt(),s=e.states[o];if(e.ruleToStartState[t]=s,e.grammarType===a.LEXER){var c=this.readInt();65535===c&&(c=i.EOF),e.ruleToTokenType[t]=c}}for(e.ruleToStopState=initArray(n,0),t=0;t<e.states.length;t++){var l=e.states[t];l instanceof x&&(e.ruleToStopState[l.ruleIndex]=l,e.ruleToStartState[l.ruleIndex].stopState=l)}},ATNDeserializer.prototype.readModes=function(e){for(var t=this.readInt(),n=0;n<t;n++){var i=this.readInt();e.modeToStartState.push(e.states[i])}},ATNDeserializer.prototype.readSets=function(e,t,n){for(var i=this.readInt(),o=0;o<i;o++){var a=new D;t.push(a);var s=this.readInt();0!==this.readInt()&&a.addOne(-1);for(var c=0;c<s;c++){var l=n(),p=n();a.addRange(l,p)}}},ATNDeserializer.prototype.readEdges=function(e,t){var n,i,o,a,s,c=this.readInt();for(n=0;n<c;n++){var l=this.readInt(),p=this.readInt(),d=this.readInt(),f=this.readInt(),g=this.readInt(),x=this.readInt();a=this.edgeFactory(e,d,l,p,f,g,x,t),e.states[l].addTransition(a)}for(n=0;n<e.states.length;n++)for(o=e.states[n],i=0;i<o.transitions.length;i++){var m=o.transitions[i];if(m instanceof _){var C=-1;e.ruleToStartState[m.target.ruleIndex].isPrecedenceRule&&0===m.precedence&&(C=m.target.ruleIndex),a=new O(m.followState,C),e.ruleToStopState[m.target.ruleIndex].addTransition(a)}}for(n=0;n<e.states.length;n++){if((o=e.states[n])instanceof h){if(null===o.endState)throw"IllegalState";if(null!==o.endState.startState)throw"IllegalState";o.endState.startState=o}if(o instanceof y)for(i=0;i<o.transitions.length;i++)(s=o.transitions[i].target)instanceof v&&(s.loopBackState=o);else if(o instanceof S)for(i=0;i<o.transitions.length;i++)(s=o.transitions[i].target)instanceof T&&(s.loopBackState=o)}},ATNDeserializer.prototype.readDecisions=function(e){for(var t=this.readInt(),n=0;n<t;n++){var i=this.readInt(),o=e.states[i];e.decisionToState.push(o),o.decision=n}},ATNDeserializer.prototype.readLexerActions=function(e){if(e.grammarType===a.LEXER){var t=this.readInt();e.lexerActions=initArray(t,null);for(var n=0;n<t;n++){var i=this.readInt(),o=this.readInt();65535===o&&(o=-1);var s=this.readInt();65535===s&&(s=-1);var c=this.lexerActionFactory(i,o,s);e.lexerActions[n]=c}}},ATNDeserializer.prototype.generateRuleBypassTransitions=function(e){var t,n=e.ruleToStartState.length;for(t=0;t<n;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<n;t++)this.generateRuleBypassTransition(e,t)},ATNDeserializer.prototype.generateRuleBypassTransition=function(e,t){var n,i,o=new A;o.ruleIndex=t,e.addState(o);var a=new d;a.ruleIndex=t,e.addState(a),o.endState=a,e.defineDecisionState(o),a.startState=o;var s=null,c=null;if(e.ruleToStartState[t].isPrecedenceRule){for(c=null,n=0;n<e.states.length;n++)if(i=e.states[n],this.stateIsEndStateFor(i,t)){c=i,s=i.loopBackState.transitions[0];break}if(null===s)throw"Couldn't identify final state of the precedence rule prefix section."}else c=e.ruleToStopState[t];for(n=0;n<e.states.length;n++){i=e.states[n];for(var p=0;p<i.transitions.length;p++){var h=i.transitions[p];h!==s&&(h.target===c&&(h.target=a))}}for(var f=e.ruleToStartState[t],g=f.transitions.length;g>0;)o.addTransition(f.transitions[g-1]),f.transitions=f.transitions.slice(-1);e.ruleToStartState[t].addTransition(new O(o)),a.addTransition(new O(c));var x=new l;e.addState(x),x.addTransition(new b(a,e.ruleToTokenType[t])),o.addTransition(new O(x))},ATNDeserializer.prototype.stateIsEndStateFor=function(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof T))return null;var n=e.transitions[e.transitions.length-1].target;return n instanceof f&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof x?e:null},ATNDeserializer.prototype.markPrecedenceDecisions=function(e){for(var t=0;t<e.states.length;t++){var n=e.states[t];if(n instanceof T&&e.ruleToStartState[n.ruleIndex].isPrecedenceRule){var i=n.transitions[n.transitions.length-1].target;i instanceof f&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof x&&(n.isPrecedenceDecision=!0)}}},ATNDeserializer.prototype.verifyATN=function(e){if(this.deserializationOptions.verifyATN)for(var t=0;t<e.states.length;t++){var n=e.states[t];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof v)this.checkCondition(null!==n.loopBackState);else if(n instanceof T)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof C)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 C),this.checkCondition(n.nonGreedy)}else n instanceof S?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof T)):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 x)}},ATNDeserializer.prototype.checkCondition=function(e,t){if(!e)throw null==t&&(t="IllegalState"),t},ATNDeserializer.prototype.readInt=function(){return this.data[this.pos++]},ATNDeserializer.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},ATNDeserializer.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var J=function createByteToHex(){for(var e=[],t=0;t<256;t++)e[t]=(t+256).toString(16).substr(1).toUpperCase();return e}();ATNDeserializer.prototype.readUUID=function(){for(var e=[],t=7;t>=0;t--){var n=this.readInt();e[2*t+1]=255&n,e[2*t]=n>>8&255}return J[e[0]]+J[e[1]]+J[e[2]]+J[e[3]]+"-"+J[e[4]]+J[e[5]]+"-"+J[e[6]]+J[e[7]]+"-"+J[e[8]]+J[e[9]]+"-"+J[e[10]]+J[e[11]]+J[e[12]]+J[e[13]]+J[e[14]]+J[e[15]]},ATNDeserializer.prototype.edgeFactory=function(e,t,n,o,a,s,c,l){var p=e.states[o];switch(t){case k.EPSILON:return new O(p);case k.RANGE:return new N(p,0!==c?i.EOF:a,s);case k.RULE:return new _(e.states[a],s,c,p);case k.PREDICATE:return new R(p,a,s,0!==c);case k.PRECEDENCE:return new w(p,a);case k.ATOM:return new b(p,0!==c?i.EOF:a);case k.ACTION:return new I(p,a,s,0!==c);case k.SET:return new P(p,l[a]);case k.NOT_SET:return new L(p,l[a]);case k.WILDCARD:return new F(p);default:throw"The specified transition type: "+t+" is not valid."}},ATNDeserializer.prototype.stateFactory=function(e,t){if(null===this.stateFactories){var n=[];n[c.INVALID_TYPE]=null,n[c.BASIC]=function(){return new l},n[c.RULE_START]=function(){return new g},n[c.BLOCK_START]=function(){return new A},n[c.PLUS_BLOCK_START]=function(){return new v},n[c.STAR_BLOCK_START]=function(){return new C},n[c.TOKEN_START]=function(){return new m},n[c.RULE_STOP]=function(){return new x},n[c.BLOCK_END]=function(){return new d},n[c.STAR_LOOP_BACK]=function(){return new S},n[c.STAR_LOOP_ENTRY]=function(){return new T},n[c.PLUS_LOOP_BACK]=function(){return new y},n[c.LOOP_END]=function(){return new f},this.stateFactories=n}if(e>this.stateFactories.length||null===this.stateFactories[e])throw"The specified state type "+e+" is not valid.";var i=this.stateFactories[e]();if(null!==i)return i.ruleIndex=t,i},ATNDeserializer.prototype.lexerActionFactory=function(e,t,n){if(null===this.actionFactories){var i=[];i[z.CHANNEL]=function(e,t){return new H(e)},i[z.CUSTOM]=function(e,t){return new U(e,t)},i[z.MODE]=function(e,t){return new Y(e)},i[z.MORE]=function(e,t){return V.INSTANCE},i[z.POP_MODE]=function(e,t){return $.INSTANCE},i[z.PUSH_MODE]=function(e,t){return new K(e)},i[z.SKIP]=function(e,t){return j.INSTANCE},i[z.TYPE]=function(e,t){return new W(e)},this.actionFactories=i}if(e>this.actionFactories.length||null===this.actionFactories[e])throw"The specified lexer action type "+e+" is not valid.";return this.actionFactories[e](t,n)},t.ATNDeserializer=ATNDeserializer},1332:(e,t,n)=>{var i=n(2603).DFAState,o=n(8254).ATNConfigSet,a=n(8758).getCachedPredictionContext,s=n(8561).Map;function ATNSimulator(e,t){return this.atn=e,this.sharedContextCache=t,this}ATNSimulator.ERROR=new i(2147483647,new o),ATNSimulator.prototype.getCachedContext=function(e){if(null===this.sharedContextCache)return e;var t=new s;return a(e,this.sharedContextCache,t)},t.ATNSimulator=ATNSimulator},9215:(e,t)=>{function ATNState(){return this.atn=null,this.stateNumber=ATNState.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function BasicState(){return ATNState.call(this),this.stateType=ATNState.BASIC,this}function DecisionState(){return ATNState.call(this),this.decision=-1,this.nonGreedy=!1,this}function BlockStartState(){return DecisionState.call(this),this.endState=null,this}function BasicBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.BLOCK_START,this}function BlockEndState(){return ATNState.call(this),this.stateType=ATNState.BLOCK_END,this.startState=null,this}function RuleStopState(){return ATNState.call(this),this.stateType=ATNState.RULE_STOP,this}function RuleStartState(){return ATNState.call(this),this.stateType=ATNState.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function PlusLoopbackState(){return DecisionState.call(this),this.stateType=ATNState.PLUS_LOOP_BACK,this}function PlusBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.PLUS_BLOCK_START,this.loopBackState=null,this}function StarBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.STAR_BLOCK_START,this}function StarLoopbackState(){return ATNState.call(this),this.stateType=ATNState.STAR_LOOP_BACK,this}function StarLoopEntryState(){return DecisionState.call(this),this.stateType=ATNState.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function LoopEndState(){return ATNState.call(this),this.stateType=ATNState.LOOP_END,this.loopBackState=null,this}function TokensStartState(){return DecisionState.call(this),this.stateType=ATNState.TOKEN_START,this}ATNState.INVALID_TYPE=0,ATNState.BASIC=1,ATNState.RULE_START=2,ATNState.BLOCK_START=3,ATNState.PLUS_BLOCK_START=4,ATNState.STAR_BLOCK_START=5,ATNState.TOKEN_START=6,ATNState.RULE_STOP=7,ATNState.BLOCK_END=8,ATNState.STAR_LOOP_BACK=9,ATNState.STAR_LOOP_ENTRY=10,ATNState.PLUS_LOOP_BACK=11,ATNState.LOOP_END=12,ATNState.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"],ATNState.INVALID_STATE_NUMBER=-1,ATNState.prototype.toString=function(){return this.stateNumber},ATNState.prototype.equals=function(e){return e instanceof ATNState&&this.stateNumber===e.stateNumber},ATNState.prototype.isNonGreedyExitState=function(){return!1},ATNState.prototype.addTransition=function(e,t){void 0===t&&(t=-1),0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===t?this.transitions.push(e):this.transitions.splice(t,1,e)},BasicState.prototype=Object.create(ATNState.prototype),BasicState.prototype.constructor=BasicState,DecisionState.prototype=Object.create(ATNState.prototype),DecisionState.prototype.constructor=DecisionState,BlockStartState.prototype=Object.create(DecisionState.prototype),BlockStartState.prototype.constructor=BlockStartState,BasicBlockStartState.prototype=Object.create(BlockStartState.prototype),BasicBlockStartState.prototype.constructor=BasicBlockStartState,BlockEndState.prototype=Object.create(ATNState.prototype),BlockEndState.prototype.constructor=BlockEndState,RuleStopState.prototype=Object.create(ATNState.prototype),RuleStopState.prototype.constructor=RuleStopState,RuleStartState.prototype=Object.create(ATNState.prototype),RuleStartState.prototype.constructor=RuleStartState,PlusLoopbackState.prototype=Object.create(DecisionState.prototype),PlusLoopbackState.prototype.constructor=PlusLoopbackState,PlusBlockStartState.prototype=Object.create(BlockStartState.prototype),PlusBlockStartState.prototype.constructor=PlusBlockStartState,StarBlockStartState.prototype=Object.create(BlockStartState.prototype),StarBlockStartState.prototype.constructor=StarBlockStartState,StarLoopbackState.prototype=Object.create(ATNState.prototype),StarLoopbackState.prototype.constructor=StarLoopbackState,StarLoopEntryState.prototype=Object.create(DecisionState.prototype),StarLoopEntryState.prototype.constructor=StarLoopEntryState,LoopEndState.prototype=Object.create(ATNState.prototype),LoopEndState.prototype.constructor=LoopEndState,TokensStartState.prototype=Object.create(DecisionState.prototype),TokensStartState.prototype.constructor=TokensStartState,t.ATNState=ATNState,t.BasicState=BasicState,t.DecisionState=DecisionState,t.BlockStartState=BlockStartState,t.BlockEndState=BlockEndState,t.LoopEndState=LoopEndState,t.RuleStartState=RuleStartState,t.RuleStopState=RuleStopState,t.TokensStartState=TokensStartState,t.PlusLoopbackState=PlusLoopbackState,t.StarLoopbackState=StarLoopbackState,t.StarLoopEntryState=StarLoopEntryState,t.PlusBlockStartState=PlusBlockStartState,t.StarBlockStartState=StarBlockStartState,t.BasicBlockStartState=BasicBlockStartState},1463:(e,t)=>{function ATNType(){}ATNType.LEXER=0,ATNType.PARSER=1,t.ATNType=ATNType},5145:(e,t,n)=>{var i=n(5319).Token,o=n(4412).Lexer,a=n(3600).ATN,s=n(1332).ATNSimulator,c=n(2603).DFAState,l=(n(8254).ATNConfigSet,n(8254).OrderedATNConfigSet),p=n(8758).PredictionContext,h=n(8758).SingletonPredictionContext,d=n(9215).RuleStopState,f=n(3864).LexerATNConfig,g=n(5099).Transition,x=n(5934).LexerActionExecutor,m=n(2874).LexerNoViableAltException;function resetSimState(e){e.index=-1,e.line=0,e.column=-1,e.dfaState=null}function SimState(){return resetSimState(this),this}function LexerATNSimulator(e,t,n,i){return s.call(this,t,i),this.decisionToDFA=n,this.recog=e,this.startIndex=-1,this.line=1,this.column=0,this.mode=o.DEFAULT_MODE,this.prevAccept=new SimState,this}SimState.prototype.reset=function(){resetSimState(this)},LexerATNSimulator.prototype=Object.create(s.prototype),LexerATNSimulator.prototype.constructor=LexerATNSimulator,LexerATNSimulator.debug=!1,LexerATNSimulator.dfa_debug=!1,LexerATNSimulator.MIN_DFA_EDGE=0,LexerATNSimulator.MAX_DFA_EDGE=127,LexerATNSimulator.match_calls=0,LexerATNSimulator.prototype.copyState=function(e){this.column=e.column,this.line=e.line,this.mode=e.mode,this.startIndex=e.startIndex},LexerATNSimulator.prototype.match=function(e,t){this.match_calls+=1,this.mode=t;var n=e.mark();try{this.startIndex=e.index,this.prevAccept.reset();var i=this.decisionToDFA[t];return null===i.s0?this.matchATN(e):this.execATN(e,i.s0)}finally{e.release(n)}},LexerATNSimulator.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=o.DEFAULT_MODE},LexerATNSimulator.prototype.matchATN=function(e){var t=this.atn.modeToStartState[this.mode];LexerATNSimulator.debug&&console.log("matchATN mode "+this.mode+" start: "+t);var n=this.mode,i=this.computeStartState(e,t),o=i.hasSemanticContext;i.hasSemanticContext=!1;var a=this.addDFAState(i);o||(this.decisionToDFA[this.mode].s0=a);var s=this.execATN(e,a);return LexerATNSimulator.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),s},LexerATNSimulator.prototype.execATN=function(e,t){LexerATNSimulator.debug&&console.log("start state closure="+t.configs),t.isAcceptState&&this.captureSimState(this.prevAccept,e,t);for(var n=e.LA(1),o=t;;){LexerATNSimulator.debug&&console.log("execATN loop starting closure: "+o.configs);var a=this.getExistingTargetState(o,n);if(null===a&&(a=this.computeTargetState(e,o,n)),a===s.ERROR)break;if(n!==i.EOF&&this.consume(e),a.isAcceptState&&(this.captureSimState(this.prevAccept,e,a),n===i.EOF))break;n=e.LA(1),o=a}return this.failOrAccept(this.prevAccept,e,o.configs,n)},LexerATNSimulator.prototype.getExistingTargetState=function(e,t){if(null===e.edges||t<LexerATNSimulator.MIN_DFA_EDGE||t>LexerATNSimulator.MAX_DFA_EDGE)return null;var n=e.edges[t-LexerATNSimulator.MIN_DFA_EDGE];return void 0===n&&(n=null),LexerATNSimulator.debug&&null!==n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n},LexerATNSimulator.prototype.computeTargetState=function(e,t,n){var i=new l;return this.getReachableConfigSet(e,t.configs,i,n),0===i.items.length?(i.hasSemanticContext||this.addDFAEdge(t,n,s.ERROR),s.ERROR):this.addDFAEdge(t,n,null,i)},LexerATNSimulator.prototype.failOrAccept=function(e,t,n,o){if(null!==this.prevAccept.dfaState){var a=e.dfaState.lexerActionExecutor;return this.accept(t,a,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(o===i.EOF&&t.index===this.startIndex)return i.EOF;throw new m(this.recog,t,this.startIndex,n)},LexerATNSimulator.prototype.getReachableConfigSet=function(e,t,n,o){for(var s=a.INVALID_ALT_NUMBER,c=0;c<t.items.length;c++){var l=t.items[c],p=l.alt===s;if(!p||!l.passedThroughNonGreedyDecision){LexerATNSimulator.debug&&console.log("testing %s at %s\n",this.getTokenName(o),l.toString(this.recog,!0));for(var h=0;h<l.state.transitions.length;h++){var d=l.state.transitions[h],g=this.getReachableTarget(d,o);if(null!==g){var x=l.lexerActionExecutor;null!==x&&(x=x.fixOffsetBeforeMatch(e.index-this.startIndex));var m=o===i.EOF,y=new f({state:g,lexerActionExecutor:x},l);this.closure(e,y,n,p,!0,m)&&(s=l.alt)}}}}},LexerATNSimulator.prototype.accept=function(e,t,n,i,o,a){LexerATNSimulator.debug&&console.log("ACTION %s\n",t),e.seek(i),this.line=o,this.column=a,null!==t&&null!==this.recog&&t.execute(this.recog,e,n)},LexerATNSimulator.prototype.getReachableTarget=function(e,t){return e.matches(t,0,o.MAX_CHAR_VALUE)?e.target:null},LexerATNSimulator.prototype.computeStartState=function(e,t){for(var n=p.EMPTY,i=new l,o=0;o<t.transitions.length;o++){var a=t.transitions[o].target,s=new f({state:a,alt:o+1,context:n},null);this.closure(e,s,i,!1,!1,!1)}return i},LexerATNSimulator.prototype.closure=function(e,t,n,i,o,a){var s=null;if(LexerATNSimulator.debug&&console.log("closure("+t.toString(this.recog,!0)+")"),t.state instanceof d){if(LexerATNSimulator.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[t.state.ruleIndex],t):console.log("closure at rule stop %s\n",t)),null===t.context||t.context.hasEmptyPath()){if(null===t.context||t.context.isEmpty())return n.add(t),!0;n.add(new f({state:t.state,context:p.EMPTY},t)),i=!0}if(null!==t.context&&!t.context.isEmpty())for(var c=0;c<t.context.length;c++)if(t.context.getReturnState(c)!==p.EMPTY_RETURN_STATE){var l=t.context.getParent(c),h=this.atn.states[t.context.getReturnState(c)];s=new f({state:h,context:l},t),i=this.closure(e,s,n,i,o,a)}return i}t.state.epsilonOnlyTransitions||i&&t.passedThroughNonGreedyDecision||n.add(t);for(var g=0;g<t.state.transitions.length;g++){var x=t.state.transitions[g];null!==(s=this.getEpsilonTarget(e,t,x,n,o,a))&&(i=this.closure(e,s,n,i,o,a))}return i},LexerATNSimulator.prototype.getEpsilonTarget=function(e,t,n,a,s,c){var l=null;if(n.serializationType===g.RULE){var p=h.create(t.context,n.followState.stateNumber);l=new f({state:n.target,context:p},t)}else{if(n.serializationType===g.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===g.PREDICATE)LexerATNSimulator.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),a.hasSemanticContext=!0,this.evaluatePredicate(e,n.ruleIndex,n.predIndex,s)&&(l=new f({state:n.target},t));else if(n.serializationType===g.ACTION)if(null===t.context||t.context.hasEmptyPath()){var d=x.append(t.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);l=new f({state:n.target,lexerActionExecutor:d},t)}else l=new f({state:n.target},t);else n.serializationType===g.EPSILON?l=new f({state:n.target},t):n.serializationType!==g.ATOM&&n.serializationType!==g.RANGE&&n.serializationType!==g.SET||c&&n.matches(i.EOF,0,o.MAX_CHAR_VALUE)&&(l=new f({state:n.target},t))}return l},LexerATNSimulator.prototype.evaluatePredicate=function(e,t,n,i){if(null===this.recog)return!0;if(!i)return this.recog.sempred(null,t,n);var o=this.column,a=this.line,s=e.index,c=e.mark();try{return this.consume(e),this.recog.sempred(null,t,n)}finally{this.column=o,this.line=a,e.seek(s),e.release(c)}},LexerATNSimulator.prototype.captureSimState=function(e,t,n){e.index=t.index,e.line=this.line,e.column=this.column,e.dfaState=n},LexerATNSimulator.prototype.addDFAEdge=function(e,t,n,i){if(void 0===n&&(n=null),void 0===i&&(i=null),null===n&&null!==i){var o=i.hasSemanticContext;if(i.hasSemanticContext=!1,n=this.addDFAState(i),o)return n}return t<LexerATNSimulator.MIN_DFA_EDGE||t>LexerATNSimulator.MAX_DFA_EDGE||(LexerATNSimulator.debug&&console.log("EDGE "+e+" -> "+n+" upon "+t),null===e.edges&&(e.edges=[]),e.edges[t-LexerATNSimulator.MIN_DFA_EDGE]=n),n},LexerATNSimulator.prototype.addDFAState=function(e){for(var t=new c(null,e),n=null,i=0;i<e.items.length;i++){var o=e.items[i];if(o.state instanceof d){n=o;break}}null!==n&&(t.isAcceptState=!0,t.lexerActionExecutor=n.lexerActionExecutor,t.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);var a=this.decisionToDFA[this.mode],s=a.states.get(t);if(null!==s)return s;var l=t;return l.stateNumber=a.states.length,e.setReadonly(!0),l.configs=e,a.states.add(l),l},LexerATNSimulator.prototype.getDFA=function(e){return this.decisionToDFA[e]},LexerATNSimulator.prototype.getText=function(e){return e.getText(this.startIndex,e.index-1)},LexerATNSimulator.prototype.consume=function(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()},LexerATNSimulator.prototype.getTokenName=function(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"},t.LexerATNSimulator=LexerATNSimulator},7653:(e,t)=>{function LexerActionType(){}function LexerAction(e){return this.actionType=e,this.isPositionDependent=!1,this}function LexerSkipAction(){return LexerAction.call(this,LexerActionType.SKIP),this}function LexerTypeAction(e){return LexerAction.call(this,LexerActionType.TYPE),this.type=e,this}function LexerPushModeAction(e){return LexerAction.call(this,LexerActionType.PUSH_MODE),this.mode=e,this}function LexerPopModeAction(){return LexerAction.call(this,LexerActionType.POP_MODE),this}function LexerMoreAction(){return LexerAction.call(this,LexerActionType.MORE),this}function LexerModeAction(e){return LexerAction.call(this,LexerActionType.MODE),this.mode=e,this}function LexerCustomAction(e,t){return LexerAction.call(this,LexerActionType.CUSTOM),this.ruleIndex=e,this.actionIndex=t,this.isPositionDependent=!0,this}function LexerChannelAction(e){return LexerAction.call(this,LexerActionType.CHANNEL),this.channel=e,this}function LexerIndexedCustomAction(e,t){return LexerAction.call(this,t.actionType),this.offset=e,this.action=t,this.isPositionDependent=!0,this}LexerActionType.CHANNEL=0,LexerActionType.CUSTOM=1,LexerActionType.MODE=2,LexerActionType.MORE=3,LexerActionType.POP_MODE=4,LexerActionType.PUSH_MODE=5,LexerActionType.SKIP=6,LexerActionType.TYPE=7,LexerAction.prototype.hashCode=function(){var e=new Hash;return this.updateHashCode(e),e.finish()},LexerAction.prototype.updateHashCode=function(e){e.update(this.actionType)},LexerAction.prototype.equals=function(e){return this===e},LexerSkipAction.prototype=Object.create(LexerAction.prototype),LexerSkipAction.prototype.constructor=LexerSkipAction,LexerSkipAction.INSTANCE=new LexerSkipAction,LexerSkipAction.prototype.execute=function(e){e.skip()},LexerSkipAction.prototype.toString=function(){return"skip"},LexerTypeAction.prototype=Object.create(LexerAction.prototype),LexerTypeAction.prototype.constructor=LexerTypeAction,LexerTypeAction.prototype.execute=function(e){e.type=this.type},LexerTypeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.type)},LexerTypeAction.prototype.equals=function(e){return this===e||e instanceof LexerTypeAction&&this.type===e.type},LexerTypeAction.prototype.toString=function(){return"type("+this.type+")"},LexerPushModeAction.prototype=Object.create(LexerAction.prototype),LexerPushModeAction.prototype.constructor=LexerPushModeAction,LexerPushModeAction.prototype.execute=function(e){e.pushMode(this.mode)},LexerPushModeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},LexerPushModeAction.prototype.equals=function(e){return this===e||e instanceof LexerPushModeAction&&this.mode===e.mode},LexerPushModeAction.prototype.toString=function(){return"pushMode("+this.mode+")"},LexerPopModeAction.prototype=Object.create(LexerAction.prototype),LexerPopModeAction.prototype.constructor=LexerPopModeAction,LexerPopModeAction.INSTANCE=new LexerPopModeAction,LexerPopModeAction.prototype.execute=function(e){e.popMode()},LexerPopModeAction.prototype.toString=function(){return"popMode"},LexerMoreAction.prototype=Object.create(LexerAction.prototype),LexerMoreAction.prototype.constructor=LexerMoreAction,LexerMoreAction.INSTANCE=new LexerMoreAction,LexerMoreAction.prototype.execute=function(e){e.more()},LexerMoreAction.prototype.toString=function(){return"more"},LexerModeAction.prototype=Object.create(LexerAction.prototype),LexerModeAction.prototype.constructor=LexerModeAction,LexerModeAction.prototype.execute=function(e){e.mode(this.mode)},LexerModeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},LexerModeAction.prototype.equals=function(e){return this===e||e instanceof LexerModeAction&&this.mode===e.mode},LexerModeAction.prototype.toString=function(){return"mode("+this.mode+")"},LexerCustomAction.prototype=Object.create(LexerAction.prototype),LexerCustomAction.prototype.constructor=LexerCustomAction,LexerCustomAction.prototype.execute=function(e){e.action(null,this.ruleIndex,this.actionIndex)},LexerCustomAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.ruleIndex,this.actionIndex)},LexerCustomAction.prototype.equals=function(e){return this===e||e instanceof LexerCustomAction&&(this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex)},LexerChannelAction.prototype=Object.create(LexerAction.prototype),LexerChannelAction.prototype.constructor=LexerChannelAction,LexerChannelAction.prototype.execute=function(e){e._channel=this.channel},LexerChannelAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.channel)},LexerChannelAction.prototype.equals=function(e){return this===e||e instanceof LexerChannelAction&&this.channel===e.channel},LexerChannelAction.prototype.toString=function(){return"channel("+this.channel+")"},LexerIndexedCustomAction.prototype=Object.create(LexerAction.prototype),LexerIndexedCustomAction.prototype.constructor=LexerIndexedCustomAction,LexerIndexedCustomAction.prototype.execute=function(e){this.action.execute(e)},LexerIndexedCustomAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.offset,this.action)},LexerIndexedCustomAction.prototype.equals=function(e){return this===e||e instanceof LexerIndexedCustomAction&&(this.offset===e.offset&&this.action===e.action)},t.LexerActionType=LexerActionType,t.LexerSkipAction=LexerSkipAction,t.LexerChannelAction=LexerChannelAction,t.LexerCustomAction=LexerCustomAction,t.LexerIndexedCustomAction=LexerIndexedCustomAction,t.LexerMoreAction=LexerMoreAction,t.LexerTypeAction=LexerTypeAction,t.LexerPushModeAction=LexerPushModeAction,t.LexerPopModeAction=LexerPopModeAction,t.LexerModeAction=LexerModeAction},5934:(e,t,n)=>{var i=n(8561).hashStuff,o=n(7653).LexerIndexedCustomAction;function LexerActionExecutor(e){return this.lexerActions=null===e?[]:e,this.cachedHashCode=i(e),this}LexerActionExecutor.append=function(e,t){return new LexerActionExecutor(null===e?[t]:e.lexerActions.concat([t]))},LexerActionExecutor.prototype.fixOffsetBeforeMatch=function(e){for(var t=null,n=0;n<this.lexerActions.length;n++)!this.lexerActions[n].isPositionDependent||this.lexerActions[n]instanceof o||(null===t&&(t=this.lexerActions.concat([])),t[n]=new o(e,this.lexerActions[n]));return null===t?this:new LexerActionExecutor(t)},LexerActionExecutor.prototype.execute=function(e,t,n){var i=!1,a=t.index;try{for(var s=0;s<this.lexerActions.length;s++){var c=this.lexerActions[s];if(c instanceof o){var l=c.offset;t.seek(n+l),c=c.action,i=n+l!==a}else c.isPositionDependent&&(t.seek(a),i=!1);c.execute(e)}}finally{i&&t.seek(a)}},LexerActionExecutor.prototype.hashCode=function(){return this.cachedHashCode},LexerActionExecutor.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},LexerActionExecutor.prototype.equals=function(e){if(this===e)return!0;if(e instanceof LexerActionExecutor){if(this.cachedHashCode!=e.cachedHashCode)return!1;if(this.lexerActions.length!=e.lexerActions.length)return!1;for(var t=this.lexerActions.length,n=0;n<t;++n)if(!this.lexerActions[n].equals(e.lexerActions[n]))return!1;return!0}return!1},t.LexerActionExecutor=LexerActionExecutor},1807:(e,t,n)=>{var i=n(8561),o=i.Set,a=i.BitSet,s=i.DoubleDict,c=n(3600).ATN,l=n(9215).ATNState,p=n(3864).ATNConfig,h=n(8254).ATNConfigSet,d=n(5319).Token,f=n(2603).DFAState,g=n(2603).PredPrediction,x=n(1332).ATNSimulator,m=n(8895).PredictionMode,y=n(8738).RuleContext,S=(n(5082).ParserRuleContext,n(2105).SemanticContext),T=(n(9215).StarLoopEntryState,n(9215).RuleStopState),v=n(8758).PredictionContext,C=n(4088).Interval,A=n(5099),E=A.Transition,k=A.SetTransition,b=A.NotSetTransition,P=A.RuleTransition,L=A.ActionTransition,_=n(2874).NoViableAltException,N=n(8758).SingletonPredictionContext,I=n(8758).predictionContextFromRuleContext;function ParserATNSimulator(e,t,n,i){return x.call(this,t,i),this.parser=e,this.decisionToDFA=n,this.predictionMode=m.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}ParserATNSimulator.prototype=Object.create(x.prototype),ParserATNSimulator.prototype.constructor=ParserATNSimulator,ParserATNSimulator.prototype.debug=!1,ParserATNSimulator.prototype.debug_closure=!1,ParserATNSimulator.prototype.debug_add=!1,ParserATNSimulator.prototype.debug_list_atn_decisions=!1,ParserATNSimulator.prototype.dfa_debug=!1,ParserATNSimulator.prototype.retry_debug=!1,ParserATNSimulator.prototype.reset=function(){},ParserATNSimulator.prototype.adaptivePredict=function(e,t,n){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+t+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column),this._input=e,this._startIndex=e.index,this._outerContext=n;var i=this.decisionToDFA[t];this._dfa=i;var o=e.mark(),a=e.index;try{var s;if(null===(s=i.precedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0)){null===n&&(n=y.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this.parser.ruleNames));var c=this.computeStartState(i.atnStartState,y.EMPTY,!1);i.precedenceDfa?(i.s0.configs=c,c=this.applyPrecedenceFilter(c),s=this.addDFAState(i,new f(null,c)),i.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(i,new f(null,c)),i.s0=s)}var l=this.execATN(i,s,e,a,n);return this.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.literalNames)),l}finally{this._dfa=null,this.mergeCache=null,e.seek(a),e.release(o)}},ParserATNSimulator.prototype.execATN=function(e,t,n,i,o){var a;(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);var s=t;this.debug&&console.log("s0 = "+t);for(var l=n.LA(1);;){var p=this.getExistingTargetState(s,l);if(null===p&&(p=this.computeTargetState(e,s,l)),p===x.ERROR){var h=this.noViableAlt(n,o,s.configs,i);if(n.seek(i),(a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s.configs,o))!==c.INVALID_ALT_NUMBER)return a;throw h}if(p.requiresFullContext&&this.predictionMode!==m.SLL){var f=null;if(null!==p.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var g=n.index;if(g!==i&&n.seek(i),1===(f=this.evalSemanticContext(p.predicates,o,!0)).length)return this.debug&&console.log("Full LL avoided"),f.minValue();g!==i&&n.seek(g)}this.dfa_debug&&console.log("ctx sensitive state "+o+" in "+p);var y=this.computeStartState(e.atnStartState,o,!0);return this.reportAttemptingFullContext(e,f,p.configs,i,n.index),a=this.execATNWithFullContext(e,p,y,n,i,o)}if(p.isAcceptState){if(null===p.predicates)return p.prediction;var S=n.index;n.seek(i);var T=this.evalSemanticContext(p.predicates,o,!0);if(0===T.length)throw this.noViableAlt(n,o,p.configs,i);return 1===T.length||this.reportAmbiguity(e,p,i,S,!1,T,p.configs),T.minValue()}s=p,l!==d.EOF&&(n.consume(),l=n.LA(1))}},ParserATNSimulator.prototype.getExistingTargetState=function(e,t){var n=e.edges;return null===n?null:n[t+1]||null},ParserATNSimulator.prototype.computeTargetState=function(e,t,n){var o=this.computeReachSet(t.configs,n,!1);if(null===o)return this.addDFAEdge(e,t,n,x.ERROR),x.ERROR;var a=new f(null,o),s=this.getUniqueAlt(o);if(this.debug){var l=m.getConflictingAltSubsets(o);console.log("SLL altSubSets="+i.arrayToString(l)+", previous="+t.configs+", configs="+o+", predict="+s+", allSubsetsConflict="+m.allSubsetsConflict(l)+", conflictingAlts="+this.getConflictingAlts(o))}return s!==c.INVALID_ALT_NUMBER?(a.isAcceptState=!0,a.configs.uniqueAlt=s,a.prediction=s):m.hasSLLConflictTerminatingPrediction(this.predictionMode,o)&&(a.configs.conflictingAlts=this.getConflictingAlts(o),a.requiresFullContext=!0,a.isAcceptState=!0,a.prediction=a.configs.conflictingAlts.minValue()),a.isAcceptState&&a.configs.hasSemanticContext&&(this.predicateDFAState(a,this.atn.getDecisionState(e.decision)),null!==a.predicates&&(a.prediction=c.INVALID_ALT_NUMBER)),a=this.addDFAEdge(e,t,n,a)},ParserATNSimulator.prototype.predicateDFAState=function(e,t){var n=t.transitions.length,i=this.getConflictingAltsOrUniqueAlt(e.configs),o=this.getPredsForAmbigAlts(i,e.configs,n);null!==o?(e.predicates=this.getPredicatePredictions(i,o),e.prediction=c.INVALID_ALT_NUMBER):e.prediction=i.minValue()},ParserATNSimulator.prototype.execATNWithFullContext=function(e,t,n,i,o,a){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+n);var s=!1,l=null,p=n;i.seek(o);for(var h=i.LA(1),f=-1;;){if(null===(l=this.computeReachSet(p,h,true))){var g=this.noViableAlt(i,a,p,o);i.seek(o);var x=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(p,a);if(x!==c.INVALID_ALT_NUMBER)return x;throw g}var y=m.getConflictingAltSubsets(l);if(this.debug&&console.log("LL altSubSets="+y+", predict="+m.getUniqueAlt(y)+", resolvesToJustOneViableAlt="+m.resolvesToJustOneViableAlt(y)),l.uniqueAlt=this.getUniqueAlt(l),l.uniqueAlt!==c.INVALID_ALT_NUMBER){f=l.uniqueAlt;break}if(this.predictionMode!==m.LL_EXACT_AMBIG_DETECTION){if((f=m.resolvesToJustOneViableAlt(y))!==c.INVALID_ALT_NUMBER)break}else if(m.allSubsetsConflict(y)&&m.allSubsetsEqual(y)){s=!0,f=m.getSingleViableAlt(y);break}p=l,h!==d.EOF&&(i.consume(),h=i.LA(1))}return l.uniqueAlt!==c.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,f,l,o,i.index),f):(this.reportAmbiguity(e,t,o,i.index,s,null,l),f)},ParserATNSimulator.prototype.computeReachSet=function(e,t,n){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new s);for(var i=new h(n),a=null,l=0;l<e.items.length;l++){var f=e.items[l];if(this.debug_add&&console.log("testing "+this.getTokenName(t)+" at "+f),f.state instanceof T)(n||t===d.EOF)&&(null===a&&(a=[]),a.push(f),this.debug_add&&console.log("added "+f+" to skippedStopStates"));else for(var g=0;g<f.state.transitions.length;g++){var x=f.state.transitions[g],y=this.getReachableTarget(x,t);if(null!==y){var S=new p({state:y},f);i.add(S,this.mergeCache),this.debug_add&&console.log("added "+S+" to intermediate")}}}var v=null;if(null===a&&t!==d.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==c.INVALID_ALT_NUMBER)&&(v=i),null===v){v=new h(n);for(var C=new o,A=t===d.EOF,E=0;E<i.items.length;E++)this.closure(i.items[E],v,C,!1,n,A)}if(t===d.EOF&&(v=this.removeAllConfigsNotInRuleStopState(v,v===i)),!(null===a||n&&m.hasConfigInRuleStopState(v)))for(var k=0;k<a.length;k++)v.add(a[k],this.mergeCache);return 0===v.items.length?null:v},ParserATNSimulator.prototype.removeAllConfigsNotInRuleStopState=function(e,t){if(m.allConfigsInRuleStopStates(e))return e;for(var n=new h(e.fullCtx),i=0;i<e.items.length;i++){var o=e.items[i];if(o.state instanceof T)n.add(o,this.mergeCache);else if(t&&o.state.epsilonOnlyTransitions)if(this.atn.nextTokens(o.state).contains(d.EPSILON)){var a=this.atn.ruleToStopState[o.state.ruleIndex];n.add(new p({state:a},o),this.mergeCache)}}return n},ParserATNSimulator.prototype.computeStartState=function(e,t,n){for(var i=I(this.atn,t),a=new h(n),s=0;s<e.transitions.length;s++){var c=e.transitions[s].target,l=new p({state:c,alt:s+1,context:i},null),d=new o;this.closure(l,a,d,!0,n,!1)}return a},ParserATNSimulator.prototype.applyPrecedenceFilter=function(e){for(var t,n=[],i=new h(e.fullCtx),o=0;o<e.items.length;o++)if(1===(t=e.items[o]).alt){var a=t.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==a&&(n[t.state.stateNumber]=t.context,a!==t.semanticContext?i.add(new p({semanticContext:a},t),this.mergeCache):i.add(t,this.mergeCache))}for(o=0;o<e.items.length;o++)if(1!==(t=e.items[o]).alt){if(!t.precedenceFilterSuppressed){var s=n[t.state.stateNumber]||null;if(null!==s&&s.equals(t.context))continue}i.add(t,this.mergeCache)}return i},ParserATNSimulator.prototype.getReachableTarget=function(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null},ParserATNSimulator.prototype.getPredsForAmbigAlts=function(e,t,n){for(var o=[],a=0;a<t.items.length;a++){var s=t.items[a];e.contains(s.alt)&&(o[s.alt]=S.orContext(o[s.alt]||null,s.semanticContext))}var c=0;for(a=1;a<n+1;a++){var l=o[a]||null;null===l?o[a]=S.NONE:l!==S.NONE&&(c+=1)}return 0===c&&(o=null),this.debug&&console.log("getPredsForAmbigAlts result "+i.arrayToString(o)),o},ParserATNSimulator.prototype.getPredicatePredictions=function(e,t){for(var n=[],i=!1,o=1;o<t.length;o++){var a=t[o];null!==e&&e.contains(o)&&n.push(new g(a,o)),a!==S.NONE&&(i=!0)}return i?n:null},ParserATNSimulator.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule=function(e,t){var n=this.splitAccordingToSemanticValidity(e,t),i=n[0],o=n[1],a=this.getAltThatFinishedDecisionEntryRule(i);return a!==c.INVALID_ALT_NUMBER||o.items.length>0&&(a=this.getAltThatFinishedDecisionEntryRule(o))!==c.INVALID_ALT_NUMBER?a:c.INVALID_ALT_NUMBER},ParserATNSimulator.prototype.getAltThatFinishedDecisionEntryRule=function(e){for(var t=[],n=0;n<e.items.length;n++){var i=e.items[n];(i.reachesIntoOuterContext>0||i.state instanceof T&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt)}return 0===t.length?c.INVALID_ALT_NUMBER:Math.min.apply(null,t)},ParserATNSimulator.prototype.splitAccordingToSemanticValidity=function(e,t){for(var n=new h(e.fullCtx),i=new h(e.fullCtx),o=0;o<e.items.length;o++){var a=e.items[o];if(a.semanticContext!==S.NONE)a.semanticContext.evaluate(this.parser,t)?n.add(a):i.add(a);else n.add(a)}return[n,i]},ParserATNSimulator.prototype.evalSemanticContext=function(e,t,n){for(var i=new a,o=0;o<e.length;o++){var s=e[o];if(s.pred!==S.NONE){var c=s.pred.evaluate(this.parser,t);if((this.debug||this.dfa_debug)&&console.log("eval pred "+s+"="+c),c&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+s.alt),i.add(s.alt),!n))break}else if(i.add(s.alt),!n)break}return i},ParserATNSimulator.prototype.closure=function(e,t,n,i,o,a){this.closureCheckingStopState(e,t,n,i,o,0,a)},ParserATNSimulator.prototype.closureCheckingStopState=function(e,t,n,i,o,a,s){if((this.debug||this.debug_closure)&&(console.log("closure("+e.toString(this.parser,!0)+")"),e.reachesIntoOuterContext>50))throw"problem";if(e.state instanceof T){if(!e.context.isEmpty()){for(var c=0;c<e.context.length;c++)if(e.context.getReturnState(c)!==v.EMPTY_RETURN_STATE){var l=this.atn.states[e.context.getReturnState(c)],h=e.context.getParent(c),d={state:l,alt:e.alt,context:h,semanticContext:e.semanticContext},f=new p(d,null);f.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(f,t,n,i,o,a-1,s)}else{if(o){t.add(new p({state:e.state,context:v.EMPTY},e),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,t,n,i,o,a,s)}return}if(o)return void t.add(e,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,t,n,i,o,a,s)},ParserATNSimulator.prototype.closure_=function(e,t,n,i,o,a,s){var c=e.state;c.epsilonOnlyTransitions||t.add(e,this.mergeCache);for(var l=0;l<c.transitions.length;l++)if(0!=l||!this.canDropLoopEntryEdgeInLeftRecursiveRule(e)){var p=c.transitions[l],h=i&&!(p instanceof L),d=this.getEpsilonTarget(e,p,h,0===a,o,s);if(null!==d){var f=a;if(e.state instanceof T){if(null!==this._dfa&&this._dfa.precedenceDfa&&p.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(d.precedenceFilterSuppressed=!0),d.reachesIntoOuterContext+=1,n.add(d)!==d)continue;t.dipsIntoOuterContext=!0,f-=1,this.debug&&console.log("dips into outer ctx: "+d)}else{if(!p.isEpsilon&&n.add(d)!==d)continue;p instanceof P&&f>=0&&(f+=1)}this.closureCheckingStopState(d,t,n,h,o,f,s)}}},ParserATNSimulator.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(e){var t=e.state;if(t.stateType!=l.STAR_LOOP_ENTRY)return!1;if(t.stateType!=l.STAR_LOOP_ENTRY||!t.isPrecedenceDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;for(var n=e.context.length,i=0;i<n;i++){if((s=this.atn.states[e.context.getReturnState(i)]).ruleIndex!=t.ruleIndex)return!1}var o=t.transitions[0].target.endState.stateNumber,a=this.atn.states[o];for(i=0;i<n;i++){var s,c=e.context.getReturnState(i);if(1!=(s=this.atn.states[c]).transitions.length||!s.transitions[0].isEpsilon)return!1;var p=s.transitions[0].target;if((s.stateType!=l.BLOCK_END||p!=t)&&(s!=a&&p!=a&&(p.stateType!=l.BLOCK_END||1!=p.transitions.length||!p.transitions[0].isEpsilon||p.transitions[0].target!=t)))return!1}return!0},ParserATNSimulator.prototype.getRuleName=function(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"},ParserATNSimulator.prototype.getEpsilonTarget=function(e,t,n,i,o,a){switch(t.serializationType){case E.RULE:return this.ruleTransition(e,t);case E.PRECEDENCE:return this.precedenceTransition(e,t,n,i,o);case E.PREDICATE:return this.predTransition(e,t,n,i,o);case E.ACTION:return this.actionTransition(e,t);case E.EPSILON:return new p({state:t.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&t.matches(d.EOF,0,1)?new p({state:t.target},e):null;default:return null}},ParserATNSimulator.prototype.actionTransition=function(e,t){if(this.debug){var n=-1==t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+n)}return new p({state:t.target},e)},ParserATNSimulator.prototype.precedenceTransition=function(e,t,n,o,a){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+i.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&o)if(a){var c=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(c),l&&(s=new p({state:t.target},e))}else{var h=S.andContext(e.semanticContext,t.getPredicate());s=new p({state:t.target,semanticContext:h},e)}else s=new p({state:t.target},e);return this.debug&&console.log("config from pred transition="+s),s},ParserATNSimulator.prototype.predTransition=function(e,t,n,o,a){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.ruleIndex+":"+t.predIndex+", ctx dependent="+t.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+i.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&(t.isCtxDependent&&o||!t.isCtxDependent))if(a){var c=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(c),l&&(s=new p({state:t.target},e))}else{var h=S.andContext(e.semanticContext,t.getPredicate());s=new p({state:t.target,semanticContext:h},e)}else s=new p({state:t.target},e);return this.debug&&console.log("config from pred transition="+s),s},ParserATNSimulator.prototype.ruleTransition=function(e,t){this.debug&&console.log("CALL rule "+this.getRuleName(t.target.ruleIndex)+", ctx="+e.context);var n=t.followState,i=N.create(e.context,n.stateNumber);return new p({state:t.target,context:i},e)},ParserATNSimulator.prototype.getConflictingAlts=function(e){var t=m.getConflictingAltSubsets(e);return m.getAlts(t)},ParserATNSimulator.prototype.getConflictingAltsOrUniqueAlt=function(e){var t=null;return e.uniqueAlt!==c.INVALID_ALT_NUMBER?(t=new a).add(e.uniqueAlt):t=e.conflictingAlts,t},ParserATNSimulator.prototype.getTokenName=function(e){if(e===d.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e},ParserATNSimulator.prototype.getLookaheadName=function(e){return this.getTokenName(e.LA(1))},ParserATNSimulator.prototype.dumpDeadEndConfigs=function(e){console.log("dead end configs: ");for(var t=e.getDeadEndConfigs(),n=0;n<t.length;n++){var i=t[n],o="no edges";if(i.state.transitions.length>0){var a=i.state.transitions[0];if(a instanceof AtomTransition)o="Atom "+this.getTokenName(a.label);else if(a instanceof k){o=(a instanceof b?"~":"")+"Set "+a.set}}console.error(i.toString(this.parser,!0)+":"+o)}},ParserATNSimulator.prototype.noViableAlt=function(e,t,n,i){return new _(this.parser,e,e.get(i),e.LT(1),n,t)},ParserATNSimulator.prototype.getUniqueAlt=function(e){for(var t=c.INVALID_ALT_NUMBER,n=0;n<e.items.length;n++){var i=e.items[n];if(t===c.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return c.INVALID_ALT_NUMBER}return t},ParserATNSimulator.prototype.addDFAEdge=function(e,t,n,i){if(this.debug&&console.log("EDGE "+t+" -> "+i+" upon "+this.getTokenName(n)),null===i)return null;if(i=this.addDFAState(e,i),null===t||n<-1||n>this.atn.maxTokenType)return i;if(null===t.edges&&(t.edges=[]),t.edges[n+1]=i,this.debug){var o=null===this.parser?null:this.parser.literalNames,a=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+e.toString(o,a))}return i},ParserATNSimulator.prototype.addDFAState=function(e,t){if(t==x.ERROR)return t;var n=e.states.get(t);return null!==n?n:(t.stateNumber=e.states.length,t.configs.readOnly||(t.configs.optimizeConfigs(this),t.configs.setReadonly(!0)),e.states.add(t),this.debug&&console.log("adding new DFA state: "+t),t)},ParserATNSimulator.prototype.reportAttemptingFullContext=function(e,t,n,i,o){if(this.debug||this.retry_debug){var a=new C(i,o+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,e,i,o,t,n)},ParserATNSimulator.prototype.reportContextSensitivity=function(e,t,n,i,o){if(this.debug||this.retry_debug){var a=new C(i,o+1);console.log("reportContextSensitivity decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,e,i,o,t,n)},ParserATNSimulator.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){if(this.debug||this.retry_debug){var c=new C(n,i+1);console.log("reportAmbiguity "+a+":"+s+", input="+this.parser.getTokenStream().getText(c))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,e,n,i,o,a,s)},t.ParserATNSimulator=ParserATNSimulator},8895:(e,t,n)=>{n(8561).Set;var i=n(8561).Map,o=n(8561).BitSet,a=n(8561).AltDict,s=n(3600).ATN,c=n(9215).RuleStopState,l=n(8254).ATNConfigSet,p=n(3864).ATNConfig,h=n(2105).SemanticContext,d=(n(8561).Hash,n(8561).hashStuff);n(8561).equalArrays;function PredictionMode(){return this}PredictionMode.SLL=0,PredictionMode.LL=1,PredictionMode.LL_EXACT_AMBIG_DETECTION=2,PredictionMode.hasSLLConflictTerminatingPrediction=function(e,t){if(PredictionMode.allConfigsInRuleStopStates(t))return!0;if(e===PredictionMode.SLL&&t.hasSemanticContext){for(var n=new l,i=0;i<t.items.length;i++){var o=t.items[i];o=new p({semanticContext:h.NONE},o),n.add(o)}t=n}var a=PredictionMode.getConflictingAltSubsets(t);return PredictionMode.hasConflictingAltSet(a)&&!PredictionMode.hasStateAssociatedWithOneAlt(t)},PredictionMode.hasConfigInRuleStopState=function(e){for(var t=0;t<e.items.length;t++){if(e.items[t].state instanceof c)return!0}return!1},PredictionMode.allConfigsInRuleStopStates=function(e){for(var t=0;t<e.items.length;t++){if(!(e.items[t].state instanceof c))return!1}return!0},PredictionMode.resolvesToJustOneViableAlt=function(e){return PredictionMode.getSingleViableAlt(e)},PredictionMode.allSubsetsConflict=function(e){return!PredictionMode.hasNonConflictingAltSet(e)},PredictionMode.hasNonConflictingAltSet=function(e){for(var t=0;t<e.length;t++){if(1===e[t].length)return!0}return!1},PredictionMode.hasConflictingAltSet=function(e){for(var t=0;t<e.length;t++){if(e[t].length>1)return!0}return!1},PredictionMode.allSubsetsEqual=function(e){for(var t=null,n=0;n<e.length;n++){var i=e[n];if(null===t)t=i;else if(i!==t)return!1}return!0},PredictionMode.getUniqueAlt=function(e){var t=PredictionMode.getAlts(e);return 1===t.length?t.minValue():s.INVALID_ALT_NUMBER},PredictionMode.getAlts=function(e){var t=new o;return e.map((function(e){t.or(e)})),t},PredictionMode.getConflictingAltSubsets=function(e){var t=new i;return t.hashFunction=function(e){d(e.state.stateNumber,e.context)},t.equalsFunction=function(e,t){return e.state.stateNumber==t.state.stateNumber&&e.context.equals(t.context)},e.items.map((function(e){var n=t.get(e);null===n&&(n=new o,t.put(e,n)),n.add(e.alt)})),t.getValues()},PredictionMode.getStateToAltMap=function(e){var t=new a;return e.items.map((function(e){var n=t.get(e.state);null===n&&(n=new o,t.put(e.state,n)),n.add(e.alt)})),t},PredictionMode.hasStateAssociatedWithOneAlt=function(e){for(var t=PredictionMode.getStateToAltMap(e).values(),n=0;n<t.length;n++)if(1===t[n].length)return!0;return!1},PredictionMode.getSingleViableAlt=function(e){for(var t=null,n=0;n<e.length;n++){var i=e[n].minValue();if(null===t)t=i;else if(t!==i)return s.INVALID_ALT_NUMBER}return t},t.PredictionMode=PredictionMode},2105:(e,t,n)=>{var i=n(8561).Set,o=n(8561).Hash;function SemanticContext(){return this}function Predicate(e,t,n){return SemanticContext.call(this),this.ruleIndex=void 0===e?-1:e,this.predIndex=void 0===t?-1:t,this.isCtxDependent=void 0!==n&&n,this}function PrecedencePredicate(e){SemanticContext.call(this),this.precedence=void 0===e?0:e}function AND(e,t){SemanticContext.call(this);var n=new i;e instanceof AND?e.opnds.map((function(e){n.add(e)})):n.add(e),t instanceof AND?t.opnds.map((function(e){n.add(e)})):n.add(t);var o=PrecedencePredicate.filterPrecedencePredicates(n);if(o.length>0){var a=null;o.map((function(e){(null===a||e.precedence<a.precedence)&&(a=e)})),n.add(a)}return this.opnds=n.values(),this}function OR(e,t){SemanticContext.call(this);var n=new i;e instanceof OR?e.opnds.map((function(e){n.add(e)})):n.add(e),t instanceof OR?t.opnds.map((function(e){n.add(e)})):n.add(t);var o=PrecedencePredicate.filterPrecedencePredicates(n);if(o.length>0){var a=o.sort((function(e,t){return e.compareTo(t)})),s=a[a.length-1];n.add(s)}return this.opnds=n.values(),this}SemanticContext.prototype.hashCode=function(){var e=new o;return this.updateHashCode(e),e.finish()},SemanticContext.prototype.evaluate=function(e,t){},SemanticContext.prototype.evalPrecedence=function(e,t){return this},SemanticContext.andContext=function(e,t){if(null===e||e===SemanticContext.NONE)return t;if(null===t||t===SemanticContext.NONE)return e;var n=new AND(e,t);return 1===n.opnds.length?n.opnds[0]:n},SemanticContext.orContext=function(e,t){if(null===e)return t;if(null===t)return e;if(e===SemanticContext.NONE||t===SemanticContext.NONE)return SemanticContext.NONE;var n=new OR(e,t);return 1===n.opnds.length?n.opnds[0]:n},Predicate.prototype=Object.create(SemanticContext.prototype),Predicate.prototype.constructor=Predicate,SemanticContext.NONE=new Predicate,Predicate.prototype.evaluate=function(e,t){var n=this.isCtxDependent?t:null;return e.sempred(n,this.ruleIndex,this.predIndex)},Predicate.prototype.updateHashCode=function(e){e.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},Predicate.prototype.equals=function(e){return this===e||e instanceof Predicate&&(this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent)},Predicate.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},PrecedencePredicate.prototype=Object.create(SemanticContext.prototype),PrecedencePredicate.prototype.constructor=PrecedencePredicate,PrecedencePredicate.prototype.evaluate=function(e,t){return e.precpred(t,this.precedence)},PrecedencePredicate.prototype.evalPrecedence=function(e,t){return e.precpred(t,this.precedence)?SemanticContext.NONE:null},PrecedencePredicate.prototype.compareTo=function(e){return this.precedence-e.precedence},PrecedencePredicate.prototype.updateHashCode=function(e){e.update(31)},PrecedencePredicate.prototype.equals=function(e){return this===e||e instanceof PrecedencePredicate&&this.precedence===e.precedence},PrecedencePredicate.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},PrecedencePredicate.filterPrecedencePredicates=function(e){var t=[];return e.values().map((function(e){e instanceof PrecedencePredicate&&t.push(e)})),t},AND.prototype=Object.create(SemanticContext.prototype),AND.prototype.constructor=AND,AND.prototype.equals=function(e){return this===e||e instanceof AND&&this.opnds===e.opnds},AND.prototype.updateHashCode=function(e){e.update(this.opnds,"AND")},AND.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(e,t))return!1;return!0},AND.prototype.evalPrecedence=function(e,t){for(var n=!1,i=[],o=0;o<this.opnds.length;o++){var a=this.opnds[o],s=a.evalPrecedence(e,t);if(n|=s!==a,null===s)return null;s!==SemanticContext.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return SemanticContext.NONE;var c=null;return i.map((function(e){c=null===c?e:SemanticContext.andContext(c,e)})),c},AND.prototype.toString=function(){var e="";return this.opnds.map((function(t){e+="&& "+t.toString()})),e.length>3?e.slice(3):e},OR.prototype=Object.create(SemanticContext.prototype),OR.prototype.constructor=OR,OR.prototype.constructor=function(e){return this===e||e instanceof OR&&this.opnds===e.opnds},OR.prototype.updateHashCode=function(e){e.update(this.opnds,"OR")},OR.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(e,t))return!0;return!1},OR.prototype.evalPrecedence=function(e,t){for(var n=!1,i=[],o=0;o<this.opnds.length;o++){var a=this.opnds[o],s=a.evalPrecedence(e,t);if(n|=s!==a,s===SemanticContext.NONE)return SemanticContext.NONE;null!==s&&i.push(s)}if(!n)return this;if(0===i.length)return null;var c=null;return i.map((function(e){return e})),c},OR.prototype.toString=function(){var e="";return this.opnds.map((function(t){e+="|| "+t.toString()})),e.length>3?e.slice(3):e},t.SemanticContext=SemanticContext,t.PrecedencePredicate=PrecedencePredicate,t.Predicate=Predicate},5099:(e,t,n)=>{var i=n(5319).Token,o=(n(4088).Interval,n(4088).IntervalSet),a=n(2105).Predicate,s=n(2105).PrecedencePredicate;function Transition(e){if(null==e)throw"target cannot be null.";return this.target=e,this.isEpsilon=!1,this.label=null,this}function AtomTransition(e,t){return Transition.call(this,e),this.label_=t,this.label=this.makeLabel(),this.serializationType=Transition.ATOM,this}function RuleTransition(e,t,n,i){return Transition.call(this,e),this.ruleIndex=t,this.precedence=n,this.followState=i,this.serializationType=Transition.RULE,this.isEpsilon=!0,this}function EpsilonTransition(e,t){return Transition.call(this,e),this.serializationType=Transition.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=t,this}function RangeTransition(e,t,n){return Transition.call(this,e),this.serializationType=Transition.RANGE,this.start=t,this.stop=n,this.label=this.makeLabel(),this}function AbstractPredicateTransition(e){return Transition.call(this,e),this}function PredicateTransition(e,t,n,i){return AbstractPredicateTransition.call(this,e),this.serializationType=Transition.PREDICATE,this.ruleIndex=t,this.predIndex=n,this.isCtxDependent=i,this.isEpsilon=!0,this}function ActionTransition(e,t,n,i){return Transition.call(this,e),this.serializationType=Transition.ACTION,this.ruleIndex=t,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==i&&i,this.isEpsilon=!0,this}function SetTransition(e,t){return Transition.call(this,e),this.serializationType=Transition.SET,null!=t?this.label=t:(this.label=new o,this.label.addOne(i.INVALID_TYPE)),this}function NotSetTransition(e,t){return SetTransition.call(this,e,t),this.serializationType=Transition.NOT_SET,this}function WildcardTransition(e){return Transition.call(this,e),this.serializationType=Transition.WILDCARD,this}function PrecedencePredicateTransition(e,t){return AbstractPredicateTransition.call(this,e),this.serializationType=Transition.PRECEDENCE,this.precedence=t,this.isEpsilon=!0,this}Transition.EPSILON=1,Transition.RANGE=2,Transition.RULE=3,Transition.PREDICATE=4,Transition.ATOM=5,Transition.ACTION=6,Transition.SET=7,Transition.NOT_SET=8,Transition.WILDCARD=9,Transition.PRECEDENCE=10,Transition.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],Transition.serializationTypes={EpsilonTransition:Transition.EPSILON,RangeTransition:Transition.RANGE,RuleTransition:Transition.RULE,PredicateTransition:Transition.PREDICATE,AtomTransition:Transition.ATOM,ActionTransition:Transition.ACTION,SetTransition:Transition.SET,NotSetTransition:Transition.NOT_SET,WildcardTransition:Transition.WILDCARD,PrecedencePredicateTransition:Transition.PRECEDENCE},AtomTransition.prototype=Object.create(Transition.prototype),AtomTransition.prototype.constructor=AtomTransition,AtomTransition.prototype.makeLabel=function(){var e=new o;return e.addOne(this.label_),e},AtomTransition.prototype.matches=function(e,t,n){return this.label_===e},AtomTransition.prototype.toString=function(){return this.label_},RuleTransition.prototype=Object.create(Transition.prototype),RuleTransition.prototype.constructor=RuleTransition,RuleTransition.prototype.matches=function(e,t,n){return!1},EpsilonTransition.prototype=Object.create(Transition.prototype),EpsilonTransition.prototype.constructor=EpsilonTransition,EpsilonTransition.prototype.matches=function(e,t,n){return!1},EpsilonTransition.prototype.toString=function(){return"epsilon"},RangeTransition.prototype=Object.create(Transition.prototype),RangeTransition.prototype.constructor=RangeTransition,RangeTransition.prototype.makeLabel=function(){var e=new o;return e.addRange(this.start,this.stop),e},RangeTransition.prototype.matches=function(e,t,n){return e>=this.start&&e<=this.stop},RangeTransition.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},AbstractPredicateTransition.prototype=Object.create(Transition.prototype),AbstractPredicateTransition.prototype.constructor=AbstractPredicateTransition,PredicateTransition.prototype=Object.create(AbstractPredicateTransition.prototype),PredicateTransition.prototype.constructor=PredicateTransition,PredicateTransition.prototype.matches=function(e,t,n){return!1},PredicateTransition.prototype.getPredicate=function(){return new a(this.ruleIndex,this.predIndex,this.isCtxDependent)},PredicateTransition.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},ActionTransition.prototype=Object.create(Transition.prototype),ActionTransition.prototype.constructor=ActionTransition,ActionTransition.prototype.matches=function(e,t,n){return!1},ActionTransition.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},SetTransition.prototype=Object.create(Transition.prototype),SetTransition.prototype.constructor=SetTransition,SetTransition.prototype.matches=function(e,t,n){return this.label.contains(e)},SetTransition.prototype.toString=function(){return this.label.toString()},NotSetTransition.prototype=Object.create(SetTransition.prototype),NotSetTransition.prototype.constructor=NotSetTransition,NotSetTransition.prototype.matches=function(e,t,n){return e>=t&&e<=n&&!SetTransition.prototype.matches.call(this,e,t,n)},NotSetTransition.prototype.toString=function(){return"~"+SetTransition.prototype.toString.call(this)},WildcardTransition.prototype=Object.create(Transition.prototype),WildcardTransition.prototype.constructor=WildcardTransition,WildcardTransition.prototype.matches=function(e,t,n){return e>=t&&e<=n},WildcardTransition.prototype.toString=function(){return"."},PrecedencePredicateTransition.prototype=Object.create(AbstractPredicateTransition.prototype),PrecedencePredicateTransition.prototype.constructor=PrecedencePredicateTransition,PrecedencePredicateTransition.prototype.matches=function(e,t,n){return!1},PrecedencePredicateTransition.prototype.getPredicate=function(){return new s(this.precedence)},PrecedencePredicateTransition.prototype.toString=function(){return this.precedence+" >= _p"},t.Transition=Transition,t.AtomTransition=AtomTransition,t.SetTransition=SetTransition,t.NotSetTransition=NotSetTransition,t.RuleTransition=RuleTransition,t.ActionTransition=ActionTransition,t.EpsilonTransition=EpsilonTransition,t.RangeTransition=RangeTransition,t.WildcardTransition=WildcardTransition,t.PredicateTransition=PredicateTransition,t.PrecedencePredicateTransition=PrecedencePredicateTransition,t.AbstractPredicateTransition=AbstractPredicateTransition},9548:(e,t,n)=>{t.ATN=n(3600).ATN,t.ATNDeserializer=n(8833).ATNDeserializer,t.LexerATNSimulator=n(5145).LexerATNSimulator,t.ParserATNSimulator=n(1807).ParserATNSimulator,t.PredictionMode=n(8895).PredictionMode},4878:(e,t,n)=>{var i=n(8561).Set,o=n(2603).DFAState,a=n(9215).StarLoopEntryState,s=n(8254).ATNConfigSet,c=n(6336).DFASerializer,l=n(6336).LexerDFASerializer;function DFA(e,t){if(void 0===t&&(t=0),this.atnStartState=e,this.decision=t,this._states=new i,this.s0=null,this.precedenceDfa=!1,e instanceof a&&e.isPrecedenceDecision){this.precedenceDfa=!0;var n=new o(null,new s);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}return this}DFA.prototype.getPrecedenceStartState=function(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null},DFA.prototype.setPrecedenceStartState=function(e,t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=t)},DFA.prototype.setPrecedenceDfa=function(e){if(this.precedenceDfa!==e){if(this._states=new DFAStatesSet,e){var t=new o(null,new s);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=e}},Object.defineProperty(DFA.prototype,"states",{get:function(){return this._states}}),DFA.prototype.sortedStates=function(){return this._states.values().sort((function(e,t){return e.stateNumber-t.stateNumber}))},DFA.prototype.toString=function(e,t){return e=e||null,t=t||null,null===this.s0?"":new c(this,e,t).toString()},DFA.prototype.toLexerString=function(){return null===this.s0?"":new l(this).toString()},t.DFA=DFA},6336:(e,t)=>{function DFASerializer(e,t,n){return this.dfa=e,this.literalNames=t||[],this.symbolicNames=n||[],this}function LexerDFASerializer(e){return DFASerializer.call(this,e,null),this}DFASerializer.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var e="",t=this.dfa.sortedStates(),n=0;n<t.length;n++){var i=t[n];if(null!==i.edges)for(var o=i.edges.length,a=0;a<o;a++){var s=i.edges[a]||null;null!==s&&2147483647!==s.stateNumber&&(e=(e=(e=(e=(e=(e=e.concat(this.getStateString(i))).concat("-")).concat(this.getEdgeLabel(a))).concat("->")).concat(this.getStateString(s))).concat("\n"))}}return 0===e.length?null:e},DFASerializer.prototype.getEdgeLabel=function(e){return 0===e?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)},DFASerializer.prototype.getStateString=function(e){var t=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?t+"=>"+e.predicates.toString():t+"=>"+e.prediction.toString():t},LexerDFASerializer.prototype=Object.create(DFASerializer.prototype),LexerDFASerializer.prototype.constructor=LexerDFASerializer,LexerDFASerializer.prototype.getEdgeLabel=function(e){return"'"+String.fromCharCode(e)+"'"},t.DFASerializer=DFASerializer,t.LexerDFASerializer=LexerDFASerializer},2603:(e,t,n)=>{var i=n(8254).ATNConfigSet,o=n(8561),a=o.Hash,s=o.Set;function PredPrediction(e,t){return this.alt=t,this.pred=e,this}function DFAState(e,t){return null===e&&(e=-1),null===t&&(t=new i),this.stateNumber=e,this.configs=t,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}PredPrediction.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},DFAState.prototype.getAltSet=function(){var e=new s;if(null!==this.configs)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];e.add(n.alt)}return 0===e.length?null:e},DFAState.prototype.equals=function(e){return this===e||e instanceof DFAState&&this.configs.equals(e.configs)},DFAState.prototype.toString=function(){var e=this.stateNumber+":"+this.configs;return this.isAcceptState&&(e+="=>",null!==this.predicates?e+=this.predicates:e+=this.prediction),e},DFAState.prototype.hashCode=function(){var e=new a;return e.update(this.configs),e.finish()},t.DFAState=DFAState,t.PredPrediction=PredPrediction},5224:(e,t,n)=>{t.DFA=n(4878).DFA,t.DFASerializer=n(6336).DFASerializer,t.LexerDFASerializer=n(6336).LexerDFASerializer,t.PredPrediction=n(2603).PredPrediction},1574:(e,t,n)=>{var i=n(8561).BitSet,o=n(5827).ErrorListener,a=n(4088).Interval;function DiagnosticErrorListener(e){return o.call(this),e=e||!0,this.exactOnly=e,this}DiagnosticErrorListener.prototype=Object.create(o.prototype),DiagnosticErrorListener.prototype.constructor=DiagnosticErrorListener,DiagnosticErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,s,c){if(!this.exactOnly||o){var l="reportAmbiguity d="+this.getDecisionDescription(e,t)+": ambigAlts="+this.getConflictingAlts(s,c)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(l)}},DiagnosticErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,s){var c="reportAttemptingFullContext d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(c)},DiagnosticErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,s){var c="reportContextSensitivity d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(c)},DiagnosticErrorListener.prototype.getDecisionDescription=function(e,t){var n=t.decision,i=t.atnStartState.ruleIndex,o=e.ruleNames;if(i<0||i>=o.length)return""+n;var a=o[i]||null;return null===a||0===a.length?""+n:n+" ("+a+")"},DiagnosticErrorListener.prototype.getConflictingAlts=function(e,t){if(null!==e)return e;for(var n=new i,o=0;o<t.items.length;o++)n.add(t.items[o].alt);return"{"+n.values().join(", ")+"}"},t.DiagnosticErrorListener=DiagnosticErrorListener},5827:(e,t)=>{function ErrorListener(){return this}function ConsoleErrorListener(){return ErrorListener.call(this),this}function ProxyErrorListener(e){if(ErrorListener.call(this),null===e)throw"delegates";return this.delegates=e,this}ErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){},ErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){},ErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,a){},ErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,a){},ConsoleErrorListener.prototype=Object.create(ErrorListener.prototype),ConsoleErrorListener.prototype.constructor=ConsoleErrorListener,ConsoleErrorListener.INSTANCE=new ConsoleErrorListener,ConsoleErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){console.error("line "+n+":"+i+" "+o)},ProxyErrorListener.prototype=Object.create(ErrorListener.prototype),ProxyErrorListener.prototype.constructor=ProxyErrorListener,ProxyErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){this.delegates.map((function(s){s.syntaxError(e,t,n,i,o,a)}))},ProxyErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){this.delegates.map((function(c){c.reportAmbiguity(e,t,n,i,o,a,s)}))},ProxyErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,a){this.delegates.map((function(s){s.reportAttemptingFullContext(e,t,n,i,o,a)}))},ProxyErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,a){this.delegates.map((function(s){s.reportContextSensitivity(e,t,n,i,o,a)}))},t.ErrorListener=ErrorListener,t.ConsoleErrorListener=ConsoleErrorListener,t.ProxyErrorListener=ProxyErrorListener},1080:(e,t,n)=>{var i=n(5319).Token,o=n(2874),a=o.NoViableAltException,s=o.InputMismatchException,c=o.FailedPredicateException,l=o.ParseCancellationException,p=n(9215).ATNState,h=n(4088).Interval,d=n(4088).IntervalSet;function ErrorStrategy(){}function DefaultErrorStrategy(){return ErrorStrategy.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function BailErrorStrategy(){return DefaultErrorStrategy.call(this),this}ErrorStrategy.prototype.reset=function(e){},ErrorStrategy.prototype.recoverInline=function(e){},ErrorStrategy.prototype.recover=function(e,t){},ErrorStrategy.prototype.sync=function(e){},ErrorStrategy.prototype.inErrorRecoveryMode=function(e){},ErrorStrategy.prototype.reportError=function(e){},DefaultErrorStrategy.prototype=Object.create(ErrorStrategy.prototype),DefaultErrorStrategy.prototype.constructor=DefaultErrorStrategy,DefaultErrorStrategy.prototype.reset=function(e){this.endErrorCondition(e)},DefaultErrorStrategy.prototype.beginErrorCondition=function(e){this.errorRecoveryMode=!0},DefaultErrorStrategy.prototype.inErrorRecoveryMode=function(e){return this.errorRecoveryMode},DefaultErrorStrategy.prototype.endErrorCondition=function(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},DefaultErrorStrategy.prototype.reportMatch=function(e){this.endErrorCondition(e)},DefaultErrorStrategy.prototype.reportError=function(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof a?this.reportNoViableAlternative(e,t):t instanceof s?this.reportInputMismatch(e,t):t instanceof c?this.reportFailedPredicate(e,t):(console.log("unknown recognition error type: "+t.constructor.name),console.log(t.stack),e.notifyErrorListeners(t.getOffendingToken(),t.getMessage(),t)))},DefaultErrorStrategy.prototype.recover=function(e,t){this.lastErrorIndex===e.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);var n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)},DefaultErrorStrategy.prototype.sync=function(e){if(!this.inErrorRecoveryMode(e)){var t=e._interp.atn.states[e.state],n=e.getTokenStream().LA(1),o=e.atn.nextTokens(t);if(!o.contains(i.EPSILON)&&!o.contains(n))switch(t.stateType){case p.BLOCK_START:case p.STAR_BLOCK_START:case p.PLUS_BLOCK_START:case p.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new s(e);case p.PLUS_LOOP_BACK:case p.STAR_LOOP_BACK:this.reportUnwantedToken(e);var a=new d;a.addSet(e.getExpectedTokens());var c=a.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,c)}}},DefaultErrorStrategy.prototype.reportNoViableAlternative=function(e,t){var n,o=e.getTokenStream();n=null!==o?t.startToken.type===i.EOF?"<EOF>":o.getText(new h(t.startToken.tokenIndex,t.offendingToken.tokenIndex)):"<unknown input>";var a="no viable alternative at input "+this.escapeWSAndQuote(n);e.notifyErrorListeners(a,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportInputMismatch=function(e,t){var n="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportFailedPredicate=function(e,t){var n="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+t.message;e.notifyErrorListeners(n,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportUnwantedToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t,null)}},DefaultErrorStrategy.prototype.reportMissingToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(n,t,null)}},DefaultErrorStrategy.prototype.recoverInline=function(e){var t=this.singleTokenDeletion(e);if(null!==t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new s(e)},DefaultErrorStrategy.prototype.singleTokenInsertion=function(e){var t=e.getTokenStream().LA(1),n=e._interp.atn,i=n.states[e.state].transitions[0].target;return!!n.nextTokens(i,e._ctx).contains(t)&&(this.reportMissingToken(e),!0)},DefaultErrorStrategy.prototype.singleTokenDeletion=function(e){var t=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();var n=e.getCurrentToken();return this.reportMatch(e),n}return null},DefaultErrorStrategy.prototype.getMissingSymbol=function(e){var t,n=e.getCurrentToken(),o=this.getExpectedTokens(e).first();t=o===i.EOF?"<missing EOF>":"<missing "+e.literalNames[o]+">";var a=n,s=e.getTokenStream().LT(-1);return a.type===i.EOF&&null!==s&&(a=s),e.getTokenFactory().create(a.source,o,t,i.DEFAULT_CHANNEL,-1,-1,a.line,a.column)},DefaultErrorStrategy.prototype.getExpectedTokens=function(e){return e.getExpectedTokens()},DefaultErrorStrategy.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===i.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)},DefaultErrorStrategy.prototype.escapeWSAndQuote=function(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},DefaultErrorStrategy.prototype.getErrorRecoverySet=function(e){for(var t=e._interp.atn,n=e._ctx,o=new d;null!==n&&n.invokingState>=0;){var a=t.states[n.invokingState].transitions[0],s=t.nextTokens(a.followState);o.addSet(s),n=n.parentCtx}return o.removeOne(i.EPSILON),o},DefaultErrorStrategy.prototype.consumeUntil=function(e,t){for(var n=e.getTokenStream().LA(1);n!==i.EOF&&!t.contains(n);)e.consume(),n=e.getTokenStream().LA(1)},BailErrorStrategy.prototype=Object.create(DefaultErrorStrategy.prototype),BailErrorStrategy.prototype.constructor=BailErrorStrategy,BailErrorStrategy.prototype.recover=function(e,t){for(var n=e._ctx;null!==n;)n.exception=t,n=n.parentCtx;throw new l(t)},BailErrorStrategy.prototype.recoverInline=function(e){this.recover(e,new s(e))},BailErrorStrategy.prototype.sync=function(e){},t.BailErrorStrategy=BailErrorStrategy,t.DefaultErrorStrategy=DefaultErrorStrategy},2874:(e,t,n)=>{var i=n(5099).PredicateTransition;function RecognitionException(e){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,RecognitionException);else(new Error).stack;return this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function LexerNoViableAltException(e,t,n,i){return RecognitionException.call(this,{message:"",recognizer:e,input:t,ctx:null}),this.startIndex=n,this.deadEndConfigs=i,this}function NoViableAltException(e,t,n,i,o,a){a=a||e._ctx,i=i||e.getCurrentToken(),n=n||e.getCurrentToken(),t=t||e.getInputStream(),RecognitionException.call(this,{message:"",recognizer:e,input:t,ctx:a}),this.deadEndConfigs=o,this.startToken=n,this.offendingToken=i}function InputMismatchException(e){RecognitionException.call(this,{message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}function FailedPredicateException(e,t,n){RecognitionException.call(this,{message:this.formatMessage(t,n||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});var o=e._interp.atn.states[e.state].transitions[0];return o instanceof i?(this.ruleIndex=o.ruleIndex,this.predicateIndex=o.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken(),this}function ParseCancellationException(){return Error.call(this),Error.captureStackTrace(this,ParseCancellationException),this}RecognitionException.prototype=Object.create(Error.prototype),RecognitionException.prototype.constructor=RecognitionException,RecognitionException.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},RecognitionException.prototype.toString=function(){return this.message},LexerNoViableAltException.prototype=Object.create(RecognitionException.prototype),LexerNoViableAltException.prototype.constructor=LexerNoViableAltException,LexerNoViableAltException.prototype.toString=function(){var e="";return this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+e},NoViableAltException.prototype=Object.create(RecognitionException.prototype),NoViableAltException.prototype.constructor=NoViableAltException,InputMismatchException.prototype=Object.create(RecognitionException.prototype),InputMismatchException.prototype.constructor=InputMismatchException,FailedPredicateException.prototype=Object.create(RecognitionException.prototype),FailedPredicateException.prototype.constructor=FailedPredicateException,FailedPredicateException.prototype.formatMessage=function(e,t){return null!==t?t:"failed predicate: {"+e+"}?"},ParseCancellationException.prototype=Object.create(Error.prototype),ParseCancellationException.prototype.constructor=ParseCancellationException,t.RecognitionException=RecognitionException,t.NoViableAltException=NoViableAltException,t.LexerNoViableAltException=LexerNoViableAltException,t.InputMismatchException=InputMismatchException,t.FailedPredicateException=FailedPredicateException,t.ParseCancellationException=ParseCancellationException},7423:(e,t,n)=>{t.RecognitionException=n(2874).RecognitionException,t.NoViableAltException=n(2874).NoViableAltException,t.LexerNoViableAltException=n(2874).LexerNoViableAltException,t.InputMismatchException=n(2874).InputMismatchException,t.FailedPredicateException=n(2874).FailedPredicateException,t.DiagnosticErrorListener=n(1574).DiagnosticErrorListener,t.BailErrorStrategy=n(1080).BailErrorStrategy,t.ErrorListener=n(5827).ErrorListener},7228:(e,t,n)=>{t.atn=n(9548),t.codepointat=n(5034),t.dfa=n(5224),t.fromcodepoint=n(2085),t.tree=n(1183),t.error=n(7423),t.Token=n(5319).Token,t.CharStreams=n(5689).CharStreams,t.CommonToken=n(5319).CommonToken,t.InputStream=n(2732).InputStream,t.FileStream=n(654).FileStream,t.CommonTokenStream=n(1259).CommonTokenStream,t.Lexer=n(4412).Lexer,t.Parser=n(3709).Parser;var i=n(8758);t.PredictionContextCache=i.PredictionContextCache,t.ParserRuleContext=n(5082).ParserRuleContext,t.Interval=n(4088).Interval,t.Utils=n(8561)},5034:()=>{String.prototype.codePointAt||function(){"use strict";var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),codePointAt=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||i>=n)){var o,a=t.charCodeAt(i);return a>=55296&&a<=56319&&n>i+1&&(o=t.charCodeAt(i+1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a}};e?e(String.prototype,"codePointAt",{value:codePointAt,configurable:!0,writable:!0}):String.prototype.codePointAt=codePointAt}()},2085:()=>{var e,t,n,i;String.fromCodePoint||(e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t=String.fromCharCode,n=Math.floor,i=function(e){var i,o,a=16384,s=[],c=-1,l=arguments.length;if(!l)return"";for(var p="";++c<l;){var h=Number(arguments[c]);if(!isFinite(h)||h<0||h>1114111||n(h)!=h)throw RangeError("Invalid code point: "+h);h<=65535?s.push(h):(i=55296+((h-=65536)>>10),o=h%1024+56320,s.push(i,o)),(c+1==l||s.length>a)&&(p+=t.apply(null,s),s.length=0)}return p},e?e(String,"fromCodePoint",{value:i,configurable:!0,writable:!0}):String.fromCodePoint=i)},1065:(e,t,n)=>{var i=n(5319).Token,o=n(4088).Interval,a=new o(-1,-2);n(8561);function Tree(){return this}function SyntaxTree(){return Tree.call(this),this}function ParseTree(){return SyntaxTree.call(this),this}function RuleNode(){return ParseTree.call(this),this}function TerminalNode(){return ParseTree.call(this),this}function ErrorNode(){return TerminalNode.call(this),this}function ParseTreeVisitor(){return this}function ParseTreeListener(){return this}function TerminalNodeImpl(e){return TerminalNode.call(this),this.parentCtx=null,this.symbol=e,this}function ErrorNodeImpl(e){return TerminalNodeImpl.call(this,e),this}function ParseTreeWalker(){return this}SyntaxTree.prototype=Object.create(Tree.prototype),SyntaxTree.prototype.constructor=SyntaxTree,ParseTree.prototype=Object.create(SyntaxTree.prototype),ParseTree.prototype.constructor=ParseTree,RuleNode.prototype=Object.create(ParseTree.prototype),RuleNode.prototype.constructor=RuleNode,TerminalNode.prototype=Object.create(ParseTree.prototype),TerminalNode.prototype.constructor=TerminalNode,ErrorNode.prototype=Object.create(TerminalNode.prototype),ErrorNode.prototype.constructor=ErrorNode,ParseTreeVisitor.prototype.visit=function(e){return Array.isArray(e)?e.map((function(e){return e.accept(this)}),this):e.accept(this)},ParseTreeVisitor.prototype.visitChildren=function(e){return e.children?this.visit(e.children):null},ParseTreeVisitor.prototype.visitTerminal=function(e){},ParseTreeVisitor.prototype.visitErrorNode=function(e){},ParseTreeListener.prototype.visitTerminal=function(e){},ParseTreeListener.prototype.visitErrorNode=function(e){},ParseTreeListener.prototype.enterEveryRule=function(e){},ParseTreeListener.prototype.exitEveryRule=function(e){},TerminalNodeImpl.prototype=Object.create(TerminalNode.prototype),TerminalNodeImpl.prototype.constructor=TerminalNodeImpl,TerminalNodeImpl.prototype.getChild=function(e){return null},TerminalNodeImpl.prototype.getSymbol=function(){return this.symbol},TerminalNodeImpl.prototype.getParent=function(){return this.parentCtx},TerminalNodeImpl.prototype.getPayload=function(){return this.symbol},TerminalNodeImpl.prototype.getSourceInterval=function(){if(null===this.symbol)return a;var e=this.symbol.tokenIndex;return new o(e,e)},TerminalNodeImpl.prototype.getChildCount=function(){return 0},TerminalNodeImpl.prototype.accept=function(e){return e.visitTerminal(this)},TerminalNodeImpl.prototype.getText=function(){return this.symbol.text},TerminalNodeImpl.prototype.toString=function(){return this.symbol.type===i.EOF?"<EOF>":this.symbol.text},ErrorNodeImpl.prototype=Object.create(TerminalNodeImpl.prototype),ErrorNodeImpl.prototype.constructor=ErrorNodeImpl,ErrorNodeImpl.prototype.isErrorNode=function(){return!0},ErrorNodeImpl.prototype.accept=function(e){return e.visitErrorNode(this)},ParseTreeWalker.prototype.walk=function(e,t){if(t instanceof ErrorNode||void 0!==t.isErrorNode&&t.isErrorNode())e.visitErrorNode(t);else if(t instanceof TerminalNode)e.visitTerminal(t);else{this.enterRule(e,t);for(var n=0;n<t.getChildCount();n++){var i=t.getChild(n);this.walk(e,i)}this.exitRule(e,t)}},ParseTreeWalker.prototype.enterRule=function(e,t){var n=t.getRuleContext();e.enterEveryRule(n),n.enterRule(e)},ParseTreeWalker.prototype.exitRule=function(e,t){var n=t.getRuleContext();n.exitRule(e),e.exitEveryRule(n)},ParseTreeWalker.DEFAULT=new ParseTreeWalker,t.RuleNode=RuleNode,t.ErrorNode=ErrorNode,t.TerminalNode=TerminalNode,t.ErrorNodeImpl=ErrorNodeImpl,t.TerminalNodeImpl=TerminalNodeImpl,t.ParseTreeListener=ParseTreeListener,t.ParseTreeVisitor=ParseTreeVisitor,t.ParseTreeWalker=ParseTreeWalker,t.INVALID_INTERVAL=a},2181:(e,t,n)=>{var i=n(8561),o=n(5319).Token,a=(n(1065).RuleNode,n(1065).ErrorNode),s=n(1065).TerminalNode,c=n(5082).ParserRuleContext,l=n(8738).RuleContext,p=n(3600).INVALID_ALT_NUMBER;function Trees(){}Trees.toStringTree=function(e,t,n){t=t||null,null!==(n=n||null)&&(t=n.ruleNames);var o=Trees.getNodeText(e,t);o=i.escapeWhitespace(o,!1);var a=e.getChildCount();if(0===a)return o;var s="("+o+" ";a>0&&(o=Trees.toStringTree(e.getChild(0),t),s=s.concat(o));for(var c=1;c<a;c++)o=Trees.toStringTree(e.getChild(c),t),s=s.concat(" "+o);return s=s.concat(")")},Trees.getNodeText=function(e,t,n){if(t=t||null,null!==(n=n||null)&&(t=n.ruleNames),null!==t){if(e instanceof l){var i=e.getAltNumber();return i!=p?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof a)return e.toString();if(e instanceof s&&null!==e.symbol)return e.symbol.text}var c=e.getPayload();return c instanceof o?c.text:e.getPayload().toString()},Trees.getChildren=function(e){for(var t=[],n=0;n<e.getChildCount();n++)t.push(e.getChild(n));return t},Trees.getAncestors=function(e){var t=[];for(e=e.getParent();null!==e;)t=[e].concat(t),e=e.getParent();return t},Trees.findAllTokenNodes=function(e,t){return Trees.findAllNodes(e,t,!0)},Trees.findAllRuleNodes=function(e,t){return Trees.findAllNodes(e,t,!1)},Trees.findAllNodes=function(e,t,n){var i=[];return Trees._findAllNodes(e,t,n,i),i},Trees._findAllNodes=function(e,t,n,i){n&&e instanceof s?e.symbol.type===t&&i.push(e):!n&&e instanceof c&&e.ruleIndex===t&&i.push(e);for(var o=0;o<e.getChildCount();o++)Trees._findAllNodes(e.getChild(o),t,n,i)},Trees.descendants=function(e){for(var t=[e],n=0;n<e.getChildCount();n++)t=t.concat(Trees.descendants(e.getChild(n)));return t},t.Trees=Trees},1183:(e,t,n)=>{var i=n(1065);t.Trees=n(2181).Trees,t.RuleNode=i.RuleNode,t.ParseTreeListener=i.ParseTreeListener,t.ParseTreeVisitor=i.ParseTreeVisitor,t.ParseTreeWalker=i.ParseTreeWalker},1227:(e,t,n)=>{t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),t.splice(o,0,n)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function setup(e){function createDebug(e){let t,n,i,o=null;function debug(...e){if(!debug.enabled)return;const n=debug,i=Number(new Date),o=i-(t||i);n.diff=o,n.prev=t,n.curr=i,t=i,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return"%";a++;const o=createDebug.formatters[i];if("function"==typeof o){const i=e[a];t=o.call(n,i),e.splice(a,1),a--}return t})),createDebug.formatArgs.call(n,e);(n.log||createDebug.log).apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==createDebug.namespaces&&(n=createDebug.namespaces,i=createDebug.enabled(e)),i),set:e=>{o=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){let t;createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.substr(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")))},createDebug.enabled=function enabled(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=createDebug.skips.length;t<n;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,n=createDebug.names.length;t<n;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=n(7824),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((t=>{createDebug[t]=e[t]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function ReflectApply(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function NumberIsNaN(e){return e!=e};function EventEmitter(){EventEmitter.init.call(this)}e.exports=EventEmitter,e.exports.once=function once(e,t){return new Promise((function(n,i){function errorListener(n){e.removeListener(t,resolver),i(n)}function resolver(){"function"==typeof e.removeListener&&e.removeListener("error",errorListener),n([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,resolver,{once:!0}),"error"!==t&&function addErrorHandlerIfEventEmitter(e,t,n){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,n)}(e,errorListener,{once:!0})}))},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var a=10;function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,n,i){var o,a,s;if(checkListener(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(o=_getMaxListeners(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}(c)}return e}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=onceWrapper.bind(i);return o.listener=n,i.wrapFn=o,o}function _listeners(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function unwrapListeners(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):arrayClone(o,o.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function arrayClone(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function eventTargetAgnosticAddListener(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function wrapListener(o){i.once&&e.removeEventListener(t,wrapListener),n(o)}))}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function setMaxListeners(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function emit(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,a=this._events;if(void 0!==a)o=o&&void 0===a.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var p=l.length,h=arrayClone(l,p);for(n=0;n<p;++n)i(h[n],this,t)}return!0},EventEmitter.prototype.addListener=function addListener(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function prependListener(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.once=function once(e,t){return checkListener(t),this.on(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.prependOnceListener=function prependOnceListener(e,t){return checkListener(t),this.prependListener(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.removeListener=function removeListener(e,t){var n,i,o,a,s;if(checkListener(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,a=Object.keys(n);for(i=0;i<a.length;++i)"removeListener"!==(o=a[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},EventEmitter.prototype.listeners=function listeners(e){return _listeners(this,e,!0)},EventEmitter.prototype.rawListeners=function rawListeners(e){return _listeners(this,e,!1)},EventEmitter.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):listenerCount.call(e,t)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?t(this._events):[]}},2728:(e,t,n)=>{e=n.nmd(e);var i="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",p="[object Error]",h="[object Function]",d="[object GeneratorFunction]",f="[object Map]",g="[object Number]",x="[object Object]",m="[object Promise]",y="[object RegExp]",S="[object Set]",T="[object String]",v="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",k="[object Float32Array]",b="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",_="[object Int32Array]",N="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",F="[object Uint32Array]",R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,D=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g,z=/\w*$/,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[k]=U[b]=U[P]=U[L]=U[_]=U[N]=U[I]=U[O]=U[F]=!0,U[a]=U[s]=U[A]=U[c]=U[E]=U[l]=U[p]=U[h]=U[f]=U[g]=U[x]=U[y]=U[S]=U[T]=U[C]=!1;var V={};V[a]=V[s]=V[A]=V[E]=V[c]=V[l]=V[k]=V[b]=V[P]=V[L]=V[_]=V[f]=V[g]=V[x]=V[y]=V[S]=V[T]=V[v]=V[N]=V[I]=V[O]=V[F]=!0,V[p]=V[h]=V[C]=!1;var W="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,K="object"==typeof self&&self&&self.Object===Object&&self,$=W||K||Function("return this")(),Y=t&&!t.nodeType&&t,G=Y&&e&&!e.nodeType&&e,Q=G&&G.exports===Y,X=Q&&W.process,J=function(){try{return X&&X.binding("util")}catch(e){}}(),Z=J&&J.isTypedArray;function addMapEntry(e,t){return e.set(t[0],t[1]),e}function addSetEntry(e,t){return e.add(t),e}function arrayReduce(e,t,n,i){var o=-1,a=e?e.length:0;for(i&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function arraySome(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function mapToArray(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function overArg(e,t){return function(n){return e(t(n))}}function setToArray(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ee,te=Array.prototype,ne=Function.prototype,re=Object.prototype,ie=$["__core-js_shared__"],oe=(ee=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",ae=ne.toString,se=re.hasOwnProperty,ce=re.toString,ue=RegExp("^"+ae.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Q?$.Buffer:void 0,pe=$.Symbol,he=$.Uint8Array,de=overArg(Object.getPrototypeOf,Object),fe=Object.create,ge=re.propertyIsEnumerable,xe=te.splice,me=Object.getOwnPropertySymbols,ye=le?le.isBuffer:void 0,Se=overArg(Object.keys,Object),Te=getNative($,"DataView"),ve=getNative($,"Map"),Ce=getNative($,"Promise"),Ae=getNative($,"Set"),Ee=getNative($,"WeakMap"),ke=getNative(Object,"create"),be=toSource(Te),Pe=toSource(ve),Le=toSource(Ce),_e=toSource(Ae),Ne=toSource(Ee),Ie=pe?pe.prototype:void 0,Oe=Ie?Ie.valueOf:void 0,Fe=Ie?Ie.toString:void 0;function Hash(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ListCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function MapCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function SetCache(e){var t=-1,n=e?e.length:0;for(this.__data__=new MapCache;++t<n;)this.add(e[t])}function Stack(e){this.__data__=new ListCache(e)}function arrayLikeKeys(e,t){var n=Me(e)||isArguments(e)?function baseTimes(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,o=!!i;for(var a in e)!t&&!se.call(e,a)||o&&("length"==a||isIndex(a,i))||n.push(a);return n}function assignValue(e,t,n){var i=e[t];se.call(e,t)&&eq(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function assocIndexOf(e,t){for(var n=e.length;n--;)if(eq(e[n][0],t))return n;return-1}function baseClone(e,t,n,i,o,s,p){var m;if(i&&(m=s?i(e,o,s,p):i(e)),void 0!==m)return m;if(!isObject(e))return e;var C=Me(e);if(C){if(m=function initCloneArray(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function copyArray(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(e,m)}else{var R=we(e),w=R==h||R==d;if(Be(e))return function cloneBuffer(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(R==x||R==a||w&&!s){if(isHostObject(e))return s?e:{};if(m=function initCloneObject(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:function baseCreate(e){return isObject(e)?fe(e):{}}(de(e))}(w?{}:e),!t)return function copySymbols(e,t){return copyObject(e,Re(e),t)}(e,function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}(m,e))}else{if(!V[R])return s?e:{};m=function initCloneByTag(e,t,n,i){var o=e.constructor;switch(t){case A:return cloneArrayBuffer(e);case c:case l:return new o(+e);case E:return function cloneDataView(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case k:case b:case P:case L:case _:case N:case I:case O:case F:return function cloneTypedArray(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case f:return function cloneMap(e,t,n){return arrayReduce(t?n(mapToArray(e),!0):mapToArray(e),addMapEntry,new e.constructor)}(e,i,n);case g:case T:return new o(e);case y:return function cloneRegExp(e){var t=new e.constructor(e.source,z.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return function cloneSet(e,t,n){return arrayReduce(t?n(setToArray(e),!0):setToArray(e),addSetEntry,new e.constructor)}(e,i,n);case v:return function cloneSymbol(e){return Oe?Object(Oe.call(e)):{}}(e)}}(e,R,baseClone,t)}}p||(p=new Stack);var D=p.get(e);if(D)return D;if(p.set(e,m),!C)var M=n?function getAllKeys(e){return function baseGetAllKeys(e,t,n){var i=t(e);return Me(e)?i:function arrayPush(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}(i,n(e))}(e,keys,Re)}(e):keys(e);return function arrayEach(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););return e}(M||e,(function(o,a){M&&(o=e[a=o]),assignValue(m,a,baseClone(o,t,n,i,a,e,p))})),m}function baseGet(e,t){for(var n=0,i=(t=isKey(t,e)?[t]:castPath(t)).length;null!=e&&n<i;)e=e[toKey(t[n++])];return n&&n==i?e:void 0}function baseHasIn(e,t){return null!=e&&t in Object(e)}function baseIsEqual(e,t,n,i,o){return e===t||(null==e||null==t||!isObject(e)&&!isObjectLike(t)?e!=e&&t!=t:function baseIsEqualDeep(e,t,n,i,o,h){var d=Me(e),m=Me(t),C=s,k=s;d||(C=(C=we(e))==a?x:C);m||(k=(k=we(t))==a?x:k);var b=C==x&&!isHostObject(e),P=k==x&&!isHostObject(t),L=C==k;if(L&&!b)return h||(h=new Stack),d||ze(e)?equalArrays(e,t,n,i,o,h):function equalByTag(e,t,n,i,o,a,s){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!i(new he(e),new he(t)));case c:case l:case g:return eq(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case T:return e==t+"";case f:var h=mapToArray;case S:var d=2&a;if(h||(h=setToArray),e.size!=t.size&&!d)return!1;var x=s.get(e);if(x)return x==t;a|=1,s.set(e,t);var m=equalArrays(h(e),h(t),i,o,a,s);return s.delete(e),m;case v:if(Oe)return Oe.call(e)==Oe.call(t)}return!1}(e,t,C,n,i,o,h);if(!(2&o)){var _=b&&se.call(e,"__wrapped__"),N=P&&se.call(t,"__wrapped__");if(_||N){var I=_?e.value():e,O=N?t.value():t;return h||(h=new Stack),n(I,O,i,o,h)}}if(!L)return!1;return h||(h=new Stack),function equalObjects(e,t,n,i,o,a){var s=2&o,c=keys(e),l=c.length,p=keys(t).length;if(l!=p&&!s)return!1;var h=l;for(;h--;){var d=c[h];if(!(s?d in t:se.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var g=!0;a.set(e,t),a.set(t,e);var x=s;for(;++h<l;){var m=e[d=c[h]],y=t[d];if(i)var S=s?i(y,m,d,t,e,a):i(m,y,d,e,t,a);if(!(void 0===S?m===y||n(m,y,i,o,a):S)){g=!1;break}x||(x="constructor"==d)}if(g&&!x){var T=e.constructor,v=t.constructor;T==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof T&&T instanceof T&&"function"==typeof v&&v instanceof v||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,i,o,h)}(e,t,baseIsEqual,n,i,o))}function baseIsNative(e){return!(!isObject(e)||function isMasked(e){return!!oe&&oe in e}(e))&&(isFunction(e)||isHostObject(e)?ue:j).test(toSource(e))}function baseIteratee(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?Me(e)?function baseMatchesProperty(e,t){if(isKey(e)&&isStrictComparable(t))return matchesStrictComparable(toKey(e),t);return function(n){var i=function get(e,t,n){var i=null==e?void 0:baseGet(e,t);return void 0===i?n:i}(n,e);return void 0===i&&i===t?function hasIn(e,t){return null!=e&&function hasPath(e,t,n){t=isKey(t,e)?[t]:castPath(t);var i,o=-1,a=t.length;for(;++o<a;){var s=toKey(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}if(i)return i;return!!(a=e?e.length:0)&&isLength(a)&&isIndex(s,a)&&(Me(e)||isArguments(e))}(e,t,baseHasIn)}(n,e):baseIsEqual(t,i,void 0,3)}}(e[0],e[1]):function baseMatches(e){var t=function getMatchData(e){var t=keys(e),n=t.length;for(;n--;){var i=t[n],o=e[i];t[n]=[i,o,isStrictComparable(o)]}return t}(e);if(1==t.length&&t[0][2])return matchesStrictComparable(t[0][0],t[0][1]);return function(n){return n===e||function baseIsMatch(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=Object(e);o--;){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var l=(c=n[o])[0],p=e[l],h=c[1];if(s&&c[2]){if(void 0===p&&!(l in e))return!1}else{var d=new Stack;if(i)var f=i(p,h,l,e,t,d);if(!(void 0===f?baseIsEqual(h,p,i,3,d):f))return!1}}return!0}(n,e,t)}}(e):function property(e){return isKey(e)?function baseProperty(e){return function(t){return null==t?void 0:t[e]}}(toKey(e)):function basePropertyDeep(e){return function(t){return baseGet(t,e)}}(e)}(e)}function castPath(e){return Me(e)?e:De(e)}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new he(t).set(new he(e)),t}function copyObject(e,t,n,i){n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;assignValue(n,s,void 0===c?e[s]:c)}return n}function equalArrays(e,t,n,i,o,a){var s=2&o,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var p=a.get(e);if(p&&a.get(t))return p==t;var h=-1,d=!0,f=1&o?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++h<c;){var g=e[h],x=t[h];if(i)var m=s?i(x,g,h,t,e,a):i(g,x,h,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!arraySome(t,(function(e,t){if(!f.has(t)&&(g===e||n(g,e,i,o,a)))return f.add(t)}))){d=!1;break}}else if(g!==x&&!n(g,x,i,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function getMapData(e,t){var n=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function getNative(e,t){var n=function getValue(e,t){return null==e?void 0:e[t]}(e,t);return baseIsNative(n)?n:void 0}Hash.prototype.clear=function hashClear(){this.__data__=ke?ke(null):{}},Hash.prototype.delete=function hashDelete(e){return this.has(e)&&delete this.__data__[e]},Hash.prototype.get=function hashGet(e){var t=this.__data__;if(ke){var n=t[e];return n===i?void 0:n}return se.call(t,e)?t[e]:void 0},Hash.prototype.has=function hashHas(e){var t=this.__data__;return ke?void 0!==t[e]:se.call(t,e)},Hash.prototype.set=function hashSet(e,t){return this.__data__[e]=ke&&void 0===t?i:t,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[]},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,n=assocIndexOf(t,e);return!(n<0)&&(n==t.length-1?t.pop():xe.call(t,n,1),!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?void 0:t[n][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.__data__={hash:new Hash,map:new(ve||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){return getMapData(this,e).delete(e)},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(e){return this.__data__.set(e,i),this},SetCache.prototype.has=function setCacheHas(e){return this.__data__.has(e)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache},Stack.prototype.delete=function stackDelete(e){return this.__data__.delete(e)},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,t){var n=this.__data__;if(n instanceof ListCache){var i=n.__data__;if(!ve||i.length<199)return i.push([e,t]),this;n=this.__data__=new MapCache(i)}return n.set(e,t),this};var Re=me?overArg(me,Object):function stubArray(){return[]},we=function baseGetTag(e){return ce.call(e)};function isIndex(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||H.test(e))&&e>-1&&e%1==0&&e<t}function isKey(e,t){if(Me(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol(e))||(w.test(e)||!R.test(e)||null!=t&&e in Object(t))}function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function isStrictComparable(e){return e==e&&!isObject(e)}function matchesStrictComparable(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(Te&&we(new Te(new ArrayBuffer(1)))!=E||ve&&we(new ve)!=f||Ce&&we(Ce.resolve())!=m||Ae&&we(new Ae)!=S||Ee&&we(new Ee)!=C)&&(we=function(e){var t=ce.call(e),n=t==x?e.constructor:void 0,i=n?toSource(n):void 0;if(i)switch(i){case be:return E;case Pe:return f;case Le:return m;case _e:return S;case Ne:return C}return t});var De=memoize((function(e){e=function toString(e){return null==e?"":function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return Fe?Fe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(e);var t=[];return D.test(e)&&t.push(""),e.replace(M,(function(e,n,i,o){t.push(i?o.replace(B,"$1"):n||e)})),t}));function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function toSource(e){if(null!=e){try{return ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function memoize(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var memoized=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=memoized.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return memoized.cache=o.set(i,a),a};return memoized.cache=new(memoize.Cache||MapCache),memoized}function eq(e,t){return e===t||e!=e&&t!=t}function isArguments(e){return function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}(e)&&se.call(e,"callee")&&(!ge.call(e,"callee")||ce.call(e)==a)}memoize.Cache=MapCache;var Me=Array.isArray;function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var Be=ye||function stubFalse(){return!1};function isFunction(e){var t=isObject(e)?ce.call(e):"";return t==h||t==d}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&ce.call(e)==v}var ze=Z?function baseUnary(e){return function(t){return e(t)}}(Z):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!U[ce.call(e)]};function keys(e){return isArrayLike(e)?arrayLikeKeys(e):function baseKeys(e){if(!isPrototype(e))return Se(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function identity(e){return e}e.exports=function iteratee(e){return baseIteratee("function"==typeof e?e:baseClone(e,!0))}},9671:(e,t,n)=>{"use strict";e.exports=function fromMarkdown(e,t){return function compiler(){var e,t,n,p,f,g,x,m={type:"root",children:[]},y=[m],S={enter:{autolink:open(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:open(heading),blockQuote:open(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:open(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:open(codeFlow,buffer),codeText:open(codeText,buffer),data:onenterdata,codeFlowValue:onenterdata,definition:open(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:open(emphasis),hardBreakEscape:open(hardBreak),hardBreakTrailing:open(hardBreak),htmlFlow:open(html,buffer),htmlText:open(html,buffer),image:open(image,onenterimage),link:open(link),listItem:open(listItem),listItemValue:onenterlistitemvalue,listOrdered:open(list,onenterlistordered),listUnordered:open(list),paragraph:open(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:open(heading),strong:open(strong),thematicBreak:open(thematicBreak)},exit:{atxHeading:close(),atxHeadingSequence:onexitatxheadingsequence,autolink:close(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:close(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:close(onexitcharacterreferencevalue),codeFenced:close(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:close(onexitcodeindented),codeText:close(onexitcodetext),data:onexitdata,definition:close(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:close(),hardBreakEscape:close(onexithardbreak),hardBreakTrailing:close(onexithardbreak),htmlFlow:close(onexithtmlflow),htmlText:close(onexithtmltext),image:close(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:close(onexitlink),listItem:close(),listOrdered:close(),listUnordered:close(),paragraph:close(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:close(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:close(),thematicBreak:close()}};return compile;function compile(e){for(var t,n,i,o=-1,a=[];++o<e.length&&(i=e[o]);)i[1].type!==l.listOrdered&&i[1].type!==l.listUnordered||("enter"===i[0]?a.push(o):o=prepareList(e,a.pop(o),o));for(o=-1,t=e.length-1;++o<t;)n=S[e[o][0]],c.call(n,e[o][1].type)&&n[e[o][1].type].call(e[o][2],e[o][1]);return m.position={start:point(t?e[0][1].start:{line:1,column:1,offset:0}),end:point(t?e[e.length-2][1].end:{line:1,column:1,offset:0})},m}function prepareList(e,t,n){for(var i,o,a,s,c,p,h,d=t-1,f=-1,g=!1;++d<=n;)if((c=e[d])[1].type===l.listUnordered||c[1].type===l.listOrdered||c[1].type===l.blockQuote?("enter"===c[0]?f++:f--,h=void 0):c[1].type===l.lineEndingBlank?"enter"===c[0]&&(!i||h||f||p||(p=d),h=void 0):c[1].type===l.linePrefix||c[1].type===l.listItemValue||c[1].type===l.listItemMarker||c[1].type===l.listItemPrefix||c[1].type===l.listItemPrefixWhitespace||(h=void 0),!f&&"enter"===c[0]&&c[1].type===l.listItemPrefix||-1===f&&"exit"===c[0]&&(c[1].type===l.listUnordered||c[1].type===l.listOrdered)){if(i){for(o=d,a=void 0;o--;)if((s=e[o])[1].type===l.lineEnding||s[1].type===l.lineEndingBlank){if("exit"===s[0])continue;a&&(e[a][1].type=l.lineEndingBlank,g=!0),s[1].type=l.lineEnding,a=o}else if(s[1].type!==l.linePrefix)break;p&&(!a||p<a)&&(i._spread=!0),i.end=point(a?e[a][1].start:c[1].end),e.splice(a||d,0,["exit",i,c[2]]),d++,n++}c[1].type===l.listItemPrefix&&(i={type:"listItem",_spread:!1,start:point(c[1].start)},e.splice(d,0,["enter",i,c[2]]),d++,n++,p=void 0,h=!0)}return e[t][1]._spread=g,n}function point(e){return{line:e.line,column:e.column,offset:e.offset}}function open(e,t){return enter;function enter(n){var i=e(n);m.children.push(i),m=i,y.push(i),i.position={start:point(n.start)},t&&t.call(this,n)}}function buffer(){var e={type:"fragment",children:[]};m=e,y.push(e)}function close(e){return exit;function exit(t){e&&e.call(this,t),y.pop().position.end=point(t.end),m=y[y.length-1]}}function resume(){var e=o(y.pop());return m=y[y.length-1],e}function onenterlistordered(){p=!0}function onenterlistitemvalue(e){p&&(y[y.length-2].start=parseInt(this.sliceSerialize(e),s.numericBaseDecimal),p=void 0)}function onexitcodefencedfenceinfo(){var e=resume();m.lang=e}function onexitcodefencedfencemeta(){var e=resume();m.meta=e}function onexitcodefencedfence(){e||(buffer(),e=!0)}function onexitcodefenced(){var t=resume();m.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),e=void 0}function onexitcodeindented(){var e=resume();m.value=e}function onexitdefinitionlabelstring(e){resume();var t=this.sliceSerialize(e);m.label=t,m.identifier=h(t).toLowerCase()}function onexitdefinitiontitlestring(){var e=resume();m.title=e}function onexitdefinitiondestinationstring(){var e=resume();m.url=e}function onexitatxheadingsequence(e){m.depth||(m.depth=this.sliceSerialize(e).length)}function onexitsetextheadingtext(){t=!0}function onexitsetextheadinglinesequence(e){m.depth=this.sliceSerialize(e).charCodeAt(0)===a.equalsTo?1:2}function onexitsetextheading(){t=void 0}function onenterdata(e){var t=m.children,n=t[t.length-1];n&&"text"===n.type||((n=text()).position={start:point(e.start)},m.children.push(n)),m=n,y.push(n)}function onexitdata(e){var t=y.pop();t.value+=this.sliceSerialize(e),t.position.end=point(e.end),m=y[y.length-1]}function onexitlineending(e){if(f)return m.children[m.children.length-1].position.end=point(e.end),void(f=void 0);t||"emphasis"!==m.type&&"fragment"!==m.type&&"heading"!==m.type&&"paragraph"!==m.type&&"strong"!==m.type||(onenterdata.call(this,e),onexitdata.call(this,e))}function onexithardbreak(){f=!0}function onexithtmlflow(){var e=resume();m.value=e}function onexithtmltext(){var e=resume();m.value=e}function onexitcodetext(){var e=resume();m.value=e}function onenterimage(){buffer()}function onexitlink(){g?(m.type+="Reference",m.referenceType=x||"shortcut",delete m.url,delete m.title):(delete m.identifier,delete m.label,delete m.referenceType),x=void 0}function onexitimage(){g?(m.type+="Reference",m.referenceType=x||"shortcut",delete m.url,delete m.title):(delete m.identifier,delete m.label,delete m.referenceType),x=void 0}function onexitlabeltext(e){var t=this.sliceSerialize(e),n="fragment"===m.type?y[y.length-2]:m;n.label=t,n.identifier=h(t).toLowerCase()}function onexitlabel(){var e;g=!0,"fragment"===m.type&&(e=resume(),m.alt=e)}function onexitresourcedestinationstring(){var e=resume();m.url=e}function onexitresourcetitlestring(){var e=resume();m.title=e}function onexitresource(){g=void 0}function onenterreference(){x="collapsed"}function onexitreferencestring(e){resume();var t=this.sliceSerialize(e);m.label=t,m.identifier=h(t).toLowerCase(),x="full"}function onexitcharacterreferencemarker(e){n=e.type}function onexitcharacterreferencevalue(e){var t,o=this.sliceSerialize(e);t=n?d(o,n===l.characterReferenceMarkerNumeric?s.numericBaseDecimal:s.numericBaseHexadecimal):i(o),m.value+=t,n=void 0}function onexitautolinkprotocol(e){onexitdata.call(this,e),m.url=this.sliceSerialize(e)}function onexitautolinkemail(e){onexitdata.call(this,e),m.url="mailto:"+this.sliceSerialize(e)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function listItem(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}()(x()(p(p([e,a.eof],g(),t),f().document().write)))};var i=n(9435),o=n(4999),a=n(3546),s=n(4323),c=n(6706),l=n(1180),p=n(1615),h=n(5478),d=n(596),f=n(2976),g=n(162),x=n(1242)},4999:e=>{"use strict";function toString(e){return e&&(e.value||e.alt||e.title||"children"in e&&all(e.children)||"length"in e&&all(e))||""}function all(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=toString(e[i]);return t.join("")}e.exports=toString},6734:(e,t,n)=>{e.exports=function asciiAlpha(e){return/[A-Za-z]/.test(i(e))};var i=n(3267)},6712:(e,t,n)=>{e.exports=function asciiAlphanumeric(e){return/[\dA-Za-z]/.test(i(e))};var i=n(3267)},3571:(e,t,n)=>{e.exports=function asciiAtext(e){return/[#-'*+\--9=?A-Z^-~]/.test(i(e))};var i=n(3267)},9696:e=>{e.exports=function asciiControl(e){return e<32||127===e}},3977:(e,t,n)=>{e.exports=function asciiDigit(e){return/\d/.test(i(e))};var i=n(3267)},6238:(e,t,n)=>{e.exports=function asciiHexDigit(e){return/[\dA-Fa-f]/.test(i(e))};var i=n(3267)},3074:(e,t,n)=>{e.exports=function asciiPunctuation(e){return/[!-/:-@[-`{-~]/.test(i(e))};var i=n(3267)},3546:(e,t)=>{t.carriageReturn=-5,t.lineFeed=-4,t.carriageReturnLineFeed=-3,t.horizontalTab=-2,t.virtualSpace=-1,t.eof=null,t.nul=0,t.soh=1,t.stx=2,t.etx=3,t.eot=4,t.enq=5,t.ack=6,t.bel=7,t.bs=8,t.ht=9,t.lf=10,t.vt=11,t.ff=12,t.cr=13,t.so=14,t.si=15,t.dle=16,t.dc1=17,t.dc2=18,t.dc3=19,t.dc4=20,t.nak=21,t.syn=22,t.etb=23,t.can=24,t.em=25,t.sub=26,t.esc=27,t.fs=28,t.gs=29,t.rs=30,t.us=31,t.space=32,t.exclamationMark=33,t.quotationMark=34,t.numberSign=35,t.dollarSign=36,t.percentSign=37,t.ampersand=38,t.apostrophe=39,t.leftParenthesis=40,t.rightParenthesis=41,t.asterisk=42,t.plusSign=43,t.comma=44,t.dash=45,t.dot=46,t.slash=47,t.digit0=48,t.digit1=49,t.digit2=50,t.digit3=51,t.digit4=52,t.digit5=53,t.digit6=54,t.digit7=55,t.digit8=56,t.digit9=57,t.colon=58,t.semicolon=59,t.lessThan=60,t.equalsTo=61,t.greaterThan=62,t.questionMark=63,t.atSign=64,t.uppercaseA=65,t.uppercaseB=66,t.uppercaseC=67,t.uppercaseD=68,t.uppercaseE=69,t.uppercaseF=70,t.uppercaseG=71,t.uppercaseH=72,t.uppercaseI=73,t.uppercaseJ=74,t.uppercaseK=75,t.uppercaseL=76,t.uppercaseM=77,t.uppercaseN=78,t.uppercaseO=79,t.uppercaseP=80,t.uppercaseQ=81,t.uppercaseR=82,t.uppercaseS=83,t.uppercaseT=84,t.uppercaseU=85,t.uppercaseV=86,t.uppercaseW=87,t.uppercaseX=88,t.uppercaseY=89,t.uppercaseZ=90,t.leftSquareBracket=91,t.backslash=92,t.rightSquareBracket=93,t.caret=94,t.underscore=95,t.graveAccent=96,t.lowercaseA=97,t.lowercaseB=98,t.lowercaseC=99,t.lowercaseD=100,t.lowercaseE=101,t.lowercaseF=102,t.lowercaseG=103,t.lowercaseH=104,t.lowercaseI=105,t.lowercaseJ=106,t.lowercaseK=107,t.lowercaseL=108,t.lowercaseM=109,t.lowercaseN=110,t.lowercaseO=111,t.lowercaseP=112,t.lowercaseQ=113,t.lowercaseR=114,t.lowercaseS=115,t.lowercaseT=116,t.lowercaseU=117,t.lowercaseV=118,t.lowercaseW=119,t.lowercaseX=120,t.lowercaseY=121,t.lowercaseZ=122,t.leftCurlyBrace=123,t.verticalBar=124,t.rightCurlyBrace=125,t.tilde=126,t.del=127,t.replacementCharacter=65533},8367:e=>{e.exports=function markdownLineEndingOrSpace(e){return-5===e||-4===e||-3===e||-2===e||-1===e||32===e}},7238:e=>{e.exports=function markdownLineEnding(e){return-5===e||-4===e||-3===e}},3654:e=>{e.exports=function markdownSpace(e){return-2===e||-1===e||32===e}},6996:(e,t,n)=>{e.exports=function punctuation(e){return i.test(o(e))};var i=n(6830),o=n(3267)},395:(e,t,n)=>{e.exports=function whitespace(e){return/\s/.test(i(e))};var i=n(3267)},9198:e=>{e.exports=Object.assign},2245:e=>{e.exports=Math.ceil},4323:(e,t)=>{t.asciiAlphaCaseDifference=32,t.attentionSideBefore=1,t.attentionSideAfter=2,t.atxHeadingOpeningFenceSizeMax=6,t.autolinkDomainSizeMax=63,t.autolinkSchemeSizeMax=32,t.cdataOpeningString="CDATA[",t.characterGroupWhitespace=1,t.characterGroupPunctuation=2,t.characterReferenceDecimalSizeMax=7,t.characterReferenceHexadecimalSizeMax=6,t.characterReferenceNamedSizeMax=31,t.codeFencedSequenceSizeMin=3,t.contentTypeFlow="flow",t.contentTypeContent="content",t.contentTypeString="string",t.contentTypeText="text",t.hardBreakPrefixSizeMin=2,t.htmlRaw=1,t.htmlComment=2,t.htmlInstruction=3,t.htmlDeclaration=4,t.htmlCdata=5,t.htmlBasic=6,t.htmlComplete=7,t.htmlRawSizeMax=6,t.linkResourceDestinationBalanceMax=3,t.linkReferenceSizeMax=999,t.listItemValueSizeMax=10,t.numericBaseDecimal=10,t.numericBaseHexadecimal=16,t.tabSize=4,t.thematicBreakMarkerCountMin=3},3267:e=>{e.exports=String.fromCharCode},6706:e=>{e.exports={}.hasOwnProperty},7139:e=>{e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6871:e=>{e.exports=["pre","script","style"]},1362:e=>{e.exports=[].splice},1180:(e,t)=>{t.data="data",t.whitespace="whitespace",t.lineEnding="lineEnding",t.lineEndingBlank="lineEndingBlank",t.linePrefix="linePrefix",t.lineSuffix="lineSuffix",t.atxHeading="atxHeading",t.atxHeadingSequence="atxHeadingSequence",t.atxHeadingText="atxHeadingText",t.autolink="autolink",t.autolinkEmail="autolinkEmail",t.autolinkMarker="autolinkMarker",t.autolinkProtocol="autolinkProtocol",t.characterEscape="characterEscape",t.characterEscapeValue="characterEscapeValue",t.characterReference="characterReference",t.characterReferenceMarker="characterReferenceMarker",t.characterReferenceMarkerNumeric="characterReferenceMarkerNumeric",t.characterReferenceMarkerHexadecimal="characterReferenceMarkerHexadecimal",t.characterReferenceValue="characterReferenceValue",t.codeFenced="codeFenced",t.codeFencedFence="codeFencedFence",t.codeFencedFenceSequence="codeFencedFenceSequence",t.codeFencedFenceInfo="codeFencedFenceInfo",t.codeFencedFenceMeta="codeFencedFenceMeta",t.codeFlowValue="codeFlowValue",t.codeIndented="codeIndented",t.codeText="codeText",t.codeTextPaddingWhitespace="codeTextPaddingWhitespace",t.codeTextPaddingLineEnding="codeTextPaddingLineEnding",t.codeTextSequence="codeTextSequence",t.content="content",t.definition="definition",t.definitionDestination="definitionDestination",t.definitionDestinationLiteral="definitionDestinationLiteral",t.definitionDestinationMarker="definitionDestinationMarker",t.definitionDestinationRaw="definitionDestinationRaw",t.definitionDestinationString="definitionDestinationString",t.definitionLabel="definitionLabel",t.definitionLabelMarker="definitionLabelMarker",t.definitionLabelString="definitionLabelString",t.definitionMarker="definitionMarker",t.definitionTitle="definitionTitle",t.definitionTitleMarker="definitionTitleMarker",t.definitionTitleString="definitionTitleString",t.emphasis="emphasis",t.emphasisSequence="emphasisSequence",t.emphasisText="emphasisText",t.escapeMarker="escapeMarker",t.hardBreakEscape="hardBreakEscape",t.hardBreakTrailing="hardBreakTrailing",t.htmlFlow="htmlFlow",t.htmlText="htmlText",t.image="image",t.label="label",t.labelText="labelText",t.labelLink="labelLink",t.labelImage="labelImage",t.labelMarker="labelMarker",t.labelImageMarker="labelImageMarker",t.labelEnd="labelEnd",t.link="link",t.paragraph="paragraph",t.reference="reference",t.referenceMarker="referenceMarker",t.referenceString="referenceString",t.resource="resource",t.resourceDestination="resourceDestination",t.resourceDestinationLiteral="resourceDestinationLiteral",t.resourceDestinationLiteralMarker="resourceDestinationLiteralMarker",t.resourceDestinationRaw="resourceDestinationRaw",t.resourceDestinationString="resourceDestinationString",t.resourceMarker="resourceMarker",t.resourceTitle="resourceTitle",t.resourceTitleMarker="resourceTitleMarker",t.resourceTitleString="resourceTitleString",t.setextHeading="setextHeading",t.setextHeadingText="setextHeadingText",t.setextHeadingLine="setextHeadingLine",t.setextHeadingLineSequence="setextHeadingLineSequence",t.strong="strong",t.strongSequence="strongSequence",t.strongText="strongText",t.thematicBreak="thematicBreak",t.thematicBreakSequence="thematicBreakSequence",t.blockQuote="blockQuote",t.blockQuotePrefix="blockQuotePrefix",t.blockQuoteMarker="blockQuoteMarker",t.blockQuotePrefixWhitespace="blockQuotePrefixWhitespace",t.listOrdered="listOrdered",t.listUnordered="listUnordered",t.listItemIndent="listItemIndent",t.listItemMarker="listItemMarker",t.listItemPrefix="listItemPrefix",t.listItemPrefixWhitespace="listItemPrefixWhitespace",t.listItemValue="listItemValue",t.chunkContent="chunkContent",t.chunkFlow="chunkFlow",t.chunkParagraph="chunkParagraph",t.chunkText="chunkText",t.chunkString="chunkString"},6830:e=>{e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},3745:(e,t,n)=>{t.tokenize=function initializeContent(e){var t,n=e.attempt(this.parser.hooks.contentInitial,(function afterContentStartConstruct(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n}),(function paragraphInitial(t){return e.enter("paragraph"),lineStart(t)}));return n;function lineStart(n){var i=e.enter("chunkParagraph");return i.contentType="text",i.previous=t,t&&(t.next=i),t=i,data(n)}function data(t){return null===t?(e.exit("chunkParagraph"),e.exit("paragraph"),void e.consume(t)):i(t)?(e.consume(t),e.exit("chunkParagraph")._break=!0,lineStart):(e.consume(t),data)}};var i=n(7238)},4201:(e,t,n)=>{t.tokenize=function initializeDocument(e){var t,n,a=this,p=[],h=0,d={},f={tokenize:function tokenizeInspect(e,n){var i=0;return d={},inspectStart;function inspectStart(t){return i<p.length?(a.containerState=p[i][1],e.attempt(p[i][0].continuation,inspectContinue,less)(t)):inspectContinued(t)}function inspectContinue(e){return i++,a.containerState._closeFlow?flowEnd(e):inspectStart(e)}function inspectContinued(n){return t.currentConstruct&&t.currentConstruct.concrete?flowContinue(n):(a.interrupt=t.currentConstruct&&"content"===t.currentConstruct.name,a.containerState={},e.attempt(c,flowEnd,done)(n))}function less(n){return t.currentConstruct&&"content"===t.currentConstruct.name?(a.containerState={},e.attempt(c,flowEnd,e.attempt(l,flowEnd,e.check(s,flowEnd,lazy)))(n)):flowEnd(n)}function lazy(e){return i=p.length,d.lazy=!0,flowContinue(e)}function flowContinue(e){return d.flowContinue=!0,done(e)}function flowEnd(e){return d.flowEnd=!0,done(e)}function done(e){return d.continued=i,a.containerState=void 0,a.interrupt=void 0,n(e)}},partial:!0};return start;function start(t){return h<p.length?(a.containerState=p[h][1],e.attempt(p[h][0].continuation,documentContinue,documentContinued)(t)):documentContinued(t)}function documentContinue(e){return h++,start(e)}function documentContinued(n){return d.flowContinue?flowStart(n):(a.interrupt=t&&t.currentConstruct&&"content"===t.currentConstruct.name,a.containerState={},e.attempt(c,containerContinue,flowStart)(n))}function containerContinue(e){return p.push([a.currentConstruct,a.containerState]),a.containerState=void 0,documentContinued(e)}function flowStart(n){return null===n?documentAtEof(n):(t||(t=a.parser.flow(a.now())),e.enter("chunkFlow"),flowContinue(n))}function flowContinue(t){return null===t?(continueFlow(e.exit("chunkFlow")),documentAtEof(t)):i(t)?(e.consume(t),continueFlow(e.exit("chunkFlow"),!0),e.check(f,documentAfterPeek)):(e.consume(t),flowContinue)}function documentAfterPeek(e){return exitContainers(d.continued),h=0,start(e)}function documentAtEof(t){exitContainers(t),e.consume(t)}function continueFlow(e,i){e.contentType="flow",e._tokenizer=t,e._break=i,n&&(n.next=e),e.previous=n,n=e,t.lazy=d.lazy,t.defineSkip(e.start),o(a.sliceStream(e),t.write)}function exitContainers(i){var o;for(t&&(d.flowEnd||null===i)&&(t.write(null),t=void 0,n=void 0),o=p.length;o-- >i;)a.containerState=p[o][1],p[o][0].exit.call(a,e);p.length=i,a.containerState=void 0}};var i=n(7238),o=n(1615),a=n(2648),s=n(6532),c={tokenize:function tokenizeContainer(e,t,n){return e.attempt(a("linePrefix",4),e.attempt(this.parser.hooks.document,t,n))}},l={tokenize:function tokenizeLazyFlow(e,t,n){return e.attempt(a("linePrefix",4),e.lazy(this.parser.hooks.flow,t,n))}}},2871:(e,t,n)=>{t.tokenize=function initializeFlow(e){var t=this,n=e.attempt(this.parser.hooks.flow,afterConstruct,e.attempt(c,(function atBlankEnding(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}),e.attempt(l,afterConstruct))),i=e.attempt(this.parser.hooks.flowInitial,afterConstruct,e.attempt(s("linePrefix"),n));return i;function afterConstruct(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,i;e.consume(n)}};var i=n(7238),o=n(4423),a=n(5096),s=n(2648),c=n(6532),l={tokenize:function tokenizeContent(e,t){var n;return function startContent(t){var i;return e.enter("content"),(i=e.enter("chunkContent")).contentType="content",n=i,data(t)};function data(t){return null===t?contentEnd(t):i(t)?e.check(p,contentEnd,contentContinue)(t):(e.consume(t),data)}function contentEnd(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function contentContinue(t){var i;return e.consume(t),e.exit("chunkContent")._break=!0,(i=e.enter("chunkContent")).contentType="content",i.previous=n,n.next=i,n=i,data}},resolve:function resolveContent(e){return o(e).events},name:"content"},p={tokenize:function tokenizeLookaheadConstruct(e,t,n){var o=this;return function startLookahead(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(s("linePrefix"),prefixed)};function prefixed(s){return a(o.events)<4?null===s||i(s)?t(s):e.interrupt(o.parser.hooks.flow,t,n)(s):n(s)}},partial:!0}},7082:(e,t,n)=>{t.text=initializeFactory("text"),t.string=initializeFactory("string");var i=n(6706);function initializeFactory(e){return{tokenize:function initializeText(t){var n=this.parser.hooks[e],o=t.attempt(n,(function after(e){if(null===e)return void t.consume(e);return o(e)}),(function dataStart(e){if(null===e)return void t.consume(e);return t.enter("data"),t.consume(e),data}));return o;function data(e){return null===e||i.call(n,e)?(t.exit("data"),o(e)):(t.consume(e),data)}}}}},2976:(e,t,n)=>{e.exports=function createParser(){var e,t={},n={},N={},I={},O={},F={};return t[42]=h,t[43]=h,t[45]=h,t[48]=h,t[49]=h,t[50]=h,t[51]=h,t[52]=h,t[53]=h,t[54]=h,t[55]=h,t[56]=h,t[57]=h,t[62]=d,n[91]=S,N[-2]=m,N[-1]=m,N[32]=m,I[35]=l,I[42]=P,I[45]=[b,P],I[60]=v,I[61]=b,I[95]=P,I[96]=x,I[126]=x,O[38]=g,O[92]=f,F[-5]=L,F[-4]=L,F[-3]=L,F[-2]=L,F[32]=L,F[33]=E,F[38]=g,F[42]=c,F[60]=[p,C],F[91]=k,F[92]=[T,f],F[93]=A,F[95]=c,F[96]=y,e={defined:[],hooks:{contentInitial:n,document:t,flowInitial:N,flow:I,string:O,text:F},content:create(i),document:create(o),flow:create(a),string:create(s.string),text:create(s.text)};function create(t){return function creator(n){return _(e,t,n)}}};var i=n(3745),o=n(4201),a=n(2871),s=n(7082),c=n(7542),l=n(5565),p=n(1349),h=n(6931),d=n(5485),f=n(9653),g=n(6713),x=n(6597),m=n(431),y=n(26),S=n(3865),T=n(5694),v=n(6872),C=n(8911),A=n(1294),E=n(6215),k=n(534),b=n(5874),P=n(7039),L=n(2602),_=n(1388)},1242:(e,t,n)=>{e.exports=function postprocessor(){return postprocess};var i=n(4423);function postprocess(e){for(var t,n;!t;)e=(n=i(e)).events,t=n.done;return e}},162:(e,t,n)=>{e.exports=function preprocessor(){var e,t=1,n="";return function preprocess(a,s){var c,l,p,h,d,f,g=[];if(null===a)return e&&g.push(-5),n&&g.push(n),g.push(a),g;a=n+a.toString(s),h=a.length,p=0,n="";for(;p<h;){if(o.lastIndex=p,d=(c=o.exec(a))?c.index:h,f=a.charCodeAt(d),!c){n=a.slice(p);break}if(p===d&&e&&10===f)g.push(-3),e=void 0;else if(e&&(g.push(-5),e=void 0),p<d&&(g.push(a.slice(p,d)),t+=d-p),0===f)g.push(65533),t++;else if(9===f)for(l=4*i(t/4),g.push(-2);t++<l;)g.push(-1);else 10===f?(g.push(-4),t=1):(e=!0,t=1);p=d+1}return g}};var i=n(2245),o=/[\0\t\n\r]/g},7542:(e,t,n)=>{t.tokenize=function tokenizeAttention(e,t,n){var i,a=o(this.previous),c=0;return function start(t){if(42!==t&&95!==t)return n(t);return e.enter(s),i=t,more(t)};function more(n){var l,p,h,d,f;return n===i?(e.consume(n),c++,more):(l=e.exit(s),h=!(p=o(n))||a&&2===p,d=!a||p&&2===a,95===i&&(f=h,h=h&&(a||!d),d=d&&(p||!f)),l._events=[],l._marker=i,l._open=h,l._close=d,l._size=c,t(n))}},t.resolveAll=function resolveAllAttention(e,t){var n,o,c,l,p,h,d,f,g,x,m,y,S,T,v,C,A,E=e.length,k=-1;for(;++k<E;)(n=e[k][1]).type===s&&n._events&&(c=o,o={token:n,size:n._size,previous:c},c?c.next=o:h=o,k++);(m={})[42]=[],m[95]=[];for(;h;)if((n=h.token)._close){for(A=n._marker,p=h.previous,x=void 0;p&&p!==m[A][n._size%3];){if((y=p.token)._marker===A&&y._open&&(!((n._open||y._close)&&n._size%3)||(y._size+n._size)%3)){x=!0;break}p=p.previous}d=h,x?(f=h.size>1&&p.size>1?2:1,p.size-=f,h.size-=f,T={type:f>1?"strongSequence":"emphasisSequence",start:a(i(y.end),-f),end:i(y.end)},v={type:f>1?"strongText":"emphasisText",start:i(y.end),end:i(n.start)},S={type:f>1?"strong":"emphasis",start:i(T.start)},y._events.unshift(["enter",S,t],["enter",T,t],["exit",T,t],["enter",v,t]),y.end=i(T.start),y._side=1,T={type:T.type,start:n.start,end:a(i(n.start),f)},S.end=i(T.end),n._events.push(["exit",v,t],["enter",T,t],["exit",T,t],["exit",S,t]),n.start=i(T.end),n._side=2,p.next=h,h.previous=p,p.size||unlink(p),h.size||(g=h.next,unlink(h),h=g)):h=h.next,x||(m[A][n._size%3]=d.previous,n._open||unlink(d))}else h=h.next;E=e.length,k=-1;for(;++k<E;)(n=e[k][1]).type===s&&n._events&&(l=n._events,n.start.offset!==n.end.offset&&(C={type:"data",start:n.start,end:n.end},l[1===n._side?"unshift":"push"](["enter",C,t],["exit",C,t])),n._subevents=l,n._events=void 0,k++);return e;function unlink(e){var t=e.previous,n=e.next;t&&(t.next=n),n?n.previous=t:o=t}};var i=n(5923),o=n(9444),a=n(5644),s="attentionSequence"},1349:(e,t,n)=>{t.tokenize=function tokenizeAutolink(e,t,n){var c,l;return function start(t){if(60!==t)return n(t);return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),c=e.enter("autolinkProtocol"),open};function open(t){return i(t)?(e.consume(t),l=1,schemeOrEmailAtext):a(t)?emailAtext(t):n(t)}function schemeOrEmailAtext(e){return 43===e||45===e||46===e||o(e)?schemeInsideOrEmailAtext(e):64===e||a(e)?emailAtext(e):n(e)}function schemeInsideOrEmailAtext(t){return 58===t?(e.consume(t),urlInside):l++<32&&(43===t||46===t||45===t||o(t))?(e.consume(t),schemeInsideOrEmailAtext):64===t||a(t)?emailAtext(t):n(t)}function urlInside(t){return 62===t?(e.exit("autolinkProtocol"),end(t)):32===t||60===t||s(t)?n(t):(e.consume(t),urlInside)}function emailAtext(t){return 64===t?(e.consume(t),l=0,emailAtSignOrDot):a(t)?(e.consume(t),emailAtext):n(t)}function emailAtSignOrDot(e){return o(e)?emailLabel(e):n(e)}function emailLabel(t){return 46===t?(e.consume(t),l=0,emailAtSignOrDot):62===t?(c.type="autolinkEmail",e.exit("autolinkEmail"),end(t)):emailDashState(t)}function emailDashState(t){return l<63&&45===t?(e.consume(t),l++,emailDashState):l<63&&o(t)?(e.consume(t),l++,emailLabel):n(t)}function end(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}};var i=n(6734),o=n(6712),a=n(3571),s=n(9696)},5485:(e,t,n)=>{t.tokenize=function tokenizeBlockQuoteStart(e,t,n){var o=this;return function start(t){if(62!==t)return n(t);o.containerState.started||(e.enter("blockQuote"),o.containerState.started=!0);return e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),after};function after(n){return i(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},t.continuation={tokenize:function tokenizeBlockQuoteContinuation(e,n,i){return e.attempt(o("linePrefix",4),e.attempt(t,n,i))}},t.exit=function exit(e){e.exit("blockQuote")};var i=n(3654),o=n(2648)},9653:(e,t,n)=>{t.tokenize=function tokenizeCharacterEscape(e,t,n){return function start(t){if(92!==t)return n(t);return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),open};function open(o){return i(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}};var i=n(3074)},6713:(e,t,n)=>{t.tokenize=function tokenizeCharacterReference(e,t,n){var l="",p=0;return function start(t){if(38!==t)return n(t);return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),open};function open(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),numericStart):o(t)?(e.enter("characterReferenceValue"),named(t)):n(t)}function numericStart(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),hexadecimalStart):a(t)?(e.enter("characterReferenceValue"),decimal(t)):n(t)}function hexadecimalStart(t){return s(t)?(e.enter("characterReferenceValue"),hexadecimal(t)):n(t)}function named(t){return 59===t&&i(l)?end(t):l.length<31&&o(t)?(e.consume(t),l+=c(t),named):n(t)}function hexadecimal(t){return 59===t?end(t):p++<6&&s(t)?(e.consume(t),hexadecimal):n(t)}function decimal(t){return 59===t?end(t):p++<7&&a(t)?(e.consume(t),decimal):n(t)}function end(n){return e.exit("characterReferenceValue"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),e.exit("characterReference"),t}};var i=n(9435),o=n(6712),a=n(3977),s=n(6238),c=n(3267)},6597:(e,t,n)=>{t.tokenize=function tokenizeCodeFenced(e,t,n){var c,l=this,p=a(this.events),h={tokenize:function tokenizeClosingFence(e,t,n){var o=0;return e.attempt(s("linePrefix",4),closingPrefixAfter);function closingPrefixAfter(t){return t===c?(e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),closingSequence(t)):n(t)}function closingSequence(t){return t===c?(e.consume(t),o++,closingSequence):o<d?n(t):(e.exit("codeFencedFenceSequence"),e.attempt(s("whitespace"),closingSequenceEnd)(t))}function closingSequenceEnd(o){return null===o||i(o)?(e.exit("codeFencedFence"),t(o)):n(o)}},partial:!0},d=0;return function start(t){if(96!==t&&126!==t)return n(t);return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,sequenceOpen(t)};function sequenceOpen(t){return t===c?(e.consume(t),d++,sequenceOpen):d<3?n(t):(e.exit("codeFencedFenceSequence"),e.attempt(s("whitespace"),infoOpen)(t))}function infoOpen(t){return null===t||i(t)?openAfter(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString").contentType="string",info(t))}function info(t){return null===t||o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e.attempt(s("whitespace"),infoAfter)(t)):t===c&&96===c?n(t):(e.consume(t),info)}function infoAfter(t){return null===t||i(t)?openAfter(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString").contentType="string",meta(t))}function meta(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),openAfter(t)):t===c&&96===c?n(t):(e.consume(t),meta)}function openAfter(n){return e.exit("codeFencedFence"),l.interrupt?t(n):null===n?after(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(h,after,lineStart))}function lineStart(t){return p?e.attempt(s("linePrefix",p+1),afterPrefix)(t):afterPrefix(t)}function afterPrefix(t){return null===t||i(t)?lineEnd(t):(e.enter("codeFlowValue"),lineData(t))}function lineData(t){return null===t||i(t)?(e.exit("codeFlowValue"),lineEnd(t)):(e.consume(t),lineData)}function lineEnd(t){return null===t?after(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(h,after,lineStart))}function after(n){return e.exit("codeFenced"),t(n)}},t.resolve=function resolveCodeFenced(e){var t=e.length,n=-1,i=0;for(;++n<t;)"enter"===e[n][0]&&"codeFencedFence"===e[n][1].type&&i++;if(i<2&&"lineEnding"===e[t-3][1].type)return[].concat(e.slice(0,-3),[e[t-1]],e.slice(-3,-1));return e},t.concrete=!0;var i=n(7238),o=n(8367),a=n(5096),s=n(2648)},431:(e,t,n)=>{t.tokenize=function tokenizeCodeIndented(e,t,n){var l,p=this;return e.attempt(s("linePrefix",5),afterPrefix);function afterPrefix(t){return null===t||i(t)?lineEnd(t):a(p.events)<4?end(t):(e.enter("codeFlowValue"),content(t))}function content(t){return null===t||i(t)?(e.exit("codeFlowValue"),lineEnd(t)):(e.consume(t),o(t)||(l=!0),content)}function lineEnd(t){return l&&null!==t?e.check(c,continued,end):end(t)}function continued(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(s("linePrefix",5),afterPrefix)}function end(e){return(l?t:n)(e)}},t.resolve=function resolveCodeIndented(e,t){var n,i,o,a=e.length;for(;a--;)if("lineEnding"===(i=e[a][1]).type)(n=i).type="lineEndingBlank";else if("lineEndingBlank"!==i.type&&"linePrefix"!==i.type)break;n&&(n.type="lineEnding");return o={type:"codeIndented",start:e[0][1].start,end:i.end},[].concat([["enter",o,t]],e.slice(0,a+1),[["exit",o,t]],e.slice(a+1))};var i=n(7238),o=n(3654),a=n(5096),s=n(2648),c={tokenize:function tokenizeContinuedIndent(e,t,n){var o=this;return e.attempt(s("linePrefix",5),(function afterPrefix(c){if(i(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(s("linePrefix",5),afterPrefix);return a(o.events)<4?n(c):t(c)}))},partial:!0}},26:(e,t,n)=>{t.tokenize=function tokenizeCodeText(e,t,n){var o,a,s=this,c=0;return function start(t){if(96!==t||96===s.previous&&"characterEscape"!==s.events[s.events.length-1][1].type)return n(t);return e.enter("codeText"),e.enter("codeTextSequence"),openingSequence(t)};function openingSequence(t){return 96===t?(e.consume(t),c++,openingSequence):(e.exit("codeTextSequence"),gap(t))}function gap(t){return null===t?n(t):96===t?(a=e.enter("codeTextSequence"),o=0,closingSequence(t)):i(t)?(e.enter("codeTextPaddingLineEnding"),e.consume(t),e.exit("codeTextPaddingLineEnding"),gap):32===t?(e.enter("codeTextPaddingWhitespace"),e.consume(t),e.exit("codeTextPaddingWhitespace"),gap):(e.enter("data"),data(t))}function data(t){return null===t||32===t||96===t||i(t)?(e.exit("data"),gap(t)):(e.consume(t),data)}function closingSequence(n){return 96===n?(e.consume(n),o++,closingSequence):o===c?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="data",data(n))}},t.resolve=function resolveCodeText(e){var t,n,i=e.length-4,o=3,a=e[i][1],s=e[o][1];if(!("codeTextPaddingLineEnding"!==s.type&&"codeTextPaddingWhitespace"!==s.type||"codeTextPaddingLineEnding"!==a.type&&"codeTextPaddingWhitespace"!==a.type))for(n=o;++n<i;)if("data"===e[n][1].type){o+=2,i-=2;break}n=o-1;for(;++n<i;)"codeTextPaddingLineEnding"===(t=e[n][1]).type?t.type="lineEnding":"codeTextPaddingWhitespace"===t.type&&(t.type="data");return e};var i=n(7238)},3865:(e,t,n)=>{t.tokenize=function tokenizeDefinition(e,t,n){var c,d=e.attempt(l("whitespace"),(function after(i){if(null===i||o(i))return e.exit("definition"),t(i);return n(i)})),f=e.attempt(h,d,d),g=0,x=0;return function start(t){return 91!==t?n(t):(e.enter("definition"),e.enter("definitionLabel"),e.enter("definitionLabelMarker"),e.consume(t),e.exit("definitionLabelMarker"),e.enter("definitionLabelString"),atBreak)};function atBreak(t){return null===t||91===t||x>999?n(t):93===t?c?(e.exit("definitionLabelString"),e.enter("definitionLabelMarker"),e.consume(t),e.exit("definitionLabelMarker"),e.exit("definitionLabel"),labelAfter):n(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),x++,atBreak):(e.enter("chunkString").contentType="string",label(t))}function label(t){return null===t||91===t||93===t||x>999||o(t)?(e.exit("chunkString"),atBreak(t)):(s(t)||(c=!0),x++,e.consume(t),92===t?labelEscape:label)}function labelEscape(t){return 92===t||91===t||93===t?(e.consume(t),x++,label):label(t)}function labelAfter(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),between):n(t)}function between(t){return 60===t?(e.enter("definitionDestination"),e.enter("definitionDestinationLiteral"),e.enter("definitionDestinationMarker"),e.consume(t),e.exit("definitionDestinationMarker"),destinationEnclosedBefore):a(t)?e.attempt(p,between)(t):i(t)?n(t):(e.enter("definitionDestination"),e.enter("definitionDestinationRaw"),e.enter("definitionDestinationString"),e.enter("chunkString").contentType="string",e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationEnclosedBefore(t){return 62===t?(e.enter("definitionDestinationMarker"),e.consume(t),e.exit("definitionDestinationMarker"),e.exit("definitionDestinationLiteral"),e.exit("definitionDestination"),f):null===t||o(t)?n(t):(e.enter("definitionDestinationString"),e.enter("chunkString").contentType="string",e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosed(t){return 62===t?(e.exit("chunkString"),e.exit("definitionDestinationString"),destinationEnclosedBefore(t)):null===t||o(t)?n(t):(e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosedEscape(t){return 60===t||62===t||92===t?(e.consume(t),destinationEnclosed):destinationEnclosed(t)}function destinationRaw(t){return 40===t?(e.consume(t),g++,destinationRaw):41===t?g?(e.consume(t),g--,destinationRaw):n(t):null===t||a(t)?g?n(t):(e.exit("chunkString"),e.exit("definitionDestinationString"),e.exit("definitionDestinationRaw"),e.exit("definitionDestination"),f(t)):i(t)?n(t):(e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationRawEscape(t){return 40===t||41===t||92===t?(e.consume(t),destinationRaw):destinationRaw(t)}},t.resolve=function resolveDefinition(e,t){var n,i=e.length,o=-1;for(;++o<i;)"enter"===e[o][0]&&"definitionLabelString"===e[o][1].type&&(n=c(t.sliceSerialize(e[o][1])),t.parser.defined.indexOf(n)<0&&t.parser.defined.push(n));return e};var i=n(9696),o=n(7238),a=n(8367),s=n(3654),c=n(5478),l=n(2648),p=n(6064),h={tokenize:function tokenizeTitle(e,t,n){var i;return function start(t){return a(t)?e.attempt(p,before)(t):n(t)};function before(t){return 34===t||39===t||40===t?(e.enter("definitionTitle"),e.enter("definitionTitleMarker"),e.consume(t),e.exit("definitionTitleMarker"),i=40===t?41:t,atFirstBreak):n(t)}function atFirstBreak(t){return t===i?atMarker(t):(e.enter("definitionTitleString"),atBreak(t))}function atBreak(t){return null===t?n(t):t===i?(e.exit("definitionTitleString"),atMarker(i)):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),atBreak):(e.enter("chunkString").contentType="string",e.consume(t),92===t?escape:data)}function data(t){return null===t||t===i||o(t)?(e.exit("chunkString"),atBreak(t)):(e.consume(t),92===t?escape:data)}function escape(t){return t===i||40===t||92===t?(e.consume(t),data):data(t)}function atMarker(t){return e.enter("definitionTitleMarker"),e.consume(t),e.exit("definitionTitleMarker"),e.exit("definitionTitle"),e.attempt(l("whitespace"),after)}function after(e){return null===e||o(e)?t(e):n(e)}},partial:!0}},5694:(e,t,n)=>{t.tokenize=function tokenizeHardBreakEscape(e,t,n){return function start(t){if(92!==t)return n(t);return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),open};function open(o){return i(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}};var i=n(7238)},5565:(e,t,n)=>{t.tokenize=function tokenizeAtxHeading(e,t,n){var c=this,l=0;return function start(t){if(35!==t)return n(t);return e.enter("atxHeading"),e.enter("atxHeadingSequence"),fenceOpenInside(t)};function fenceOpenInside(i){return l++<6&&35===i?(e.consume(i),fenceOpenInside):null===i||o(i)?(e.exit("atxHeadingSequence"),c.interrupt?t(i):headingBreak(i)):n(i)}function headingBreak(n){return 35===n?(e.enter("atxHeadingSequence"),sequence(n)):null===n||i(n)?(e.exit("atxHeading"),t(n)):a(n)?e.attempt(s("whitespace"),headingBreak)(n):(e.enter("atxHeadingText"),data(n))}function sequence(t){return 35!==t?(e.exit("atxHeadingSequence"),headingBreak(t)):(e.consume(t),sequence)}function data(t){return null===t||35===t||o(t)?(e.exit("atxHeadingText"),headingBreak(t)):(e.consume(t),data)}},t.resolve=function resolveAtxHeading(e,t){var n,i,o,a=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);a-2>s&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(s===a-1||a-4>s&&"whitespace"===e[a-2][1].type)&&(a-=s+1===a?2:4);o=e.slice(0,s),a>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[a][1].end},i={type:"chunkText",start:e[s][1].start,end:e[a][1].end,contentType:"text"},o=o.concat([["enter",n,t]],[["enter",i,t]],[["exit",i,t]],[["exit",n,t]]));return o.concat(e.slice(a+1))};var i=n(7238),o=n(8367),a=n(3654),s=n(2648)},6872:(e,t,n)=>{t.tokenize=function tokenizeHtml(e,t,n){var f,x,m,y,S,T=this;return function start(t){if(60!==t)return n(t);return e.enter("htmlFlow"),e.enter("data"),e.consume(t),open};function open(o){return 33===o?(e.consume(o),declarationStart):47===o?(e.consume(o),tagCloseStart):63===o?(e.consume(o),f=3,T.interrupt?t:continuationDeclarationInside):i(o)?(e.consume(o),m=l(d(o)),x=!0,tagName):n(o)}function declarationStart(o){return 45===o?(e.consume(o),f=2,commentOpenInside):91===o?(e.consume(o),f=5,m="CDATA[",y=0,cdataOpenInside):i(o)?(e.consume(o),f=4,T.interrupt?t:continuationDeclarationInside):n(o)}function commentOpenInside(i){return 45===i?(e.consume(i),T.interrupt?t:continuationDeclarationInside):n(i)}function cdataOpenInside(i){return i===m.charCodeAt(y++)?(e.consume(i),y===m.length?T.interrupt?t:continuation:cdataOpenInside):n(i)}function tagCloseStart(t){return i(t)?(e.consume(t),m=l(d(t)),tagName):n(t)}function tagName(i){var a,c;return null===i||62===i||47===i||s(i)?(a=h.indexOf(m)>-1,c=p.indexOf(m)>-1,a&&x&&47!==i?(f=1,T.interrupt?t(i):continuation(i)):c?(f=6,47===i?(e.consume(i),basicSelfClosing):T.interrupt?t(i):continuation(i)):T.interrupt?n(i):(f=7,completeAttributeNameBefore(i))):45===i||o(i)?(e.consume(i),m+=l(d(i)),tagName):n(i)}function basicSelfClosing(i){return 62===i?(e.consume(i),T.interrupt?t:continuation):n(i)}function completeAttributeNameBefore(t){if(x){if(47===t)return e.consume(t),completeSelfClosing;if(58===t||95===t||i(t))return e.consume(t),completeAttributeName}return 62===t?(e.consume(t),completeAfter):c(t)?(e.consume(t),completeAttributeNameBefore):n(t)}function completeAttributeName(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),completeAttributeName):completeAttributeNameAfter(t)}function completeAttributeNameAfter(t){return 61===t?(e.consume(t),completeAttributeValueBefore):c(t)?(e.consume(t),completeAttributeNameAfter):completeAttributeNameBefore(t)}function completeAttributeValueBefore(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),S=t,completeAttributeValueQuoted):c(t)?(e.consume(t),completeAttributeValueBefore):(S=void 0,completeAttributeValueUnquoted(t))}function completeAttributeValueQuoted(t){return t===S?(e.consume(t),completeAttributeValueQuotedAfter):null===t||a(t)?n(t):(e.consume(t),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||s(t)?completeAttributeNameAfter(t):(e.consume(t),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(e){return 47===e||62===e||c(e)?completeAttributeNameBefore(e):n(e)}function completeSelfClosing(t){return 62===t?(e.consume(t),completeAfter):n(t)}function completeAfter(e){return null===e||s(e)?continuation(e):n(e)}function continuation(t){return 1===f&&60===t?(e.consume(t),continuationRawTagOpen):2===f&&45===t?(e.consume(t),continuationCommentInside):3===f&&63===t?(e.consume(t),continuationDeclarationInside):4===f&&62===t?(e.consume(t),continuationClose):5===f&&93===t?(e.consume(t),continuationCharacterDataInside):6!==f&&7!==f||!a(t)?null===t||a(t)?continuationAtLineEnding(t):(e.consume(t),continuation):e.check(g,continuationClose,continuationAtLineEnding)}function continuationAtLineEnding(t){return e.exit("data"),htmlContinueStart(t)}function htmlContinueStart(t){return null===t?done(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),htmlContinueStart):(e.enter("data"),continuation(t))}function continuationCommentInside(t){return 45===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationRawTagOpen(t){return 47===t?(e.consume(t),m="",continuationRawEndTag):continuation(t)}function continuationRawEndTag(t){return 62===t&&h.indexOf(m)>-1?(e.consume(t),continuationClose):m.length<6&&i(t)?(e.consume(t),m+=l(d(t)),continuationRawEndTag):continuation(t)}function continuationCharacterDataInside(t){return 93===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationDeclarationInside(t){return 62===t?(e.consume(t),continuationClose):continuation(t)}function continuationClose(t){return null===t||a(t)?(e.exit("data"),done(t)):(e.consume(t),continuationClose)}function done(n){return e.exit("htmlFlow"),t(n)}},t.resolveTo=function resolveToHtml(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},t.concrete=!0;var i=n(6734),o=n(6712),a=n(7238),s=n(8367),c=n(3654),l=n(3267),p=n(7139),h=n(6871),d=n(382),f=n(6532),g={tokenize:function tokenizeNextBlank(e,t,n){return function start(i){return e.exit("data"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.check(f,t,n)}},partial:!0}},8911:(e,t,n)=>{t.tokenize=function tokenizeHtml(e,t,n){var p,h,d,f;return function start(t){return 60!==t?n(t):(e.enter("htmlText"),e.enter("data"),e.consume(t),open)};function open(t){return 33===t?(e.consume(t),declarationOpen):47===t?(e.consume(t),tagCloseStart):63===t?(e.consume(t),instruction):s(t)?(e.consume(t),tagOpen):n(t)}function declarationOpen(t){return 45===t?(e.consume(t),commentOpen):91===t?(e.consume(t),h="CDATA[",d=0,cdataOpen):s(t)?(e.consume(t),declaration):n(t)}function commentOpen(t){return 45===t?(e.consume(t),commentStart):n(t)}function commentStart(t){return null===t||62===t?n(t):45===t?(e.consume(t),commentStartDash):comment(t)}function commentStartDash(e){return null===e||62===e?n(e):comment(e)}function comment(t){return null===t?n(t):45===t?(e.consume(t),commentClose):i(t)?(f=comment,atLineEnding(t)):(e.consume(t),comment)}function commentClose(t){return 45===t?(e.consume(t),end):comment(t)}function cdataOpen(t){return t===h.charCodeAt(d++)?(e.consume(t),d===h.length?cdata:cdataOpen):n(t)}function cdata(t){return null===t?n(t):93===t?(e.consume(t),cdataClose):(e.consume(t),cdata)}function cdataClose(t){return 93===t?(e.consume(t),cdataEnd):cdata(t)}function cdataEnd(t){return 62===t?end(t):93===t?(e.consume(t),cdataEnd):cdata(t)}function declaration(t){return null===t||62===t?end(t):(e.consume(t),declaration)}function instruction(t){return null===t?n(t):63===t?(e.consume(t),instructionClose):(e.consume(t),instruction)}function instructionClose(e){return 62===e?end(e):instruction(e)}function tagCloseStart(t){return s(t)?(e.consume(t),tagClose):n(t)}function tagClose(t){return 45===t||c(t)?(e.consume(t),tagClose):tagCloseBetween(t)}function tagCloseBetween(t){return i(t)?(f=tagCloseBetween,atLineEnding(t)):a(t)?(e.consume(t),tagCloseBetween):end(t)}function tagOpen(t){return 47===t||62===t||o(t)?tagOpenBetween(t):45===t||c(t)?(e.consume(t),tagOpen):n(t)}function tagOpenBetween(t){return 47===t?(e.consume(t),end):58===t||95===t||s(t)?(e.consume(t),tagOpenAttributeName):i(t)?(f=tagOpenBetween,atLineEnding(t)):a(t)?(e.consume(t),tagOpenBetween):end(t)}function tagOpenAttributeName(t){return 45===t||46===t||58===t||95===t||c(t)?(e.consume(t),tagOpenAttributeName):tagOpenAttributeNameAfter(t)}function tagOpenAttributeNameAfter(t){return 61===t?(e.consume(t),tagOpenAttributeValueBefore):i(t)?(f=tagOpenAttributeNameAfter,atLineEnding(t)):a(t)?(e.consume(t),tagOpenAttributeNameAfter):tagOpenBetween(t)}function tagOpenAttributeValueBefore(t){return 34===t||39===t?(e.consume(t),p=t,tagOpenAttributeValueQuoted):60===t||61===t||62===t||96===t?n(t):i(t)?(f=tagOpenAttributeValueBefore,atLineEnding(t)):a(t)?(e.consume(t),tagOpenAttributeValueBefore):(e.consume(t),p=void 0,tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(t){return null===t?n(t):t===p?(e.consume(t),tagOpenAttributeValueQuotedAfter):i(t)?(f=tagOpenAttributeValueQuoted,atLineEnding(t)):(e.consume(t),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueQuotedAfter(e){return 62===e||47===e||o(e)?tagOpenBetween(e):n(e)}function tagOpenAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||o(t)?tagOpenBetween(t):(e.consume(t),tagOpenAttributeValueUnquoted)}function atLineEnding(t){return e.exit("data"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(l("linePrefix",4),(function afterPrefix(t){return e.enter("data"),f(t)}))}function end(i){return 62===i?(e.consume(i),e.exit("data"),e.exit("htmlText"),t):n(i)}};var i=n(7238),o=n(8367),a=n(3654),s=n(6734),c=n(6712),l=n(2648)},1294:(e,t,n)=>{t.tokenize=function tokenizeLabelEnd(e,t,n){var i,o,a=this;return function start(t){var c,l=a.events.length;for(;l--;)if(!a.events[l][1]._used&&("labelImage"===a.events[l][1].type||"labelLink"===a.events[l][1].type)){i=a.events[l][1];break}if(93!==t||!i)return n(t);if(i._inactive)return balancedButNok(t);return c=e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o=s(a.sliceSerialize({start:i.end,end:c.start})),afterLabelEnd};function afterLabelEnd(n){return 40===n?e.attempt(d,t,maybeShortcut)(n):91===n?e.attempt(f,t,maybeCollapsed)(n):maybeShortcut(n)}function maybeCollapsed(n){return a.parser.defined.indexOf(o)<0?balancedButNok(n):e.attempt(g,t,balancedButNok)(n)}function maybeShortcut(e){return a.parser.defined.indexOf(o)<0?balancedButNok(e):t(e)}function balancedButNok(e){return i.type="data",i._wasLabel=!0,n(e)}},t.resolveTo=function resolveToLabelEnd(e,t){var n,i,o,a,s,p,h,d,f=e.length;for(;f--;)a=e[f][1],"enter"===e[f][0]?p?"link"===s&&"labelLink"===a.type&&(a._inactive=!0):"labelImage"!==a.type&&"labelLink"!==a.type||a._inactive||a._used||(p=f,s="labelLink"===a.type?"link":"image",d="labelLink"===a.type?0:2):h||a._used||"labelEnd"!==a.type||(h=f);return n={type:s,start:c(e[p][1].start),end:c(e[e.length-1][1].end)},i={type:"label",start:c(e[p][1].start),end:c(e[h][1].end)},o={type:"labelText",start:c(e[p+d+2][1].end),end:c(e[h-2][1].start)},[].concat(e.slice(0,p),[["enter",n,t],["enter",i,t]],e.slice(p+1,p+d+3),[["enter",o,t]],l(e.slice(p+d+4,h-3),t),[["exit",o,t]],e.slice(h-2,h),[["exit",i,t]],e.slice(h+1),[["exit",n,t]])},t.resolveAll=function resolveAllLabelEnd(e){var t,n=e.length,i=-1;for(;++i<n;)t=e[i][1],"enter"===e[i][0]&&(!t._used&&("labelImage"===t.type||"labelLink"===t.type||"labelEnd"===t.type)||"data"===t.type&&t._wasLabel)&&(t.type="data",e.splice(i+1,2),n-=2);return e};var i=n(9696),o=n(8367),a=n(7238),s=n(5478),c=n(5923),l=n(7542).resolveAll,p=n(6064),h=n(2648),d={tokenize:function tokenizeResource(e,t,n){var s,c=0;return function start(t){return 40!==t?n(t):(e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),e.attempt(p,open))};function open(t){return 41===t||i(t)?end(t):(e.enter("resourceDestination"),60===t?(e.enter("resourceDestinationLiteral"),e.enter("resourceDestinationLiteralMarker"),e.consume(t),e.exit("resourceDestinationLiteralMarker"),destinationEnclosedBefore):(e.enter("resourceDestinationRaw"),e.enter("resourceDestinationString"),e.enter("chunkString").contentType="string",destinationRaw(t)))}function destinationEnclosedBefore(t){return 62===t?destinationEnclosedEnd(t):(e.enter("resourceDestinationString"),e.enter("chunkString").contentType="string",destinationEnclosed(t))}function destinationEnclosed(t){return null===t||60===t||a(t)?n(t):62===t?(e.exit("chunkString"),e.exit("resourceDestinationString"),destinationEnclosedEnd(t)):(e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosedEscape(t){return 60===t||62===t||92===t?(e.consume(t),destinationEnclosed):destinationEnclosed(t)}function destinationEnclosedEnd(t){return e.enter("resourceDestinationLiteralMarker"),e.consume(t),e.exit("resourceDestinationLiteralMarker"),e.exit("resourceDestinationLiteral"),e.exit("resourceDestination"),destinationEnclosedAfter}function destinationEnclosedAfter(t){return o(t)?e.attempt(p,between)(t):end(t)}function destinationRaw(t){return 40===t?++c>3?n(t):(e.consume(t),destinationRaw):41===t?c?(e.consume(t),c--,destinationRaw):(e.exit("chunkString"),e.exit("resourceDestinationString"),e.exit("resourceDestinationRaw"),e.exit("resourceDestination"),end(t)):o(t)?(e.exit("chunkString"),e.exit("resourceDestinationString"),e.exit("resourceDestinationRaw"),e.exit("resourceDestination"),e.attempt(p,between)(t)):i(t)?n(t):(e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationRawEscape(t){return 40===t||41===t||92===t?(e.consume(t),destinationRaw):destinationRaw(t)}function between(t){return 34===t||39===t||40===t?(e.enter("resourceTitle"),e.enter("resourceTitleMarker"),e.consume(t),e.exit("resourceTitleMarker"),s=40===t?41:t,atFirstTitleBreak):end(t)}function atFirstTitleBreak(t){return t===s?atTitleMarker(t):(e.enter("resourceTitleString"),atTitleBreak(t))}function atTitleBreak(t){return null===t?n(t):t===s?(e.exit("resourceTitleString"),atTitleMarker(t)):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(h("linePrefix",4),atTitleBreak)):(e.enter("chunkString").contentType="string",title(t))}function title(t){return null===t||t===s||a(t)?(e.exit("chunkString"),atTitleBreak(t)):(e.consume(t),92===t?titleEscape:title)}function titleEscape(t){return t===s||92===t?(e.consume(t),title):title(t)}function atTitleMarker(t){return e.enter("resourceTitleMarker"),e.consume(t),e.exit("resourceTitleMarker"),e.exit("resourceTitle"),e.attempt(p,end)}function end(i){return 41!==i?n(i):(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t)}}},f={tokenize:function tokenizeFullReference(e,t,n){var i,a=this,c=0;return function start(t){return 91!==t?n(t):(e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),e.enter("referenceString"),e.enter("chunkString").contentType="string",referenceData)};function referenceData(l){var p;return null===l||91===l||c++>999?n(l):93===l?i?(e.exit("chunkString"),p=e.exit("referenceString"),a.parser.defined.indexOf(s(a.sliceSerialize(p)))<0?n(l):function end(n){return e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t}(l)):n(l):(e.consume(l),o(l)||(i=!0),92===l?referenceEscape:referenceData)}function referenceEscape(t){return 92===t||91===t||93===t?(e.consume(t),c++,referenceData):referenceData(t)}}},g={tokenize:function tokenizeCollapsedReference(e,t,n){return function start(t){return 91!==t?n(t):(e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),open)};function open(i){return 93!==i?n(i):(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t)}}}},6215:(e,t,n)=>{t.tokenize=function tokenizelabelImage(e,t,n){return function start(t){if(33!==t)return n(t);return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),open};function open(i){return 91===i?(e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelImage"),t):n(i)}},t.resolveAll=n(1294).resolveAll},534:(e,t,n)=>{t.tokenize=function tokenizelabelLink(e,t,n){return function start(i){if(91!==i)return n(i);return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),t}},t.resolveAll=n(1294).resolveAll},6931:(e,t,n)=>{t.tokenize=function tokenizeListStart(e,t,n){var c,h,d=this;return function start(t){if(h=a(d.events),t===d.containerState.marker||!d.containerState.marker&&(42===t||43===t||45===t))return e.check(s,n,unordered)(t);if(o(t)&&(!d.containerState.marker||"listOrdered"===d.containerState.type))return function ordered(t){if(!d.containerState.marker&&d.interrupt&&49!==t)return n(t);d.containerState.marker||(d.containerState.type="listOrdered",e.enter(d.containerState.type));return c=e.enter("listItemPrefix"),e.enter("listItemValue"),e.consume(t),c._size=1,d.interrupt?afterValue:inside}(t);return n(t)};function unordered(t){return d.containerState.marker||(d.containerState.type="listUnordered",e.enter(d.containerState.type)),(c=e.enter("listItemPrefix"))._size=0,atMarker(t)}function inside(t){return c._size<9&&o(t)?(e.consume(t),c._size++,inside):afterValue(t)}function afterValue(t){return e.exit("listItemValue"),41===t||46===t?atMarker(t):n(t)}function atMarker(t){return d.containerState.marker||(d.containerState.marker=t),d.containerState.marker===t?(e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),c._size++,e.check(l,onBlank,e.attempt(p,endOfPrefix,otherPrefix))):n(t)}function onBlank(e){return d.interrupt?n(e):(d.containerState.initialBlankLine=!0,h++,endOfPrefix(e))}function otherPrefix(t){return i(t)?(e.enter("listItemPrefixWhitespace")._size=1,e.consume(t),e.exit("listItemPrefixWhitespace"),endOfPrefix):n(t)}function endOfPrefix(n){return c._size+=a(d.events,"listItemPrefixWhitespace"),d.containerState.size=h+c._size,e.exit("listItemPrefix"),t(n)}},t.continuation={tokenize:function tokenizeListContinuation(e,t,n){var o=this;return this.containerState._closeFlow=void 0,e.check(l,(function onBlank(e){o.containerState.initialBlankLine&&(o.containerState.furtherBlankLines=!0);return t(e)}),(function notBlank(a){if(o.containerState.furtherBlankLines||!i(a))return o.containerState.initialBlankLine=void 0,o.containerState.furtherBlankLines=void 0,e.attempt(d,onItem,n)(a);return o.containerState.initialBlankLine=void 0,o.containerState.furtherBlankLines=void 0,e.attempt(h,t,e.attempt(d,onItem,n))(a)}));function onItem(e){return o.containerState._closeFlow=!0,t(e)}}},t.exit=function tokenizeListEnd(e){e.exit(this.containerState.type)};var i=n(3654),o=n(3977),a=n(5096),s=n(7039),c=n(2648),l=n(6532),p={tokenize:function tokenizeListItemPrefixWhitespace(e,t,n){var o=this;return e.attempt(c("listItemPrefixWhitespace",5),(function afterPrefix(e){return i(e)||!a(o.events,"listItemPrefixWhitespace")?n(e):t(e)}))},partial:!0},h={tokenize:function tokenizeIndent(e,t,n){var i=this;return e.attempt(c("listItemIndent",i.containerState.size+1),(function afterPrefix(e){return a(i.events,"listItemIndent")===i.containerState.size?t(e):n(e)}))},partial:!0},d={tokenize:function tokenizeNextItem(e,n,i){return e.attempt(c("linePrefix",4),e.attempt(t,n,i))},partial:!0}},6532:(e,t,n)=>{t.tokenize=function tokenizeBlankLine(e,t,n){return e.attempt(o("linePrefix"),(function afterWhitespace(e){return null===e||i(e)?t(e):n(e)}))},t.partial=!0;var i=n(7238),o=n(2648)},6064:(e,t,n)=>{t.tokenize=function tokenizeSpaceOrLineEnding(e,t){var n;return start;function start(a){return i(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),start):o(a)?((n=e.enter("whitespace"))._size=0,whitespace(a)):t(a)}function whitespace(t){return o(t)?(e.consume(t),n._size++,whitespace):(e.exit("whitespace"),start(t))}},t.partial=!0;var i=n(7238),o=n(3654)},2648:(e,t,n)=>{e.exports=function createSpaceTokenizer(e,t){var n=(t||1/0)-1;return{tokenize:function tokenizeSpace(t,o){var a;return start;function start(n){return i(n)?((a=t.enter(e))._size=0,prefix(n)):o(n)}function prefix(s){return a._size<n&&i(s)?(a._size++,t.consume(s),prefix):(t.exit(e),o(s))}},partial:!0}};var i=n(3654)},5874:(e,t,n)=>{t.tokenize=function tokenizeSetextUnderline(e,t,n){var o,s=this;return function start(t){var i,a,c=s.events.length;for(;c--;)if("lineEnding"!==(a=s.events[c][1]).type&&"linePrefix"!==a.type&&"content"!==a.type){i="paragraph"===a.type;break}if(s.lazy||!i&&!s.interrupt||45!==t&&61!==t)return n(t);return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,closingSequence(t)};function closingSequence(t){return t===o?(e.consume(t),closingSequence):(e.exit("setextHeadingLineSequence"),e.attempt(a("lineSuffix"),closingSequenceEnd)(t))}function closingSequenceEnd(o){return null===o||i(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},t.resolveTo=function resolveToSetextUnderline(e,t){var n,i,a,s,c,l,p,h=e.length;for(;h--;)if(l=e[h][1],"enter"===e[h][0]){if("content"===l.type){c=l,n=h;break}"paragraph"===l.type&&(i=h)}else"content"===l.type&&(a=h),s||"definition"!==l.type||(s=h);p={type:"setextHeading",start:o(e[i][1].start),end:o(e[e.length-1][1].end)},e[i][1].type="setextHeadingText",e.push(["exit",p,t]),e.splice(a,1),s?(e.splice(i,0,["enter",p,t]),e.splice(s+1,0,["exit",c,t]),c.end=o(e[s][1].end)):e[n][1]=p;return e};var i=n(7238),o=n(5923),a=n(2648)},7039:(e,t,n)=>{t.tokenize=function tokenizeThematicBreak(e,t,n){var s,c=0;return function start(t){if(42!==t&&45!==t&&95!==t)return n(t);return e.enter("thematicBreak"),s=t,atBreak(t)};function atBreak(l){return l===s?(e.enter("thematicBreakSequence"),sequence(l)):o(l)?e.attempt(a("whitespace"),atBreak)(l):c<3||null!==l&&!i(l)?n(l):(e.exit("thematicBreak"),t(l))}function sequence(t){return t===s?(e.consume(t),c++,sequence):(e.exit("thematicBreakSequence"),atBreak(t))}};var i=n(7238),o=n(3654),a=n(2648)},2602:(e,t,n)=>{t.tokenize=function tokenizeWhitespace(e,t,n){var a;return function start(c){if(o(c))return(a=e.enter("whitespace"))._size=0,whitespace(c);i(c)||n(c);return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(s("linePrefix"),t)};function whitespace(n){return null===n?(e.exit("whitespace"),t(n)):o(n)?(e.consume(n),a._size++,-2===n&&(a._tabs=!0),whitespace):i(n)?(e.exit("whitespace"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(s("linePrefix"),t)):(a.type="data",e.exit("data"),t(n))}},t.resolve=function resolveWhitespace(e,t){var n,i=e[0][1],o=e.length>2&&e[2][1],s=e;"whitespace"===i.type&&(!i._tabs&&o&&"lineEnding"===o.type&&i._size>=2?(n={type:"hardBreakTrailing",start:a(i.start),end:a(o.start)},s=[].concat([["enter",n,t]],e.slice(0,2),[["exit",n,t]],e.slice(2))):i.type="lineSuffix");return s};var i=n(7238),o=n(3654),a=n(5923),s=n(2648)},9444:(e,t,n)=>{e.exports=function classifyCharacter(e){if(null===e||i(e)||a(e))return 1;if(o(e))return 2};var i=n(8367),o=n(6996),a=n(395)},1388:(e,t,n)=>{e.exports=function createTokenizer(e,t,n){var p,h=n?i({},n):{line:1,column:1,offset:0},d=[],f=[],g=[],x=0,m=-1,y=[],S={consume:function consume(e){!0,o(e)?(h.line++,h.line in d?(h.column=d[h.line],h.offset+=d[h.line]-1):h.column=1):-1!==e&&h.column++;m<0?x++:m++;m>-1&&m===g[x].length&&(m=-1,x++);-1!==e&&(h.offset+=-3===e?2:1);h._bufferIndex=m,h._index=x,T.previous=e},enter:function enter(e){var t={type:e,start:now()};return T.events.push(["enter",t,T]),y.push(t),t},exit:function exit(e){var t=y.pop();return t.end=now(),T.events.push(["exit",t,T]),t},attempt:constructFactory((function onsuccessfulconstruct(e,t){addResult(e,t.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0}),lazy:constructFactory(onsuccessfulcheck,{lazy:!0})},T={previous:null,events:[],parser:e,sliceStream:function sliceStream(e){return l(g,e)},sliceSerialize:function sliceSerialize(e){return c(l(g,e))},now,defineSkip:function defineSkip(e){d[e.line]=e.column,1===h.column&&h.line===e.line&&(h.column=e.column,h.offset+=e.column-1)},write:function write(e){var n,i;if(g.push(e),main(),null!==e)return[];addResult(t,0),n=f.length,i=-1;for(;++i<n;)T.events=f[i](T.events,T);return T.events.push(e),T.events}},v=t.tokenize.call(T,S);return h._index=x,h._bufferIndex=m,T;function now(){return s(h)}function main(){for(var e,t;x<g.length;)if("string"==typeof(e=g[x]))for(t=x;x===t&&m<e.length;)m<0&&(m=0),p=e.charCodeAt(m),void 0,v=v(p);else void 0,v=v(p=e)}function onsuccessfulcheck(e,t){t.restore()}function constructFactory(e,t){return function hook(n,o,s){var c,l,p,f,g;return n.tokenize||"length"in n?handleConstructs(n):function handleHooks(e){if(a.call(n,e))return handleConstructs(n[e])(e);return s(e)};function handleConstructs(e){return p=0,handleConstruct(f=(l="length"in(c=e))?c[p]:c)}function handleConstruct(e){return function start(n){g=function store(){var e=now(),t=x,n=m,i=T.previous,o=T.currentConstruct,a=T.events.length,s=y.concat();return{restore,from:a};function restore(){x=t,(h=e).line in d&&1===h.column&&(h.column=d[h.line],h.offset+=d[h.line]-1),m=n,T.previous=i,T.currentConstruct=o,T.events.length=a,y=s}}(),e.partial||(T.currentConstruct=e);return e.tokenize.call(i({},T,t),S,ok,nok)(n)}}function ok(t){return!0,e(f,g),o}function nok(e){return!0,g.restore(),l&&++p<c.length?handleConstruct(f=c[p]):s}}}function addResult(e,t){e.resolveAll&&f.indexOf(e.resolveAll)<0&&f.push(e.resolveAll),e.resolve&&(T.events=T.events.slice(0,t).concat(e.resolve(T.events.slice(t),T))),e.resolveTo&&(T.events=e.resolveTo(T.events,T))}};var i=n(9198),o=n(7238),a=n(6706),s=n(5923),c=n(3082),l=n(2774)},1615:e=>{e.exports=function flatMap(e,t,n){var i=e.length,o=-1,a=[];for(;++o<i;)a=a.concat(t(e[o],n));return a}},382:e=>{e.exports=function lowercase(e){return e>64&&e<91?e+32:e}},5644:e=>{e.exports=function movePoint(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},5478:e=>{e.exports=function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},5096:e=>{e.exports=function prefixSize(e,t){var n=t||"linePrefix",i=e[e.length-1];return i&&i[1].type===n?i[1]._size:0}},596:(e,t,n)=>{e.exports=function safeFromInt(e,t){var n=parseInt(e,t);if(n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111)return"�";return i(n)};var i=n(3267)},3082:(e,t,n)=>{e.exports=function serializeChunks(e){var t,n,o,a=e.length,s=-1,c=[];for(;++s<a;){if("string"==typeof(t=e[s]))n=t;else if(-3===t)n="\r\n";else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-2===t)n="\t";else if(-1===t){if(o)continue;n=" "}else n=i(t);o=-2===t,c.push(n)}return c.join("")};var i=n(3267)},5923:(e,t,n)=>{e.exports=function shallow(e){return i({},e)};var i=n(9198)},2774:e=>{e.exports=function sliceChunks(e,t){var n,i=t.start._index,o=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;i===a?n=[e[i].slice(o<0?0:o,s)]:(n=e.slice(i,a),o>-1&&(n[0]=n[0].slice(o)),s>-1&&n.push(e[a].slice(0,s)));return n}},4423:(e,t,n)=>{e.exports=function subtokenize(e){var t,n,o,s,c,l,p=-1;for(;++p<e.length&&null!==(n=e[p]);)if("enter"===n[0])(l=n[1]._subevents)?(i.apply(e,[p,2].concat(l)),p+=l.length-1,n[1]._subevents=void 0,t=!0):n[1].contentType&&!n[1]._contentTokenized&&(unravelLinkedTokens(n[1],n[2]),p--);else if("blockQuote"===n[1].type||"listOrdered"===n[1].type||"listUnordered"===n[1].type){for(o=p,s=void 0;o--&&("lineEnding"===(c=e[o])[1].type||"lineEndingBlank"===c[1].type);)"exit"!==c[0]&&(s&&(e[s][1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);if(s){for(o=s;o--&&e[o][1].end.offset>e[s][1].start.offset;)e[o][1].end=a(e[s][1].start);n[1].end=a(e[s][1].start),i.apply(e,[s,p-s+1,n].concat(e.slice(s,p))),p=s}}return{done:!t,events:e}};var i=n(1362),o=n(1615),a=n(5923);function unravelLinkedTokens(e,t){var n,i;e._tokenizer||(i=t.sliceStream(e),e.previous?(n=e.previous._tokenizer).defineSkip(e.start):n=t.parser[e.contentType](e.start),e._tokenizer=n,e.next||(i=i.concat(null)),o(i,n.write)),e._contentTokenized=!0,e.next?unravelLinkedTokens(e.next,t):function divideTokens(e){var t,n,i=e._tokenizer.events,o=(i.pop(),i.length);for(;o--;)"enter"===i[o][0]?n=!0:n&&("codeTextPaddingLineEnding"===i[o][1].type||"lineEnding"===i[o][1].type||"lineEndingBlank"===i[o][1].type||i[o][1]._break)&&(e._subevents=i.slice(o+1,t),e=e.previous,t=o+1);e._subevents=i.slice(0,t)}(e)}},7824:e=>{var t=1e3,n=60*t,i=60*n,o=24*i,a=7*o,s=365.25*o;function plural(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function parse(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var l=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function fmtLong(e){var a=Math.abs(e);if(a>=o)return plural(e,a,o,"day");if(a>=i)return plural(e,a,i,"hour");if(a>=n)return plural(e,a,n,"minute");if(a>=t)return plural(e,a,t,"second");return e+" ms"}(e):function fmtShort(e){var a=Math.abs(e);if(a>=o)return Math.round(e/o)+"d";if(a>=i)return Math.round(e/i)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9435:e=>{"use strict";var t;e.exports=function decodeEntity(e){var n,i="&"+e+";";if((t=t||document.createElement("i")).innerHTML=i,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==i&&n}},1603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuestVM=void 0;const i=n(7187),o=n(9549);class QuestVM extends o.VM{constructor(e,t,n){super({},Object.assign(Object.assign({},n||{}),{emit:t=>{const[n]=o.getStackParams("emit",["string | number"],t);this.eventBus.emit("emit",n),e(n)},response:(e,t,n)=>{const[i,a]=o.getStackParams("response",["number","string"],e),s={response:a,pc:i};this.eventBus.emit("response",s),this.responses.push(s)},getResponse:(e,n,i)=>{i.suspend();const o=this.responses.map(((e,t)=>({title:e.response,programCounter:e.pc,id:t}))),a=o.map((e=>({title:e.title,id:e.id})));for(;this.responses.length>0;)this.responses.pop();t(a).then((e=>{const t=o.find((t=>t.id===e));if(void 0===t)throw new Error(`Unknown choice ID: ${e}!`);i.stack.push(t.programCounter),i.run()})).catch((e=>{this.eventBus.emit("error",e),this.quit()}))},optionEnabled:(e,t,n)=>{console.warn("optionEnabled opcode is deprecated! - do not use!");const[i]=o.getStackParams("optionEnabled",["string"],e),a=`optionEnabled_${i}`;let s=null;void 0===n.context[a]?(n.context[a]=1,s=1):s=n.context[a],e.push(s)},optionDisabled:(e,t,n)=>{console.warn("optionDisabled opcode is deprecated! - do not use!");const[i]=o.getStackParams("optionDisabled",["string"],e),a=`optionEnabled_${i}`;let s=null;void 0===n.context[a]?(n.context[a]=1,s=0):s=1===n.context[a]?0:1,e.push(s)},disableOption:(e,t,n)=>{console.warn("disableOption opcode is deprecated! - do not use!");const[i]=o.getStackParams("disableOption",["string"],e),a=`optionEnabled_${i}`;n.context[a]=0},enableOption:(e,t,n)=>{console.warn("enableOption opcode is deprecated! - do not use!");const[i]=o.getStackParams("enableOption",["string"],e),a=`optionEnabled_${i}`;n.context[a]=1}})),this.responses=[],this.eventBus=new i.EventEmitter}}t.QuestVM=QuestVM},9883:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1603),t),o(n(6756),t)},6756:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseMarkdown=t.NoLinkBehaviour=void 0;const o=i(n(9671)),a=i(n(3262)),s=i(n(3183)),c=i(n(1695)),l=i(n(8325)),p=i(n(9294)),h=i(n(2854)),d=i(n(914));n(7738);const f=n(9549);var g;!function(e){e[e.EXIT=0]="EXIT",e[e.LOOPBACK_TO_OPTIONS=1]="LOOPBACK_TO_OPTIONS"}(g=t.NoLinkBehaviour||(t.NoLinkBehaviour={})),t.parseMarkdown=function parseMarkdown(e){const t=o.default(e),n=new f.Tokenizer,i=d.default("questmarkDocument",{options:{}},[]);let x=0,m=g.LOOPBACK_TO_OPTIONS,y=!1;p.default(t,"heading",((e,n)=>{if(n.length>1)return;let o="";p.default(e,"text",(e=>{o=`${o} ${e.value}`})),o=o.trim();const s=a.default(t,e,"heading"),f=null!==s?l.default(t,e,s):c.default(t,e);"QUESTMARK-OPTIONS-HEADER"===o?i.options=function getQuestmarkOptions(e){let t="";return h.default(d.default("bla",e),"code",(e=>{t=`${t} ${e.value}`})),JSON.parse(t.trim())}(f):i.children.push(function createStateNode(e,t){const n=d.default("state",{name:e,options:[]},[]);let i=!1,o=[],a=[];t.forEach((e=>{"list"===e.type&&!1===e.ordered&&(i=!0),i?a.push(e):o.push(e)})),n.children=o,a=a.map((e=>"list"===e.type&&!1===e.ordered?e.children:e)).flat(1);let s=null;a=a.map((e=>{if("listItem"===e.type)return s=e,e;s.children.push(e)})).filter((e=>void 0!==e));const c=a.map((e=>{const t=d.default("option",{preconditionChildren:null,effectChildren:null,text:null,link:null,directives:null});let n=[],i=[],o=[],a=[],s=[];return h.default(e,(e=>{o.length>0&&"paragraph"!==e.type&&("text"===e.type&&e.value&&0===e.value.trim().length||n.push(e)),"text"===e.type&&e.value&&e.value.trim().length>0&&0===o.length&&o.push(e.value),"link"===e.type&&e.url&&0===a.length&&a.push(e.url),0===o.length&&"inlineCode"===e.type&&(e.value.startsWith("@")?e.value.split(/\s+/).forEach((e=>s.push(e))):i.push(e))})),t.preconditionChildren=i,t.effectChildren=n,t.directives=s,t.text=o.join(" ").trim(),t.link=a.join(" "),0===t.link.length&&(t.link=null),0===t.text.length&&(t.text=null),0===t.directives.length&&(t.directives=null),0===t.preconditionChildren.length&&(t.preconditionChildren=null),0===t.effectChildren.length&&(t.effectChildren=null),t}));return n.options=c,n}(o,f))}));const S=d.default("questmarkVMState",{stack:[],context:{},programList:[],labelMap:{},programCounter:0,exit:!1,pause:!1},[]),q=e=>{S.programList.push(e)},visitorFunc=(t,i,o)=>{let fixText=t=>{let n="";return n=y?e.substring(t.position.start.offset,t.position.end.offset):t.value,"paragraph"===o.type&&o.children.indexOf(t)===o.children.length-1&&(n+="\n\n"),n=n.replaceAll("\\*","*").replaceAll("\\[","[").replaceAll("\\]","]").replaceAll("\\#","#").replaceAll("\\`","`").replaceAll("\\(","(").replaceAll("\\)",")"),"emphasis"!==o.type&&"strong"!==o.type||(n=`*${n}*`),n};if(void 0!==o||"questmarkDocument"===t.type)switch(t.type){case"questmarkDocument":if(t.options&&(t.options["initial-context"]&&Object.entries(t.options["initial-context"]).forEach((e=>{"string"==typeof e[1]?q(f.pushString(e[1])):"number"==typeof e[1]&&q(f.pushNumber(e[1])),q(f.pushString(e[0])),q(f.invokeFunction("setContext"))})),t.options["initial-state"]&&(q(f.pushString(t.options["initial-state"])),q(f.invokeFunction("goto"))),t.options.options)){if(t.options.options.no_link_behaviour)if("exit"===t.options.options.no_link_behaviour)m=g.EXIT;else{if("loopback_to_options"!==t.options.options.no_link_behaviour)throw new Error(`Unknown 'options.no_link_behaviour': ${t.options.options.no_link_behaviour}`);m=g.LOOPBACK_TO_OPTIONS}t.options.options.whitespace&&"retain"===t.options.options.whitespace&&(y=!0)}break;case"state":const e=t.name,i=t.name+"__options";return S.labelMap[e]=S.programList.length,h.default(t,visitorFunc),S.labelMap[i]=S.programList.length,t.options.forEach((e=>{let t=!1,o=!1,a=null;null!==e.directives&&e.directives.includes("@once")&&(o=!0,a=`__once__${x}`,x+=1),o&&(q(f.pushString(a)),q(f.invokeFunction("hasContext")),q(f.invokeFunction("jz")),q(f.invokeFunction("{"))),null!==e.preconditionChildren&&(t=!0,e.preconditionChildren.forEach((e=>{if("inlineCode"!==e.type)throw new Error("preconditionChildren contain non-inlineCode elements. Aborting!");n.parse(e.value).forEach((e=>q(e)))}))),t&&(q(f.invokeFunction("jgz")),q(f.invokeFunction("{"))),null!==e.text&&(e.text.includes("`")&&console.warn("WARN: Option text contains a backtick. Inline code elements in option blocks is currently not supported!"),q(f.pushString(e.text))),q(f.invokeFunction("ppc")),q(f.pushNumber(4)),q(f.invokeFunction("+")),q(f.invokeFunction("{")),o&&(q(f.pushNumber(1)),q(f.pushString(a)),q(f.invokeFunction("setContext"))),null!==e.effectChildren&&e.effectChildren.forEach((e=>{if("inlineCode"===e.type)n.parse(e.value).forEach((e=>q(e)));else if("code"===e.type){if("comment"===e.lang)return;n.parse(e.value).forEach((e=>q(e)))}else q(f.pushString(fixText(e))),q(f.invokeFunction("emit"))})),null!==e.link&&(q(f.pushString(e.link.substr(1))),q(f.invokeFunction("goto"))),m===g.LOOPBACK_TO_OPTIONS?(q(f.pushString(i)),q(f.invokeFunction("goto"))):m===g.EXIT&&q(f.invokeFunction("exit")),q(f.invokeFunction("}")),q(f.invokeFunction("response")),o&&q(f.invokeFunction("}")),t&&q(f.invokeFunction("}"))})),q(f.invokeFunction("getResponse")),q(f.invokeFunction("goto")),"skip";case"inlineCode":case"code":if("comment"===t.lang)break;n.parse(t.value).forEach((e=>q(e)));break;case"text":q(f.pushString(fixText(t))),q(f.invokeFunction("emit"))}};return h.default(i,visitorFunc),q(f.invokeFunction("exit")),{parsedMDFile:s.default(i,!0),qvmState:S}}},4669:(e,t,n)=>{var i=n(7228),o=["悋Ꜫ脳맭䅼㯧瞆奤","|\b\t\t","\t\t\t\t","\b\t\b\t\t\t\n\t\n\v\t\v","\f\t\f\r\t\r\t\t","\t\t","","\b","\b\b\t\t\t\n\n\n\v","\v\v=\n\v\f\v\v@\v\v","\v\v\v\v\f\f\fH","\n\f\r\f\fI\f\fM\n\f\r\f\fN\f\f","\r\rT\n\r\r\rW\n\r\r\r\rX\r","\r\\\n\r\r\r_\n\r\f\r\rb\v\r","h\n\f","k\v","q\n\ft\v","y\n\rz>","\t\v\r","\b\t\n\v","\f\r!\f\f",'2;$$\v\f""%%','\v\f""ƒ\v',"\r","","","","","!#","%'\t*","\v-\r/","14","7:","ESc","nu","!x#$^$","%&$&","'(())\b","*++,,\n","-.1.\f","/0,012\v","23\v345","\v56\r6","78\r89\v9",":>\t;=\v<;","=@>?","><?A@>","AB\nBCCD\b\v","DEG\bFH\n","GFHIIG","IJJL","KM!LKMN","NLNOOP","PQ\b\fQRT","/SRSTTV","UW\tVU","WXXVXY","Y[Z\\0[Z","[\\\\`]","_\t^]_b","`^`aa","b`ci","dheh\tfh\n","gdgegf","hkigij","jlkilm","mnr\n","oq\npoqt","rprss","truv%v ","wy\txw","yzzxz{",'{">INSX[`girz\b',""].join(""),a=(new i.atn.ATNDeserializer).deserialize(o),s=a.decisionToState.map((function(e,t){return new i.dfa.DFA(e,t)}));function ConciseTextLexer(e){return i.Lexer.call(this,e),this._interp=new i.atn.LexerATNSimulator(this,a,s,new i.PredictionContextCache),this}ConciseTextLexer.prototype=Object.create(i.Lexer.prototype),ConciseTextLexer.prototype.constructor=ConciseTextLexer,Object.defineProperty(ConciseTextLexer.prototype,"atn",{get:function(){return a}}),ConciseTextLexer.EOF=i.Token.EOF,ConciseTextLexer.SLASH=1,ConciseTextLexer.ASTERISK=2,ConciseTextLexer.COMMENT_START=3,ConciseTextLexer.ML_COMMENT_BEGIN=4,ConciseTextLexer.ML_COMMENT_END=5,ConciseTextLexer.MULTILINE_COMMENT=6,ConciseTextLexer.COMMENT=7,ConciseTextLexer.NUMBER=8,ConciseTextLexer.STRING=9,ConciseTextLexer.WORD=10,ConciseTextLexer.LABEL_START=11,ConciseTextLexer.WHITESPACE=12,ConciseTextLexer.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],ConciseTextLexer.prototype.modeNames=["DEFAULT_MODE"],ConciseTextLexer.prototype.literalNames=[null,"'/'","'*'",null,null,null,null,null,null,null,null,"'#'"],ConciseTextLexer.prototype.symbolicNames=[null,"SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],ConciseTextLexer.prototype.ruleNames=["BACKSLASH","QUOTE","ESCAPED_QUOTE","ESCAPED_BACKSLASH","SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],ConciseTextLexer.prototype.grammarFileName="ConciseText.g4",t.ConciseTextLexer=ConciseTextLexer},3843:(e,t,n)=>{var i=n(7228);function ConciseTextListener(){return i.tree.ParseTreeListener.call(this),this}ConciseTextListener.prototype=Object.create(i.tree.ParseTreeListener.prototype),ConciseTextListener.prototype.constructor=ConciseTextListener,ConciseTextListener.prototype.enterInstructions=function(e){},ConciseTextListener.prototype.exitInstructions=function(e){},ConciseTextListener.prototype.enterPushNumber=function(e){},ConciseTextListener.prototype.exitPushNumber=function(e){},ConciseTextListener.prototype.enterPushString=function(e){},ConciseTextListener.prototype.exitPushString=function(e){},ConciseTextListener.prototype.enterInvokeFunction=function(e){},ConciseTextListener.prototype.exitInvokeFunction=function(e){},t.ConciseTextListener=ConciseTextListener},797:(e,t,n)=>{var i=n(7228),o=n(3843).ConciseTextListener,a=["悋Ꜫ脳맭䅼㯧瞆奤","(\t\t\t","\t","\n\f\v","","\n"," \n","&\n","\b\f\f*","","\b!\n","\v\f\b","\r\n","\v\f","\r","","","","\n","\r\f","","\v","\r"," \f "," !%\t",'"##$\r$&\f','%"%&&\t',"%"].join(""),s=(new i.atn.ATNDeserializer).deserialize(a),c=s.decisionToState.map((function(e,t){return new i.dfa.DFA(e,t)})),l=new i.PredictionContextCache,p=[null,"'/'","'*'",null,null,null,null,null,null,null,null,"'#'"],h=[null,"SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],d=["instructions","pushNumber","pushString","invokeFunction"];function ConciseTextParser(e){return i.Parser.call(this,e),this._interp=new i.atn.ParserATNSimulator(this,s,c,l),this.ruleNames=d,this.literalNames=p,this.symbolicNames=h,this}function InstructionsContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_instructions,this}function PushNumberContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_pushNumber,this.number=null,this.label=null,this}function PushStringContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_pushString,this.string=null,this.label=null,this}function InvokeFunctionContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_invokeFunction,this.opcode=null,this.label=null,this}ConciseTextParser.prototype=Object.create(i.Parser.prototype),ConciseTextParser.prototype.constructor=ConciseTextParser,Object.defineProperty(ConciseTextParser.prototype,"atn",{get:function(){return s}}),ConciseTextParser.EOF=i.Token.EOF,ConciseTextParser.SLASH=1,ConciseTextParser.ASTERISK=2,ConciseTextParser.COMMENT_START=3,ConciseTextParser.ML_COMMENT_BEGIN=4,ConciseTextParser.ML_COMMENT_END=5,ConciseTextParser.MULTILINE_COMMENT=6,ConciseTextParser.COMMENT=7,ConciseTextParser.NUMBER=8,ConciseTextParser.STRING=9,ConciseTextParser.WORD=10,ConciseTextParser.LABEL_START=11,ConciseTextParser.WHITESPACE=12,ConciseTextParser.RULE_instructions=0,ConciseTextParser.RULE_pushNumber=1,ConciseTextParser.RULE_pushString=2,ConciseTextParser.RULE_invokeFunction=3,InstructionsContext.prototype=Object.create(i.ParserRuleContext.prototype),InstructionsContext.prototype.constructor=InstructionsContext,InstructionsContext.prototype.EOF=function(){return this.getToken(ConciseTextParser.EOF,0)},InstructionsContext.prototype.pushNumber=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(PushNumberContext):this.getTypedRuleContext(PushNumberContext,e)},InstructionsContext.prototype.pushString=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(PushStringContext):this.getTypedRuleContext(PushStringContext,e)},InstructionsContext.prototype.invokeFunction=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(InvokeFunctionContext):this.getTypedRuleContext(InvokeFunctionContext,e)},InstructionsContext.prototype.WHITESPACE=function(e){return void 0===e&&(e=null),null===e?this.getTokens(ConciseTextParser.WHITESPACE):this.getToken(ConciseTextParser.WHITESPACE,e)},InstructionsContext.prototype.enterRule=function(e){e instanceof o&&e.enterInstructions(this)},InstructionsContext.prototype.exitRule=function(e){e instanceof o&&e.exitInstructions(this)},ConciseTextParser.InstructionsContext=InstructionsContext,ConciseTextParser.prototype.instructions=function(){var e=new InstructionsContext(this,this._ctx,this.state);this.enterRule(e,0,ConciseTextParser.RULE_instructions);var t=0;try{for(this.enterOuterAlt(e,1),this.state=14,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ConciseTextParser.ASTERISK|1<<ConciseTextParser.NUMBER|1<<ConciseTextParser.STRING|1<<ConciseTextParser.WORD|1<<ConciseTextParser.WHITESPACE));){switch(this.state=12,this._errHandler.sync(this),this._input.LA(1)){case ConciseTextParser.NUMBER:this.state=8,this.pushNumber();break;case ConciseTextParser.STRING:this.state=9,this.pushString();break;case ConciseTextParser.ASTERISK:case ConciseTextParser.WORD:this.state=10,this.invokeFunction();break;case ConciseTextParser.WHITESPACE:this.state=11,this.match(ConciseTextParser.WHITESPACE);break;default:throw new i.error.NoViableAltException(this)}this.state=16,this._errHandler.sync(this),t=this._input.LA(1)}this.state=17,this.match(ConciseTextParser.EOF)}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},PushNumberContext.prototype=Object.create(i.ParserRuleContext.prototype),PushNumberContext.prototype.constructor=PushNumberContext,PushNumberContext.prototype.NUMBER=function(){return this.getToken(ConciseTextParser.NUMBER,0)},PushNumberContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},PushNumberContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},PushNumberContext.prototype.WORD=function(){return this.getToken(ConciseTextParser.WORD,0)},PushNumberContext.prototype.enterRule=function(e){e instanceof o&&e.enterPushNumber(this)},PushNumberContext.prototype.exitRule=function(e){e instanceof o&&e.exitPushNumber(this)},ConciseTextParser.PushNumberContext=PushNumberContext,ConciseTextParser.prototype.pushNumber=function(){var e=new PushNumberContext(this,this._ctx,this.state);this.enterRule(e,2,ConciseTextParser.RULE_pushNumber);try{this.enterOuterAlt(e,1),this.state=19,e.number=this.match(ConciseTextParser.NUMBER),this.state=23,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,2,this._ctx)&&(this.state=20,this.match(ConciseTextParser.WHITESPACE),this.state=21,this.match(ConciseTextParser.LABEL_START),this.state=22,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},PushStringContext.prototype=Object.create(i.ParserRuleContext.prototype),PushStringContext.prototype.constructor=PushStringContext,PushStringContext.prototype.STRING=function(){return this.getToken(ConciseTextParser.STRING,0)},PushStringContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},PushStringContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},PushStringContext.prototype.WORD=function(){return this.getToken(ConciseTextParser.WORD,0)},PushStringContext.prototype.enterRule=function(e){e instanceof o&&e.enterPushString(this)},PushStringContext.prototype.exitRule=function(e){e instanceof o&&e.exitPushString(this)},ConciseTextParser.PushStringContext=PushStringContext,ConciseTextParser.prototype.pushString=function(){var e=new PushStringContext(this,this._ctx,this.state);this.enterRule(e,4,ConciseTextParser.RULE_pushString);try{this.enterOuterAlt(e,1),this.state=25,e.string=this.match(ConciseTextParser.STRING),this.state=29,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,3,this._ctx)&&(this.state=26,this.match(ConciseTextParser.WHITESPACE),this.state=27,this.match(ConciseTextParser.LABEL_START),this.state=28,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},InvokeFunctionContext.prototype=Object.create(i.ParserRuleContext.prototype),InvokeFunctionContext.prototype.constructor=InvokeFunctionContext,InvokeFunctionContext.prototype.WORD=function(e){return void 0===e&&(e=null),null===e?this.getTokens(ConciseTextParser.WORD):this.getToken(ConciseTextParser.WORD,e)},InvokeFunctionContext.prototype.ASTERISK=function(){return this.getToken(ConciseTextParser.ASTERISK,0)},InvokeFunctionContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},InvokeFunctionContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},InvokeFunctionContext.prototype.enterRule=function(e){e instanceof o&&e.enterInvokeFunction(this)},InvokeFunctionContext.prototype.exitRule=function(e){e instanceof o&&e.exitInvokeFunction(this)},ConciseTextParser.InvokeFunctionContext=InvokeFunctionContext,ConciseTextParser.prototype.invokeFunction=function(){var e=new InvokeFunctionContext(this,this._ctx,this.state);this.enterRule(e,6,ConciseTextParser.RULE_invokeFunction);var t=0;try{this.enterOuterAlt(e,1),this.state=31,e.opcode=this._input.LT(1),(t=this._input.LA(1))!==ConciseTextParser.ASTERISK&&t!==ConciseTextParser.WORD?e.opcode=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=35,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,4,this._ctx)&&(this.state=32,this.match(ConciseTextParser.WHITESPACE),this.state=33,this.match(ConciseTextParser.LABEL_START),this.state=34,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},t.ConciseTextParser=ConciseTextParser},5729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStackParams=void 0,t.getStackParams=function getStackParams(e,t,n){return t.map(((t,i)=>{const o=n.pop();if("string | number"===t){if("number"!=typeof o&&"string"!=typeof o)throw new Error(`${e}: stack param ${i+1} is not a string or number!`)}else if(typeof o!==t)throw new Error(`${e}: stack param ${i+1} is not a ${t}! Value: ${o}`);return o}))}},9549:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3894),t),o(n(4605),t),o(n(1648),t),o(n(5729),t),o(n(6332),t)},4605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("and",["number","number"],e);e.push(0!==n&&0!==o?1:0)}},8915:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t]=i.getStackParams("charCode",["number"],e),n=String.fromCharCode(t);e.push(n)}},9262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function closeBrace(e){}},952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t,n]=i.getStackParams("concat",["string | number","string | number"],e);e.push(`${t}${n}`)}},4874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n]=i.getStackParams("delContext",["string"],e);delete t[n]}},9364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n]=i.getStackParams("dup",["string | number"],e);e.push(n),e.push(n)}},7230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("eq",["string | number","string | number"],e),a=n===o?1:0;e.push(a)}},5467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{n.quit()}},1486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n]=i.getStackParams("getContext",["string"],e),o=t[n];if(null==o)throw new Error(`getContext: null/undefined can not be pushed to the context! StackParam: ${n}`);e.push(o)}},6767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t,n)=>{const[o]=i.getStackParams("goto",["string | number"],e);if("string"==typeof o){const e=n.labelMap[o];if(void 0===e)throw new Error(`goto: attempting to jump to undefined label ${o}`);n.logger(`goto: setting pC to ${e} (goto ${o}) `),n.programCounter=e}else"number"==typeof o&&(n.logger(`goto: setting pC to ${o} (goto ${o}) `),n.programCounter=o)}},5400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("gt",["number","number"],e),a=n>o?1:0;e.push(a)}},3439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n]=i.getStackParams("hasContext",["string"],e);t.hasOwnProperty(n)?e.push(1):e.push(0)}},4074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t,n)=>{const[o]=i.getStackParams("jgz",["number"],e);o>0&&(n.programCounter+=2)}},7213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t,n)=>{const[o]=i.getStackParams("jz",["number"],e);0===o&&(n.programCounter+=2)}},8352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("lt",["number","number"],e),a=n<o?1:0;e.push(a)}},1368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t,n]=i.getStackParams("-",["number","number"],e),o=t-n;e.push(o)}},6714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t,n]=i.getStackParams("*",["number","number"],e),o=t*n;e.push(o)}},4654:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=()=>{}},5179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t]=i.getStackParams("not",["number"],e);0===t?e.push(1):e.push(0)}},197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function openBrace(e,t,n){let i=0,o=n.programCounter+1;for(;;){if("openBrace"===n.programList[o].name&&(i+=1),"closeBrace"===n.programList[o].name&&(i-=1,-1===i)){n.programCounter=o+1;break}o+=1}}},5663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("or",["number","number"],e);e.push(0!==n||0!==o?1:0)}},5269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{n.suspend()}},2123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t,n]=i.getStackParams("+",["number","number"],e),o=t+n;e.push(o)}},7380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{e.pop()}},4519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{e.push(n.programCounter)}},4788:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t]=i.getStackParams("randInt",["number"],e),n=Math.floor(Math.random()*t);e.push(n)}},4206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=e=>{const[t,n]=i.getStackParams("rconcat",["string | number","string | number"],e);e.push(`${n}${t}`)}},6538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5729);t.default=(e,t)=>{const[n,o]=i.getStackParams("setContext",["string","string | number"],e);t[n]=o}},2952:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{e.push(e.length)}},2128:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{process.stdout.write(""+e.pop())}},6332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;t.Builder=class Builder{constructor(){this.fakeLabelMap={},this.programList=[],this.context={}}withLabel(e,t){return this.fakeLabelMap[t]=e,e}add(e){e.forEach((e=>this.programList.push(e)))}contextParam(e,t){this.context[e]=t}build(){const e=Object.entries(this.fakeLabelMap).reduce(((e,t)=>(e[t[0]]=this.programList.findIndex((e=>e===t[1])),e)),{});return{context:this.context,exit:!1,pause:!1,labelMap:e,programList:this.programList,programCounter:0,stack:[]}}}},1648:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=t.invokeFunction=t.pushString=t.pushNumber=void 0;const o=i(n(914)),a=n(4669),s=n(797),c=n(3843),l=i(n(7228)),p=/^\"(.+)\"$/,h=/^(-?[0-9]+)$/,d=/^(\S+)$/,f=/^\#(\S+)$/;t.pushNumber=(e,t)=>o.default("push-number-instruction",{value:e,comment:t}),t.pushString=(e,t)=>o.default("push-string-instruction",{value:e,comment:t}),t.invokeFunction=(e,t)=>o.default("invoke-function-instruction",{functionName:e,comment:t});t.Tokenizer=class Tokenizer{parse(e){class Listener extends c.ConciseTextListener{constructor(){super(...arguments),this.instructions=[],this.lastInstruction=null}enterInstructions(e){this.lastInstruction={functionName:null,type:null,value:null,comment:null,label:null}}enterPushNumber(e){this.lastInstruction=t.pushNumber(parseInt(e.number.text)),this.lastInstruction.label=e.label?e.label.text:void 0}enterPushString(e){const n=e.string.text;this.lastInstruction=t.pushString(n.substr(1,n.length-2)),this.lastInstruction.label=e.label?e.label.text:void 0}enterInvokeFunction(e){this.lastInstruction=t.invokeFunction(e.opcode.text),this.lastInstruction.label=e.label?e.label.text:void 0}exitPushNumber(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}exitPushString(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}exitInvokeFunction(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}getInstructions(){return this.instructions}}const n=new Listener;return l.default.tree.ParseTreeWalker.DEFAULT.walk(n,function getTree(e){let t=new l.default.InputStream(e),n=new a.ConciseTextLexer(t),i=new l.default.CommonTokenStream(n);return new s.ConciseTextParser(i).instructions()}(e)),n.getInstructions()}tokenize(e){let t=null,n="",i=0;const o=[];function addTokenMaybe(){n.length>0&&(o.push(n),n="")}for(;;){const o=e[i];if('"'===o){if("string"===t){t=null,n=`${n}${o}`,i+=1,addTokenMaybe();continue}if(null===t){t="string",n=`${n}${o}`,i+=1;continue}}if("string"!==t){if(void 0===o){addTokenMaybe();break}null===o.match(/\s/)?(n=`${n}${o}`,i+=1):(addTokenMaybe(),i+=1)}else n=`${n}${o}`,i+=1}return o}transform(e){const n={};let i=-1;const o=e.map((e=>{const o=e.match(f);if(null!==o){const e=o[1];return void(n[e]=i)}i+=1;const a=e.match(p);if(null!==a){const e=a[1];return t.pushString(e)}const s=e.match(h);if(null!==s){const e=parseInt(s[1]);return t.pushNumber(e)}const c=e.match(d);if(null!==c){const e=c[1];return t.invokeFunction(e)}throw new Error(`Could not parse token: \`${e}\``)})).filter((e=>void 0!==e));return Object.entries(n).forEach((e=>{o[e[1]].label=e[0]})),o}}},3894:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VM=t.std_functions=void 0;const o=i(n(1227)),a=i(n(6098)),s=i(n(8915)),c=i(n(9262)),l=i(n(952)),p=i(n(4874)),h=i(n(9364)),d=i(n(7230)),f=i(n(5467)),g=i(n(1486)),x=i(n(3439)),m=i(n(6767)),y=i(n(5400)),S=i(n(4074)),T=i(n(7213)),v=i(n(8352)),C=i(n(1368)),A=i(n(6714)),E=i(n(4654)),k=i(n(5179)),b=i(n(197)),P=i(n(5663)),L=i(n(5269)),_=i(n(2123)),N=i(n(7380)),I=i(n(4519)),O=i(n(4788)),F=i(n(4206)),R=i(n(6538)),w=i(n(2952)),D=i(n(2128));t.std_functions={randInt:O.default,charCode:s.default,"+":_.default,plus:_.default,"-":C.default,min:C.default,"*":A.default,mul:A.default,not:k.default,concat:l.default,rconcat:F.default,getContext:g.default,hasContext:x.default,setContext:R.default,delContext:p.default,gt:y.default,lt:v.default,eq:d.default,jgz:S.default,jz:T.default,exit:f.default,pause:L.default,goto:m.default,"{":b.default,"}":c.default,ppc:I.default,nop:E.default,and:a.default,or:P.default,dup:h.default,pop:N.default,stacksize:w.default,stdout:D.default};t.VM=class VM{constructor(e,n={}){this.stack=[],this.context={},this.programList=[],this.labelMap={},this.programCounter=0,this.exit=!1,this.pause=!1,this.logger=o.default("tzo-vm"),this.context=e,this.functions=Object.assign(Object.assign({},t.std_functions),n)}quit(){this.exit=!0}suspend(){this.pause=!0}invoke(e){let t;return this.logger("invoking!"),e.forEach((e=>{this.logger(`stack (json): ${JSON.stringify(this.stack)}`),t=e(this.stack,this.context,this)})),this.logger(`done! return value: ${t}, final stack: ${JSON.stringify(this.stack)}, final context: ${JSON.stringify(this.context)}`),t}getVMInstructions(e,t){void 0===t&&(t={});return{vmInstructions:e.map(((e,n)=>{if(void 0!==e.label){if(void 0!==t[e.label])throw new Error(`label already defined: ${e.label}!`);t[e.label]=n}switch(e.type){case"invoke-function-instruction":const t=e.functionName;let n=this.functions[t];if(void 0===n){if(!t.startsWith("_"))throw new Error(`Cannot find function in function table: ${t}`);n=()=>{this.logger(`Missing function got invoked: ${t}!`)}}return n;case"push-number-instruction":return t=>{const n=e.value;return this.logger(`pushNumber: ${n}`),t.push(n),e.value};case"push-string-instruction":return t=>{const n=e.value;return this.logger(`pushString: ${n}`),t.push(n),e.value};default:throw new Error("Unsupported instruction type!")}})),labelMap:t}}loadProgramList(e,t){const n=this.getVMInstructions(e,t);this.programList=n.vmInstructions,this.labelMap=n.labelMap}loadVMState(e){const t=this.getVMInstructions(e.programList,e.labelMap);this.programList=t.vmInstructions,this.labelMap=t.labelMap,this.stack=e.stack,this.context=e.context,this.programCounter=e.programCounter,this.pause=e.pause,this.exit=e.exit}setProgramCounter(e){this.programCounter=e}tick(){const e=this.programList[this.programCounter];if(void 0===e)return this.exit=!0,null;const t=this.programCounter;e(this.stack,this.context,this),this.programCounter===t&&(this.programCounter+=1)}run(){for(this.pause=!1;!0!==this.exit&&!0!==this.pause;)try{this.tick()}catch(e){const t=new Error(`An error occurred!\nStack: ${this.stack}\nPC: ${this.programCounter}\nContext: ${JSON.stringify(this.context)}\nerr: ${e}`);throw this.logger(t),t}}}},914:e=>{"use strict";e.exports=function u(e,t,n){var i;null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n));return i}},3262:(e,t,n)=>{"use strict";var i=n(8145);e.exports=function findAfter(e,t,n){var o,a,s,c=i(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");o=e.children,s=o.length,t&&t.type&&(t=o.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<s;)if(a=o[t],c(a,t,e))return a;return null}},1695:(e,t,n)=>{"use strict";var i=n(8145);e.exports=function findAllAfter(e,t,n){var o=i(n),a=[];if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)o(e.children[t],t,e)&&a.push(e.children[t]);return a}},8325:(e,t,n)=>{"use strict";const i=n(1216),o=n(3097);e.exports=function findAllBetween(e,t,n,a){if(!e||!e.type||!e.children)throw new Error("Expected parent node");const{children:s}=e,c=[];let l=check(t);const p=check(n);let h;for(;++l<p;)h=s[l],i(h,a,l,e)&&c.push(h);return c;function check(t){if(t&&t.type){e.type===t.type&&(e={type:e.type+"-root",children:e.children});const n=o(e,t);t=s.indexOf(n)}if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");return t>=s.length&&(t=s.length-1),t}}},3097:(e,t,n)=>{"use strict";var i=n(2219),o=n(2728);e.exports=function find(e,t){if(!e)throw new Error("unist-find requires a tree to search");if(!t)throw new Error("unist-find requires a condition");var n,a=o(t);return i(e,(function(e){if(a(e))return n=e,!1})),n}},7891:e=>{"use strict";function convert(e){if("string"==typeof e)return function typeFactory(e){return type;function type(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return ok;if("object"==typeof e)return("length"in e?anyFactory:matchesFactory)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function matchesFactory(e){return function matches(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function anyFactory(e){var t=function convertAll(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=convert(e[i]);return t}(e),n=t.length;return function matches(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function ok(){return!0}e.exports=convert},9763:(e,t,n)=>{"use strict";e.exports=visitParents;var i=n(7891),o="skip",a=!1;function visitParents(e,t,n,s){var c;function one(e,i,l){var p,h=[];return(t&&!c(e,i,l[l.length-1]||null)||(h=toResult(n(e,l)))[0]!==a)&&e.children&&h[0]!==o?(p=toResult(function all(e,t){var n,i=-1,o=s?-1:1,c=(s?e.length:i)+o;for(;c>i&&c<e.length;){if((n=one(e[c],c,t))[0]===a)return n;c="number"==typeof n[1]?n[1]:c+o}}(e.children,l.concat(e))),p[0]===a?p:h):h}"function"==typeof t&&"function"!=typeof n&&(s=n,n=t,t=null),c=i(t),one(e,null,[])}function toResult(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[true,e]:[e]}visitParents.CONTINUE=true,visitParents.SKIP=o,visitParents.EXIT=a},2219:(e,t,n)=>{"use strict";e.exports=visit;var i=n(9763),o=i.CONTINUE,a=i.SKIP,s=i.EXIT;function visit(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),i(e,t,(function overload(e,t){var i=t[t.length-1],o=i?i.children.indexOf(e):null;return n(e,o,i)}),o)}visit.CONTINUE=o,visit.SKIP=a,visit.EXIT=s},8145:e=>{"use strict";function convert(e){if(null==e)return ok;if("string"==typeof e)return function typeFactory(e){return type;function type(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function anyFactory(e){var t=[],n=-1;for(;++n<e.length;)t[n]=convert(e[n]);return any;function any(){for(var e=-1;++e<t.length;)if(t[e].apply(this,arguments))return!0;return!1}}(e):function allFactory(e){return all;function all(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function ok(){return!0}e.exports=convert},1216:(e,t,n)=>{"use strict";var i=n(8145);function is(e,t,n,o,a){var s=i(t);if(null!=n&&("number"!=typeof n||n<0||n===1/0))throw new Error("Expected positive finite index");if(!(null==o||is(o)&&o.children))throw new Error("Expected parent node");if(null==o!=(null==n))throw new Error("Expected both parent and index");return!(!e||!e.type||"string"!=typeof e.type)&&Boolean(s.call(a,e,n,o))}e.exports=is,is.convert=i},3183:(e,t,n)=>{"use strict";var i=n(2854);function hard(e){delete e.position}function soft(e){e.position=void 0}e.exports=function removePosition(e,t){return i(e,t?hard:soft),e}},6750:e=>{e.exports=function identity(e){return e}},9294:(e,t,n)=>{"use strict";e.exports=visitParents;var i=n(8145),o=n(6750),a=!0,s="skip",c=!1;function visitParents(e,t,n,l){var p,h;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),h=i(t),p=l?-1:1,function factory(e,i,d){var f,g="object"==typeof e&&null!==e?e:{};"string"==typeof g.type&&(f="string"==typeof g.tagName?g.tagName:"string"==typeof g.name?g.name:void 0,visit.displayName="node ("+o(g.type+(f?"<"+f+">":""))+")");return visit;function visit(){var o,f,g=d.concat(e),x=[];if((!t||h(e,i,d[d.length-1]||null))&&(x=function toResult(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[a,e];return[e]}(n(e,d)),x[0]===c))return x;if(e.children&&x[0]!==s)for(f=(l?e.children.length:-1)+p;f>-1&&f<e.children.length;){if(o=factory(e.children[f],f,g)(),o[0]===c)return o;f="number"==typeof o[1]?o[1]:f+p}return x}}(e,null,[])()}visitParents.CONTINUE=true,visitParents.SKIP=s,visitParents.EXIT=c},2854:(e,t,n)=>{"use strict";e.exports=visit;var i=n(9294),o=i.CONTINUE,a=i.SKIP,s=i.EXIT;function visit(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),i(e,t,(function overload(e,t){var i=t[t.length-1],o=i?i.children.indexOf(e):null;return n(e,o,i)}),o)}visit.CONTINUE=o,visit.SKIP=a,visit.EXIT=s},7816:()=>{},7738:(e,t,n)=>{"use strict";n.r(t),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function r(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,(function(t,n){return Array.isArray(n)?t.push.apply(t,r.call(n,e-1)):t.push(n),t}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})}},t={};function __webpack_require__(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,__webpack_require__),o.loaded=!0,o.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=__webpack_require__(9883);const t=new e.QuestVM((e=>{globalThis.emit(e)}),(e=>globalThis.choices(e)),globalThis.extraForeignFunctions?globalThis.extraForeignFunctions:{}),n=(0,e.parseMarkdown)(document.body.textContent).qvmState;console.log(n),t.loadVMState(n);let i=!0;if(globalThis.preRun){!1===globalThis.preRun(t)&&(i=!1)}i&&t.run(),globalThis.vm=t})()})();
2
+ (()=>{var e={8572(e,t,n){var i=n(653).Token,o=n(7562).Lexer,a=n(5063).Interval;function TokenStream(){return this}function BufferedTokenStream(e){return TokenStream.call(this),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}BufferedTokenStream.prototype=Object.create(TokenStream.prototype),BufferedTokenStream.prototype.constructor=BufferedTokenStream,BufferedTokenStream.prototype.mark=function(){return 0},BufferedTokenStream.prototype.release=function(e){},BufferedTokenStream.prototype.reset=function(){this.seek(0)},BufferedTokenStream.prototype.seek=function(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)},BufferedTokenStream.prototype.get=function(e){return this.lazyInit(),this.tokens[e]},BufferedTokenStream.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===i.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))},BufferedTokenStream.prototype.sync=function(e){var t=e-this.tokens.length+1;return!(t>0)||this.fetch(t)>=t},BufferedTokenStream.prototype.fetch=function(e){if(this.fetchedEOF)return 0;for(var t=0;t<e;t++){var n=this.tokenSource.nextToken();if(n.tokenIndex=this.tokens.length,this.tokens.push(n),n.type===i.EOF)return this.fetchedEOF=!0,t+1}return e},BufferedTokenStream.prototype.getTokens=function(e,t,n){if(void 0===n&&(n=null),e<0||t<0)return null;this.lazyInit();var o=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(var a=e;a<t;a++){var s=this.tokens[a];if(s.type===i.EOF)break;(null===n||n.contains(s.type))&&o.push(s)}return o},BufferedTokenStream.prototype.LA=function(e){return this.LT(e).type},BufferedTokenStream.prototype.LB=function(e){return this.index-e<0?null:this.tokens[this.index-e]},BufferedTokenStream.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);var t=this.index+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]},BufferedTokenStream.prototype.adjustSeekIndex=function(e){return e},BufferedTokenStream.prototype.lazyInit=function(){-1===this.index&&this.setup()},BufferedTokenStream.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},BufferedTokenStream.prototype.setTokenSource=function(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1},BufferedTokenStream.prototype.nextTokenOnChannel=function(e,t){if(this.sync(e),e>=this.tokens.length)return-1;for(var n=this.tokens[e];n.channel!==this.channel;){if(n.type===i.EOF)return-1;e+=1,this.sync(e),n=this.tokens[e]}return e},BufferedTokenStream.prototype.previousTokenOnChannel=function(e,t){for(;e>=0&&this.tokens[e].channel!==t;)e-=1;return e},BufferedTokenStream.prototype.getHiddenTokensToRight=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.nextTokenOnChannel(e+1,o.DEFAULT_TOKEN_CHANNEL),i=e+1,a=-1===n?this.tokens.length-1:n;return this.filterForChannel(i,a,t)},BufferedTokenStream.prototype.getHiddenTokensToLeft=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.previousTokenOnChannel(e-1,o.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return null;var i=n+1,a=e-1;return this.filterForChannel(i,a,t)},BufferedTokenStream.prototype.filterForChannel=function(e,t,n){for(var i=[],a=e;a<t+1;a++){var s=this.tokens[a];-1===n?s.channel!==o.DEFAULT_TOKEN_CHANNEL&&i.push(s):s.channel===n&&i.push(s)}return 0===i.length?null:i},BufferedTokenStream.prototype.getSourceName=function(){return this.tokenSource.getSourceName()},BufferedTokenStream.prototype.getText=function(e){this.lazyInit(),this.fill(),null==e&&(e=new a(0,this.tokens.length-1));var t=e.start;t instanceof i&&(t=t.tokenIndex);var n=e.stop;if(n instanceof i&&(n=n.tokenIndex),null===t||null===n||t<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);for(var o="",s=t;s<n+1;s++){var c=this.tokens[s];if(c.type===i.EOF)break;o+=c.text}return o},BufferedTokenStream.prototype.fill=function(){for(this.lazyInit();1e3===this.fetch(1e3););},t.BufferedTokenStream=BufferedTokenStream},2365(e,t,n){var i=n(4992).InputStream,o="undefined"==typeof window&&"undefined"==typeof importScripts?n(5843):null,a={fromString:function(e){return new i(e,!0)},fromBlob:function(e,t,n,o){var a=FileReader();a.onload=function(e){var t=new i(e.target.result,!0);n(t)},a.onerror=o,a.readAsText(e,t)},fromBuffer:function(e,t){return new i(e.toString(t),!0)},fromPath:function(e,t,n){o.readFile(e,t,function(e,t){var o=null;null!==t&&(o=new i(t,!0)),n(e,o)})},fromPathSync:function(e,t){var n=o.readFileSync(e,t);return new i(n,!0)}};t.CharStreams=a},3426(e,t,n){var i=n(653).CommonToken;function TokenFactory(){return this}function CommonTokenFactory(e){return TokenFactory.call(this),this.copyText=void 0!==e&&e,this}CommonTokenFactory.prototype=Object.create(TokenFactory.prototype),CommonTokenFactory.prototype.constructor=CommonTokenFactory,CommonTokenFactory.DEFAULT=new CommonTokenFactory,CommonTokenFactory.prototype.create=function(e,t,n,o,a,s,c,l){var p=new i(e,t,o,a,s);return p.line=c,p.column=l,null!==n?p.text=n:this.copyText&&null!==e[1]&&(p.text=e[1].getText(a,s)),p},CommonTokenFactory.prototype.createThin=function(e,t){var n=new i(null,e);return n.text=t,n},t.CommonTokenFactory=CommonTokenFactory},5546(e,t,n){var i=n(653).Token,o=n(8572).BufferedTokenStream;function CommonTokenStream(e,t){return o.call(this,e),this.channel=void 0===t?i.DEFAULT_CHANNEL:t,this}CommonTokenStream.prototype=Object.create(o.prototype),CommonTokenStream.prototype.constructor=CommonTokenStream,CommonTokenStream.prototype.adjustSeekIndex=function(e){return this.nextTokenOnChannel(e,this.channel)},CommonTokenStream.prototype.LB=function(e){if(0===e||this.index-e<0)return null;for(var t=this.index,n=1;n<=e;)t=this.previousTokenOnChannel(t-1,this.channel),n+=1;return t<0?null:this.tokens[t]},CommonTokenStream.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);for(var t=this.index,n=1;n<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),n+=1;return this.tokens[t]},CommonTokenStream.prototype.getNumberOfOnChannelTokens=function(){var e=0;this.fill();for(var t=0;t<this.tokens.length;t++){var n=this.tokens[t];if(n.channel===this.channel&&(e+=1),n.type===i.EOF)break}return e},t.CommonTokenStream=CommonTokenStream},3088(e,t,n){var i=n(4992).InputStream,o="undefined"==typeof window&&"undefined"==typeof importScripts?n(5843):null;function FileStream(e,t){var n=o.readFileSync(e,"utf8");return i.call(this,n,t),this.fileName=e,this}FileStream.prototype=Object.create(i.prototype),FileStream.prototype.constructor=FileStream,t.FileStream=FileStream},4992(e,t,n){var i=n(653).Token;function InputStream(e,t){return this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=t||!1,function _loadString(e){if(e._index=0,e.data=[],e.decodeToUnicodeCodePoints)for(var t=0;t<e.strdata.length;){var n=e.strdata.codePointAt(t);e.data.push(n),t+=n<=65535?1:2}else for(t=0;t<e.strdata.length;t++){var i=e.strdata.charCodeAt(t);e.data.push(i)}e._size=e.data.length}(this),this}n(8203),n(9490),Object.defineProperty(InputStream.prototype,"index",{get:function(){return this._index}}),Object.defineProperty(InputStream.prototype,"size",{get:function(){return this._size}}),InputStream.prototype.reset=function(){this._index=0},InputStream.prototype.consume=function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1},InputStream.prototype.LA=function(e){if(0===e)return 0;e<0&&(e+=1);var t=this._index+e-1;return t<0||t>=this._size?i.EOF:this.data[t]},InputStream.prototype.LT=function(e){return this.LA(e)},InputStream.prototype.mark=function(){return-1},InputStream.prototype.release=function(e){},InputStream.prototype.seek=function(e){e<=this._index?this._index=e:this._index=Math.min(e,this._size)},InputStream.prototype.getText=function(e,t){if(t>=this._size&&(t=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var n="",i=e;i<=t;i++)n+=String.fromCodePoint(this.data[i]);return n}return this.strdata.slice(e,t+1)},InputStream.prototype.toString=function(){return this.strdata},t.InputStream=InputStream},5063(e,t,n){var i=n(653).Token;function Interval(e,t){return this.start=e,this.stop=t,this}function IntervalSet(){this.intervals=null,this.readOnly=!1}Interval.prototype.contains=function(e){return e>=this.start&&e<this.stop},Interval.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(Interval.prototype,"length",{get:function(){return this.stop-this.start}}),IntervalSet.prototype.first=function(e){return null===this.intervals||0===this.intervals.length?i.INVALID_TYPE:this.intervals[0].start},IntervalSet.prototype.addOne=function(e){this.addInterval(new Interval(e,e+1))},IntervalSet.prototype.addRange=function(e,t){this.addInterval(new Interval(e,t+1))},IntervalSet.prototype.addInterval=function(e){if(null===this.intervals)this.intervals=[],this.intervals.push(e);else{for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e.stop<n.start)return void this.intervals.splice(t,0,e);if(e.stop===n.start)return void(this.intervals[t].start=e.start);if(e.start<=n.stop)return this.intervals[t]=new Interval(Math.min(n.start,e.start),Math.max(n.stop,e.stop)),void this.reduce(t)}this.intervals.push(e)}},IntervalSet.prototype.addSet=function(e){if(null!==e.intervals)for(var t=0;t<e.intervals.length;t++){var n=e.intervals[t];this.addInterval(new Interval(n.start,n.stop))}return this},IntervalSet.prototype.reduce=function(e){if(e<this.intervalslength-1){var t=this.intervals[e],n=this.intervals[e+1];t.stop>=n.stop?(this.intervals.pop(e+1),this.reduce(e)):t.stop>=n.start&&(this.intervals[e]=new Interval(t.start,n.stop),this.intervals.pop(e+1))}},IntervalSet.prototype.complement=function(e,t){var n=new IntervalSet;n.addInterval(new Interval(e,t+1));for(var i=0;i<this.intervals.length;i++)n.removeRange(this.intervals[i]);return n},IntervalSet.prototype.contains=function(e){if(null===this.intervals)return!1;for(var t=0;t<this.intervals.length;t++)if(this.intervals[t].contains(e))return!0;return!1},Object.defineProperty(IntervalSet.prototype,"length",{get:function(){var e=0;return this.intervals.map(function(t){e+=t.length}),e}}),IntervalSet.prototype.removeRange=function(e){if(e.start===e.stop-1)this.removeOne(e.start);else if(null!==this.intervals)for(var t=0,n=0;n<this.intervals.length;n++){var i=this.intervals[t];if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new Interval(i.start,e.start);var o=new Interval(e.stop,i.stop);return void this.intervals.splice(t,0,o)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new Interval(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new Interval(e.stop,i.stop)),t+=1}},IntervalSet.prototype.removeOne=function(e){if(null!==this.intervals)for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e<n.start)return;if(e===n.start&&e===n.stop-1)return void this.intervals.splice(t,1);if(e===n.start)return void(this.intervals[t]=new Interval(n.start+1,n.stop));if(e===n.stop-1)return void(this.intervals[t]=new Interval(n.start,n.stop-1));if(e<n.stop-1){var i=new Interval(n.start,e);return n.start=e+1,void this.intervals.splice(t,0,i)}}},IntervalSet.prototype.toString=function(e,t,n){return e=e||null,t=t||null,n=n||!1,null===this.intervals?"{}":null!==e||null!==t?this.toTokenString(e,t):n?this.toCharString():this.toIndexString()},IntervalSet.prototype.toCharString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===i.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(n.start)+"'"):e.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]},IntervalSet.prototype.toIndexString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===i.EOF?e.push("<EOF>"):e.push(n.start.toString()):e.push(n.start.toString()+".."+(n.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]},IntervalSet.prototype.toTokenString=function(e,t){for(var n=[],i=0;i<this.intervals.length;i++)for(var o=this.intervals[i],a=o.start;a<o.stop;a++)n.push(this.elementName(e,t,a));return n.length>1?"{"+n.join(", ")+"}":n[0]},IntervalSet.prototype.elementName=function(e,t,n){return n===i.EOF?"<EOF>":n===i.EPSILON?"<EPSILON>":e[n]||t[n]},t.Interval=Interval,t.IntervalSet=IntervalSet},9521(e,t,n){var i=n(1257).Set,o=n(1257).BitSet,a=n(653).Token,s=n(9845).ATNConfig,c=(n(5063).Interval,n(5063).IntervalSet),l=n(7250).RuleStopState,p=n(5895).RuleTransition,h=n(5895).NotSetTransition,d=n(5895).WildcardTransition,f=n(5895).AbstractPredicateTransition,g=n(2044),x=g.predictionContextFromRuleContext,m=g.PredictionContext,y=g.SingletonPredictionContext;function LL1Analyzer(e){this.atn=e}LL1Analyzer.HIT_PRED=a.INVALID_TYPE,LL1Analyzer.prototype.getDecisionLookahead=function(e){if(null===e)return null;for(var t=e.transitions.length,n=[],a=0;a<t;a++){n[a]=new c;var s=new i;this._LOOK(e.transition(a).target,null,m.EMPTY,n[a],s,new o,!1,!1),(0===n[a].length||n[a].contains(LL1Analyzer.HIT_PRED))&&(n[a]=null)}return n},LL1Analyzer.prototype.LOOK=function(e,t,n){var a=new c,s=null!==(n=n||null)?x(e.atn,n):null;return this._LOOK(e,t,s,a,new i,new o,!0,!0),a},LL1Analyzer.prototype._LOOK=function(e,t,n,i,o,c,g,x){var S=new s({state:e,alt:0,context:n},null);if(!o.contains(S)){if(o.add(S),e===t){if(null===n)return void i.addOne(a.EPSILON);if(n.isEmpty()&&x)return void i.addOne(a.EOF)}if(e instanceof l){if(null===n)return void i.addOne(a.EPSILON);if(n.isEmpty()&&x)return void i.addOne(a.EOF);if(n!==m.EMPTY){for(var T=0;T<n.length;T++){var v=this.atn.states[n.getReturnState(T)],C=c.contains(v.ruleIndex);try{c.remove(v.ruleIndex),this._LOOK(v,t,n.getParent(T),i,o,c,g,x)}finally{C&&c.add(v.ruleIndex)}}return}}for(var A=0;A<e.transitions.length;A++){var E=e.transitions[A];if(E.constructor===p){if(c.contains(E.target.ruleIndex))continue;var k=y.create(n,E.followState.stateNumber);try{c.add(E.target.ruleIndex),this._LOOK(E.target,t,k,i,o,c,g,x)}finally{c.remove(E.target.ruleIndex)}}else if(E instanceof f)g?this._LOOK(E.target,t,n,i,o,c,g,x):i.addOne(LL1Analyzer.HIT_PRED);else if(E.isEpsilon)this._LOOK(E.target,t,n,i,o,c,g,x);else if(E.constructor===d)i.addRange(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var b=E.label;null!==b&&(E instanceof h&&(b=b.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(b))}}}},t.LL1Analyzer=LL1Analyzer},7562(e,t,n){var i=n(653).Token,o=n(4712).Recognizer,a=n(3426).CommonTokenFactory,s=n(6342).RecognitionException,c=n(6342).LexerNoViableAltException;function Lexer(e){return o.call(this),this._input=e,this._factory=a.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=i.DEFAULT_CHANNEL,this._type=i.INVALID_TYPE,this._modeStack=[],this._mode=Lexer.DEFAULT_MODE,this._text=null,this}Lexer.prototype=Object.create(o.prototype),Lexer.prototype.constructor=Lexer,Lexer.DEFAULT_MODE=0,Lexer.MORE=-2,Lexer.SKIP=-3,Lexer.DEFAULT_TOKEN_CHANNEL=i.DEFAULT_CHANNEL,Lexer.HIDDEN=i.HIDDEN_CHANNEL,Lexer.MIN_CHAR_VALUE=0,Lexer.MAX_CHAR_VALUE=1114111,Lexer.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=i.INVALID_TYPE,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Lexer.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},Lexer.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var t=!1;;){this._type=i.INVALID_TYPE;var n=Lexer.SKIP;try{n=this._interp.match(this._input,this._mode)}catch(e){if(!(e instanceof s))throw console.log(e.stack),e;this.notifyListeners(e),this.recover(e)}if(this._input.LA(1)===i.EOF&&(this._hitEOF=!0),this._type===i.INVALID_TYPE&&(this._type=n),this._type===Lexer.SKIP){t=!0;break}if(this._type!==Lexer.MORE)break}if(!t)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}},Lexer.prototype.skip=function(){this._type=Lexer.SKIP},Lexer.prototype.more=function(){this._type=Lexer.MORE},Lexer.prototype.mode=function(e){this._mode=e},Lexer.prototype.pushMode=function(e){this._interp.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)},Lexer.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(Lexer.prototype,"inputStream",{get:function(){return this._input},set:function(e){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=e,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(Lexer.prototype,"sourceName",{get:function sourceName(){return this._input.sourceName}}),Lexer.prototype.emitToken=function(e){this._token=e},Lexer.prototype.emit=function(){var e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(e),e},Lexer.prototype.emitEOF=function(){var e=this.column,t=this.line,n=this._factory.create(this._tokenFactorySourcePair,i.EOF,null,i.DEFAULT_CHANNEL,this._input.index,this._input.index-1,t,e);return this.emitToken(n),n},Object.defineProperty(Lexer.prototype,"type",{get:function(){return this.type},set:function(e){this._type=e}}),Object.defineProperty(Lexer.prototype,"line",{get:function(){return this._interp.line},set:function(e){this._interp.line=e}}),Object.defineProperty(Lexer.prototype,"column",{get:function(){return this._interp.column},set:function(e){this._interp.column=e}}),Lexer.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(Lexer.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(e){this._text=e}}),Lexer.prototype.getAllTokens=function(){for(var e=[],t=this.nextToken();t.type!==i.EOF;)e.push(t),t=this.nextToken();return e},Lexer.prototype.notifyListeners=function(e){var t=this._tokenStartCharIndex,n=this._input.index,i=this._input.getText(t,n),o="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,o,e)},Lexer.prototype.getErrorDisplay=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t.join("")},Lexer.prototype.getErrorDisplayForChar=function(e){return e.charCodeAt(0)===i.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e},Lexer.prototype.getCharErrorDisplay=function(e){return"'"+this.getErrorDisplayForChar(e)+"'"},Lexer.prototype.recover=function(e){this._input.LA(1)!==i.EOF&&(e instanceof c?this._interp.consume(this._input):this._input.consume())},t.Lexer=Lexer},1717(e,t,n){var i=n(653).Token,o=n(6149).ParseTreeListener,a=n(4712).Recognizer,s=n(2730).DefaultErrorStrategy,c=n(2456).ATNDeserializer,l=n(7330).ATNDeserializationOptions,p=n(6149).TerminalNode,h=n(6149).ErrorNode;function TraceListener(e){return o.call(this),this.parser=e,this}function Parser(e){return a.call(this),this._input=null,this._errHandler=new s,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e),this}TraceListener.prototype=Object.create(o.prototype),TraceListener.prototype.constructor=TraceListener,TraceListener.prototype.enterEveryRule=function(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},TraceListener.prototype.visitTerminal=function(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},TraceListener.prototype.exitEveryRule=function(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},Parser.prototype=Object.create(a.prototype),Parser.prototype.contructor=Parser,Parser.bypassAltsAtnCache={},Parser.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()},Parser.prototype.match=function(e){var t=this.getCurrentToken();return t.type===e?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t},Parser.prototype.matchWildcard=function(){var e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e},Parser.prototype.getParseListeners=function(){return this._parseListeners||[]},Parser.prototype.addParseListener=function(e){if(null===e)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(e)},Parser.prototype.removeParseListener=function(e){if(null!==this._parseListeners){var t=this._parseListeners.indexOf(e);t>=0&&this._parseListeners.splice(t,1),0===this._parseListeners.length&&(this._parseListeners=null)}},Parser.prototype.removeParseListeners=function(){this._parseListeners=null},Parser.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.map(function(t){t.enterEveryRule(e),e.enterRule(t)})}},Parser.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.slice(0).reverse().map(function(t){e.exitRule(t),t.exitEveryRule(e)})}},Parser.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},Parser.prototype.setTokenFactory=function(e){this._input.tokenSource._factory=e},Parser.prototype.getATNWithBypassAlts=function(){var e=this.getSerializedATN();if(null===e)throw"The current parser does not support an ATN with bypass alternatives.";var t=this.bypassAltsAtnCache[e];if(null===t){var n=new l;n.generateRuleBypassTransitions=!0,t=new c(n).deserialize(e),this.bypassAltsAtnCache[e]=t}return t};var d=n(7562).Lexer;Parser.prototype.compileParseTreePattern=function(e,t,n){if(null===(n=n||null)&&null!==this.getTokenStream()){var i=this.getTokenStream().tokenSource;i instanceof d&&(n=i)}if(null===n)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(n,this).compile(e,t)},Parser.prototype.getInputStream=function(){return this.getTokenStream()},Parser.prototype.setInputStream=function(e){this.setTokenStream(e)},Parser.prototype.getTokenStream=function(){return this._input},Parser.prototype.setTokenStream=function(e){this._input=null,this.reset(),this._input=e},Parser.prototype.getCurrentToken=function(){return this._input.LT(1)},Parser.prototype.notifyErrorListeners=function(e,t,n){n=n||null,null===(t=t||null)&&(t=this.getCurrentToken()),this._syntaxErrors+=1;var i=t.line,o=t.column;this.getErrorListenerDispatch().syntaxError(this,t,i,o,e,n)},Parser.prototype.consume=function(){var e=this.getCurrentToken();e.type!==i.EOF&&this.getInputStream().consume();var t,n=null!==this._parseListeners&&this._parseListeners.length>0;(this.buildParseTrees||n)&&((t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e)).invokingState=this.state,n&&this._parseListeners.map(function(e){t instanceof h||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof p&&e.visitTerminal(t)}));return e},Parser.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},Parser.prototype.enterRule=function(e,t,n){this.state=t,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.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},Parser.prototype.enterOuterAlt=function(e,t){e.setAltNumber(t),this.buildParseTrees&&this._ctx!==e&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e},Parser.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},Parser.prototype.enterRecursionRule=function(e,t,n,i){this.state=t,this._precedenceStack.push(i),this._ctx=e,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.prototype.pushNewRecursionContext=function(e,t,n){var i=this._ctx;i.parentCtx=e,i.invokingState=t,i.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=i.start,this.buildParseTrees&&this._ctx.addChild(i),null!==this._parseListeners&&this.triggerEnterRuleEvent()},Parser.prototype.unrollRecursionContexts=function(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var t=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;t.parentCtx=e,this.buildParseTrees&&null!==e&&e.addChild(t)},Parser.prototype.getInvokingContext=function(e){for(var t=this._ctx;null!==t;){if(t.ruleIndex===e)return t;t=t.parentCtx}return null},Parser.prototype.precpred=function(e,t){return t>=this._precedenceStack[this._precedenceStack.length-1]},Parser.prototype.inContext=function(e){return!1},Parser.prototype.isExpectedToken=function(e){var t=this._interp.atn,n=this._ctx,o=t.states[this.state],a=t.nextTokens(o);if(a.contains(e))return!0;if(!a.contains(i.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&a.contains(i.EPSILON);){var s=t.states[n.invokingState].transitions[0];if((a=t.nextTokens(s.followState)).contains(e))return!0;n=n.parentCtx}return!(!a.contains(i.EPSILON)||e!==i.EOF)},Parser.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},Parser.prototype.getExpectedTokensWithinCurrentRule=function(){var e=this._interp.atn,t=e.states[this.state];return e.nextTokens(t)},Parser.prototype.getRuleIndex=function(e){var t=this.getRuleIndexMap()[e];return null!==t?t:-1},Parser.prototype.getRuleInvocationStack=function(e){null===(e=e||null)&&(e=this._ctx);for(var t=[];null!==e;){var n=e.ruleIndex;n<0?t.push("n/a"):t.push(this.ruleNames[n]),e=e.parentCtx}return t},Parser.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},Parser.prototype.dumpDFA=function(){for(var e=!1,t=0;t<this._interp.decisionToDFA.length;t++){var n=this._interp.decisionToDFA[t];n.states.length>0&&(e&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),e=!0)}},Parser.prototype.getSourceName=function(){return this._input.sourceName},Parser.prototype.setTrace=function(e){e?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new TraceListener(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},t.Parser=Parser},588(e,t,n){var i=n(6053).RuleContext,o=n(6149),a=o.INVALID_INTERVAL,s=o.TerminalNode,c=o.TerminalNodeImpl,l=o.ErrorNodeImpl,p=n(5063).Interval;function ParserRuleContext(e,t){e=e||null,t=t||null,i.call(this,e,t),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function InterpreterRuleContext(e,t,n){return ParserRuleContext.call(e,t),this.ruleIndex=n,this}ParserRuleContext.prototype=Object.create(i.prototype),ParserRuleContext.prototype.constructor=ParserRuleContext,ParserRuleContext.prototype.copyFrom=function(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map(function(e){e instanceof l&&(this.children.push(e),e.parentCtx=this)},this))},ParserRuleContext.prototype.enterRule=function(e){},ParserRuleContext.prototype.exitRule=function(e){},ParserRuleContext.prototype.addChild=function(e){return null===this.children&&(this.children=[]),this.children.push(e),e},ParserRuleContext.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},ParserRuleContext.prototype.addTokenNode=function(e){var t=new c(e);return this.addChild(t),t.parentCtx=this,t},ParserRuleContext.prototype.addErrorNode=function(e){var t=new l(e);return this.addChild(t),t.parentCtx=this,t},ParserRuleContext.prototype.getChild=function(e,t){if(t=t||null,null===this.children||e<0||e>=this.children.length)return null;if(null===t)return this.children[e];for(var n=0;n<this.children.length;n++){var i=this.children[n];if(i instanceof t){if(0===e)return i;e-=1}}return null},ParserRuleContext.prototype.getToken=function(e,t){if(null===this.children||t<0||t>=this.children.length)return null;for(var n=0;n<this.children.length;n++){var i=this.children[n];if(i instanceof s&&i.symbol.type===e){if(0===t)return i;t-=1}}return null},ParserRuleContext.prototype.getTokens=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var i=this.children[n];i instanceof s&&i.symbol.type===e&&t.push(i)}return t},ParserRuleContext.prototype.getTypedRuleContext=function(e,t){return this.getChild(t,e)},ParserRuleContext.prototype.getTypedRuleContexts=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var i=this.children[n];i instanceof e&&t.push(i)}return t},ParserRuleContext.prototype.getChildCount=function(){return null===this.children?0:this.children.length},ParserRuleContext.prototype.getSourceInterval=function(){return null===this.start||null===this.stop?a:new p(this.start.tokenIndex,this.stop.tokenIndex)},i.EMPTY=new ParserRuleContext,InterpreterRuleContext.prototype=Object.create(ParserRuleContext.prototype),InterpreterRuleContext.prototype.constructor=InterpreterRuleContext,t.ParserRuleContext=ParserRuleContext},2044(e,t,n){var i=n(6053).RuleContext,o=n(1257).Hash,a=n(1257).Map;function PredictionContext(e){this.cachedHashCode=e}function PredictionContextCache(){return this.cache=new a,this}function SingletonPredictionContext(e,t){var n,i=new o;null!==e?i.update(e,t):i.update(1),n=i.finish(),PredictionContext.call(this,n),this.parentCtx=e,this.returnState=t}function EmptyPredictionContext(){return SingletonPredictionContext.call(this,null,PredictionContext.EMPTY_RETURN_STATE),this}function ArrayPredictionContext(e,t){var n=new o;n.update(e,t);var i=n.finish();return PredictionContext.call(this,i),this.parents=e,this.returnStates=t,this}function merge(e,t,n,i){if(e===t)return e;if(e instanceof SingletonPredictionContext&&t instanceof SingletonPredictionContext)return function mergeSingletons(e,t,n,i){if(null!==i){var o=i.get(e,t);if(null!==o)return o;if(null!==(o=i.get(t,e)))return o}var a=function mergeRoot(e,t,n){if(n){if(e===PredictionContext.EMPTY)return PredictionContext.EMPTY;if(t===PredictionContext.EMPTY)return PredictionContext.EMPTY}else{if(e===PredictionContext.EMPTY&&t===PredictionContext.EMPTY)return PredictionContext.EMPTY;if(e===PredictionContext.EMPTY){var i=[t.returnState,PredictionContext.EMPTY_RETURN_STATE];return new ArrayPredictionContext([t.parentCtx,null],i)}if(t===PredictionContext.EMPTY){i=[e.returnState,PredictionContext.EMPTY_RETURN_STATE];return new ArrayPredictionContext([e.parentCtx,null],i)}}return null}(e,t,n);if(null!==a)return null!==i&&i.set(e,t,a),a;if(e.returnState===t.returnState){var s=merge(e.parentCtx,t.parentCtx,n,i);if(s===e.parentCtx)return e;if(s===t.parentCtx)return t;var c=SingletonPredictionContext.create(s,e.returnState);return null!==i&&i.set(e,t,c),c}var l=null;if((e===t||null!==e.parentCtx&&e.parentCtx===t.parentCtx)&&(l=e.parentCtx),null!==l){var p=[e.returnState,t.returnState];e.returnState>t.returnState&&(p[0]=t.returnState,p[1]=e.returnState);var h=new ArrayPredictionContext(d=[l,l],p);return null!==i&&i.set(e,t,h),h}p=[e.returnState,t.returnState];var d=[e.parentCtx,t.parentCtx];e.returnState>t.returnState&&(p[0]=t.returnState,p[1]=e.returnState,d=[t.parentCtx,e.parentCtx]);var f=new ArrayPredictionContext(d,p);return null!==i&&i.set(e,t,f),f}(e,t,n,i);if(n){if(e instanceof EmptyPredictionContext)return e;if(t instanceof EmptyPredictionContext)return t}return e instanceof SingletonPredictionContext&&(e=new ArrayPredictionContext([e.getParent()],[e.returnState])),t instanceof SingletonPredictionContext&&(t=new ArrayPredictionContext([t.getParent()],[t.returnState])),function mergeArrays(e,t,n,i){if(null!==i){var o=i.get(e,t);if(null!==o)return o;if(null!==(o=i.get(t,e)))return o}var s=0,c=0,l=0,p=[],h=[];for(;s<e.returnStates.length&&c<t.returnStates.length;){var d=e.parents[s],f=t.parents[c];if(e.returnStates[s]===t.returnStates[c]){var g=e.returnStates[s];if(g===PredictionContext.EMPTY_RETURN_STATE&&null===d&&null===f||null!==d&&null!==f&&d===f)h[l]=d,p[l]=g;else{var x=merge(d,f,n,i);h[l]=x,p[l]=g}s+=1,c+=1}else e.returnStates[s]<t.returnStates[c]?(h[l]=d,p[l]=e.returnStates[s],s+=1):(h[l]=f,p[l]=t.returnStates[c],c+=1);l+=1}if(s<e.returnStates.length)for(var m=s;m<e.returnStates.length;m++)h[l]=e.parents[m],p[l]=e.returnStates[m],l+=1;else for(m=c;m<t.returnStates.length;m++)h[l]=t.parents[m],p[l]=t.returnStates[m],l+=1;if(l<h.length){if(1===l){var y=SingletonPredictionContext.create(h[0],p[0]);return null!==i&&i.set(e,t,y),y}h=h.slice(0,l),p=p.slice(0,l)}var S=new ArrayPredictionContext(h,p);if(S===e)return null!==i&&i.set(e,t,e),e;if(S===t)return null!==i&&i.set(e,t,t),t;(function combineCommonParents(e){for(var t=new a,n=0;n<e.length;n++){var i=e[n];t.containsKey(i)||t.put(i,i)}for(var o=0;o<e.length;o++)e[o]=t.get(e[o])})(h),null!==i&&i.set(e,t,S);return S}(e,t,n,i)}PredictionContext.EMPTY=null,PredictionContext.EMPTY_RETURN_STATE=2147483647,PredictionContext.globalNodeCount=1,PredictionContext.id=PredictionContext.globalNodeCount,PredictionContext.prototype.isEmpty=function(){return this===PredictionContext.EMPTY},PredictionContext.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===PredictionContext.EMPTY_RETURN_STATE},PredictionContext.prototype.hashCode=function(){return this.cachedHashCode},PredictionContext.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},PredictionContextCache.prototype.add=function(e){if(e===PredictionContext.EMPTY)return PredictionContext.EMPTY;var t=this.cache.get(e)||null;return null!==t?t:(this.cache.put(e,e),e)},PredictionContextCache.prototype.get=function(e){return this.cache.get(e)||null},Object.defineProperty(PredictionContextCache.prototype,"length",{get:function(){return this.cache.length}}),SingletonPredictionContext.prototype=Object.create(PredictionContext.prototype),SingletonPredictionContext.prototype.contructor=SingletonPredictionContext,SingletonPredictionContext.create=function(e,t){return t===PredictionContext.EMPTY_RETURN_STATE&&null===e?PredictionContext.EMPTY:new SingletonPredictionContext(e,t)},Object.defineProperty(SingletonPredictionContext.prototype,"length",{get:function(){return 1}}),SingletonPredictionContext.prototype.getParent=function(e){return this.parentCtx},SingletonPredictionContext.prototype.getReturnState=function(e){return this.returnState},SingletonPredictionContext.prototype.equals=function(e){return this===e||e instanceof SingletonPredictionContext&&(this.hashCode()===e.hashCode()&&(this.returnState===e.returnState&&(null==this.parentCtx?null==e.parentCtx:this.parentCtx.equals(e.parentCtx))))},SingletonPredictionContext.prototype.toString=function(){var e=null===this.parentCtx?"":this.parentCtx.toString();return 0===e.length?this.returnState===PredictionContext.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e},EmptyPredictionContext.prototype=Object.create(SingletonPredictionContext.prototype),EmptyPredictionContext.prototype.constructor=EmptyPredictionContext,EmptyPredictionContext.prototype.isEmpty=function(){return!0},EmptyPredictionContext.prototype.getParent=function(e){return null},EmptyPredictionContext.prototype.getReturnState=function(e){return this.returnState},EmptyPredictionContext.prototype.equals=function(e){return this===e},EmptyPredictionContext.prototype.toString=function(){return"$"},PredictionContext.EMPTY=new EmptyPredictionContext,ArrayPredictionContext.prototype=Object.create(PredictionContext.prototype),ArrayPredictionContext.prototype.constructor=ArrayPredictionContext,ArrayPredictionContext.prototype.isEmpty=function(){return this.returnStates[0]===PredictionContext.EMPTY_RETURN_STATE},Object.defineProperty(ArrayPredictionContext.prototype,"length",{get:function(){return this.returnStates.length}}),ArrayPredictionContext.prototype.getParent=function(e){return this.parents[e]},ArrayPredictionContext.prototype.getReturnState=function(e){return this.returnStates[e]},ArrayPredictionContext.prototype.equals=function(e){return this===e||e instanceof ArrayPredictionContext&&(this.hashCode()===e.hashCode()&&(this.returnStates===e.returnStates&&this.parents===e.parents))},ArrayPredictionContext.prototype.toString=function(){if(this.isEmpty())return"[]";for(var e="[",t=0;t<this.returnStates.length;t++)t>0&&(e+=", "),this.returnStates[t]!==PredictionContext.EMPTY_RETURN_STATE?(e+=this.returnStates[t],null!==this.parents[t]?e=e+" "+this.parents[t]:e+="null"):e+="$";return e+"]"},t.merge=merge,t.PredictionContext=PredictionContext,t.PredictionContextCache=PredictionContextCache,t.SingletonPredictionContext=SingletonPredictionContext,t.predictionContextFromRuleContext=function predictionContextFromRuleContext(e,t){if(null==t&&(t=i.EMPTY),null===t.parentCtx||t===i.EMPTY)return PredictionContext.EMPTY;var n=predictionContextFromRuleContext(e,t.parentCtx),o=e.states[t.invokingState].transitions[0];return SingletonPredictionContext.create(n,o.followState.stateNumber)},t.getCachedPredictionContext=function getCachedPredictionContext(e,t,n){if(e.isEmpty())return e;var i=n.get(e)||null;if(null!==i)return i;if(null!==(i=t.get(e)))return n.put(e,i),i;for(var o=!1,a=[],s=0;s<a.length;s++){var c=getCachedPredictionContext(e.getParent(s),t,n);if(o||c!==e.getParent(s)){if(!o){a=[];for(var l=0;l<e.length;l++)a[l]=e.getParent(l);o=!0}a[s]=c}}if(!o)return t.add(e),n.put(e,e),e;var p=null;return p=0===a.length?PredictionContext.EMPTY:1===a.length?SingletonPredictionContext.create(a[0],e.getReturnState(0)):new ArrayPredictionContext(a,e.returnStates),t.add(p),n.put(p,p),n.put(e,p),p}},4712(e,t,n){var i=n(653).Token,o=n(139).ConsoleErrorListener,a=n(139).ProxyErrorListener;function Recognizer(){return this._listeners=[o.INSTANCE],this._interp=null,this._stateNumber=-1,this}Recognizer.tokenTypeMapCache={},Recognizer.ruleIndexMapCache={},Recognizer.prototype.checkVersion=function(e){"4.8"!==e&&console.log("ANTLR runtime and generated code versions disagree: 4.8!="+e)},Recognizer.prototype.addErrorListener=function(e){this._listeners.push(e)},Recognizer.prototype.removeErrorListeners=function(){this._listeners=[]},Recognizer.prototype.getTokenTypeMap=function(){var e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";var t=this.tokenTypeMapCache[e];return void 0===t&&((t=e.reduce(function(e,t,n){e[t]=n})).EOF=i.EOF,this.tokenTypeMapCache[e]=t),t},Recognizer.prototype.getRuleIndexMap=function(){var e=this.ruleNames;if(null===e)throw"The current recognizer does not provide a list of rule names.";var t=this.ruleIndexMapCache[e];return void 0===t&&(t=e.reduce(function(e,t,n){e[t]=n}),this.ruleIndexMapCache[e]=t),t},Recognizer.prototype.getTokenType=function(e){var t=this.getTokenTypeMap()[e];return void 0!==t?t:i.INVALID_TYPE},Recognizer.prototype.getErrorHeader=function(e){return"line "+e.getOffendingToken().line+":"+e.getOffendingToken().column},Recognizer.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===i.EOF?"<EOF>":"<"+e.type+">"),"'"+(t=t.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},Recognizer.prototype.getErrorListenerDispatch=function(){return new a(this._listeners)},Recognizer.prototype.sempred=function(e,t,n){return!0},Recognizer.prototype.precpred=function(e,t){return!0},Object.defineProperty(Recognizer.prototype,"state",{get:function(){return this._stateNumber},set:function(e){this._stateNumber=e}}),t.Recognizer=Recognizer},6053(e,t,n){var i=n(6149).RuleNode,o=n(6149).INVALID_INTERVAL,a=n(7339).INVALID_ALT_NUMBER;function RuleContext(e,t){return i.call(this),this.parentCtx=e||null,this.invokingState=t||-1,this}RuleContext.prototype=Object.create(i.prototype),RuleContext.prototype.constructor=RuleContext,RuleContext.prototype.depth=function(){for(var e=0,t=this;null!==t;)t=t.parentCtx,e+=1;return e},RuleContext.prototype.isEmpty=function(){return-1===this.invokingState},RuleContext.prototype.getSourceInterval=function(){return o},RuleContext.prototype.getRuleContext=function(){return this},RuleContext.prototype.getPayload=function(){return this},RuleContext.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map(function(e){return e.getText()}).join("")},RuleContext.prototype.getAltNumber=function(){return a},RuleContext.prototype.setAltNumber=function(e){},RuleContext.prototype.getChild=function(e){return null},RuleContext.prototype.getChildCount=function(){return 0},RuleContext.prototype.accept=function(e){return e.visitChildren(this)},t.RuleContext=RuleContext;var s=n(704).Trees;RuleContext.prototype.toStringTree=function(e,t){return s.toStringTree(this,e,t)},RuleContext.prototype.toString=function(e,t){e=e||null,t=t||null;for(var n=this,i="[";null!==n&&n!==t;){if(null===e)n.isEmpty()||(i+=n.invokingState);else{var o=n.ruleIndex;i+=o>=0&&o<e.length?e[o]:""+o}null===n.parentCtx||null===e&&n.parentCtx.isEmpty()||(i+=" "),n=n.parentCtx}return i+="]"}},653(e,t){function Token(){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 CommonToken(e,t,n,i,o){return Token.call(this),this.source=void 0!==e?e:CommonToken.EMPTY_SOURCE,this.type=void 0!==t?t:null,this.channel=void 0!==n?n:Token.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==o?o:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1,this}Token.INVALID_TYPE=0,Token.EPSILON=-2,Token.MIN_USER_TOKEN_TYPE=1,Token.EOF=-1,Token.DEFAULT_CHANNEL=0,Token.HIDDEN_CHANNEL=1,Object.defineProperty(Token.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e}}),Token.prototype.getTokenSource=function(){return this.source[0]},Token.prototype.getInputStream=function(){return this.source[1]},CommonToken.prototype=Object.create(Token.prototype),CommonToken.prototype.constructor=CommonToken,CommonToken.EMPTY_SOURCE=[null,null],CommonToken.prototype.clone=function(){var e=new CommonToken(this.source,this.type,this.channel,this.start,this.stop);return e.tokenIndex=this.tokenIndex,e.line=this.line,e.column=this.column,e.text=this.text,e},Object.defineProperty(CommonToken.prototype,"text",{get:function(){if(null!==this._text)return this._text;var e=this.getInputStream();if(null===e)return null;var t=e.size;return this.start<t&&this.stop<t?e.getText(this.start,this.stop):"<EOF>"},set:function(e){this._text=e}}),CommonToken.prototype.toString=function(){var e=this.text;return e=null!==e?e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+e+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},t.Token=Token,t.CommonToken=CommonToken},1257(e,t){function arrayToString(e){return"["+e.join(", ")+"]"}function standardEqualsFunction(e,t){return e.equals(t)}function standardHashCodeFunction(e){return e.hashCode()}function Set(e,t){return this.data={},this.hashFunction=e||standardHashCodeFunction,this.equalsFunction=t||standardEqualsFunction,this}function BitSet(){return this.data=[],this}function Map(e,t){return this.data={},this.hashFunction=e||standardHashCodeFunction,this.equalsFunction=t||standardEqualsFunction,this}function AltDict(){return this.data={},this}function DoubleDict(e){return this.defaultMapCtor=e||Map,this.cacheMap=new this.defaultMapCtor,this}function Hash(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var e,t,n,i,o,a,s,c,l=this.toString();for(e=3&l.length,t=l.length-e,n=String.prototype.seed,o=3432918353,a=461845907,c=0;c<t;)s=255&l.charCodeAt(c)|(255&l.charCodeAt(++c))<<8|(255&l.charCodeAt(++c))<<16|(255&l.charCodeAt(++c))<<24,++c,n=27492+(65535&(i=5*(65535&(n=(n^=s=(65535&(s=(s=(65535&s)*o+(((s>>>16)*o&65535)<<16)&4294967295)<<15|s>>>17))*a+(((s>>>16)*a&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16);switch(s=0,e){case 3:s^=(255&l.charCodeAt(c+2))<<16;case 2:s^=(255&l.charCodeAt(c+1))<<8;case 1:n^=s=(65535&(s=(s=(65535&(s^=255&l.charCodeAt(c)))*o+(((s>>>16)*o&65535)<<16)&4294967295)<<15|s>>>17))*a+(((s>>>16)*a&65535)<<16)&4294967295}return n^=l.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0},Object.defineProperty(Set.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),Set.prototype.add=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data){for(var n=this.data[t],i=0;i<n.length;i++)if(this.equalsFunction(e,n[i]))return n[i];return n.push(e),e}return this.data[t]=[e],e},Set.prototype.contains=function(e){return null!=this.get(e)},Set.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++)if(this.equalsFunction(e,n[i]))return n[i];return null},Set.prototype.values=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},Set.prototype.toString=function(){return arrayToString(this.values())},BitSet.prototype.add=function(e){this.data[e]=!0},BitSet.prototype.or=function(e){var t=this;Object.keys(e.data).map(function(e){t.add(e)})},BitSet.prototype.remove=function(e){delete this.data[e]},BitSet.prototype.contains=function(e){return!0===this.data[e]},BitSet.prototype.values=function(){return Object.keys(this.data)},BitSet.prototype.minValue=function(){return Math.min.apply(null,this.values())},BitSet.prototype.hashCode=function(){var e=new Hash;return e.update(this.values()),e.finish()},BitSet.prototype.equals=function(e){return e instanceof BitSet&&this.hashCode()===e.hashCode()},Object.defineProperty(BitSet.prototype,"length",{get:function(){return this.values().length}}),BitSet.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},Object.defineProperty(Map.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),Map.prototype.put=function(e,t){var n="hash_"+this.hashFunction(e);if(n in this.data){for(var i=this.data[n],o=0;o<i.length;o++){var a=i[o];if(this.equalsFunction(e,a.key)){var s=a.value;return a.value=t,s}}return i.push({key:e,value:t}),t}return this.data[n]=[{key:e,value:t}],t},Map.prototype.containsKey=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++){var o=n[i];if(this.equalsFunction(e,o.key))return!0}return!1},Map.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],i=0;i<n.length;i++){var o=n[i];if(this.equalsFunction(e,o.key))return o.value}return null},Map.prototype.entries=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},Map.prototype.getKeys=function(){return this.entries().map(function(e){return e.key})},Map.prototype.getValues=function(){return this.entries().map(function(e){return e.value})},Map.prototype.toString=function(){return"["+this.entries().map(function(e){return"{"+e.key+":"+e.value+"}"}).join(", ")+"]"},AltDict.prototype.get=function(e){return(e="k-"+e)in this.data?this.data[e]:null},AltDict.prototype.put=function(e,t){e="k-"+e,this.data[e]=t},AltDict.prototype.values=function(){var e=this.data;return Object.keys(this.data).map(function(t){return e[t]})},Hash.prototype.update=function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(null!=t)if(Array.isArray(t))this.update.apply(this,t);else{var n=0;switch(typeof t){case"undefined":case"function":continue;case"number":case"boolean":n=t;break;case"string":n=t.hashCode();break;default:t.updateHashCode?t.updateHashCode(this):console.log("No updateHashCode for "+t.toString());continue}n=(n*=3432918353)<<15|n>>>17,n*=461845907,this.count=this.count+1;var i=this.hash^n;i=5*(i=i<<13|i>>>19)+3864292196,this.hash=i}}},Hash.prototype.finish=function(){var e=this.hash^4*this.count;return e^=e>>>16,e*=2246822507,e^=e>>>13,e*=3266489909,e^=e>>>16},DoubleDict.prototype.get=function(e,t){var n=this.cacheMap.get(e)||null;return null===n?null:n.get(t)||null},DoubleDict.prototype.set=function(e,t,n){var i=this.cacheMap.get(e)||null;null===i&&(i=new this.defaultMapCtor,this.cacheMap.put(e,i)),i.put(t,n)},t.Hash=Hash,t.Set=Set,t.Map=Map,t.BitSet=BitSet,t.AltDict=AltDict,t.DoubleDict=DoubleDict,t.hashStuff=function hashStuff(){var e=new Hash;return e.update.apply(e,arguments),e.finish()},t.escapeWhitespace=function escapeWhitespace(e,t){return e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"·")),e},t.arrayToString=arrayToString,t.titleCase=function titleCase(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1)})},t.equalArrays=function equalArrays(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].equals(t[n]))return!1;return!0}},7339(e,t,n){var i=n(9521).LL1Analyzer,o=n(5063).IntervalSet;function ATN(e,t){return this.grammarType=e,this.maxTokenType=t,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}ATN.prototype.nextTokensInContext=function(e,t){return new i(this).LOOK(e,null,t)},ATN.prototype.nextTokensNoContext=function(e){return null!==e.nextTokenWithinRule||(e.nextTokenWithinRule=this.nextTokensInContext(e,null),e.nextTokenWithinRule.readOnly=!0),e.nextTokenWithinRule},ATN.prototype.nextTokens=function(e,t){return void 0===t?this.nextTokensNoContext(e):this.nextTokensInContext(e,t)},ATN.prototype.addState=function(e){null!==e&&(e.atn=this,e.stateNumber=this.states.length),this.states.push(e)},ATN.prototype.removeState=function(e){this.states[e.stateNumber]=null},ATN.prototype.defineDecisionState=function(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision},ATN.prototype.getDecisionState=function(e){return 0===this.decisionToState.length?null:this.decisionToState[e]};var a=n(653).Token;ATN.prototype.getExpectedTokens=function(e,t){if(e<0||e>=this.states.length)throw"Invalid state number.";var n=this.states[e],i=this.nextTokens(n);if(!i.contains(a.EPSILON))return i;var s=new o;for(s.addSet(i),s.removeOne(a.EPSILON);null!==t&&t.invokingState>=0&&i.contains(a.EPSILON);){var c=this.states[t.invokingState].transitions[0];i=this.nextTokens(c.followState),s.addSet(i),s.removeOne(a.EPSILON),t=t.parentCtx}return i.contains(a.EPSILON)&&s.addOne(a.EOF),s},ATN.INVALID_ALT_NUMBER=0,t.ATN=ATN},9845(e,t,n){var i=n(7250).DecisionState,o=n(6097).SemanticContext,a=n(1257).Hash;function checkParams(e,t){if(null===e){var n={state:null,alt:null,context:null,semanticContext:null};return t&&(n.reachesIntoOuterContext=0),n}var i={};return i.state=e.state||null,i.alt=void 0===e.alt?null:e.alt,i.context=e.context||null,i.semanticContext=e.semanticContext||null,t&&(i.reachesIntoOuterContext=e.reachesIntoOuterContext||0,i.precedenceFilterSuppressed=e.precedenceFilterSuppressed||!1),i}function ATNConfig(e,t){return this.checkContext(e,t),e=checkParams(e),t=checkParams(t,!0),this.state=null!==e.state?e.state:t.state,this.alt=null!==e.alt?e.alt:t.alt,this.context=null!==e.context?e.context:t.context,this.semanticContext=null!==e.semanticContext?e.semanticContext:null!==t.semanticContext?t.semanticContext:o.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,this.precedenceFilterSuppressed=t.precedenceFilterSuppressed,this}function LexerATNConfig(e,t){ATNConfig.call(this,e,t);var n=e.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==t?t.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==t&&this.checkNonGreedyDecision(t,this.state),this}ATNConfig.prototype.checkContext=function(e,t){null!==e.context&&void 0!==e.context||null!==t&&null!==t.context&&void 0!==t.context||(this.context=null)},ATNConfig.prototype.hashCode=function(){var e=new a;return this.updateHashCode(e),e.finish()},ATNConfig.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},ATNConfig.prototype.equals=function(e){return this===e||e instanceof ATNConfig&&(this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed)},ATNConfig.prototype.hashCodeForConfigSet=function(){var e=new a;return e.update(this.state.stateNumber,this.alt,this.semanticContext),e.finish()},ATNConfig.prototype.equalsForConfigSet=function(e){return this===e||e instanceof ATNConfig&&(this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.semanticContext.equals(e.semanticContext))},ATNConfig.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==o.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},LexerATNConfig.prototype=Object.create(ATNConfig.prototype),LexerATNConfig.prototype.constructor=LexerATNConfig,LexerATNConfig.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},LexerATNConfig.prototype.equals=function(e){return this===e||e instanceof LexerATNConfig&&this.passedThroughNonGreedyDecision==e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&ATNConfig.prototype.equals.call(this,e)},LexerATNConfig.prototype.hashCodeForConfigSet=LexerATNConfig.prototype.hashCode,LexerATNConfig.prototype.equalsForConfigSet=LexerATNConfig.prototype.equals,LexerATNConfig.prototype.checkNonGreedyDecision=function(e,t){return e.passedThroughNonGreedyDecision||t instanceof i&&t.nonGreedy},t.ATNConfig=ATNConfig,t.LexerATNConfig=LexerATNConfig},637(e,t,n){var i=n(7339).ATN,o=n(1257),a=o.Hash,s=o.Set,c=n(6097).SemanticContext,l=n(2044).merge;function hashATNConfig(e){return e.hashCodeForConfigSet()}function equalATNConfigs(e,t){return e===t||null!==e&&null!==t&&e.equalsForConfigSet(t)}function ATNConfigSet(e){return this.configLookup=new s(hashATNConfig,equalATNConfigs),this.fullCtx=void 0===e||e,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function OrderedATNConfigSet(){return ATNConfigSet.call(this),this.configLookup=new s,this}ATNConfigSet.prototype.add=function(e,t){if(void 0===t&&(t=null),this.readOnly)throw"This set is readonly";e.semanticContext!==c.NONE&&(this.hasSemanticContext=!0),e.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var n=this.configLookup.add(e);if(n===e)return this.cachedHashCode=-1,this.configs.push(e),!0;var i=!this.fullCtx,o=l(n.context,e.context,i,t);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,e.reachesIntoOuterContext),e.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=o,!0},ATNConfigSet.prototype.getStates=function(){for(var e=new s,t=0;t<this.configs.length;t++)e.add(this.configs[t].state);return e},ATNConfigSet.prototype.getPredicates=function(){for(var e=[],t=0;t<this.configs.length;t++){var n=this.configs[t].semanticContext;n!==c.NONE&&e.push(n.semanticContext)}return e},Object.defineProperty(ATNConfigSet.prototype,"items",{get:function(){return this.configs}}),ATNConfigSet.prototype.optimizeConfigs=function(e){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];n.context=e.getCachedContext(n.context)}},ATNConfigSet.prototype.addAll=function(e){for(var t=0;t<e.length;t++)this.add(e[t]);return!1},ATNConfigSet.prototype.equals=function(e){return this===e||e instanceof ATNConfigSet&&o.equalArrays(this.configs,e.configs)&&this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext},ATNConfigSet.prototype.hashCode=function(){var e=new a;return e.update(this.configs),e.finish()},ATNConfigSet.prototype.updateHashCode=function(e){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),e.update(this.cachedHashCode)):e.update(this.hashCode())},Object.defineProperty(ATNConfigSet.prototype,"length",{get:function(){return this.configs.length}}),ATNConfigSet.prototype.isEmpty=function(){return 0===this.configs.length},ATNConfigSet.prototype.contains=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(e)},ATNConfigSet.prototype.containsFast=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(e)},ATNConfigSet.prototype.clear=function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new s},ATNConfigSet.prototype.setReadonly=function(e){this.readOnly=e,e&&(this.configLookup=null)},ATNConfigSet.prototype.toString=function(){return o.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==i.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")},OrderedATNConfigSet.prototype=Object.create(ATNConfigSet.prototype),OrderedATNConfigSet.prototype.constructor=OrderedATNConfigSet,t.ATNConfigSet=ATNConfigSet,t.OrderedATNConfigSet=OrderedATNConfigSet},7330(e,t){function ATNDeserializationOptions(e){return void 0===e&&(e=null),this.readOnly=!1,this.verifyATN=null===e||e.verifyATN,this.generateRuleBypassTransitions=null!==e&&e.generateRuleBypassTransitions,this}ATNDeserializationOptions.defaultOptions=new ATNDeserializationOptions,ATNDeserializationOptions.defaultOptions.readOnly=!0,t.ATNDeserializationOptions=ATNDeserializationOptions},2456(e,t,n){var i=n(653).Token,o=n(7339).ATN,a=n(8771).ATNType,s=n(7250),c=s.ATNState,l=s.BasicState,p=s.DecisionState,h=s.BlockStartState,d=s.BlockEndState,f=s.LoopEndState,g=s.RuleStartState,x=s.RuleStopState,m=s.TokensStartState,y=s.PlusLoopbackState,S=s.StarLoopbackState,T=s.StarLoopEntryState,v=s.PlusBlockStartState,C=s.StarBlockStartState,A=s.BasicBlockStartState,E=n(5895),k=E.Transition,b=E.AtomTransition,P=E.SetTransition,L=E.NotSetTransition,_=E.RuleTransition,N=E.RangeTransition,I=E.ActionTransition,O=E.EpsilonTransition,F=E.WildcardTransition,w=E.PredicateTransition,R=E.PrecedencePredicateTransition,D=n(5063).IntervalSet,M=(n(5063).Interval,n(7330).ATNDeserializationOptions),B=n(1586),z=B.LexerActionType,j=B.LexerSkipAction,H=B.LexerChannelAction,U=B.LexerCustomAction,V=B.LexerMoreAction,W=B.LexerTypeAction,K=B.LexerPushModeAction,$=B.LexerPopModeAction,Y=B.LexerModeAction,G="59627784-3BE5-417A-B9EB-8131A7286089",Q=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",G],X=G;function initArray(e,t){var n=[];return n[e-1]=t,n.map(function(e){return t})}function ATNDeserializer(e){return null==e&&(e=M.defaultOptions),this.deserializationOptions=e,this.stateFactories=null,this.actionFactories=null,this}ATNDeserializer.prototype.isFeatureSupported=function(e,t){var n=Q.indexOf(e);return!(n<0)&&Q.indexOf(t)>=n},ATNDeserializer.prototype.deserialize=function(e){this.reset(e),this.checkVersion(),this.checkUUID();var t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);var n=[];return this.readSets(t,n,this.readInt.bind(this)),this.isFeatureSupported(G,this.uuid)&&this.readSets(t,n,this.readInt32.bind(this)),this.readEdges(t,n),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===a.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t},ATNDeserializer.prototype.reset=function(e){var t=e.split("").map(function(e){var t=e.charCodeAt(0);return t>1?t-2:t+65534});t[0]=e.charCodeAt(0),this.data=t,this.pos=0},ATNDeserializer.prototype.checkVersion=function(){var e=this.readInt();if(3!==e)throw"Could not deserialize ATN with version "+e+" (expected 3)."},ATNDeserializer.prototype.checkUUID=function(){var e=this.readUUID();if(Q.indexOf(e)<0)throw X;this.uuid=e},ATNDeserializer.prototype.readATN=function(){var e=this.readInt(),t=this.readInt();return new o(e,t)},ATNDeserializer.prototype.readStates=function(e){for(var t,n,i,o=[],a=[],s=this.readInt(),l=0;l<s;l++){var p=this.readInt();if(p!==c.INVALID_TYPE){var d=this.readInt();65535===d&&(d=-1);var f=this.stateFactory(p,d);if(p===c.LOOP_END){var g=this.readInt();o.push([f,g])}else if(f instanceof h){var x=this.readInt();a.push([f,x])}e.addState(f)}else e.addState(null)}for(t=0;t<o.length;t++)(n=o[t])[0].loopBackState=e.states[n[1]];for(t=0;t<a.length;t++)(n=a[t])[0].endState=e.states[n[1]];var m=this.readInt();for(t=0;t<m;t++)i=this.readInt(),e.states[i].nonGreedy=!0;var y=this.readInt();for(t=0;t<y;t++)i=this.readInt(),e.states[i].isPrecedenceRule=!0},ATNDeserializer.prototype.readRules=function(e){var t,n=this.readInt();for(e.grammarType===a.LEXER&&(e.ruleToTokenType=initArray(n,0)),e.ruleToStartState=initArray(n,0),t=0;t<n;t++){var o=this.readInt(),s=e.states[o];if(e.ruleToStartState[t]=s,e.grammarType===a.LEXER){var c=this.readInt();65535===c&&(c=i.EOF),e.ruleToTokenType[t]=c}}for(e.ruleToStopState=initArray(n,0),t=0;t<e.states.length;t++){var l=e.states[t];l instanceof x&&(e.ruleToStopState[l.ruleIndex]=l,e.ruleToStartState[l.ruleIndex].stopState=l)}},ATNDeserializer.prototype.readModes=function(e){for(var t=this.readInt(),n=0;n<t;n++){var i=this.readInt();e.modeToStartState.push(e.states[i])}},ATNDeserializer.prototype.readSets=function(e,t,n){for(var i=this.readInt(),o=0;o<i;o++){var a=new D;t.push(a);var s=this.readInt();0!==this.readInt()&&a.addOne(-1);for(var c=0;c<s;c++){var l=n(),p=n();a.addRange(l,p)}}},ATNDeserializer.prototype.readEdges=function(e,t){var n,i,o,a,s,c=this.readInt();for(n=0;n<c;n++){var l=this.readInt(),p=this.readInt(),d=this.readInt(),f=this.readInt(),g=this.readInt(),x=this.readInt();a=this.edgeFactory(e,d,l,p,f,g,x,t),e.states[l].addTransition(a)}for(n=0;n<e.states.length;n++)for(o=e.states[n],i=0;i<o.transitions.length;i++){var m=o.transitions[i];if(m instanceof _){var C=-1;e.ruleToStartState[m.target.ruleIndex].isPrecedenceRule&&0===m.precedence&&(C=m.target.ruleIndex),a=new O(m.followState,C),e.ruleToStopState[m.target.ruleIndex].addTransition(a)}}for(n=0;n<e.states.length;n++){if((o=e.states[n])instanceof h){if(null===o.endState)throw"IllegalState";if(null!==o.endState.startState)throw"IllegalState";o.endState.startState=o}if(o instanceof y)for(i=0;i<o.transitions.length;i++)(s=o.transitions[i].target)instanceof v&&(s.loopBackState=o);else if(o instanceof S)for(i=0;i<o.transitions.length;i++)(s=o.transitions[i].target)instanceof T&&(s.loopBackState=o)}},ATNDeserializer.prototype.readDecisions=function(e){for(var t=this.readInt(),n=0;n<t;n++){var i=this.readInt(),o=e.states[i];e.decisionToState.push(o),o.decision=n}},ATNDeserializer.prototype.readLexerActions=function(e){if(e.grammarType===a.LEXER){var t=this.readInt();e.lexerActions=initArray(t,null);for(var n=0;n<t;n++){var i=this.readInt(),o=this.readInt();65535===o&&(o=-1);var s=this.readInt();65535===s&&(s=-1);var c=this.lexerActionFactory(i,o,s);e.lexerActions[n]=c}}},ATNDeserializer.prototype.generateRuleBypassTransitions=function(e){var t,n=e.ruleToStartState.length;for(t=0;t<n;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<n;t++)this.generateRuleBypassTransition(e,t)},ATNDeserializer.prototype.generateRuleBypassTransition=function(e,t){var n,i,o=new A;o.ruleIndex=t,e.addState(o);var a=new d;a.ruleIndex=t,e.addState(a),o.endState=a,e.defineDecisionState(o),a.startState=o;var s=null,c=null;if(e.ruleToStartState[t].isPrecedenceRule){for(c=null,n=0;n<e.states.length;n++)if(i=e.states[n],this.stateIsEndStateFor(i,t)){c=i,s=i.loopBackState.transitions[0];break}if(null===s)throw"Couldn't identify final state of the precedence rule prefix section."}else c=e.ruleToStopState[t];for(n=0;n<e.states.length;n++){i=e.states[n];for(var p=0;p<i.transitions.length;p++){var h=i.transitions[p];h!==s&&(h.target===c&&(h.target=a))}}for(var f=e.ruleToStartState[t],g=f.transitions.length;g>0;)o.addTransition(f.transitions[g-1]),f.transitions=f.transitions.slice(-1);e.ruleToStartState[t].addTransition(new O(o)),a.addTransition(new O(c));var x=new l;e.addState(x),x.addTransition(new b(a,e.ruleToTokenType[t])),o.addTransition(new O(x))},ATNDeserializer.prototype.stateIsEndStateFor=function(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof T))return null;var n=e.transitions[e.transitions.length-1].target;return n instanceof f&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof x?e:null},ATNDeserializer.prototype.markPrecedenceDecisions=function(e){for(var t=0;t<e.states.length;t++){var n=e.states[t];if(n instanceof T&&e.ruleToStartState[n.ruleIndex].isPrecedenceRule){var i=n.transitions[n.transitions.length-1].target;i instanceof f&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof x&&(n.isPrecedenceDecision=!0)}}},ATNDeserializer.prototype.verifyATN=function(e){if(this.deserializationOptions.verifyATN)for(var t=0;t<e.states.length;t++){var n=e.states[t];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof v)this.checkCondition(null!==n.loopBackState);else if(n instanceof T)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof C)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 C),this.checkCondition(n.nonGreedy)}else n instanceof S?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof T)):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 x)}},ATNDeserializer.prototype.checkCondition=function(e,t){if(!e)throw null==t&&(t="IllegalState"),t},ATNDeserializer.prototype.readInt=function(){return this.data[this.pos++]},ATNDeserializer.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},ATNDeserializer.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var J=function createByteToHex(){for(var e=[],t=0;t<256;t++)e[t]=(t+256).toString(16).substr(1).toUpperCase();return e}();ATNDeserializer.prototype.readUUID=function(){for(var e=[],t=7;t>=0;t--){var n=this.readInt();e[2*t+1]=255&n,e[2*t]=n>>8&255}return J[e[0]]+J[e[1]]+J[e[2]]+J[e[3]]+"-"+J[e[4]]+J[e[5]]+"-"+J[e[6]]+J[e[7]]+"-"+J[e[8]]+J[e[9]]+"-"+J[e[10]]+J[e[11]]+J[e[12]]+J[e[13]]+J[e[14]]+J[e[15]]},ATNDeserializer.prototype.edgeFactory=function(e,t,n,o,a,s,c,l){var p=e.states[o];switch(t){case k.EPSILON:return new O(p);case k.RANGE:return new N(p,0!==c?i.EOF:a,s);case k.RULE:return new _(e.states[a],s,c,p);case k.PREDICATE:return new w(p,a,s,0!==c);case k.PRECEDENCE:return new R(p,a);case k.ATOM:return new b(p,0!==c?i.EOF:a);case k.ACTION:return new I(p,a,s,0!==c);case k.SET:return new P(p,l[a]);case k.NOT_SET:return new L(p,l[a]);case k.WILDCARD:return new F(p);default:throw"The specified transition type: "+t+" is not valid."}},ATNDeserializer.prototype.stateFactory=function(e,t){if(null===this.stateFactories){var n=[];n[c.INVALID_TYPE]=null,n[c.BASIC]=function(){return new l},n[c.RULE_START]=function(){return new g},n[c.BLOCK_START]=function(){return new A},n[c.PLUS_BLOCK_START]=function(){return new v},n[c.STAR_BLOCK_START]=function(){return new C},n[c.TOKEN_START]=function(){return new m},n[c.RULE_STOP]=function(){return new x},n[c.BLOCK_END]=function(){return new d},n[c.STAR_LOOP_BACK]=function(){return new S},n[c.STAR_LOOP_ENTRY]=function(){return new T},n[c.PLUS_LOOP_BACK]=function(){return new y},n[c.LOOP_END]=function(){return new f},this.stateFactories=n}if(e>this.stateFactories.length||null===this.stateFactories[e])throw"The specified state type "+e+" is not valid.";var i=this.stateFactories[e]();if(null!==i)return i.ruleIndex=t,i},ATNDeserializer.prototype.lexerActionFactory=function(e,t,n){if(null===this.actionFactories){var i=[];i[z.CHANNEL]=function(e,t){return new H(e)},i[z.CUSTOM]=function(e,t){return new U(e,t)},i[z.MODE]=function(e,t){return new Y(e)},i[z.MORE]=function(e,t){return V.INSTANCE},i[z.POP_MODE]=function(e,t){return $.INSTANCE},i[z.PUSH_MODE]=function(e,t){return new K(e)},i[z.SKIP]=function(e,t){return j.INSTANCE},i[z.TYPE]=function(e,t){return new W(e)},this.actionFactories=i}if(e>this.actionFactories.length||null===this.actionFactories[e])throw"The specified lexer action type "+e+" is not valid.";return this.actionFactories[e](t,n)},t.ATNDeserializer=ATNDeserializer},8361(e,t,n){var i=n(1418).DFAState,o=n(637).ATNConfigSet,a=n(2044).getCachedPredictionContext,s=n(1257).Map;function ATNSimulator(e,t){return this.atn=e,this.sharedContextCache=t,this}ATNSimulator.ERROR=new i(2147483647,new o),ATNSimulator.prototype.getCachedContext=function(e){if(null===this.sharedContextCache)return e;var t=new s;return a(e,this.sharedContextCache,t)},t.ATNSimulator=ATNSimulator},7250(e,t){function ATNState(){return this.atn=null,this.stateNumber=ATNState.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function BasicState(){return ATNState.call(this),this.stateType=ATNState.BASIC,this}function DecisionState(){return ATNState.call(this),this.decision=-1,this.nonGreedy=!1,this}function BlockStartState(){return DecisionState.call(this),this.endState=null,this}function BasicBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.BLOCK_START,this}function BlockEndState(){return ATNState.call(this),this.stateType=ATNState.BLOCK_END,this.startState=null,this}function RuleStopState(){return ATNState.call(this),this.stateType=ATNState.RULE_STOP,this}function RuleStartState(){return ATNState.call(this),this.stateType=ATNState.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function PlusLoopbackState(){return DecisionState.call(this),this.stateType=ATNState.PLUS_LOOP_BACK,this}function PlusBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.PLUS_BLOCK_START,this.loopBackState=null,this}function StarBlockStartState(){return BlockStartState.call(this),this.stateType=ATNState.STAR_BLOCK_START,this}function StarLoopbackState(){return ATNState.call(this),this.stateType=ATNState.STAR_LOOP_BACK,this}function StarLoopEntryState(){return DecisionState.call(this),this.stateType=ATNState.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function LoopEndState(){return ATNState.call(this),this.stateType=ATNState.LOOP_END,this.loopBackState=null,this}function TokensStartState(){return DecisionState.call(this),this.stateType=ATNState.TOKEN_START,this}ATNState.INVALID_TYPE=0,ATNState.BASIC=1,ATNState.RULE_START=2,ATNState.BLOCK_START=3,ATNState.PLUS_BLOCK_START=4,ATNState.STAR_BLOCK_START=5,ATNState.TOKEN_START=6,ATNState.RULE_STOP=7,ATNState.BLOCK_END=8,ATNState.STAR_LOOP_BACK=9,ATNState.STAR_LOOP_ENTRY=10,ATNState.PLUS_LOOP_BACK=11,ATNState.LOOP_END=12,ATNState.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"],ATNState.INVALID_STATE_NUMBER=-1,ATNState.prototype.toString=function(){return this.stateNumber},ATNState.prototype.equals=function(e){return e instanceof ATNState&&this.stateNumber===e.stateNumber},ATNState.prototype.isNonGreedyExitState=function(){return!1},ATNState.prototype.addTransition=function(e,t){void 0===t&&(t=-1),0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===t?this.transitions.push(e):this.transitions.splice(t,1,e)},BasicState.prototype=Object.create(ATNState.prototype),BasicState.prototype.constructor=BasicState,DecisionState.prototype=Object.create(ATNState.prototype),DecisionState.prototype.constructor=DecisionState,BlockStartState.prototype=Object.create(DecisionState.prototype),BlockStartState.prototype.constructor=BlockStartState,BasicBlockStartState.prototype=Object.create(BlockStartState.prototype),BasicBlockStartState.prototype.constructor=BasicBlockStartState,BlockEndState.prototype=Object.create(ATNState.prototype),BlockEndState.prototype.constructor=BlockEndState,RuleStopState.prototype=Object.create(ATNState.prototype),RuleStopState.prototype.constructor=RuleStopState,RuleStartState.prototype=Object.create(ATNState.prototype),RuleStartState.prototype.constructor=RuleStartState,PlusLoopbackState.prototype=Object.create(DecisionState.prototype),PlusLoopbackState.prototype.constructor=PlusLoopbackState,PlusBlockStartState.prototype=Object.create(BlockStartState.prototype),PlusBlockStartState.prototype.constructor=PlusBlockStartState,StarBlockStartState.prototype=Object.create(BlockStartState.prototype),StarBlockStartState.prototype.constructor=StarBlockStartState,StarLoopbackState.prototype=Object.create(ATNState.prototype),StarLoopbackState.prototype.constructor=StarLoopbackState,StarLoopEntryState.prototype=Object.create(DecisionState.prototype),StarLoopEntryState.prototype.constructor=StarLoopEntryState,LoopEndState.prototype=Object.create(ATNState.prototype),LoopEndState.prototype.constructor=LoopEndState,TokensStartState.prototype=Object.create(DecisionState.prototype),TokensStartState.prototype.constructor=TokensStartState,t.ATNState=ATNState,t.BasicState=BasicState,t.DecisionState=DecisionState,t.BlockStartState=BlockStartState,t.BlockEndState=BlockEndState,t.LoopEndState=LoopEndState,t.RuleStartState=RuleStartState,t.RuleStopState=RuleStopState,t.TokensStartState=TokensStartState,t.PlusLoopbackState=PlusLoopbackState,t.StarLoopbackState=StarLoopbackState,t.StarLoopEntryState=StarLoopEntryState,t.PlusBlockStartState=PlusBlockStartState,t.StarBlockStartState=StarBlockStartState,t.BasicBlockStartState=BasicBlockStartState},8771(e,t){function ATNType(){}ATNType.LEXER=0,ATNType.PARSER=1,t.ATNType=ATNType},8989(e,t,n){var i=n(653).Token,o=n(7562).Lexer,a=n(7339).ATN,s=n(8361).ATNSimulator,c=n(1418).DFAState,l=(n(637).ATNConfigSet,n(637).OrderedATNConfigSet),p=n(2044).PredictionContext,h=n(2044).SingletonPredictionContext,d=n(7250).RuleStopState,f=n(9845).LexerATNConfig,g=n(5895).Transition,x=n(7231).LexerActionExecutor,m=n(6342).LexerNoViableAltException;function resetSimState(e){e.index=-1,e.line=0,e.column=-1,e.dfaState=null}function SimState(){return resetSimState(this),this}function LexerATNSimulator(e,t,n,i){return s.call(this,t,i),this.decisionToDFA=n,this.recog=e,this.startIndex=-1,this.line=1,this.column=0,this.mode=o.DEFAULT_MODE,this.prevAccept=new SimState,this}SimState.prototype.reset=function(){resetSimState(this)},LexerATNSimulator.prototype=Object.create(s.prototype),LexerATNSimulator.prototype.constructor=LexerATNSimulator,LexerATNSimulator.debug=!1,LexerATNSimulator.dfa_debug=!1,LexerATNSimulator.MIN_DFA_EDGE=0,LexerATNSimulator.MAX_DFA_EDGE=127,LexerATNSimulator.match_calls=0,LexerATNSimulator.prototype.copyState=function(e){this.column=e.column,this.line=e.line,this.mode=e.mode,this.startIndex=e.startIndex},LexerATNSimulator.prototype.match=function(e,t){this.match_calls+=1,this.mode=t;var n=e.mark();try{this.startIndex=e.index,this.prevAccept.reset();var i=this.decisionToDFA[t];return null===i.s0?this.matchATN(e):this.execATN(e,i.s0)}finally{e.release(n)}},LexerATNSimulator.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=o.DEFAULT_MODE},LexerATNSimulator.prototype.matchATN=function(e){var t=this.atn.modeToStartState[this.mode];LexerATNSimulator.debug&&console.log("matchATN mode "+this.mode+" start: "+t);var n=this.mode,i=this.computeStartState(e,t),o=i.hasSemanticContext;i.hasSemanticContext=!1;var a=this.addDFAState(i);o||(this.decisionToDFA[this.mode].s0=a);var s=this.execATN(e,a);return LexerATNSimulator.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),s},LexerATNSimulator.prototype.execATN=function(e,t){LexerATNSimulator.debug&&console.log("start state closure="+t.configs),t.isAcceptState&&this.captureSimState(this.prevAccept,e,t);for(var n=e.LA(1),o=t;;){LexerATNSimulator.debug&&console.log("execATN loop starting closure: "+o.configs);var a=this.getExistingTargetState(o,n);if(null===a&&(a=this.computeTargetState(e,o,n)),a===s.ERROR)break;if(n!==i.EOF&&this.consume(e),a.isAcceptState&&(this.captureSimState(this.prevAccept,e,a),n===i.EOF))break;n=e.LA(1),o=a}return this.failOrAccept(this.prevAccept,e,o.configs,n)},LexerATNSimulator.prototype.getExistingTargetState=function(e,t){if(null===e.edges||t<LexerATNSimulator.MIN_DFA_EDGE||t>LexerATNSimulator.MAX_DFA_EDGE)return null;var n=e.edges[t-LexerATNSimulator.MIN_DFA_EDGE];return void 0===n&&(n=null),LexerATNSimulator.debug&&null!==n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n},LexerATNSimulator.prototype.computeTargetState=function(e,t,n){var i=new l;return this.getReachableConfigSet(e,t.configs,i,n),0===i.items.length?(i.hasSemanticContext||this.addDFAEdge(t,n,s.ERROR),s.ERROR):this.addDFAEdge(t,n,null,i)},LexerATNSimulator.prototype.failOrAccept=function(e,t,n,o){if(null!==this.prevAccept.dfaState){var a=e.dfaState.lexerActionExecutor;return this.accept(t,a,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(o===i.EOF&&t.index===this.startIndex)return i.EOF;throw new m(this.recog,t,this.startIndex,n)},LexerATNSimulator.prototype.getReachableConfigSet=function(e,t,n,o){for(var s=a.INVALID_ALT_NUMBER,c=0;c<t.items.length;c++){var l=t.items[c],p=l.alt===s;if(!p||!l.passedThroughNonGreedyDecision){LexerATNSimulator.debug&&console.log("testing %s at %s\n",this.getTokenName(o),l.toString(this.recog,!0));for(var h=0;h<l.state.transitions.length;h++){var d=l.state.transitions[h],g=this.getReachableTarget(d,o);if(null!==g){var x=l.lexerActionExecutor;null!==x&&(x=x.fixOffsetBeforeMatch(e.index-this.startIndex));var m=o===i.EOF,y=new f({state:g,lexerActionExecutor:x},l);this.closure(e,y,n,p,!0,m)&&(s=l.alt)}}}}},LexerATNSimulator.prototype.accept=function(e,t,n,i,o,a){LexerATNSimulator.debug&&console.log("ACTION %s\n",t),e.seek(i),this.line=o,this.column=a,null!==t&&null!==this.recog&&t.execute(this.recog,e,n)},LexerATNSimulator.prototype.getReachableTarget=function(e,t){return e.matches(t,0,o.MAX_CHAR_VALUE)?e.target:null},LexerATNSimulator.prototype.computeStartState=function(e,t){for(var n=p.EMPTY,i=new l,o=0;o<t.transitions.length;o++){var a=t.transitions[o].target,s=new f({state:a,alt:o+1,context:n},null);this.closure(e,s,i,!1,!1,!1)}return i},LexerATNSimulator.prototype.closure=function(e,t,n,i,o,a){var s=null;if(LexerATNSimulator.debug&&console.log("closure("+t.toString(this.recog,!0)+")"),t.state instanceof d){if(LexerATNSimulator.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[t.state.ruleIndex],t):console.log("closure at rule stop %s\n",t)),null===t.context||t.context.hasEmptyPath()){if(null===t.context||t.context.isEmpty())return n.add(t),!0;n.add(new f({state:t.state,context:p.EMPTY},t)),i=!0}if(null!==t.context&&!t.context.isEmpty())for(var c=0;c<t.context.length;c++)if(t.context.getReturnState(c)!==p.EMPTY_RETURN_STATE){var l=t.context.getParent(c),h=this.atn.states[t.context.getReturnState(c)];s=new f({state:h,context:l},t),i=this.closure(e,s,n,i,o,a)}return i}t.state.epsilonOnlyTransitions||i&&t.passedThroughNonGreedyDecision||n.add(t);for(var g=0;g<t.state.transitions.length;g++){var x=t.state.transitions[g];null!==(s=this.getEpsilonTarget(e,t,x,n,o,a))&&(i=this.closure(e,s,n,i,o,a))}return i},LexerATNSimulator.prototype.getEpsilonTarget=function(e,t,n,a,s,c){var l=null;if(n.serializationType===g.RULE){var p=h.create(t.context,n.followState.stateNumber);l=new f({state:n.target,context:p},t)}else{if(n.serializationType===g.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===g.PREDICATE)LexerATNSimulator.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),a.hasSemanticContext=!0,this.evaluatePredicate(e,n.ruleIndex,n.predIndex,s)&&(l=new f({state:n.target},t));else if(n.serializationType===g.ACTION)if(null===t.context||t.context.hasEmptyPath()){var d=x.append(t.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);l=new f({state:n.target,lexerActionExecutor:d},t)}else l=new f({state:n.target},t);else n.serializationType===g.EPSILON?l=new f({state:n.target},t):n.serializationType!==g.ATOM&&n.serializationType!==g.RANGE&&n.serializationType!==g.SET||c&&n.matches(i.EOF,0,o.MAX_CHAR_VALUE)&&(l=new f({state:n.target},t))}return l},LexerATNSimulator.prototype.evaluatePredicate=function(e,t,n,i){if(null===this.recog)return!0;if(!i)return this.recog.sempred(null,t,n);var o=this.column,a=this.line,s=e.index,c=e.mark();try{return this.consume(e),this.recog.sempred(null,t,n)}finally{this.column=o,this.line=a,e.seek(s),e.release(c)}},LexerATNSimulator.prototype.captureSimState=function(e,t,n){e.index=t.index,e.line=this.line,e.column=this.column,e.dfaState=n},LexerATNSimulator.prototype.addDFAEdge=function(e,t,n,i){if(void 0===n&&(n=null),void 0===i&&(i=null),null===n&&null!==i){var o=i.hasSemanticContext;if(i.hasSemanticContext=!1,n=this.addDFAState(i),o)return n}return t<LexerATNSimulator.MIN_DFA_EDGE||t>LexerATNSimulator.MAX_DFA_EDGE||(LexerATNSimulator.debug&&console.log("EDGE "+e+" -> "+n+" upon "+t),null===e.edges&&(e.edges=[]),e.edges[t-LexerATNSimulator.MIN_DFA_EDGE]=n),n},LexerATNSimulator.prototype.addDFAState=function(e){for(var t=new c(null,e),n=null,i=0;i<e.items.length;i++){var o=e.items[i];if(o.state instanceof d){n=o;break}}null!==n&&(t.isAcceptState=!0,t.lexerActionExecutor=n.lexerActionExecutor,t.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);var a=this.decisionToDFA[this.mode],s=a.states.get(t);if(null!==s)return s;var l=t;return l.stateNumber=a.states.length,e.setReadonly(!0),l.configs=e,a.states.add(l),l},LexerATNSimulator.prototype.getDFA=function(e){return this.decisionToDFA[e]},LexerATNSimulator.prototype.getText=function(e){return e.getText(this.startIndex,e.index-1)},LexerATNSimulator.prototype.consume=function(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()},LexerATNSimulator.prototype.getTokenName=function(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"},t.LexerATNSimulator=LexerATNSimulator},1586(e,t){function LexerActionType(){}function LexerAction(e){return this.actionType=e,this.isPositionDependent=!1,this}function LexerSkipAction(){return LexerAction.call(this,LexerActionType.SKIP),this}function LexerTypeAction(e){return LexerAction.call(this,LexerActionType.TYPE),this.type=e,this}function LexerPushModeAction(e){return LexerAction.call(this,LexerActionType.PUSH_MODE),this.mode=e,this}function LexerPopModeAction(){return LexerAction.call(this,LexerActionType.POP_MODE),this}function LexerMoreAction(){return LexerAction.call(this,LexerActionType.MORE),this}function LexerModeAction(e){return LexerAction.call(this,LexerActionType.MODE),this.mode=e,this}function LexerCustomAction(e,t){return LexerAction.call(this,LexerActionType.CUSTOM),this.ruleIndex=e,this.actionIndex=t,this.isPositionDependent=!0,this}function LexerChannelAction(e){return LexerAction.call(this,LexerActionType.CHANNEL),this.channel=e,this}function LexerIndexedCustomAction(e,t){return LexerAction.call(this,t.actionType),this.offset=e,this.action=t,this.isPositionDependent=!0,this}LexerActionType.CHANNEL=0,LexerActionType.CUSTOM=1,LexerActionType.MODE=2,LexerActionType.MORE=3,LexerActionType.POP_MODE=4,LexerActionType.PUSH_MODE=5,LexerActionType.SKIP=6,LexerActionType.TYPE=7,LexerAction.prototype.hashCode=function(){var e=new Hash;return this.updateHashCode(e),e.finish()},LexerAction.prototype.updateHashCode=function(e){e.update(this.actionType)},LexerAction.prototype.equals=function(e){return this===e},LexerSkipAction.prototype=Object.create(LexerAction.prototype),LexerSkipAction.prototype.constructor=LexerSkipAction,LexerSkipAction.INSTANCE=new LexerSkipAction,LexerSkipAction.prototype.execute=function(e){e.skip()},LexerSkipAction.prototype.toString=function(){return"skip"},LexerTypeAction.prototype=Object.create(LexerAction.prototype),LexerTypeAction.prototype.constructor=LexerTypeAction,LexerTypeAction.prototype.execute=function(e){e.type=this.type},LexerTypeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.type)},LexerTypeAction.prototype.equals=function(e){return this===e||e instanceof LexerTypeAction&&this.type===e.type},LexerTypeAction.prototype.toString=function(){return"type("+this.type+")"},LexerPushModeAction.prototype=Object.create(LexerAction.prototype),LexerPushModeAction.prototype.constructor=LexerPushModeAction,LexerPushModeAction.prototype.execute=function(e){e.pushMode(this.mode)},LexerPushModeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},LexerPushModeAction.prototype.equals=function(e){return this===e||e instanceof LexerPushModeAction&&this.mode===e.mode},LexerPushModeAction.prototype.toString=function(){return"pushMode("+this.mode+")"},LexerPopModeAction.prototype=Object.create(LexerAction.prototype),LexerPopModeAction.prototype.constructor=LexerPopModeAction,LexerPopModeAction.INSTANCE=new LexerPopModeAction,LexerPopModeAction.prototype.execute=function(e){e.popMode()},LexerPopModeAction.prototype.toString=function(){return"popMode"},LexerMoreAction.prototype=Object.create(LexerAction.prototype),LexerMoreAction.prototype.constructor=LexerMoreAction,LexerMoreAction.INSTANCE=new LexerMoreAction,LexerMoreAction.prototype.execute=function(e){e.more()},LexerMoreAction.prototype.toString=function(){return"more"},LexerModeAction.prototype=Object.create(LexerAction.prototype),LexerModeAction.prototype.constructor=LexerModeAction,LexerModeAction.prototype.execute=function(e){e.mode(this.mode)},LexerModeAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},LexerModeAction.prototype.equals=function(e){return this===e||e instanceof LexerModeAction&&this.mode===e.mode},LexerModeAction.prototype.toString=function(){return"mode("+this.mode+")"},LexerCustomAction.prototype=Object.create(LexerAction.prototype),LexerCustomAction.prototype.constructor=LexerCustomAction,LexerCustomAction.prototype.execute=function(e){e.action(null,this.ruleIndex,this.actionIndex)},LexerCustomAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.ruleIndex,this.actionIndex)},LexerCustomAction.prototype.equals=function(e){return this===e||e instanceof LexerCustomAction&&(this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex)},LexerChannelAction.prototype=Object.create(LexerAction.prototype),LexerChannelAction.prototype.constructor=LexerChannelAction,LexerChannelAction.prototype.execute=function(e){e._channel=this.channel},LexerChannelAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.channel)},LexerChannelAction.prototype.equals=function(e){return this===e||e instanceof LexerChannelAction&&this.channel===e.channel},LexerChannelAction.prototype.toString=function(){return"channel("+this.channel+")"},LexerIndexedCustomAction.prototype=Object.create(LexerAction.prototype),LexerIndexedCustomAction.prototype.constructor=LexerIndexedCustomAction,LexerIndexedCustomAction.prototype.execute=function(e){this.action.execute(e)},LexerIndexedCustomAction.prototype.updateHashCode=function(e){e.update(this.actionType,this.offset,this.action)},LexerIndexedCustomAction.prototype.equals=function(e){return this===e||e instanceof LexerIndexedCustomAction&&(this.offset===e.offset&&this.action===e.action)},t.LexerActionType=LexerActionType,t.LexerSkipAction=LexerSkipAction,t.LexerChannelAction=LexerChannelAction,t.LexerCustomAction=LexerCustomAction,t.LexerIndexedCustomAction=LexerIndexedCustomAction,t.LexerMoreAction=LexerMoreAction,t.LexerTypeAction=LexerTypeAction,t.LexerPushModeAction=LexerPushModeAction,t.LexerPopModeAction=LexerPopModeAction,t.LexerModeAction=LexerModeAction},7231(e,t,n){var i=n(1257).hashStuff,o=n(1586).LexerIndexedCustomAction;function LexerActionExecutor(e){return this.lexerActions=null===e?[]:e,this.cachedHashCode=i(e),this}LexerActionExecutor.append=function(e,t){return new LexerActionExecutor(null===e?[t]:e.lexerActions.concat([t]))},LexerActionExecutor.prototype.fixOffsetBeforeMatch=function(e){for(var t=null,n=0;n<this.lexerActions.length;n++)!this.lexerActions[n].isPositionDependent||this.lexerActions[n]instanceof o||(null===t&&(t=this.lexerActions.concat([])),t[n]=new o(e,this.lexerActions[n]));return null===t?this:new LexerActionExecutor(t)},LexerActionExecutor.prototype.execute=function(e,t,n){var i=!1,a=t.index;try{for(var s=0;s<this.lexerActions.length;s++){var c=this.lexerActions[s];if(c instanceof o){var l=c.offset;t.seek(n+l),c=c.action,i=n+l!==a}else c.isPositionDependent&&(t.seek(a),i=!1);c.execute(e)}}finally{i&&t.seek(a)}},LexerActionExecutor.prototype.hashCode=function(){return this.cachedHashCode},LexerActionExecutor.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},LexerActionExecutor.prototype.equals=function(e){if(this===e)return!0;if(e instanceof LexerActionExecutor){if(this.cachedHashCode!=e.cachedHashCode)return!1;if(this.lexerActions.length!=e.lexerActions.length)return!1;for(var t=this.lexerActions.length,n=0;n<t;++n)if(!this.lexerActions[n].equals(e.lexerActions[n]))return!1;return!0}return!1},t.LexerActionExecutor=LexerActionExecutor},2082(e,t,n){var i=n(1257),o=i.Set,a=i.BitSet,s=i.DoubleDict,c=n(7339).ATN,l=n(7250).ATNState,p=n(9845).ATNConfig,h=n(637).ATNConfigSet,d=n(653).Token,f=n(1418).DFAState,g=n(1418).PredPrediction,x=n(8361).ATNSimulator,m=n(9326).PredictionMode,y=n(6053).RuleContext,S=(n(588).ParserRuleContext,n(6097).SemanticContext),T=(n(7250).StarLoopEntryState,n(7250).RuleStopState),v=n(2044).PredictionContext,C=n(5063).Interval,A=n(5895),E=A.Transition,k=A.SetTransition,b=A.NotSetTransition,P=A.RuleTransition,L=A.ActionTransition,_=n(6342).NoViableAltException,N=n(2044).SingletonPredictionContext,I=n(2044).predictionContextFromRuleContext;function ParserATNSimulator(e,t,n,i){return x.call(this,t,i),this.parser=e,this.decisionToDFA=n,this.predictionMode=m.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}ParserATNSimulator.prototype=Object.create(x.prototype),ParserATNSimulator.prototype.constructor=ParserATNSimulator,ParserATNSimulator.prototype.debug=!1,ParserATNSimulator.prototype.debug_closure=!1,ParserATNSimulator.prototype.debug_add=!1,ParserATNSimulator.prototype.debug_list_atn_decisions=!1,ParserATNSimulator.prototype.dfa_debug=!1,ParserATNSimulator.prototype.retry_debug=!1,ParserATNSimulator.prototype.reset=function(){},ParserATNSimulator.prototype.adaptivePredict=function(e,t,n){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+t+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column),this._input=e,this._startIndex=e.index,this._outerContext=n;var i=this.decisionToDFA[t];this._dfa=i;var o=e.mark(),a=e.index;try{var s;if(null===(s=i.precedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0)){null===n&&(n=y.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this.parser.ruleNames));var c=this.computeStartState(i.atnStartState,y.EMPTY,!1);i.precedenceDfa?(i.s0.configs=c,c=this.applyPrecedenceFilter(c),s=this.addDFAState(i,new f(null,c)),i.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(i,new f(null,c)),i.s0=s)}var l=this.execATN(i,s,e,a,n);return this.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.literalNames)),l}finally{this._dfa=null,this.mergeCache=null,e.seek(a),e.release(o)}},ParserATNSimulator.prototype.execATN=function(e,t,n,i,o){var a;(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);var s=t;this.debug&&console.log("s0 = "+t);for(var l=n.LA(1);;){var p=this.getExistingTargetState(s,l);if(null===p&&(p=this.computeTargetState(e,s,l)),p===x.ERROR){var h=this.noViableAlt(n,o,s.configs,i);if(n.seek(i),(a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s.configs,o))!==c.INVALID_ALT_NUMBER)return a;throw h}if(p.requiresFullContext&&this.predictionMode!==m.SLL){var f=null;if(null!==p.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var g=n.index;if(g!==i&&n.seek(i),1===(f=this.evalSemanticContext(p.predicates,o,!0)).length)return this.debug&&console.log("Full LL avoided"),f.minValue();g!==i&&n.seek(g)}this.dfa_debug&&console.log("ctx sensitive state "+o+" in "+p);var y=this.computeStartState(e.atnStartState,o,!0);return this.reportAttemptingFullContext(e,f,p.configs,i,n.index),a=this.execATNWithFullContext(e,p,y,n,i,o)}if(p.isAcceptState){if(null===p.predicates)return p.prediction;var S=n.index;n.seek(i);var T=this.evalSemanticContext(p.predicates,o,!0);if(0===T.length)throw this.noViableAlt(n,o,p.configs,i);return 1===T.length||this.reportAmbiguity(e,p,i,S,!1,T,p.configs),T.minValue()}s=p,l!==d.EOF&&(n.consume(),l=n.LA(1))}},ParserATNSimulator.prototype.getExistingTargetState=function(e,t){var n=e.edges;return null===n?null:n[t+1]||null},ParserATNSimulator.prototype.computeTargetState=function(e,t,n){var o=this.computeReachSet(t.configs,n,!1);if(null===o)return this.addDFAEdge(e,t,n,x.ERROR),x.ERROR;var a=new f(null,o),s=this.getUniqueAlt(o);if(this.debug){var l=m.getConflictingAltSubsets(o);console.log("SLL altSubSets="+i.arrayToString(l)+", previous="+t.configs+", configs="+o+", predict="+s+", allSubsetsConflict="+m.allSubsetsConflict(l)+", conflictingAlts="+this.getConflictingAlts(o))}return s!==c.INVALID_ALT_NUMBER?(a.isAcceptState=!0,a.configs.uniqueAlt=s,a.prediction=s):m.hasSLLConflictTerminatingPrediction(this.predictionMode,o)&&(a.configs.conflictingAlts=this.getConflictingAlts(o),a.requiresFullContext=!0,a.isAcceptState=!0,a.prediction=a.configs.conflictingAlts.minValue()),a.isAcceptState&&a.configs.hasSemanticContext&&(this.predicateDFAState(a,this.atn.getDecisionState(e.decision)),null!==a.predicates&&(a.prediction=c.INVALID_ALT_NUMBER)),a=this.addDFAEdge(e,t,n,a)},ParserATNSimulator.prototype.predicateDFAState=function(e,t){var n=t.transitions.length,i=this.getConflictingAltsOrUniqueAlt(e.configs),o=this.getPredsForAmbigAlts(i,e.configs,n);null!==o?(e.predicates=this.getPredicatePredictions(i,o),e.prediction=c.INVALID_ALT_NUMBER):e.prediction=i.minValue()},ParserATNSimulator.prototype.execATNWithFullContext=function(e,t,n,i,o,a){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+n);var s=!1,l=null,p=n;i.seek(o);for(var h=i.LA(1),f=-1;;){if(null===(l=this.computeReachSet(p,h,true))){var g=this.noViableAlt(i,a,p,o);i.seek(o);var x=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(p,a);if(x!==c.INVALID_ALT_NUMBER)return x;throw g}var y=m.getConflictingAltSubsets(l);if(this.debug&&console.log("LL altSubSets="+y+", predict="+m.getUniqueAlt(y)+", resolvesToJustOneViableAlt="+m.resolvesToJustOneViableAlt(y)),l.uniqueAlt=this.getUniqueAlt(l),l.uniqueAlt!==c.INVALID_ALT_NUMBER){f=l.uniqueAlt;break}if(this.predictionMode!==m.LL_EXACT_AMBIG_DETECTION){if((f=m.resolvesToJustOneViableAlt(y))!==c.INVALID_ALT_NUMBER)break}else if(m.allSubsetsConflict(y)&&m.allSubsetsEqual(y)){s=!0,f=m.getSingleViableAlt(y);break}p=l,h!==d.EOF&&(i.consume(),h=i.LA(1))}return l.uniqueAlt!==c.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,f,l,o,i.index),f):(this.reportAmbiguity(e,t,o,i.index,s,null,l),f)},ParserATNSimulator.prototype.computeReachSet=function(e,t,n){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new s);for(var i=new h(n),a=null,l=0;l<e.items.length;l++){var f=e.items[l];if(this.debug_add&&console.log("testing "+this.getTokenName(t)+" at "+f),f.state instanceof T)(n||t===d.EOF)&&(null===a&&(a=[]),a.push(f),this.debug_add&&console.log("added "+f+" to skippedStopStates"));else for(var g=0;g<f.state.transitions.length;g++){var x=f.state.transitions[g],y=this.getReachableTarget(x,t);if(null!==y){var S=new p({state:y},f);i.add(S,this.mergeCache),this.debug_add&&console.log("added "+S+" to intermediate")}}}var v=null;if(null===a&&t!==d.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==c.INVALID_ALT_NUMBER)&&(v=i),null===v){v=new h(n);for(var C=new o,A=t===d.EOF,E=0;E<i.items.length;E++)this.closure(i.items[E],v,C,!1,n,A)}if(t===d.EOF&&(v=this.removeAllConfigsNotInRuleStopState(v,v===i)),!(null===a||n&&m.hasConfigInRuleStopState(v)))for(var k=0;k<a.length;k++)v.add(a[k],this.mergeCache);return 0===v.items.length?null:v},ParserATNSimulator.prototype.removeAllConfigsNotInRuleStopState=function(e,t){if(m.allConfigsInRuleStopStates(e))return e;for(var n=new h(e.fullCtx),i=0;i<e.items.length;i++){var o=e.items[i];if(o.state instanceof T)n.add(o,this.mergeCache);else if(t&&o.state.epsilonOnlyTransitions)if(this.atn.nextTokens(o.state).contains(d.EPSILON)){var a=this.atn.ruleToStopState[o.state.ruleIndex];n.add(new p({state:a},o),this.mergeCache)}}return n},ParserATNSimulator.prototype.computeStartState=function(e,t,n){for(var i=I(this.atn,t),a=new h(n),s=0;s<e.transitions.length;s++){var c=e.transitions[s].target,l=new p({state:c,alt:s+1,context:i},null),d=new o;this.closure(l,a,d,!0,n,!1)}return a},ParserATNSimulator.prototype.applyPrecedenceFilter=function(e){for(var t,n=[],i=new h(e.fullCtx),o=0;o<e.items.length;o++)if(1===(t=e.items[o]).alt){var a=t.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==a&&(n[t.state.stateNumber]=t.context,a!==t.semanticContext?i.add(new p({semanticContext:a},t),this.mergeCache):i.add(t,this.mergeCache))}for(o=0;o<e.items.length;o++)if(1!==(t=e.items[o]).alt){if(!t.precedenceFilterSuppressed){var s=n[t.state.stateNumber]||null;if(null!==s&&s.equals(t.context))continue}i.add(t,this.mergeCache)}return i},ParserATNSimulator.prototype.getReachableTarget=function(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null},ParserATNSimulator.prototype.getPredsForAmbigAlts=function(e,t,n){for(var o=[],a=0;a<t.items.length;a++){var s=t.items[a];e.contains(s.alt)&&(o[s.alt]=S.orContext(o[s.alt]||null,s.semanticContext))}var c=0;for(a=1;a<n+1;a++){var l=o[a]||null;null===l?o[a]=S.NONE:l!==S.NONE&&(c+=1)}return 0===c&&(o=null),this.debug&&console.log("getPredsForAmbigAlts result "+i.arrayToString(o)),o},ParserATNSimulator.prototype.getPredicatePredictions=function(e,t){for(var n=[],i=!1,o=1;o<t.length;o++){var a=t[o];null!==e&&e.contains(o)&&n.push(new g(a,o)),a!==S.NONE&&(i=!0)}return i?n:null},ParserATNSimulator.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule=function(e,t){var n=this.splitAccordingToSemanticValidity(e,t),i=n[0],o=n[1],a=this.getAltThatFinishedDecisionEntryRule(i);return a!==c.INVALID_ALT_NUMBER||o.items.length>0&&(a=this.getAltThatFinishedDecisionEntryRule(o))!==c.INVALID_ALT_NUMBER?a:c.INVALID_ALT_NUMBER},ParserATNSimulator.prototype.getAltThatFinishedDecisionEntryRule=function(e){for(var t=[],n=0;n<e.items.length;n++){var i=e.items[n];(i.reachesIntoOuterContext>0||i.state instanceof T&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt)}return 0===t.length?c.INVALID_ALT_NUMBER:Math.min.apply(null,t)},ParserATNSimulator.prototype.splitAccordingToSemanticValidity=function(e,t){for(var n=new h(e.fullCtx),i=new h(e.fullCtx),o=0;o<e.items.length;o++){var a=e.items[o];if(a.semanticContext!==S.NONE)a.semanticContext.evaluate(this.parser,t)?n.add(a):i.add(a);else n.add(a)}return[n,i]},ParserATNSimulator.prototype.evalSemanticContext=function(e,t,n){for(var i=new a,o=0;o<e.length;o++){var s=e[o];if(s.pred!==S.NONE){var c=s.pred.evaluate(this.parser,t);if((this.debug||this.dfa_debug)&&console.log("eval pred "+s+"="+c),c&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+s.alt),i.add(s.alt),!n))break}else if(i.add(s.alt),!n)break}return i},ParserATNSimulator.prototype.closure=function(e,t,n,i,o,a){this.closureCheckingStopState(e,t,n,i,o,0,a)},ParserATNSimulator.prototype.closureCheckingStopState=function(e,t,n,i,o,a,s){if((this.debug||this.debug_closure)&&(console.log("closure("+e.toString(this.parser,!0)+")"),e.reachesIntoOuterContext>50))throw"problem";if(e.state instanceof T){if(!e.context.isEmpty()){for(var c=0;c<e.context.length;c++)if(e.context.getReturnState(c)!==v.EMPTY_RETURN_STATE){var l=this.atn.states[e.context.getReturnState(c)],h=e.context.getParent(c),d={state:l,alt:e.alt,context:h,semanticContext:e.semanticContext},f=new p(d,null);f.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(f,t,n,i,o,a-1,s)}else{if(o){t.add(new p({state:e.state,context:v.EMPTY},e),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,t,n,i,o,a,s)}return}if(o)return void t.add(e,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,t,n,i,o,a,s)},ParserATNSimulator.prototype.closure_=function(e,t,n,i,o,a,s){var c=e.state;c.epsilonOnlyTransitions||t.add(e,this.mergeCache);for(var l=0;l<c.transitions.length;l++)if(0!=l||!this.canDropLoopEntryEdgeInLeftRecursiveRule(e)){var p=c.transitions[l],h=i&&!(p instanceof L),d=this.getEpsilonTarget(e,p,h,0===a,o,s);if(null!==d){var f=a;if(e.state instanceof T){if(null!==this._dfa&&this._dfa.precedenceDfa&&p.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(d.precedenceFilterSuppressed=!0),d.reachesIntoOuterContext+=1,n.add(d)!==d)continue;t.dipsIntoOuterContext=!0,f-=1,this.debug&&console.log("dips into outer ctx: "+d)}else{if(!p.isEpsilon&&n.add(d)!==d)continue;p instanceof P&&f>=0&&(f+=1)}this.closureCheckingStopState(d,t,n,h,o,f,s)}}},ParserATNSimulator.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(e){var t=e.state;if(t.stateType!=l.STAR_LOOP_ENTRY)return!1;if(t.stateType!=l.STAR_LOOP_ENTRY||!t.isPrecedenceDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;for(var n=e.context.length,i=0;i<n;i++){if((s=this.atn.states[e.context.getReturnState(i)]).ruleIndex!=t.ruleIndex)return!1}var o=t.transitions[0].target.endState.stateNumber,a=this.atn.states[o];for(i=0;i<n;i++){var s,c=e.context.getReturnState(i);if(1!=(s=this.atn.states[c]).transitions.length||!s.transitions[0].isEpsilon)return!1;var p=s.transitions[0].target;if((s.stateType!=l.BLOCK_END||p!=t)&&(s!=a&&p!=a&&(p.stateType!=l.BLOCK_END||1!=p.transitions.length||!p.transitions[0].isEpsilon||p.transitions[0].target!=t)))return!1}return!0},ParserATNSimulator.prototype.getRuleName=function(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"},ParserATNSimulator.prototype.getEpsilonTarget=function(e,t,n,i,o,a){switch(t.serializationType){case E.RULE:return this.ruleTransition(e,t);case E.PRECEDENCE:return this.precedenceTransition(e,t,n,i,o);case E.PREDICATE:return this.predTransition(e,t,n,i,o);case E.ACTION:return this.actionTransition(e,t);case E.EPSILON:return new p({state:t.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&t.matches(d.EOF,0,1)?new p({state:t.target},e):null;default:return null}},ParserATNSimulator.prototype.actionTransition=function(e,t){if(this.debug){var n=-1==t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+n)}return new p({state:t.target},e)},ParserATNSimulator.prototype.precedenceTransition=function(e,t,n,o,a){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+i.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&o)if(a){var c=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(c),l&&(s=new p({state:t.target},e))}else{var h=S.andContext(e.semanticContext,t.getPredicate());s=new p({state:t.target,semanticContext:h},e)}else s=new p({state:t.target},e);return this.debug&&console.log("config from pred transition="+s),s},ParserATNSimulator.prototype.predTransition=function(e,t,n,o,a){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.ruleIndex+":"+t.predIndex+", ctx dependent="+t.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+i.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&(t.isCtxDependent&&o||!t.isCtxDependent))if(a){var c=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(c),l&&(s=new p({state:t.target},e))}else{var h=S.andContext(e.semanticContext,t.getPredicate());s=new p({state:t.target,semanticContext:h},e)}else s=new p({state:t.target},e);return this.debug&&console.log("config from pred transition="+s),s},ParserATNSimulator.prototype.ruleTransition=function(e,t){this.debug&&console.log("CALL rule "+this.getRuleName(t.target.ruleIndex)+", ctx="+e.context);var n=t.followState,i=N.create(e.context,n.stateNumber);return new p({state:t.target,context:i},e)},ParserATNSimulator.prototype.getConflictingAlts=function(e){var t=m.getConflictingAltSubsets(e);return m.getAlts(t)},ParserATNSimulator.prototype.getConflictingAltsOrUniqueAlt=function(e){var t=null;return e.uniqueAlt!==c.INVALID_ALT_NUMBER?(t=new a).add(e.uniqueAlt):t=e.conflictingAlts,t},ParserATNSimulator.prototype.getTokenName=function(e){if(e===d.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e},ParserATNSimulator.prototype.getLookaheadName=function(e){return this.getTokenName(e.LA(1))},ParserATNSimulator.prototype.dumpDeadEndConfigs=function(e){console.log("dead end configs: ");for(var t=e.getDeadEndConfigs(),n=0;n<t.length;n++){var i=t[n],o="no edges";if(i.state.transitions.length>0){var a=i.state.transitions[0];if(a instanceof AtomTransition)o="Atom "+this.getTokenName(a.label);else if(a instanceof k){o=(a instanceof b?"~":"")+"Set "+a.set}}console.error(i.toString(this.parser,!0)+":"+o)}},ParserATNSimulator.prototype.noViableAlt=function(e,t,n,i){return new _(this.parser,e,e.get(i),e.LT(1),n,t)},ParserATNSimulator.prototype.getUniqueAlt=function(e){for(var t=c.INVALID_ALT_NUMBER,n=0;n<e.items.length;n++){var i=e.items[n];if(t===c.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return c.INVALID_ALT_NUMBER}return t},ParserATNSimulator.prototype.addDFAEdge=function(e,t,n,i){if(this.debug&&console.log("EDGE "+t+" -> "+i+" upon "+this.getTokenName(n)),null===i)return null;if(i=this.addDFAState(e,i),null===t||n<-1||n>this.atn.maxTokenType)return i;if(null===t.edges&&(t.edges=[]),t.edges[n+1]=i,this.debug){var o=null===this.parser?null:this.parser.literalNames,a=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+e.toString(o,a))}return i},ParserATNSimulator.prototype.addDFAState=function(e,t){if(t==x.ERROR)return t;var n=e.states.get(t);return null!==n?n:(t.stateNumber=e.states.length,t.configs.readOnly||(t.configs.optimizeConfigs(this),t.configs.setReadonly(!0)),e.states.add(t),this.debug&&console.log("adding new DFA state: "+t),t)},ParserATNSimulator.prototype.reportAttemptingFullContext=function(e,t,n,i,o){if(this.debug||this.retry_debug){var a=new C(i,o+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,e,i,o,t,n)},ParserATNSimulator.prototype.reportContextSensitivity=function(e,t,n,i,o){if(this.debug||this.retry_debug){var a=new C(i,o+1);console.log("reportContextSensitivity decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,e,i,o,t,n)},ParserATNSimulator.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){if(this.debug||this.retry_debug){var c=new C(n,i+1);console.log("reportAmbiguity "+a+":"+s+", input="+this.parser.getTokenStream().getText(c))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,e,n,i,o,a,s)},t.ParserATNSimulator=ParserATNSimulator},9326(e,t,n){n(1257).Set;var i=n(1257).Map,o=n(1257).BitSet,a=n(1257).AltDict,s=n(7339).ATN,c=n(7250).RuleStopState,l=n(637).ATNConfigSet,p=n(9845).ATNConfig,h=n(6097).SemanticContext,d=(n(1257).Hash,n(1257).hashStuff);n(1257).equalArrays;function PredictionMode(){return this}PredictionMode.SLL=0,PredictionMode.LL=1,PredictionMode.LL_EXACT_AMBIG_DETECTION=2,PredictionMode.hasSLLConflictTerminatingPrediction=function(e,t){if(PredictionMode.allConfigsInRuleStopStates(t))return!0;if(e===PredictionMode.SLL&&t.hasSemanticContext){for(var n=new l,i=0;i<t.items.length;i++){var o=t.items[i];o=new p({semanticContext:h.NONE},o),n.add(o)}t=n}var a=PredictionMode.getConflictingAltSubsets(t);return PredictionMode.hasConflictingAltSet(a)&&!PredictionMode.hasStateAssociatedWithOneAlt(t)},PredictionMode.hasConfigInRuleStopState=function(e){for(var t=0;t<e.items.length;t++){if(e.items[t].state instanceof c)return!0}return!1},PredictionMode.allConfigsInRuleStopStates=function(e){for(var t=0;t<e.items.length;t++){if(!(e.items[t].state instanceof c))return!1}return!0},PredictionMode.resolvesToJustOneViableAlt=function(e){return PredictionMode.getSingleViableAlt(e)},PredictionMode.allSubsetsConflict=function(e){return!PredictionMode.hasNonConflictingAltSet(e)},PredictionMode.hasNonConflictingAltSet=function(e){for(var t=0;t<e.length;t++){if(1===e[t].length)return!0}return!1},PredictionMode.hasConflictingAltSet=function(e){for(var t=0;t<e.length;t++){if(e[t].length>1)return!0}return!1},PredictionMode.allSubsetsEqual=function(e){for(var t=null,n=0;n<e.length;n++){var i=e[n];if(null===t)t=i;else if(i!==t)return!1}return!0},PredictionMode.getUniqueAlt=function(e){var t=PredictionMode.getAlts(e);return 1===t.length?t.minValue():s.INVALID_ALT_NUMBER},PredictionMode.getAlts=function(e){var t=new o;return e.map(function(e){t.or(e)}),t},PredictionMode.getConflictingAltSubsets=function(e){var t=new i;return t.hashFunction=function(e){d(e.state.stateNumber,e.context)},t.equalsFunction=function(e,t){return e.state.stateNumber==t.state.stateNumber&&e.context.equals(t.context)},e.items.map(function(e){var n=t.get(e);null===n&&(n=new o,t.put(e,n)),n.add(e.alt)}),t.getValues()},PredictionMode.getStateToAltMap=function(e){var t=new a;return e.items.map(function(e){var n=t.get(e.state);null===n&&(n=new o,t.put(e.state,n)),n.add(e.alt)}),t},PredictionMode.hasStateAssociatedWithOneAlt=function(e){for(var t=PredictionMode.getStateToAltMap(e).values(),n=0;n<t.length;n++)if(1===t[n].length)return!0;return!1},PredictionMode.getSingleViableAlt=function(e){for(var t=null,n=0;n<e.length;n++){var i=e[n].minValue();if(null===t)t=i;else if(t!==i)return s.INVALID_ALT_NUMBER}return t},t.PredictionMode=PredictionMode},6097(e,t,n){var i=n(1257).Set,o=n(1257).Hash;function SemanticContext(){return this}function Predicate(e,t,n){return SemanticContext.call(this),this.ruleIndex=void 0===e?-1:e,this.predIndex=void 0===t?-1:t,this.isCtxDependent=void 0!==n&&n,this}function PrecedencePredicate(e){SemanticContext.call(this),this.precedence=void 0===e?0:e}function AND(e,t){SemanticContext.call(this);var n=new i;e instanceof AND?e.opnds.map(function(e){n.add(e)}):n.add(e),t instanceof AND?t.opnds.map(function(e){n.add(e)}):n.add(t);var o=PrecedencePredicate.filterPrecedencePredicates(n);if(o.length>0){var a=null;o.map(function(e){(null===a||e.precedence<a.precedence)&&(a=e)}),n.add(a)}return this.opnds=n.values(),this}function OR(e,t){SemanticContext.call(this);var n=new i;e instanceof OR?e.opnds.map(function(e){n.add(e)}):n.add(e),t instanceof OR?t.opnds.map(function(e){n.add(e)}):n.add(t);var o=PrecedencePredicate.filterPrecedencePredicates(n);if(o.length>0){var a=o.sort(function(e,t){return e.compareTo(t)}),s=a[a.length-1];n.add(s)}return this.opnds=n.values(),this}SemanticContext.prototype.hashCode=function(){var e=new o;return this.updateHashCode(e),e.finish()},SemanticContext.prototype.evaluate=function(e,t){},SemanticContext.prototype.evalPrecedence=function(e,t){return this},SemanticContext.andContext=function(e,t){if(null===e||e===SemanticContext.NONE)return t;if(null===t||t===SemanticContext.NONE)return e;var n=new AND(e,t);return 1===n.opnds.length?n.opnds[0]:n},SemanticContext.orContext=function(e,t){if(null===e)return t;if(null===t)return e;if(e===SemanticContext.NONE||t===SemanticContext.NONE)return SemanticContext.NONE;var n=new OR(e,t);return 1===n.opnds.length?n.opnds[0]:n},Predicate.prototype=Object.create(SemanticContext.prototype),Predicate.prototype.constructor=Predicate,SemanticContext.NONE=new Predicate,Predicate.prototype.evaluate=function(e,t){var n=this.isCtxDependent?t:null;return e.sempred(n,this.ruleIndex,this.predIndex)},Predicate.prototype.updateHashCode=function(e){e.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},Predicate.prototype.equals=function(e){return this===e||e instanceof Predicate&&(this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent)},Predicate.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},PrecedencePredicate.prototype=Object.create(SemanticContext.prototype),PrecedencePredicate.prototype.constructor=PrecedencePredicate,PrecedencePredicate.prototype.evaluate=function(e,t){return e.precpred(t,this.precedence)},PrecedencePredicate.prototype.evalPrecedence=function(e,t){return e.precpred(t,this.precedence)?SemanticContext.NONE:null},PrecedencePredicate.prototype.compareTo=function(e){return this.precedence-e.precedence},PrecedencePredicate.prototype.updateHashCode=function(e){e.update(31)},PrecedencePredicate.prototype.equals=function(e){return this===e||e instanceof PrecedencePredicate&&this.precedence===e.precedence},PrecedencePredicate.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},PrecedencePredicate.filterPrecedencePredicates=function(e){var t=[];return e.values().map(function(e){e instanceof PrecedencePredicate&&t.push(e)}),t},AND.prototype=Object.create(SemanticContext.prototype),AND.prototype.constructor=AND,AND.prototype.equals=function(e){return this===e||e instanceof AND&&this.opnds===e.opnds},AND.prototype.updateHashCode=function(e){e.update(this.opnds,"AND")},AND.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(e,t))return!1;return!0},AND.prototype.evalPrecedence=function(e,t){for(var n=!1,i=[],o=0;o<this.opnds.length;o++){var a=this.opnds[o],s=a.evalPrecedence(e,t);if(n|=s!==a,null===s)return null;s!==SemanticContext.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return SemanticContext.NONE;var c=null;return i.map(function(e){c=null===c?e:SemanticContext.andContext(c,e)}),c},AND.prototype.toString=function(){var e="";return this.opnds.map(function(t){e+="&& "+t.toString()}),e.length>3?e.slice(3):e},OR.prototype=Object.create(SemanticContext.prototype),OR.prototype.constructor=OR,OR.prototype.constructor=function(e){return this===e||e instanceof OR&&this.opnds===e.opnds},OR.prototype.updateHashCode=function(e){e.update(this.opnds,"OR")},OR.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(e,t))return!0;return!1},OR.prototype.evalPrecedence=function(e,t){for(var n=!1,i=[],o=0;o<this.opnds.length;o++){var a=this.opnds[o],s=a.evalPrecedence(e,t);if(n|=s!==a,s===SemanticContext.NONE)return SemanticContext.NONE;null!==s&&i.push(s)}if(!n)return this;if(0===i.length)return null;var c=null;return i.map(function(e){return e}),c},OR.prototype.toString=function(){var e="";return this.opnds.map(function(t){e+="|| "+t.toString()}),e.length>3?e.slice(3):e},t.SemanticContext=SemanticContext,t.PrecedencePredicate=PrecedencePredicate,t.Predicate=Predicate},5895(e,t,n){var i=n(653).Token,o=(n(5063).Interval,n(5063).IntervalSet),a=n(6097).Predicate,s=n(6097).PrecedencePredicate;function Transition(e){if(null==e)throw"target cannot be null.";return this.target=e,this.isEpsilon=!1,this.label=null,this}function AtomTransition(e,t){return Transition.call(this,e),this.label_=t,this.label=this.makeLabel(),this.serializationType=Transition.ATOM,this}function RuleTransition(e,t,n,i){return Transition.call(this,e),this.ruleIndex=t,this.precedence=n,this.followState=i,this.serializationType=Transition.RULE,this.isEpsilon=!0,this}function EpsilonTransition(e,t){return Transition.call(this,e),this.serializationType=Transition.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=t,this}function RangeTransition(e,t,n){return Transition.call(this,e),this.serializationType=Transition.RANGE,this.start=t,this.stop=n,this.label=this.makeLabel(),this}function AbstractPredicateTransition(e){return Transition.call(this,e),this}function PredicateTransition(e,t,n,i){return AbstractPredicateTransition.call(this,e),this.serializationType=Transition.PREDICATE,this.ruleIndex=t,this.predIndex=n,this.isCtxDependent=i,this.isEpsilon=!0,this}function ActionTransition(e,t,n,i){return Transition.call(this,e),this.serializationType=Transition.ACTION,this.ruleIndex=t,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==i&&i,this.isEpsilon=!0,this}function SetTransition(e,t){return Transition.call(this,e),this.serializationType=Transition.SET,null!=t?this.label=t:(this.label=new o,this.label.addOne(i.INVALID_TYPE)),this}function NotSetTransition(e,t){return SetTransition.call(this,e,t),this.serializationType=Transition.NOT_SET,this}function WildcardTransition(e){return Transition.call(this,e),this.serializationType=Transition.WILDCARD,this}function PrecedencePredicateTransition(e,t){return AbstractPredicateTransition.call(this,e),this.serializationType=Transition.PRECEDENCE,this.precedence=t,this.isEpsilon=!0,this}Transition.EPSILON=1,Transition.RANGE=2,Transition.RULE=3,Transition.PREDICATE=4,Transition.ATOM=5,Transition.ACTION=6,Transition.SET=7,Transition.NOT_SET=8,Transition.WILDCARD=9,Transition.PRECEDENCE=10,Transition.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],Transition.serializationTypes={EpsilonTransition:Transition.EPSILON,RangeTransition:Transition.RANGE,RuleTransition:Transition.RULE,PredicateTransition:Transition.PREDICATE,AtomTransition:Transition.ATOM,ActionTransition:Transition.ACTION,SetTransition:Transition.SET,NotSetTransition:Transition.NOT_SET,WildcardTransition:Transition.WILDCARD,PrecedencePredicateTransition:Transition.PRECEDENCE},AtomTransition.prototype=Object.create(Transition.prototype),AtomTransition.prototype.constructor=AtomTransition,AtomTransition.prototype.makeLabel=function(){var e=new o;return e.addOne(this.label_),e},AtomTransition.prototype.matches=function(e,t,n){return this.label_===e},AtomTransition.prototype.toString=function(){return this.label_},RuleTransition.prototype=Object.create(Transition.prototype),RuleTransition.prototype.constructor=RuleTransition,RuleTransition.prototype.matches=function(e,t,n){return!1},EpsilonTransition.prototype=Object.create(Transition.prototype),EpsilonTransition.prototype.constructor=EpsilonTransition,EpsilonTransition.prototype.matches=function(e,t,n){return!1},EpsilonTransition.prototype.toString=function(){return"epsilon"},RangeTransition.prototype=Object.create(Transition.prototype),RangeTransition.prototype.constructor=RangeTransition,RangeTransition.prototype.makeLabel=function(){var e=new o;return e.addRange(this.start,this.stop),e},RangeTransition.prototype.matches=function(e,t,n){return e>=this.start&&e<=this.stop},RangeTransition.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},AbstractPredicateTransition.prototype=Object.create(Transition.prototype),AbstractPredicateTransition.prototype.constructor=AbstractPredicateTransition,PredicateTransition.prototype=Object.create(AbstractPredicateTransition.prototype),PredicateTransition.prototype.constructor=PredicateTransition,PredicateTransition.prototype.matches=function(e,t,n){return!1},PredicateTransition.prototype.getPredicate=function(){return new a(this.ruleIndex,this.predIndex,this.isCtxDependent)},PredicateTransition.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},ActionTransition.prototype=Object.create(Transition.prototype),ActionTransition.prototype.constructor=ActionTransition,ActionTransition.prototype.matches=function(e,t,n){return!1},ActionTransition.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},SetTransition.prototype=Object.create(Transition.prototype),SetTransition.prototype.constructor=SetTransition,SetTransition.prototype.matches=function(e,t,n){return this.label.contains(e)},SetTransition.prototype.toString=function(){return this.label.toString()},NotSetTransition.prototype=Object.create(SetTransition.prototype),NotSetTransition.prototype.constructor=NotSetTransition,NotSetTransition.prototype.matches=function(e,t,n){return e>=t&&e<=n&&!SetTransition.prototype.matches.call(this,e,t,n)},NotSetTransition.prototype.toString=function(){return"~"+SetTransition.prototype.toString.call(this)},WildcardTransition.prototype=Object.create(Transition.prototype),WildcardTransition.prototype.constructor=WildcardTransition,WildcardTransition.prototype.matches=function(e,t,n){return e>=t&&e<=n},WildcardTransition.prototype.toString=function(){return"."},PrecedencePredicateTransition.prototype=Object.create(AbstractPredicateTransition.prototype),PrecedencePredicateTransition.prototype.constructor=PrecedencePredicateTransition,PrecedencePredicateTransition.prototype.matches=function(e,t,n){return!1},PrecedencePredicateTransition.prototype.getPredicate=function(){return new s(this.precedence)},PrecedencePredicateTransition.prototype.toString=function(){return this.precedence+" >= _p"},t.Transition=Transition,t.AtomTransition=AtomTransition,t.SetTransition=SetTransition,t.NotSetTransition=NotSetTransition,t.RuleTransition=RuleTransition,t.ActionTransition=ActionTransition,t.EpsilonTransition=EpsilonTransition,t.RangeTransition=RangeTransition,t.WildcardTransition=WildcardTransition,t.PredicateTransition=PredicateTransition,t.PrecedencePredicateTransition=PrecedencePredicateTransition,t.AbstractPredicateTransition=AbstractPredicateTransition},8566(e,t,n){t.ATN=n(7339).ATN,t.ATNDeserializer=n(2456).ATNDeserializer,t.LexerATNSimulator=n(8989).LexerATNSimulator,t.ParserATNSimulator=n(2082).ParserATNSimulator,t.PredictionMode=n(9326).PredictionMode},3123(e,t,n){var i=n(1257).Set,o=n(1418).DFAState,a=n(7250).StarLoopEntryState,s=n(637).ATNConfigSet,c=n(1383).DFASerializer,l=n(1383).LexerDFASerializer;function DFA(e,t){if(void 0===t&&(t=0),this.atnStartState=e,this.decision=t,this._states=new i,this.s0=null,this.precedenceDfa=!1,e instanceof a&&e.isPrecedenceDecision){this.precedenceDfa=!0;var n=new o(null,new s);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}return this}DFA.prototype.getPrecedenceStartState=function(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null},DFA.prototype.setPrecedenceStartState=function(e,t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=t)},DFA.prototype.setPrecedenceDfa=function(e){if(this.precedenceDfa!==e){if(this._states=new DFAStatesSet,e){var t=new o(null,new s);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=e}},Object.defineProperty(DFA.prototype,"states",{get:function(){return this._states}}),DFA.prototype.sortedStates=function(){return this._states.values().sort(function(e,t){return e.stateNumber-t.stateNumber})},DFA.prototype.toString=function(e,t){return e=e||null,t=t||null,null===this.s0?"":new c(this,e,t).toString()},DFA.prototype.toLexerString=function(){return null===this.s0?"":new l(this).toString()},t.DFA=DFA},1383(e,t){function DFASerializer(e,t,n){return this.dfa=e,this.literalNames=t||[],this.symbolicNames=n||[],this}function LexerDFASerializer(e){return DFASerializer.call(this,e,null),this}DFASerializer.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var e="",t=this.dfa.sortedStates(),n=0;n<t.length;n++){var i=t[n];if(null!==i.edges)for(var o=i.edges.length,a=0;a<o;a++){var s=i.edges[a]||null;null!==s&&2147483647!==s.stateNumber&&(e=(e=(e=(e=(e=(e=e.concat(this.getStateString(i))).concat("-")).concat(this.getEdgeLabel(a))).concat("->")).concat(this.getStateString(s))).concat("\n"))}}return 0===e.length?null:e},DFASerializer.prototype.getEdgeLabel=function(e){return 0===e?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)},DFASerializer.prototype.getStateString=function(e){var t=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?t+"=>"+e.predicates.toString():t+"=>"+e.prediction.toString():t},LexerDFASerializer.prototype=Object.create(DFASerializer.prototype),LexerDFASerializer.prototype.constructor=LexerDFASerializer,LexerDFASerializer.prototype.getEdgeLabel=function(e){return"'"+String.fromCharCode(e)+"'"},t.DFASerializer=DFASerializer,t.LexerDFASerializer=LexerDFASerializer},1418(e,t,n){var i=n(637).ATNConfigSet,o=n(1257),a=o.Hash,s=o.Set;function PredPrediction(e,t){return this.alt=t,this.pred=e,this}function DFAState(e,t){return null===e&&(e=-1),null===t&&(t=new i),this.stateNumber=e,this.configs=t,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}PredPrediction.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},DFAState.prototype.getAltSet=function(){var e=new s;if(null!==this.configs)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];e.add(n.alt)}return 0===e.length?null:e},DFAState.prototype.equals=function(e){return this===e||e instanceof DFAState&&this.configs.equals(e.configs)},DFAState.prototype.toString=function(){var e=this.stateNumber+":"+this.configs;return this.isAcceptState&&(e+="=>",null!==this.predicates?e+=this.predicates:e+=this.prediction),e},DFAState.prototype.hashCode=function(){var e=new a;return e.update(this.configs),e.finish()},t.DFAState=DFAState,t.PredPrediction=PredPrediction},2782(e,t,n){t.DFA=n(3123).DFA,t.DFASerializer=n(1383).DFASerializer,t.LexerDFASerializer=n(1383).LexerDFASerializer,t.PredPrediction=n(1418).PredPrediction},1926(e,t,n){var i=n(1257).BitSet,o=n(139).ErrorListener,a=n(5063).Interval;function DiagnosticErrorListener(e){return o.call(this),e=e||!0,this.exactOnly=e,this}DiagnosticErrorListener.prototype=Object.create(o.prototype),DiagnosticErrorListener.prototype.constructor=DiagnosticErrorListener,DiagnosticErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,s,c){if(!this.exactOnly||o){var l="reportAmbiguity d="+this.getDecisionDescription(e,t)+": ambigAlts="+this.getConflictingAlts(s,c)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(l)}},DiagnosticErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,s){var c="reportAttemptingFullContext d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(c)},DiagnosticErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,s){var c="reportContextSensitivity d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new a(n,i))+"'";e.notifyErrorListeners(c)},DiagnosticErrorListener.prototype.getDecisionDescription=function(e,t){var n=t.decision,i=t.atnStartState.ruleIndex,o=e.ruleNames;if(i<0||i>=o.length)return""+n;var a=o[i]||null;return null===a||0===a.length?""+n:n+" ("+a+")"},DiagnosticErrorListener.prototype.getConflictingAlts=function(e,t){if(null!==e)return e;for(var n=new i,o=0;o<t.items.length;o++)n.add(t.items[o].alt);return"{"+n.values().join(", ")+"}"},t.DiagnosticErrorListener=DiagnosticErrorListener},139(e,t){function ErrorListener(){return this}function ConsoleErrorListener(){return ErrorListener.call(this),this}function ProxyErrorListener(e){if(ErrorListener.call(this),null===e)throw"delegates";return this.delegates=e,this}ErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){},ErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){},ErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,a){},ErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,a){},ConsoleErrorListener.prototype=Object.create(ErrorListener.prototype),ConsoleErrorListener.prototype.constructor=ConsoleErrorListener,ConsoleErrorListener.INSTANCE=new ConsoleErrorListener,ConsoleErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){console.error("line "+n+":"+i+" "+o)},ProxyErrorListener.prototype=Object.create(ErrorListener.prototype),ProxyErrorListener.prototype.constructor=ProxyErrorListener,ProxyErrorListener.prototype.syntaxError=function(e,t,n,i,o,a){this.delegates.map(function(s){s.syntaxError(e,t,n,i,o,a)})},ProxyErrorListener.prototype.reportAmbiguity=function(e,t,n,i,o,a,s){this.delegates.map(function(c){c.reportAmbiguity(e,t,n,i,o,a,s)})},ProxyErrorListener.prototype.reportAttemptingFullContext=function(e,t,n,i,o,a){this.delegates.map(function(s){s.reportAttemptingFullContext(e,t,n,i,o,a)})},ProxyErrorListener.prototype.reportContextSensitivity=function(e,t,n,i,o,a){this.delegates.map(function(s){s.reportContextSensitivity(e,t,n,i,o,a)})},t.ErrorListener=ErrorListener,t.ConsoleErrorListener=ConsoleErrorListener,t.ProxyErrorListener=ProxyErrorListener},2730(e,t,n){var i=n(653).Token,o=n(6342),a=o.NoViableAltException,s=o.InputMismatchException,c=o.FailedPredicateException,l=o.ParseCancellationException,p=n(7250).ATNState,h=n(5063).Interval,d=n(5063).IntervalSet;function ErrorStrategy(){}function DefaultErrorStrategy(){return ErrorStrategy.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function BailErrorStrategy(){return DefaultErrorStrategy.call(this),this}ErrorStrategy.prototype.reset=function(e){},ErrorStrategy.prototype.recoverInline=function(e){},ErrorStrategy.prototype.recover=function(e,t){},ErrorStrategy.prototype.sync=function(e){},ErrorStrategy.prototype.inErrorRecoveryMode=function(e){},ErrorStrategy.prototype.reportError=function(e){},DefaultErrorStrategy.prototype=Object.create(ErrorStrategy.prototype),DefaultErrorStrategy.prototype.constructor=DefaultErrorStrategy,DefaultErrorStrategy.prototype.reset=function(e){this.endErrorCondition(e)},DefaultErrorStrategy.prototype.beginErrorCondition=function(e){this.errorRecoveryMode=!0},DefaultErrorStrategy.prototype.inErrorRecoveryMode=function(e){return this.errorRecoveryMode},DefaultErrorStrategy.prototype.endErrorCondition=function(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},DefaultErrorStrategy.prototype.reportMatch=function(e){this.endErrorCondition(e)},DefaultErrorStrategy.prototype.reportError=function(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof a?this.reportNoViableAlternative(e,t):t instanceof s?this.reportInputMismatch(e,t):t instanceof c?this.reportFailedPredicate(e,t):(console.log("unknown recognition error type: "+t.constructor.name),console.log(t.stack),e.notifyErrorListeners(t.getOffendingToken(),t.getMessage(),t)))},DefaultErrorStrategy.prototype.recover=function(e,t){this.lastErrorIndex===e.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);var n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)},DefaultErrorStrategy.prototype.sync=function(e){if(!this.inErrorRecoveryMode(e)){var t=e._interp.atn.states[e.state],n=e.getTokenStream().LA(1),o=e.atn.nextTokens(t);if(!o.contains(i.EPSILON)&&!o.contains(n))switch(t.stateType){case p.BLOCK_START:case p.STAR_BLOCK_START:case p.PLUS_BLOCK_START:case p.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new s(e);case p.PLUS_LOOP_BACK:case p.STAR_LOOP_BACK:this.reportUnwantedToken(e);var a=new d;a.addSet(e.getExpectedTokens());var c=a.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,c)}}},DefaultErrorStrategy.prototype.reportNoViableAlternative=function(e,t){var n,o=e.getTokenStream();n=null!==o?t.startToken.type===i.EOF?"<EOF>":o.getText(new h(t.startToken.tokenIndex,t.offendingToken.tokenIndex)):"<unknown input>";var a="no viable alternative at input "+this.escapeWSAndQuote(n);e.notifyErrorListeners(a,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportInputMismatch=function(e,t){var n="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportFailedPredicate=function(e,t){var n="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+t.message;e.notifyErrorListeners(n,t.offendingToken,t)},DefaultErrorStrategy.prototype.reportUnwantedToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t,null)}},DefaultErrorStrategy.prototype.reportMissingToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(n,t,null)}},DefaultErrorStrategy.prototype.recoverInline=function(e){var t=this.singleTokenDeletion(e);if(null!==t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new s(e)},DefaultErrorStrategy.prototype.singleTokenInsertion=function(e){var t=e.getTokenStream().LA(1),n=e._interp.atn,i=n.states[e.state].transitions[0].target;return!!n.nextTokens(i,e._ctx).contains(t)&&(this.reportMissingToken(e),!0)},DefaultErrorStrategy.prototype.singleTokenDeletion=function(e){var t=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();var n=e.getCurrentToken();return this.reportMatch(e),n}return null},DefaultErrorStrategy.prototype.getMissingSymbol=function(e){var t,n=e.getCurrentToken(),o=this.getExpectedTokens(e).first();t=o===i.EOF?"<missing EOF>":"<missing "+e.literalNames[o]+">";var a=n,s=e.getTokenStream().LT(-1);return a.type===i.EOF&&null!==s&&(a=s),e.getTokenFactory().create(a.source,o,t,i.DEFAULT_CHANNEL,-1,-1,a.line,a.column)},DefaultErrorStrategy.prototype.getExpectedTokens=function(e){return e.getExpectedTokens()},DefaultErrorStrategy.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===i.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)},DefaultErrorStrategy.prototype.escapeWSAndQuote=function(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},DefaultErrorStrategy.prototype.getErrorRecoverySet=function(e){for(var t=e._interp.atn,n=e._ctx,o=new d;null!==n&&n.invokingState>=0;){var a=t.states[n.invokingState].transitions[0],s=t.nextTokens(a.followState);o.addSet(s),n=n.parentCtx}return o.removeOne(i.EPSILON),o},DefaultErrorStrategy.prototype.consumeUntil=function(e,t){for(var n=e.getTokenStream().LA(1);n!==i.EOF&&!t.contains(n);)e.consume(),n=e.getTokenStream().LA(1)},BailErrorStrategy.prototype=Object.create(DefaultErrorStrategy.prototype),BailErrorStrategy.prototype.constructor=BailErrorStrategy,BailErrorStrategy.prototype.recover=function(e,t){for(var n=e._ctx;null!==n;)n.exception=t,n=n.parentCtx;throw new l(t)},BailErrorStrategy.prototype.recoverInline=function(e){this.recover(e,new s(e))},BailErrorStrategy.prototype.sync=function(e){},t.BailErrorStrategy=BailErrorStrategy,t.DefaultErrorStrategy=DefaultErrorStrategy},6342(e,t,n){var i=n(5895).PredicateTransition;function RecognitionException(e){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,RecognitionException);else(new Error).stack;return this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function LexerNoViableAltException(e,t,n,i){return RecognitionException.call(this,{message:"",recognizer:e,input:t,ctx:null}),this.startIndex=n,this.deadEndConfigs=i,this}function NoViableAltException(e,t,n,i,o,a){a=a||e._ctx,i=i||e.getCurrentToken(),n=n||e.getCurrentToken(),t=t||e.getInputStream(),RecognitionException.call(this,{message:"",recognizer:e,input:t,ctx:a}),this.deadEndConfigs=o,this.startToken=n,this.offendingToken=i}function InputMismatchException(e){RecognitionException.call(this,{message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}function FailedPredicateException(e,t,n){RecognitionException.call(this,{message:this.formatMessage(t,n||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});var o=e._interp.atn.states[e.state].transitions[0];return o instanceof i?(this.ruleIndex=o.ruleIndex,this.predicateIndex=o.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken(),this}function ParseCancellationException(){return Error.call(this),Error.captureStackTrace(this,ParseCancellationException),this}RecognitionException.prototype=Object.create(Error.prototype),RecognitionException.prototype.constructor=RecognitionException,RecognitionException.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},RecognitionException.prototype.toString=function(){return this.message},LexerNoViableAltException.prototype=Object.create(RecognitionException.prototype),LexerNoViableAltException.prototype.constructor=LexerNoViableAltException,LexerNoViableAltException.prototype.toString=function(){var e="";return this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+e},NoViableAltException.prototype=Object.create(RecognitionException.prototype),NoViableAltException.prototype.constructor=NoViableAltException,InputMismatchException.prototype=Object.create(RecognitionException.prototype),InputMismatchException.prototype.constructor=InputMismatchException,FailedPredicateException.prototype=Object.create(RecognitionException.prototype),FailedPredicateException.prototype.constructor=FailedPredicateException,FailedPredicateException.prototype.formatMessage=function(e,t){return null!==t?t:"failed predicate: {"+e+"}?"},ParseCancellationException.prototype=Object.create(Error.prototype),ParseCancellationException.prototype.constructor=ParseCancellationException,t.RecognitionException=RecognitionException,t.NoViableAltException=NoViableAltException,t.LexerNoViableAltException=LexerNoViableAltException,t.InputMismatchException=InputMismatchException,t.FailedPredicateException=FailedPredicateException,t.ParseCancellationException=ParseCancellationException},2305(e,t,n){t.RecognitionException=n(6342).RecognitionException,t.NoViableAltException=n(6342).NoViableAltException,t.LexerNoViableAltException=n(6342).LexerNoViableAltException,t.InputMismatchException=n(6342).InputMismatchException,t.FailedPredicateException=n(6342).FailedPredicateException,t.DiagnosticErrorListener=n(1926).DiagnosticErrorListener,t.BailErrorStrategy=n(2730).BailErrorStrategy,t.ErrorListener=n(139).ErrorListener},6096(e,t,n){t.atn=n(8566),t.codepointat=n(8203),t.dfa=n(2782),t.fromcodepoint=n(9490),t.tree=n(2893),t.error=n(2305),t.Token=n(653).Token,t.CharStreams=n(2365).CharStreams,t.CommonToken=n(653).CommonToken,t.InputStream=n(4992).InputStream,t.FileStream=n(3088).FileStream,t.CommonTokenStream=n(5546).CommonTokenStream,t.Lexer=n(7562).Lexer,t.Parser=n(1717).Parser;var i=n(2044);t.PredictionContextCache=i.PredictionContextCache,t.ParserRuleContext=n(588).ParserRuleContext,t.Interval=n(5063).Interval,t.Utils=n(1257)},8203(){String.prototype.codePointAt||function(){"use strict";var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),codePointAt=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||i>=n)){var o,a=t.charCodeAt(i);return a>=55296&&a<=56319&&n>i+1&&(o=t.charCodeAt(i+1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a}};e?e(String.prototype,"codePointAt",{value:codePointAt,configurable:!0,writable:!0}):String.prototype.codePointAt=codePointAt}()},9490(){var e,t,n,i;String.fromCodePoint||(e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t=String.fromCharCode,n=Math.floor,i=function(e){var i,o,a=[],s=-1,c=arguments.length;if(!c)return"";for(var l="";++s<c;){var p=Number(arguments[s]);if(!isFinite(p)||p<0||p>1114111||n(p)!=p)throw RangeError("Invalid code point: "+p);p<=65535?a.push(p):(i=55296+((p-=65536)>>10),o=p%1024+56320,a.push(i,o)),(s+1==c||a.length>16384)&&(l+=t.apply(null,a),a.length=0)}return l},e?e(String,"fromCodePoint",{value:i,configurable:!0,writable:!0}):String.fromCodePoint=i)},6149(e,t,n){var i=n(653).Token,o=n(5063).Interval,a=new o(-1,-2);n(1257);function Tree(){return this}function SyntaxTree(){return Tree.call(this),this}function ParseTree(){return SyntaxTree.call(this),this}function RuleNode(){return ParseTree.call(this),this}function TerminalNode(){return ParseTree.call(this),this}function ErrorNode(){return TerminalNode.call(this),this}function ParseTreeVisitor(){return this}function ParseTreeListener(){return this}function TerminalNodeImpl(e){return TerminalNode.call(this),this.parentCtx=null,this.symbol=e,this}function ErrorNodeImpl(e){return TerminalNodeImpl.call(this,e),this}function ParseTreeWalker(){return this}SyntaxTree.prototype=Object.create(Tree.prototype),SyntaxTree.prototype.constructor=SyntaxTree,ParseTree.prototype=Object.create(SyntaxTree.prototype),ParseTree.prototype.constructor=ParseTree,RuleNode.prototype=Object.create(ParseTree.prototype),RuleNode.prototype.constructor=RuleNode,TerminalNode.prototype=Object.create(ParseTree.prototype),TerminalNode.prototype.constructor=TerminalNode,ErrorNode.prototype=Object.create(TerminalNode.prototype),ErrorNode.prototype.constructor=ErrorNode,ParseTreeVisitor.prototype.visit=function(e){return Array.isArray(e)?e.map(function(e){return e.accept(this)},this):e.accept(this)},ParseTreeVisitor.prototype.visitChildren=function(e){return e.children?this.visit(e.children):null},ParseTreeVisitor.prototype.visitTerminal=function(e){},ParseTreeVisitor.prototype.visitErrorNode=function(e){},ParseTreeListener.prototype.visitTerminal=function(e){},ParseTreeListener.prototype.visitErrorNode=function(e){},ParseTreeListener.prototype.enterEveryRule=function(e){},ParseTreeListener.prototype.exitEveryRule=function(e){},TerminalNodeImpl.prototype=Object.create(TerminalNode.prototype),TerminalNodeImpl.prototype.constructor=TerminalNodeImpl,TerminalNodeImpl.prototype.getChild=function(e){return null},TerminalNodeImpl.prototype.getSymbol=function(){return this.symbol},TerminalNodeImpl.prototype.getParent=function(){return this.parentCtx},TerminalNodeImpl.prototype.getPayload=function(){return this.symbol},TerminalNodeImpl.prototype.getSourceInterval=function(){if(null===this.symbol)return a;var e=this.symbol.tokenIndex;return new o(e,e)},TerminalNodeImpl.prototype.getChildCount=function(){return 0},TerminalNodeImpl.prototype.accept=function(e){return e.visitTerminal(this)},TerminalNodeImpl.prototype.getText=function(){return this.symbol.text},TerminalNodeImpl.prototype.toString=function(){return this.symbol.type===i.EOF?"<EOF>":this.symbol.text},ErrorNodeImpl.prototype=Object.create(TerminalNodeImpl.prototype),ErrorNodeImpl.prototype.constructor=ErrorNodeImpl,ErrorNodeImpl.prototype.isErrorNode=function(){return!0},ErrorNodeImpl.prototype.accept=function(e){return e.visitErrorNode(this)},ParseTreeWalker.prototype.walk=function(e,t){if(t instanceof ErrorNode||void 0!==t.isErrorNode&&t.isErrorNode())e.visitErrorNode(t);else if(t instanceof TerminalNode)e.visitTerminal(t);else{this.enterRule(e,t);for(var n=0;n<t.getChildCount();n++){var i=t.getChild(n);this.walk(e,i)}this.exitRule(e,t)}},ParseTreeWalker.prototype.enterRule=function(e,t){var n=t.getRuleContext();e.enterEveryRule(n),n.enterRule(e)},ParseTreeWalker.prototype.exitRule=function(e,t){var n=t.getRuleContext();n.exitRule(e),e.exitEveryRule(n)},ParseTreeWalker.DEFAULT=new ParseTreeWalker,t.RuleNode=RuleNode,t.ErrorNode=ErrorNode,t.TerminalNode=TerminalNode,t.ErrorNodeImpl=ErrorNodeImpl,t.TerminalNodeImpl=TerminalNodeImpl,t.ParseTreeListener=ParseTreeListener,t.ParseTreeVisitor=ParseTreeVisitor,t.ParseTreeWalker=ParseTreeWalker,t.INVALID_INTERVAL=a},704(e,t,n){var i=n(1257),o=n(653).Token,a=(n(6149).RuleNode,n(6149).ErrorNode),s=n(6149).TerminalNode,c=n(588).ParserRuleContext,l=n(6053).RuleContext,p=n(7339).INVALID_ALT_NUMBER;function Trees(){}Trees.toStringTree=function(e,t,n){t=t||null,null!==(n=n||null)&&(t=n.ruleNames);var o=Trees.getNodeText(e,t);o=i.escapeWhitespace(o,!1);var a=e.getChildCount();if(0===a)return o;var s="("+o+" ";a>0&&(o=Trees.toStringTree(e.getChild(0),t),s=s.concat(o));for(var c=1;c<a;c++)o=Trees.toStringTree(e.getChild(c),t),s=s.concat(" "+o);return s=s.concat(")")},Trees.getNodeText=function(e,t,n){if(t=t||null,null!==(n=n||null)&&(t=n.ruleNames),null!==t){if(e instanceof l){var i=e.getAltNumber();return i!=p?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof a)return e.toString();if(e instanceof s&&null!==e.symbol)return e.symbol.text}var c=e.getPayload();return c instanceof o?c.text:e.getPayload().toString()},Trees.getChildren=function(e){for(var t=[],n=0;n<e.getChildCount();n++)t.push(e.getChild(n));return t},Trees.getAncestors=function(e){var t=[];for(e=e.getParent();null!==e;)t=[e].concat(t),e=e.getParent();return t},Trees.findAllTokenNodes=function(e,t){return Trees.findAllNodes(e,t,!0)},Trees.findAllRuleNodes=function(e,t){return Trees.findAllNodes(e,t,!1)},Trees.findAllNodes=function(e,t,n){var i=[];return Trees._findAllNodes(e,t,n,i),i},Trees._findAllNodes=function(e,t,n,i){n&&e instanceof s?e.symbol.type===t&&i.push(e):!n&&e instanceof c&&e.ruleIndex===t&&i.push(e);for(var o=0;o<e.getChildCount();o++)Trees._findAllNodes(e.getChild(o),t,n,i)},Trees.descendants=function(e){for(var t=[e],n=0;n<e.getChildCount();n++)t=t.concat(Trees.descendants(e.getChild(n)));return t},t.Trees=Trees},2893(e,t,n){var i=n(6149);t.Trees=n(704).Trees,t.RuleNode=i.RuleNode,t.ParseTreeListener=i.ParseTreeListener,t.ParseTreeVisitor=i.ParseTreeVisitor,t.ParseTreeWalker=i.ParseTreeWalker},7833(e,t,n){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))}),t.splice(o,0,n)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,n){e.exports=function setup(e){function createDebug(e){let t,n,i,o=null;function debug(...e){if(!debug.enabled)return;const n=debug,i=Number(new Date),o=i-(t||i);n.diff=o,n.prev=t,n.curr=i,t=i,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if("%%"===t)return"%";a++;const o=createDebug.formatters[i];if("function"==typeof o){const i=e[a];t=o.call(n,i),e.splice(a,1),a--}return t}),createDebug.formatArgs.call(n,e);(n.log||createDebug.log).apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==createDebug.namespaces&&(n=createDebug.namespaces,i=createDebug.enabled(e)),i),set:e=>{o=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){let t;createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.substr(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")))},createDebug.enabled=function enabled(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=createDebug.skips.length;t<n;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,n=createDebug.names.length;t<n;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=n(6585),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}},7007(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function ReflectApply(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function NumberIsNaN(e){return e!=e};function EventEmitter(){EventEmitter.init.call(this)}e.exports=EventEmitter,e.exports.once=function once(e,t){return new Promise(function(n,i){function errorListener(n){e.removeListener(t,resolver),i(n)}function resolver(){"function"==typeof e.removeListener&&e.removeListener("error",errorListener),n([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,resolver,{once:!0}),"error"!==t&&function addErrorHandlerIfEventEmitter(e,t,n){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,n)}(e,errorListener,{once:!0})})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var a=10;function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,n,i){var o,a,s;if(checkListener(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(o=_getMaxListeners(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}(c)}return e}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=onceWrapper.bind(i);return o.listener=n,i.wrapFn=o,o}function _listeners(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function unwrapListeners(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):arrayClone(o,o.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function arrayClone(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function eventTargetAgnosticAddListener(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function wrapListener(o){i.once&&e.removeEventListener(t,wrapListener),n(o)})}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function setMaxListeners(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function emit(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,a=this._events;if(void 0!==a)o=o&&void 0===a.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var p=l.length,h=arrayClone(l,p);for(n=0;n<p;++n)i(h[n],this,t)}return!0},EventEmitter.prototype.addListener=function addListener(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function prependListener(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.once=function once(e,t){return checkListener(t),this.on(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.prependOnceListener=function prependOnceListener(e,t){return checkListener(t),this.prependListener(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.removeListener=function removeListener(e,t){var n,i,o,a,s;if(checkListener(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,a=Object.keys(n);for(i=0;i<a.length;++i)"removeListener"!==(o=a[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},EventEmitter.prototype.listeners=function listeners(e){return _listeners(this,e,!0)},EventEmitter.prototype.rawListeners=function rawListeners(e){return _listeners(this,e,!1)},EventEmitter.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):listenerCount.call(e,t)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?t(this._events):[]}},7079(e,t,n){e=n.nmd(e);var i="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",p="[object Error]",h="[object Function]",d="[object GeneratorFunction]",f="[object Map]",g="[object Number]",x="[object Object]",m="[object Promise]",y="[object RegExp]",S="[object Set]",T="[object String]",v="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",k="[object Float32Array]",b="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",_="[object Int32Array]",N="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",F="[object Uint32Array]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,D=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g,z=/\w*$/,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[k]=U[b]=U[P]=U[L]=U[_]=U[N]=U[I]=U[O]=U[F]=!0,U[a]=U[s]=U[A]=U[c]=U[E]=U[l]=U[p]=U[h]=U[f]=U[g]=U[x]=U[y]=U[S]=U[T]=U[C]=!1;var V={};V[a]=V[s]=V[A]=V[E]=V[c]=V[l]=V[k]=V[b]=V[P]=V[L]=V[_]=V[f]=V[g]=V[x]=V[y]=V[S]=V[T]=V[v]=V[N]=V[I]=V[O]=V[F]=!0,V[p]=V[h]=V[C]=!1;var W="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,K="object"==typeof self&&self&&self.Object===Object&&self,$=W||K||Function("return this")(),Y=t&&!t.nodeType&&t,G=Y&&e&&!e.nodeType&&e,Q=G&&G.exports===Y,X=Q&&W.process,J=function(){try{return X&&X.binding("util")}catch(e){}}(),Z=J&&J.isTypedArray;function addMapEntry(e,t){return e.set(t[0],t[1]),e}function addSetEntry(e,t){return e.add(t),e}function arrayReduce(e,t,n,i){var o=-1,a=e?e.length:0;for(i&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function arraySome(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function mapToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function overArg(e,t){return function(n){return e(t(n))}}function setToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ee,te=Array.prototype,ne=Function.prototype,re=Object.prototype,ie=$["__core-js_shared__"],oe=(ee=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",ae=ne.toString,se=re.hasOwnProperty,ce=re.toString,ue=RegExp("^"+ae.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Q?$.Buffer:void 0,pe=$.Symbol,he=$.Uint8Array,de=overArg(Object.getPrototypeOf,Object),fe=Object.create,ge=re.propertyIsEnumerable,xe=te.splice,me=Object.getOwnPropertySymbols,ye=le?le.isBuffer:void 0,Se=overArg(Object.keys,Object),Te=getNative($,"DataView"),ve=getNative($,"Map"),Ce=getNative($,"Promise"),Ae=getNative($,"Set"),Ee=getNative($,"WeakMap"),ke=getNative(Object,"create"),be=toSource(Te),Pe=toSource(ve),Le=toSource(Ce),_e=toSource(Ae),Ne=toSource(Ee),Ie=pe?pe.prototype:void 0,Oe=Ie?Ie.valueOf:void 0,Fe=Ie?Ie.toString:void 0;function Hash(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ListCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function MapCache(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function SetCache(e){var t=-1,n=e?e.length:0;for(this.__data__=new MapCache;++t<n;)this.add(e[t])}function Stack(e){this.__data__=new ListCache(e)}function arrayLikeKeys(e,t){var n=Me(e)||isArguments(e)?function baseTimes(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,o=!!i;for(var a in e)!t&&!se.call(e,a)||o&&("length"==a||isIndex(a,i))||n.push(a);return n}function assignValue(e,t,n){var i=e[t];se.call(e,t)&&eq(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function assocIndexOf(e,t){for(var n=e.length;n--;)if(eq(e[n][0],t))return n;return-1}function baseClone(e,t,n,i,o,s,p){var m;if(i&&(m=s?i(e,o,s,p):i(e)),void 0!==m)return m;if(!isObject(e))return e;var C=Me(e);if(C){if(m=function initCloneArray(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function copyArray(e,t){var n=-1,i=e.length;t||(t=Array(i));for(;++n<i;)t[n]=e[n];return t}(e,m)}else{var w=Re(e),R=w==h||w==d;if(Be(e))return function cloneBuffer(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(w==x||w==a||R&&!s){if(isHostObject(e))return s?e:{};if(m=function initCloneObject(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:function baseCreate(e){return isObject(e)?fe(e):{}}(de(e))}(R?{}:e),!t)return function copySymbols(e,t){return copyObject(e,we(e),t)}(e,function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}(m,e))}else{if(!V[w])return s?e:{};m=function initCloneByTag(e,t,n,i){var o=e.constructor;switch(t){case A:return cloneArrayBuffer(e);case c:case l:return new o(+e);case E:return function cloneDataView(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case k:case b:case P:case L:case _:case N:case I:case O:case F:return function cloneTypedArray(e,t){var n=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case f:return function cloneMap(e,t,n){var i=t?n(mapToArray(e),!0):mapToArray(e);return arrayReduce(i,addMapEntry,new e.constructor)}(e,i,n);case g:case T:return new o(e);case y:return function cloneRegExp(e){var t=new e.constructor(e.source,z.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return function cloneSet(e,t,n){var i=t?n(setToArray(e),!0):setToArray(e);return arrayReduce(i,addSetEntry,new e.constructor)}(e,i,n);case v:return function cloneSymbol(e){return Oe?Object(Oe.call(e)):{}}(e)}}(e,w,baseClone,t)}}p||(p=new Stack);var D=p.get(e);if(D)return D;if(p.set(e,m),!C)var M=n?function getAllKeys(e){return function baseGetAllKeys(e,t,n){var i=t(e);return Me(e)?i:function arrayPush(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}(i,n(e))}(e,keys,we)}(e):keys(e);return function arrayEach(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););return e}(M||e,function(o,a){M&&(o=e[a=o]),assignValue(m,a,baseClone(o,t,n,i,a,e,p))}),m}function baseGet(e,t){for(var n=0,i=(t=isKey(t,e)?[t]:castPath(t)).length;null!=e&&n<i;)e=e[toKey(t[n++])];return n&&n==i?e:void 0}function baseHasIn(e,t){return null!=e&&t in Object(e)}function baseIsEqual(e,t,n,i,o){return e===t||(null==e||null==t||!isObject(e)&&!isObjectLike(t)?e!=e&&t!=t:function baseIsEqualDeep(e,t,n,i,o,h){var d=Me(e),m=Me(t),C=s,k=s;d||(C=(C=Re(e))==a?x:C);m||(k=(k=Re(t))==a?x:k);var b=C==x&&!isHostObject(e),P=k==x&&!isHostObject(t),L=C==k;if(L&&!b)return h||(h=new Stack),d||ze(e)?equalArrays(e,t,n,i,o,h):function equalByTag(e,t,n,i,o,a,s){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!i(new he(e),new he(t)));case c:case l:case g:return eq(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case T:return e==t+"";case f:var h=mapToArray;case S:var d=2&a;if(h||(h=setToArray),e.size!=t.size&&!d)return!1;var x=s.get(e);if(x)return x==t;a|=1,s.set(e,t);var m=equalArrays(h(e),h(t),i,o,a,s);return s.delete(e),m;case v:if(Oe)return Oe.call(e)==Oe.call(t)}return!1}(e,t,C,n,i,o,h);if(!(2&o)){var _=b&&se.call(e,"__wrapped__"),N=P&&se.call(t,"__wrapped__");if(_||N){var I=_?e.value():e,O=N?t.value():t;return h||(h=new Stack),n(I,O,i,o,h)}}if(!L)return!1;return h||(h=new Stack),function equalObjects(e,t,n,i,o,a){var s=2&o,c=keys(e),l=c.length,p=keys(t),h=p.length;if(l!=h&&!s)return!1;var d=l;for(;d--;){var f=c[d];if(!(s?f in t:se.call(t,f)))return!1}var g=a.get(e);if(g&&a.get(t))return g==t;var x=!0;a.set(e,t),a.set(t,e);var m=s;for(;++d<l;){var y=e[f=c[d]],S=t[f];if(i)var T=s?i(S,y,f,t,e,a):i(y,S,f,e,t,a);if(!(void 0===T?y===S||n(y,S,i,o,a):T)){x=!1;break}m||(m="constructor"==f)}if(x&&!m){var v=e.constructor,C=t.constructor;v==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C||(x=!1)}return a.delete(e),a.delete(t),x}(e,t,n,i,o,h)}(e,t,baseIsEqual,n,i,o))}function baseIsNative(e){return!(!isObject(e)||function isMasked(e){return!!oe&&oe in e}(e))&&(isFunction(e)||isHostObject(e)?ue:j).test(toSource(e))}function baseIteratee(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?Me(e)?function baseMatchesProperty(e,t){if(isKey(e)&&isStrictComparable(t))return matchesStrictComparable(toKey(e),t);return function(n){var i=function get(e,t,n){var i=null==e?void 0:baseGet(e,t);return void 0===i?n:i}(n,e);return void 0===i&&i===t?function hasIn(e,t){return null!=e&&function hasPath(e,t,n){t=isKey(t,e)?[t]:castPath(t);var i,o=-1,a=t.length;for(;++o<a;){var s=toKey(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}if(i)return i;a=e?e.length:0;return!!a&&isLength(a)&&isIndex(s,a)&&(Me(e)||isArguments(e))}(e,t,baseHasIn)}(n,e):baseIsEqual(t,i,void 0,3)}}(e[0],e[1]):function baseMatches(e){var t=function getMatchData(e){var t=keys(e),n=t.length;for(;n--;){var i=t[n],o=e[i];t[n]=[i,o,isStrictComparable(o)]}return t}(e);if(1==t.length&&t[0][2])return matchesStrictComparable(t[0][0],t[0][1]);return function(n){return n===e||function baseIsMatch(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=Object(e);o--;){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var l=(c=n[o])[0],p=e[l],h=c[1];if(s&&c[2]){if(void 0===p&&!(l in e))return!1}else{var d=new Stack;if(i)var f=i(p,h,l,e,t,d);if(!(void 0===f?baseIsEqual(h,p,i,3,d):f))return!1}}return!0}(n,e,t)}}(e):function property(e){return isKey(e)?function baseProperty(e){return function(t){return null==t?void 0:t[e]}}(toKey(e)):function basePropertyDeep(e){return function(t){return baseGet(t,e)}}(e)}(e)}function castPath(e){return Me(e)?e:De(e)}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new he(t).set(new he(e)),t}function copyObject(e,t,n,i){n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;assignValue(n,s,void 0===c?e[s]:c)}return n}function equalArrays(e,t,n,i,o,a){var s=2&o,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var p=a.get(e);if(p&&a.get(t))return p==t;var h=-1,d=!0,f=1&o?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++h<c;){var g=e[h],x=t[h];if(i)var m=s?i(x,g,h,t,e,a):i(g,x,h,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!arraySome(t,function(e,t){if(!f.has(t)&&(g===e||n(g,e,i,o,a)))return f.add(t)})){d=!1;break}}else if(g!==x&&!n(g,x,i,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function getMapData(e,t){var n=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function getNative(e,t){var n=function getValue(e,t){return null==e?void 0:e[t]}(e,t);return baseIsNative(n)?n:void 0}Hash.prototype.clear=function hashClear(){this.__data__=ke?ke(null):{}},Hash.prototype.delete=function hashDelete(e){return this.has(e)&&delete this.__data__[e]},Hash.prototype.get=function hashGet(e){var t=this.__data__;if(ke){var n=t[e];return n===i?void 0:n}return se.call(t,e)?t[e]:void 0},Hash.prototype.has=function hashHas(e){var t=this.__data__;return ke?void 0!==t[e]:se.call(t,e)},Hash.prototype.set=function hashSet(e,t){return this.__data__[e]=ke&&void 0===t?i:t,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[]},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,n=assocIndexOf(t,e);return!(n<0)&&(n==t.length-1?t.pop():xe.call(t,n,1),!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?void 0:t[n][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.__data__={hash:new Hash,map:new(ve||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){return getMapData(this,e).delete(e)},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(e){return this.__data__.set(e,i),this},SetCache.prototype.has=function setCacheHas(e){return this.__data__.has(e)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache},Stack.prototype.delete=function stackDelete(e){return this.__data__.delete(e)},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,t){var n=this.__data__;if(n instanceof ListCache){var i=n.__data__;if(!ve||i.length<199)return i.push([e,t]),this;n=this.__data__=new MapCache(i)}return n.set(e,t),this};var we=me?overArg(me,Object):function stubArray(){return[]},Re=function baseGetTag(e){return ce.call(e)};function isIndex(e,t){return!!(t=t??o)&&("number"==typeof e||H.test(e))&&e>-1&&e%1==0&&e<t}function isKey(e,t){if(Me(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol(e))||(R.test(e)||!w.test(e)||null!=t&&e in Object(t))}function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function isStrictComparable(e){return e==e&&!isObject(e)}function matchesStrictComparable(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(Te&&Re(new Te(new ArrayBuffer(1)))!=E||ve&&Re(new ve)!=f||Ce&&Re(Ce.resolve())!=m||Ae&&Re(new Ae)!=S||Ee&&Re(new Ee)!=C)&&(Re=function(e){var t=ce.call(e),n=t==x?e.constructor:void 0,i=n?toSource(n):void 0;if(i)switch(i){case be:return E;case Pe:return f;case Le:return m;case _e:return S;case Ne:return C}return t});var De=memoize(function(e){e=function toString(e){return null==e?"":function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return Fe?Fe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(e);var t=[];return D.test(e)&&t.push(""),e.replace(M,function(e,n,i,o){t.push(i?o.replace(B,"$1"):n||e)}),t});function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function toSource(e){if(null!=e){try{return ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function memoize(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var memoized=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=memoized.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return memoized.cache=o.set(i,a),a};return memoized.cache=new(memoize.Cache||MapCache),memoized}function eq(e,t){return e===t||e!=e&&t!=t}function isArguments(e){return function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}(e)&&se.call(e,"callee")&&(!ge.call(e,"callee")||ce.call(e)==a)}memoize.Cache=MapCache;var Me=Array.isArray;function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var Be=ye||function stubFalse(){return!1};function isFunction(e){var t=isObject(e)?ce.call(e):"";return t==h||t==d}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&ce.call(e)==v}var ze=Z?function baseUnary(e){return function(t){return e(t)}}(Z):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!U[ce.call(e)]};function keys(e){return isArrayLike(e)?arrayLikeKeys(e):function baseKeys(e){if(!isPrototype(e))return Se(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function identity(e){return e}e.exports=function iteratee(e){return baseIteratee("function"==typeof e?e:baseClone(e,!0))}},6064(e,t,n){"use strict";e.exports=function fromMarkdown(e,t){return function compiler(){var e,t,n,p,f,g,x,m={type:"root",children:[]},y=[m],S={enter:{autolink:open(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:open(heading),blockQuote:open(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:open(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:open(codeFlow,buffer),codeText:open(codeText,buffer),data:onenterdata,codeFlowValue:onenterdata,definition:open(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:open(emphasis),hardBreakEscape:open(hardBreak),hardBreakTrailing:open(hardBreak),htmlFlow:open(html,buffer),htmlText:open(html,buffer),image:open(image,onenterimage),link:open(link),listItem:open(listItem),listItemValue:onenterlistitemvalue,listOrdered:open(list,onenterlistordered),listUnordered:open(list),paragraph:open(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:open(heading),strong:open(strong),thematicBreak:open(thematicBreak)},exit:{atxHeading:close(),atxHeadingSequence:onexitatxheadingsequence,autolink:close(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:close(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:close(onexitcharacterreferencevalue),codeFenced:close(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:close(onexitcodeindented),codeText:close(onexitcodetext),data:onexitdata,definition:close(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:close(),hardBreakEscape:close(onexithardbreak),hardBreakTrailing:close(onexithardbreak),htmlFlow:close(onexithtmlflow),htmlText:close(onexithtmltext),image:close(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:close(onexitlink),listItem:close(),listOrdered:close(),listUnordered:close(),paragraph:close(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:close(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:close(),thematicBreak:close()}};return compile;function compile(e){for(var t,n,i,o=-1,a=[];++o<e.length&&(i=e[o]);)i[1].type!==l.listOrdered&&i[1].type!==l.listUnordered||("enter"===i[0]?a.push(o):o=prepareList(e,a.pop(o),o));for(o=-1,t=e.length-1;++o<t;)n=S[e[o][0]],c.call(n,e[o][1].type)&&n[e[o][1].type].call(e[o][2],e[o][1]);return m.position={start:point(t?e[0][1].start:{line:1,column:1,offset:0}),end:point(t?e[e.length-2][1].end:{line:1,column:1,offset:0})},m}function prepareList(e,t,n){for(var i,o,a,s,c,p,h,d=t-1,f=-1,g=!1;++d<=n;)if((c=e[d])[1].type===l.listUnordered||c[1].type===l.listOrdered||c[1].type===l.blockQuote?("enter"===c[0]?f++:f--,h=void 0):c[1].type===l.lineEndingBlank?"enter"===c[0]&&(!i||h||f||p||(p=d),h=void 0):c[1].type===l.linePrefix||c[1].type===l.listItemValue||c[1].type===l.listItemMarker||c[1].type===l.listItemPrefix||c[1].type===l.listItemPrefixWhitespace||(h=void 0),!f&&"enter"===c[0]&&c[1].type===l.listItemPrefix||-1===f&&"exit"===c[0]&&(c[1].type===l.listUnordered||c[1].type===l.listOrdered)){if(i){for(o=d,a=void 0;o--;)if((s=e[o])[1].type===l.lineEnding||s[1].type===l.lineEndingBlank){if("exit"===s[0])continue;a&&(e[a][1].type=l.lineEndingBlank,g=!0),s[1].type=l.lineEnding,a=o}else if(s[1].type!==l.linePrefix)break;p&&(!a||p<a)&&(i._spread=!0),i.end=point(a?e[a][1].start:c[1].end),e.splice(a||d,0,["exit",i,c[2]]),d++,n++}c[1].type===l.listItemPrefix&&(i={type:"listItem",_spread:!1,start:point(c[1].start)},e.splice(d,0,["enter",i,c[2]]),d++,n++,p=void 0,h=!0)}return e[t][1]._spread=g,n}function point(e){return{line:e.line,column:e.column,offset:e.offset}}function open(e,t){return enter;function enter(n){var i=e(n);m.children.push(i),m=i,y.push(i),i.position={start:point(n.start)},t&&t.call(this,n)}}function buffer(){var e={type:"fragment",children:[]};m=e,y.push(e)}function close(e){return exit;function exit(t){e&&e.call(this,t),y.pop().position.end=point(t.end),m=y[y.length-1]}}function resume(){var e=o(y.pop());return m=y[y.length-1],e}function onenterlistordered(){p=!0}function onenterlistitemvalue(e){p&&(y[y.length-2].start=parseInt(this.sliceSerialize(e),s.numericBaseDecimal),p=void 0)}function onexitcodefencedfenceinfo(){var e=resume();m.lang=e}function onexitcodefencedfencemeta(){var e=resume();m.meta=e}function onexitcodefencedfence(){e||(buffer(),e=!0)}function onexitcodefenced(){var t=resume();m.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),e=void 0}function onexitcodeindented(){var e=resume();m.value=e}function onexitdefinitionlabelstring(e){resume();var t=this.sliceSerialize(e);m.label=t,m.identifier=h(t).toLowerCase()}function onexitdefinitiontitlestring(){var e=resume();m.title=e}function onexitdefinitiondestinationstring(){var e=resume();m.url=e}function onexitatxheadingsequence(e){m.depth||(m.depth=this.sliceSerialize(e).length)}function onexitsetextheadingtext(){t=!0}function onexitsetextheadinglinesequence(e){m.depth=this.sliceSerialize(e).charCodeAt(0)===a.equalsTo?1:2}function onexitsetextheading(){t=void 0}function onenterdata(e){var t=m.children,n=t[t.length-1];n&&"text"===n.type||((n=text()).position={start:point(e.start)},m.children.push(n)),m=n,y.push(n)}function onexitdata(e){var t=y.pop();t.value+=this.sliceSerialize(e),t.position.end=point(e.end),m=y[y.length-1]}function onexitlineending(e){if(f)return m.children[m.children.length-1].position.end=point(e.end),void(f=void 0);t||"emphasis"!==m.type&&"fragment"!==m.type&&"heading"!==m.type&&"paragraph"!==m.type&&"strong"!==m.type||(onenterdata.call(this,e),onexitdata.call(this,e))}function onexithardbreak(){f=!0}function onexithtmlflow(){var e=resume();m.value=e}function onexithtmltext(){var e=resume();m.value=e}function onexitcodetext(){var e=resume();m.value=e}function onenterimage(){buffer()}function onexitlink(){g?(m.type+="Reference",m.referenceType=x||"shortcut",delete m.url,delete m.title):(delete m.identifier,delete m.label,delete m.referenceType),x=void 0}function onexitimage(){g?(m.type+="Reference",m.referenceType=x||"shortcut",delete m.url,delete m.title):(delete m.identifier,delete m.label,delete m.referenceType),x=void 0}function onexitlabeltext(e){var t=this.sliceSerialize(e),n="fragment"===m.type?y[y.length-2]:m;n.label=t,n.identifier=h(t).toLowerCase()}function onexitlabel(){var e;g=!0,"fragment"===m.type&&(e=resume(),m.alt=e)}function onexitresourcedestinationstring(){var e=resume();m.url=e}function onexitresourcetitlestring(){var e=resume();m.title=e}function onexitresource(){g=void 0}function onenterreference(){x="collapsed"}function onexitreferencestring(e){resume();var t=this.sliceSerialize(e);m.label=t,m.identifier=h(t).toLowerCase(),x="full"}function onexitcharacterreferencemarker(e){n=e.type}function onexitcharacterreferencevalue(e){var t,o=this.sliceSerialize(e);t=n?d(o,n===l.characterReferenceMarkerNumeric?s.numericBaseDecimal:s.numericBaseHexadecimal):i(o),m.value+=t,n=void 0}function onexitautolinkprotocol(e){onexitdata.call(this,e),m.url=this.sliceSerialize(e)}function onexitautolinkemail(e){onexitdata.call(this,e),m.url="mailto:"+this.sliceSerialize(e)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function listItem(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}()(x()(p(p([e,a.eof],g(),t),f().document().write)))};var i=n(4360),o=n(9027),a=n(1369),s=n(9501),c=n(2519),l=n(5869),p=n(3890),h=n(1303),d=n(440),f=n(1296),g=n(9061),x=n(7192)},9027(e){"use strict";function toString(e){return e&&(e.value||e.alt||e.title||"children"in e&&all(e.children)||"length"in e&&all(e))||""}function all(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=toString(e[i]);return t.join("")}e.exports=toString},8177(e,t,n){e.exports=function asciiAlpha(e){return/[A-Za-z]/.test(i(e))};var i=n(7325)},2778(e,t,n){e.exports=function asciiAlphanumeric(e){return/[\dA-Za-z]/.test(i(e))};var i=n(7325)},9841(e,t,n){e.exports=function asciiAtext(e){return/[#-'*+\--9=?A-Z^-~]/.test(i(e))};var i=n(7325)},1016(e){e.exports=function asciiControl(e){return e<32||127===e}},1584(e,t,n){e.exports=function asciiDigit(e){return/\d/.test(i(e))};var i=n(7325)},8144(e,t,n){e.exports=function asciiHexDigit(e){return/[\dA-Fa-f]/.test(i(e))};var i=n(7325)},6429(e,t,n){e.exports=function asciiPunctuation(e){return/[!-/:-@[-`{-~]/.test(i(e))};var i=n(7325)},1369(e,t){t.carriageReturn=-5,t.lineFeed=-4,t.carriageReturnLineFeed=-3,t.horizontalTab=-2,t.virtualSpace=-1,t.eof=null,t.nul=0,t.soh=1,t.stx=2,t.etx=3,t.eot=4,t.enq=5,t.ack=6,t.bel=7,t.bs=8,t.ht=9,t.lf=10,t.vt=11,t.ff=12,t.cr=13,t.so=14,t.si=15,t.dle=16,t.dc1=17,t.dc2=18,t.dc3=19,t.dc4=20,t.nak=21,t.syn=22,t.etb=23,t.can=24,t.em=25,t.sub=26,t.esc=27,t.fs=28,t.gs=29,t.rs=30,t.us=31,t.space=32,t.exclamationMark=33,t.quotationMark=34,t.numberSign=35,t.dollarSign=36,t.percentSign=37,t.ampersand=38,t.apostrophe=39,t.leftParenthesis=40,t.rightParenthesis=41,t.asterisk=42,t.plusSign=43,t.comma=44,t.dash=45,t.dot=46,t.slash=47,t.digit0=48,t.digit1=49,t.digit2=50,t.digit3=51,t.digit4=52,t.digit5=53,t.digit6=54,t.digit7=55,t.digit8=56,t.digit9=57,t.colon=58,t.semicolon=59,t.lessThan=60,t.equalsTo=61,t.greaterThan=62,t.questionMark=63,t.atSign=64,t.uppercaseA=65,t.uppercaseB=66,t.uppercaseC=67,t.uppercaseD=68,t.uppercaseE=69,t.uppercaseF=70,t.uppercaseG=71,t.uppercaseH=72,t.uppercaseI=73,t.uppercaseJ=74,t.uppercaseK=75,t.uppercaseL=76,t.uppercaseM=77,t.uppercaseN=78,t.uppercaseO=79,t.uppercaseP=80,t.uppercaseQ=81,t.uppercaseR=82,t.uppercaseS=83,t.uppercaseT=84,t.uppercaseU=85,t.uppercaseV=86,t.uppercaseW=87,t.uppercaseX=88,t.uppercaseY=89,t.uppercaseZ=90,t.leftSquareBracket=91,t.backslash=92,t.rightSquareBracket=93,t.caret=94,t.underscore=95,t.graveAccent=96,t.lowercaseA=97,t.lowercaseB=98,t.lowercaseC=99,t.lowercaseD=100,t.lowercaseE=101,t.lowercaseF=102,t.lowercaseG=103,t.lowercaseH=104,t.lowercaseI=105,t.lowercaseJ=106,t.lowercaseK=107,t.lowercaseL=108,t.lowercaseM=109,t.lowercaseN=110,t.lowercaseO=111,t.lowercaseP=112,t.lowercaseQ=113,t.lowercaseR=114,t.lowercaseS=115,t.lowercaseT=116,t.lowercaseU=117,t.lowercaseV=118,t.lowercaseW=119,t.lowercaseX=120,t.lowercaseY=121,t.lowercaseZ=122,t.leftCurlyBrace=123,t.verticalBar=124,t.rightCurlyBrace=125,t.tilde=126,t.del=127,t.replacementCharacter=65533},4056(e){e.exports=function markdownLineEndingOrSpace(e){return-5===e||-4===e||-3===e||-2===e||-1===e||32===e}},1073(e){e.exports=function markdownLineEnding(e){return-5===e||-4===e||-3===e}},5009(e){e.exports=function markdownSpace(e){return-2===e||-1===e||32===e}},3061(e,t,n){e.exports=function punctuation(e){return i.test(o(e))};var i=n(28),o=n(7325)},4012(e,t,n){e.exports=function whitespace(e){return/\s/.test(i(e))};var i=n(7325)},6891(e){e.exports=Object.assign},159(e){e.exports=Math.ceil},9501(e,t){t.asciiAlphaCaseDifference=32,t.attentionSideBefore=1,t.attentionSideAfter=2,t.atxHeadingOpeningFenceSizeMax=6,t.autolinkDomainSizeMax=63,t.autolinkSchemeSizeMax=32,t.cdataOpeningString="CDATA[",t.characterGroupWhitespace=1,t.characterGroupPunctuation=2,t.characterReferenceDecimalSizeMax=7,t.characterReferenceHexadecimalSizeMax=6,t.characterReferenceNamedSizeMax=31,t.codeFencedSequenceSizeMin=3,t.contentTypeFlow="flow",t.contentTypeContent="content",t.contentTypeString="string",t.contentTypeText="text",t.hardBreakPrefixSizeMin=2,t.htmlRaw=1,t.htmlComment=2,t.htmlInstruction=3,t.htmlDeclaration=4,t.htmlCdata=5,t.htmlBasic=6,t.htmlComplete=7,t.htmlRawSizeMax=6,t.linkResourceDestinationBalanceMax=3,t.linkReferenceSizeMax=999,t.listItemValueSizeMax=10,t.numericBaseDecimal=10,t.numericBaseHexadecimal=16,t.tabSize=4,t.thematicBreakMarkerCountMin=3},7325(e){e.exports=String.fromCharCode},2519(e){e.exports={}.hasOwnProperty},105(e){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},4765(e){e.exports=["pre","script","style"]},9086(e){e.exports=[].splice},5869(e,t){t.data="data",t.whitespace="whitespace",t.lineEnding="lineEnding",t.lineEndingBlank="lineEndingBlank",t.linePrefix="linePrefix",t.lineSuffix="lineSuffix",t.atxHeading="atxHeading",t.atxHeadingSequence="atxHeadingSequence",t.atxHeadingText="atxHeadingText",t.autolink="autolink",t.autolinkEmail="autolinkEmail",t.autolinkMarker="autolinkMarker",t.autolinkProtocol="autolinkProtocol",t.characterEscape="characterEscape",t.characterEscapeValue="characterEscapeValue",t.characterReference="characterReference",t.characterReferenceMarker="characterReferenceMarker",t.characterReferenceMarkerNumeric="characterReferenceMarkerNumeric",t.characterReferenceMarkerHexadecimal="characterReferenceMarkerHexadecimal",t.characterReferenceValue="characterReferenceValue",t.codeFenced="codeFenced",t.codeFencedFence="codeFencedFence",t.codeFencedFenceSequence="codeFencedFenceSequence",t.codeFencedFenceInfo="codeFencedFenceInfo",t.codeFencedFenceMeta="codeFencedFenceMeta",t.codeFlowValue="codeFlowValue",t.codeIndented="codeIndented",t.codeText="codeText",t.codeTextPaddingWhitespace="codeTextPaddingWhitespace",t.codeTextPaddingLineEnding="codeTextPaddingLineEnding",t.codeTextSequence="codeTextSequence",t.content="content",t.definition="definition",t.definitionDestination="definitionDestination",t.definitionDestinationLiteral="definitionDestinationLiteral",t.definitionDestinationMarker="definitionDestinationMarker",t.definitionDestinationRaw="definitionDestinationRaw",t.definitionDestinationString="definitionDestinationString",t.definitionLabel="definitionLabel",t.definitionLabelMarker="definitionLabelMarker",t.definitionLabelString="definitionLabelString",t.definitionMarker="definitionMarker",t.definitionTitle="definitionTitle",t.definitionTitleMarker="definitionTitleMarker",t.definitionTitleString="definitionTitleString",t.emphasis="emphasis",t.emphasisSequence="emphasisSequence",t.emphasisText="emphasisText",t.escapeMarker="escapeMarker",t.hardBreakEscape="hardBreakEscape",t.hardBreakTrailing="hardBreakTrailing",t.htmlFlow="htmlFlow",t.htmlText="htmlText",t.image="image",t.label="label",t.labelText="labelText",t.labelLink="labelLink",t.labelImage="labelImage",t.labelMarker="labelMarker",t.labelImageMarker="labelImageMarker",t.labelEnd="labelEnd",t.link="link",t.paragraph="paragraph",t.reference="reference",t.referenceMarker="referenceMarker",t.referenceString="referenceString",t.resource="resource",t.resourceDestination="resourceDestination",t.resourceDestinationLiteral="resourceDestinationLiteral",t.resourceDestinationLiteralMarker="resourceDestinationLiteralMarker",t.resourceDestinationRaw="resourceDestinationRaw",t.resourceDestinationString="resourceDestinationString",t.resourceMarker="resourceMarker",t.resourceTitle="resourceTitle",t.resourceTitleMarker="resourceTitleMarker",t.resourceTitleString="resourceTitleString",t.setextHeading="setextHeading",t.setextHeadingText="setextHeadingText",t.setextHeadingLine="setextHeadingLine",t.setextHeadingLineSequence="setextHeadingLineSequence",t.strong="strong",t.strongSequence="strongSequence",t.strongText="strongText",t.thematicBreak="thematicBreak",t.thematicBreakSequence="thematicBreakSequence",t.blockQuote="blockQuote",t.blockQuotePrefix="blockQuotePrefix",t.blockQuoteMarker="blockQuoteMarker",t.blockQuotePrefixWhitespace="blockQuotePrefixWhitespace",t.listOrdered="listOrdered",t.listUnordered="listUnordered",t.listItemIndent="listItemIndent",t.listItemMarker="listItemMarker",t.listItemPrefix="listItemPrefix",t.listItemPrefixWhitespace="listItemPrefixWhitespace",t.listItemValue="listItemValue",t.chunkContent="chunkContent",t.chunkFlow="chunkFlow",t.chunkParagraph="chunkParagraph",t.chunkText="chunkText",t.chunkString="chunkString"},28(e){e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},3287(e,t,n){t.tokenize=function initializeContent(e){var t,n=e.attempt(this.parser.hooks.contentInitial,function afterContentStartConstruct(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n},function paragraphInitial(t){return e.enter("paragraph"),lineStart(t)});return n;function lineStart(n){var i=e.enter("chunkParagraph");return i.contentType="text",i.previous=t,t&&(t.next=i),t=i,data(n)}function data(t){return null===t?(e.exit("chunkParagraph"),e.exit("paragraph"),void e.consume(t)):i(t)?(e.consume(t),e.exit("chunkParagraph")._break=!0,lineStart):(e.consume(t),data)}};var i=n(1073)},8317(e,t,n){t.tokenize=function initializeDocument(e){var t,n,a=this,p=[],h=0,d={},f={tokenize:function tokenizeInspect(e,n){var i=0;return d={},inspectStart;function inspectStart(t){return i<p.length?(a.containerState=p[i][1],e.attempt(p[i][0].continuation,inspectContinue,less)(t)):inspectContinued(t)}function inspectContinue(e){return i++,a.containerState._closeFlow?flowEnd(e):inspectStart(e)}function inspectContinued(n){return t.currentConstruct&&t.currentConstruct.concrete?flowContinue(n):(a.interrupt=t.currentConstruct&&"content"===t.currentConstruct.name,a.containerState={},e.attempt(c,flowEnd,done)(n))}function less(n){return t.currentConstruct&&"content"===t.currentConstruct.name?(a.containerState={},e.attempt(c,flowEnd,e.attempt(l,flowEnd,e.check(s,flowEnd,lazy)))(n)):flowEnd(n)}function lazy(e){return i=p.length,d.lazy=!0,flowContinue(e)}function flowContinue(e){return d.flowContinue=!0,done(e)}function flowEnd(e){return d.flowEnd=!0,done(e)}function done(e){return d.continued=i,a.containerState=void 0,a.interrupt=void 0,n(e)}},partial:!0};return start;function start(t){return h<p.length?(a.containerState=p[h][1],e.attempt(p[h][0].continuation,documentContinue,documentContinued)(t)):documentContinued(t)}function documentContinue(e){return h++,start(e)}function documentContinued(n){return d.flowContinue?flowStart(n):(a.interrupt=t&&t.currentConstruct&&"content"===t.currentConstruct.name,a.containerState={},e.attempt(c,containerContinue,flowStart)(n))}function containerContinue(e){return p.push([a.currentConstruct,a.containerState]),a.containerState=void 0,documentContinued(e)}function flowStart(n){return null===n?documentAtEof(n):(t||(t=a.parser.flow(a.now())),e.enter("chunkFlow"),flowContinue(n))}function flowContinue(t){return null===t?(continueFlow(e.exit("chunkFlow")),documentAtEof(t)):i(t)?(e.consume(t),continueFlow(e.exit("chunkFlow"),!0),e.check(f,documentAfterPeek)):(e.consume(t),flowContinue)}function documentAfterPeek(e){return exitContainers(d.continued),h=0,start(e)}function documentAtEof(t){exitContainers(t),e.consume(t)}function continueFlow(e,i){e.contentType="flow",e._tokenizer=t,e._break=i,n&&(n.next=e),e.previous=n,n=e,t.lazy=d.lazy,t.defineSkip(e.start),o(a.sliceStream(e),t.write)}function exitContainers(i){var o;for(t&&(d.flowEnd||null===i)&&(t.write(null),t=void 0,n=void 0),o=p.length;o-- >i;)a.containerState=p[o][1],p[o][0].exit.call(a,e);p.length=i,a.containerState=void 0}};var i=n(1073),o=n(3890),a=n(5635),s=n(7774),c={tokenize:function tokenizeContainer(e,t,n){return e.attempt(a("linePrefix",4),e.attempt(this.parser.hooks.document,t,n))}},l={tokenize:function tokenizeLazyFlow(e,t,n){return e.attempt(a("linePrefix",4),e.lazy(this.parser.hooks.flow,t,n))}}},5848(e,t,n){t.tokenize=function initializeFlow(e){var t=this,n=e.attempt(this.parser.hooks.flow,afterConstruct,e.attempt(c,function atBlankEnding(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i},e.attempt(l,afterConstruct))),i=e.attempt(this.parser.hooks.flowInitial,afterConstruct,e.attempt(s("linePrefix"),n));return i;function afterConstruct(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,i;e.consume(n)}};var i=n(1073),o=n(7227),a=n(9790),s=n(5635),c=n(7774),l={tokenize:function tokenizeContent(e,t){var n;return function startContent(t){var i;return e.enter("content"),(i=e.enter("chunkContent")).contentType="content",n=i,data(t)};function data(t){return null===t?contentEnd(t):i(t)?e.check(p,contentEnd,contentContinue)(t):(e.consume(t),data)}function contentEnd(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function contentContinue(t){var i;return e.consume(t),e.exit("chunkContent")._break=!0,(i=e.enter("chunkContent")).contentType="content",i.previous=n,n.next=i,n=i,data}},resolve:function resolveContent(e){return o(e).events},name:"content"},p={tokenize:function tokenizeLookaheadConstruct(e,t,n){var o=this;return function startLookahead(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(s("linePrefix"),prefixed)};function prefixed(s){return a(o.events)<4?null===s||i(s)?t(s):e.interrupt(o.parser.hooks.flow,t,n)(s):n(s)}},partial:!0}},8359(e,t,n){t.text=initializeFactory("text"),t.string=initializeFactory("string");var i=n(2519);function initializeFactory(e){return{tokenize:function initializeText(t){var n=this.parser.hooks[e],o=t.attempt(n,function after(e){if(null===e)return void t.consume(e);return o(e)},function dataStart(e){if(null===e)return void t.consume(e);return t.enter("data"),t.consume(e),data});return o;function data(e){return null===e||i.call(n,e)?(t.exit("data"),o(e)):(t.consume(e),data)}}}}},1296(e,t,n){e.exports=function createParser(){var e,t={},n={},N={},I={},O={},F={};return t[42]=h,t[43]=h,t[45]=h,t[48]=h,t[49]=h,t[50]=h,t[51]=h,t[52]=h,t[53]=h,t[54]=h,t[55]=h,t[56]=h,t[57]=h,t[62]=d,n[91]=S,N[-2]=m,N[-1]=m,N[32]=m,I[35]=l,I[42]=P,I[45]=[b,P],I[60]=v,I[61]=b,I[95]=P,I[96]=x,I[126]=x,O[38]=g,O[92]=f,F[-5]=L,F[-4]=L,F[-3]=L,F[-2]=L,F[32]=L,F[33]=E,F[38]=g,F[42]=c,F[60]=[p,C],F[91]=k,F[92]=[T,f],F[93]=A,F[95]=c,F[96]=y,e={defined:[],hooks:{contentInitial:n,document:t,flowInitial:N,flow:I,string:O,text:F},content:create(i),document:create(o),flow:create(a),string:create(s.string),text:create(s.text)};function create(t){return function creator(n){return _(e,t,n)}}};var i=n(3287),o=n(8317),a=n(5848),s=n(8359),c=n(6815),l=n(8789),p=n(5218),h=n(9177),d=n(4213),f=n(6744),g=n(9414),x=n(5610),m=n(6582),y=n(8806),S=n(8032),T=n(8836),v=n(3085),C=n(2678),A=n(6611),E=n(2302),k=n(7983),b=n(823),P=n(4104),L=n(3664),_=n(8758)},7192(e,t,n){e.exports=function postprocessor(){return postprocess};var i=n(7227);function postprocess(e){for(var t,n;!t;)e=(n=i(e)).events,t=n.done;return e}},9061(e,t,n){e.exports=function preprocessor(){var e,t=1,n="";return function preprocess(a,s){var c,l,p,h,d,f,g=[];if(null===a)return e&&g.push(-5),n&&g.push(n),g.push(a),g;a=n+a.toString(s),h=a.length,p=0,n="";for(;p<h;){if(o.lastIndex=p,d=(c=o.exec(a))?c.index:h,f=a.charCodeAt(d),!c){n=a.slice(p);break}if(p===d&&e&&10===f)g.push(-3),e=void 0;else if(e&&(g.push(-5),e=void 0),p<d&&(g.push(a.slice(p,d)),t+=d-p),0===f)g.push(65533),t++;else if(9===f)for(l=4*i(t/4),g.push(-2);t++<l;)g.push(-1);else 10===f?(g.push(-4),t=1):(e=!0,t=1);p=d+1}return g}};var i=n(159),o=/[\0\t\n\r]/g},6815(e,t,n){t.tokenize=function tokenizeAttention(e,t,n){var i,a=o(this.previous),c=0;return function start(t){if(42!==t&&95!==t)return n(t);return e.enter(s),i=t,more(t)};function more(n){var l,p,h,d,f;return n===i?(e.consume(n),c++,more):(l=e.exit(s),h=!(p=o(n))||a&&2===p,d=!a||p&&2===a,95===i&&(f=h,h=h&&(a||!d),d=d&&(p||!f)),l._events=[],l._marker=i,l._open=h,l._close=d,l._size=c,t(n))}},t.resolveAll=function resolveAllAttention(e,t){var n,o,c,l,p,h,d,f,g,x,m,y,S,T,v,C,A,E=e.length,k=-1;for(;++k<E;)(n=e[k][1]).type===s&&n._events&&(c=o,o={token:n,size:n._size,previous:c},c?c.next=o:h=o,k++);(m={})[42]=[],m[95]=[];for(;h;)if((n=h.token)._close){for(A=n._marker,p=h.previous,x=void 0;p&&p!==m[A][n._size%3];){if((y=p.token)._marker===A&&y._open&&(!((n._open||y._close)&&n._size%3)||(y._size+n._size)%3)){x=!0;break}p=p.previous}d=h,x?(f=h.size>1&&p.size>1?2:1,p.size-=f,h.size-=f,T={type:f>1?"strongSequence":"emphasisSequence",start:a(i(y.end),-f),end:i(y.end)},v={type:f>1?"strongText":"emphasisText",start:i(y.end),end:i(n.start)},S={type:f>1?"strong":"emphasis",start:i(T.start)},y._events.unshift(["enter",S,t],["enter",T,t],["exit",T,t],["enter",v,t]),y.end=i(T.start),y._side=1,T={type:T.type,start:n.start,end:a(i(n.start),f)},S.end=i(T.end),n._events.push(["exit",v,t],["enter",T,t],["exit",T,t],["exit",S,t]),n.start=i(T.end),n._side=2,p.next=h,h.previous=p,p.size||unlink(p),h.size||(g=h.next,unlink(h),h=g)):h=h.next,x||(m[A][n._size%3]=d.previous,n._open||unlink(d))}else h=h.next;E=e.length,k=-1;for(;++k<E;)(n=e[k][1]).type===s&&n._events&&(l=n._events,n.start.offset!==n.end.offset&&(C={type:"data",start:n.start,end:n.end},l[1===n._side?"unshift":"push"](["enter",C,t],["exit",C,t])),n._subevents=l,n._events=void 0,k++);return e;function unlink(e){var t=e.previous,n=e.next;t&&(t.next=n),n?n.previous=t:o=t}};var i=n(4896),o=n(8914),a=n(4728),s="attentionSequence"},5218(e,t,n){t.tokenize=function tokenizeAutolink(e,t,n){var c,l;return function start(t){if(60!==t)return n(t);return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),c=e.enter("autolinkProtocol"),open};function open(t){return i(t)?(e.consume(t),l=1,schemeOrEmailAtext):a(t)?emailAtext(t):n(t)}function schemeOrEmailAtext(e){return 43===e||45===e||46===e||o(e)?schemeInsideOrEmailAtext(e):64===e||a(e)?emailAtext(e):n(e)}function schemeInsideOrEmailAtext(t){return 58===t?(e.consume(t),urlInside):l++<32&&(43===t||46===t||45===t||o(t))?(e.consume(t),schemeInsideOrEmailAtext):64===t||a(t)?emailAtext(t):n(t)}function urlInside(t){return 62===t?(e.exit("autolinkProtocol"),end(t)):32===t||60===t||s(t)?n(t):(e.consume(t),urlInside)}function emailAtext(t){return 64===t?(e.consume(t),l=0,emailAtSignOrDot):a(t)?(e.consume(t),emailAtext):n(t)}function emailAtSignOrDot(e){return o(e)?emailLabel(e):n(e)}function emailLabel(t){return 46===t?(e.consume(t),l=0,emailAtSignOrDot):62===t?(c.type="autolinkEmail",e.exit("autolinkEmail"),end(t)):emailDashState(t)}function emailDashState(t){return l<63&&45===t?(e.consume(t),l++,emailDashState):l<63&&o(t)?(e.consume(t),l++,emailLabel):n(t)}function end(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}};var i=n(8177),o=n(2778),a=n(9841),s=n(1016)},4213(e,t,n){t.tokenize=function tokenizeBlockQuoteStart(e,t,n){var o=this;return function start(t){if(62!==t)return n(t);o.containerState.started||(e.enter("blockQuote"),o.containerState.started=!0);return e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),after};function after(n){return i(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},t.continuation={tokenize:function tokenizeBlockQuoteContinuation(e,n,i){return e.attempt(o("linePrefix",4),e.attempt(t,n,i))}},t.exit=function exit(e){e.exit("blockQuote")};var i=n(5009),o=n(5635)},6744(e,t,n){t.tokenize=function tokenizeCharacterEscape(e,t,n){return function start(t){if(92!==t)return n(t);return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),open};function open(o){return i(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}};var i=n(6429)},9414(e,t,n){t.tokenize=function tokenizeCharacterReference(e,t,n){var l="",p=0;return function start(t){if(38!==t)return n(t);return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),open};function open(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),numericStart):o(t)?(e.enter("characterReferenceValue"),named(t)):n(t)}function numericStart(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),hexadecimalStart):a(t)?(e.enter("characterReferenceValue"),decimal(t)):n(t)}function hexadecimalStart(t){return s(t)?(e.enter("characterReferenceValue"),hexadecimal(t)):n(t)}function named(t){return 59===t&&i(l)?end(t):l.length<31&&o(t)?(e.consume(t),l+=c(t),named):n(t)}function hexadecimal(t){return 59===t?end(t):p++<6&&s(t)?(e.consume(t),hexadecimal):n(t)}function decimal(t){return 59===t?end(t):p++<7&&a(t)?(e.consume(t),decimal):n(t)}function end(n){return e.exit("characterReferenceValue"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),e.exit("characterReference"),t}};var i=n(4360),o=n(2778),a=n(1584),s=n(8144),c=n(7325)},5610(e,t,n){t.tokenize=function tokenizeCodeFenced(e,t,n){var c,l=this,p=a(this.events),h={tokenize:function tokenizeClosingFence(e,t,n){var o=0;return e.attempt(s("linePrefix",4),closingPrefixAfter);function closingPrefixAfter(t){return t===c?(e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),closingSequence(t)):n(t)}function closingSequence(t){return t===c?(e.consume(t),o++,closingSequence):o<d?n(t):(e.exit("codeFencedFenceSequence"),e.attempt(s("whitespace"),closingSequenceEnd)(t))}function closingSequenceEnd(o){return null===o||i(o)?(e.exit("codeFencedFence"),t(o)):n(o)}},partial:!0},d=0;return function start(t){if(96!==t&&126!==t)return n(t);return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,sequenceOpen(t)};function sequenceOpen(t){return t===c?(e.consume(t),d++,sequenceOpen):d<3?n(t):(e.exit("codeFencedFenceSequence"),e.attempt(s("whitespace"),infoOpen)(t))}function infoOpen(t){return null===t||i(t)?openAfter(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString").contentType="string",info(t))}function info(t){return null===t||o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e.attempt(s("whitespace"),infoAfter)(t)):t===c&&96===c?n(t):(e.consume(t),info)}function infoAfter(t){return null===t||i(t)?openAfter(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString").contentType="string",meta(t))}function meta(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),openAfter(t)):t===c&&96===c?n(t):(e.consume(t),meta)}function openAfter(n){return e.exit("codeFencedFence"),l.interrupt?t(n):null===n?after(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(h,after,lineStart))}function lineStart(t){return p?e.attempt(s("linePrefix",p+1),afterPrefix)(t):afterPrefix(t)}function afterPrefix(t){return null===t||i(t)?lineEnd(t):(e.enter("codeFlowValue"),lineData(t))}function lineData(t){return null===t||i(t)?(e.exit("codeFlowValue"),lineEnd(t)):(e.consume(t),lineData)}function lineEnd(t){return null===t?after(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(h,after,lineStart))}function after(n){return e.exit("codeFenced"),t(n)}},t.resolve=function resolveCodeFenced(e){var t=e.length,n=-1,i=0;for(;++n<t;)"enter"===e[n][0]&&"codeFencedFence"===e[n][1].type&&i++;if(i<2&&"lineEnding"===e[t-3][1].type)return[].concat(e.slice(0,-3),[e[t-1]],e.slice(-3,-1));return e},t.concrete=!0;var i=n(1073),o=n(4056),a=n(9790),s=n(5635)},6582(e,t,n){t.tokenize=function tokenizeCodeIndented(e,t,n){var l,p=this;return e.attempt(s("linePrefix",5),afterPrefix);function afterPrefix(t){return null===t||i(t)?lineEnd(t):a(p.events)<4?end(t):(e.enter("codeFlowValue"),content(t))}function content(t){return null===t||i(t)?(e.exit("codeFlowValue"),lineEnd(t)):(e.consume(t),o(t)||(l=!0),content)}function lineEnd(t){return l&&null!==t?e.check(c,continued,end):end(t)}function continued(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(s("linePrefix",5),afterPrefix)}function end(e){return(l?t:n)(e)}},t.resolve=function resolveCodeIndented(e,t){var n,i,o,a=e.length;for(;a--;)if("lineEnding"===(i=e[a][1]).type)(n=i).type="lineEndingBlank";else if("lineEndingBlank"!==i.type&&"linePrefix"!==i.type)break;n&&(n.type="lineEnding");return o={type:"codeIndented",start:e[0][1].start,end:i.end},[].concat([["enter",o,t]],e.slice(0,a+1),[["exit",o,t]],e.slice(a+1))};var i=n(1073),o=n(5009),a=n(9790),s=n(5635),c={tokenize:function tokenizeContinuedIndent(e,t,n){var o=this;return e.attempt(s("linePrefix",5),function afterPrefix(c){if(i(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(s("linePrefix",5),afterPrefix);return a(o.events)<4?n(c):t(c)})},partial:!0}},8806(e,t,n){t.tokenize=function tokenizeCodeText(e,t,n){var o,a,s=this,c=0;return function start(t){if(96!==t||96===s.previous&&"characterEscape"!==s.events[s.events.length-1][1].type)return n(t);return e.enter("codeText"),e.enter("codeTextSequence"),openingSequence(t)};function openingSequence(t){return 96===t?(e.consume(t),c++,openingSequence):(e.exit("codeTextSequence"),gap(t))}function gap(t){return null===t?n(t):96===t?(a=e.enter("codeTextSequence"),o=0,closingSequence(t)):i(t)?(e.enter("codeTextPaddingLineEnding"),e.consume(t),e.exit("codeTextPaddingLineEnding"),gap):32===t?(e.enter("codeTextPaddingWhitespace"),e.consume(t),e.exit("codeTextPaddingWhitespace"),gap):(e.enter("data"),data(t))}function data(t){return null===t||32===t||96===t||i(t)?(e.exit("data"),gap(t)):(e.consume(t),data)}function closingSequence(n){return 96===n?(e.consume(n),o++,closingSequence):o===c?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="data",data(n))}},t.resolve=function resolveCodeText(e){var t,n,i=e.length-4,o=3,a=e[i][1],s=e[o][1];if(!("codeTextPaddingLineEnding"!==s.type&&"codeTextPaddingWhitespace"!==s.type||"codeTextPaddingLineEnding"!==a.type&&"codeTextPaddingWhitespace"!==a.type))for(n=o;++n<i;)if("data"===e[n][1].type){o+=2,i-=2;break}n=o-1;for(;++n<i;)"codeTextPaddingLineEnding"===(t=e[n][1]).type?t.type="lineEnding":"codeTextPaddingWhitespace"===t.type&&(t.type="data");return e};var i=n(1073)},8032(e,t,n){t.tokenize=function tokenizeDefinition(e,t,n){var c,d=e.attempt(l("whitespace"),function after(i){if(null===i||o(i))return e.exit("definition"),t(i);return n(i)}),f=e.attempt(h,d,d),g=0,x=0;return function start(t){return 91!==t?n(t):(e.enter("definition"),e.enter("definitionLabel"),e.enter("definitionLabelMarker"),e.consume(t),e.exit("definitionLabelMarker"),e.enter("definitionLabelString"),atBreak)};function atBreak(t){return null===t||91===t||x>999?n(t):93===t?c?(e.exit("definitionLabelString"),e.enter("definitionLabelMarker"),e.consume(t),e.exit("definitionLabelMarker"),e.exit("definitionLabel"),labelAfter):n(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),x++,atBreak):(e.enter("chunkString").contentType="string",label(t))}function label(t){return null===t||91===t||93===t||x>999||o(t)?(e.exit("chunkString"),atBreak(t)):(s(t)||(c=!0),x++,e.consume(t),92===t?labelEscape:label)}function labelEscape(t){return 92===t||91===t||93===t?(e.consume(t),x++,label):label(t)}function labelAfter(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),between):n(t)}function between(t){return 60===t?(e.enter("definitionDestination"),e.enter("definitionDestinationLiteral"),e.enter("definitionDestinationMarker"),e.consume(t),e.exit("definitionDestinationMarker"),destinationEnclosedBefore):a(t)?e.attempt(p,between)(t):i(t)?n(t):(e.enter("definitionDestination"),e.enter("definitionDestinationRaw"),e.enter("definitionDestinationString"),e.enter("chunkString").contentType="string",e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationEnclosedBefore(t){return 62===t?(e.enter("definitionDestinationMarker"),e.consume(t),e.exit("definitionDestinationMarker"),e.exit("definitionDestinationLiteral"),e.exit("definitionDestination"),f):null===t||o(t)?n(t):(e.enter("definitionDestinationString"),e.enter("chunkString").contentType="string",e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosed(t){return 62===t?(e.exit("chunkString"),e.exit("definitionDestinationString"),destinationEnclosedBefore(t)):null===t||o(t)?n(t):(e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosedEscape(t){return 60===t||62===t||92===t?(e.consume(t),destinationEnclosed):destinationEnclosed(t)}function destinationRaw(t){return 40===t?(e.consume(t),g++,destinationRaw):41===t?g?(e.consume(t),g--,destinationRaw):n(t):null===t||a(t)?g?n(t):(e.exit("chunkString"),e.exit("definitionDestinationString"),e.exit("definitionDestinationRaw"),e.exit("definitionDestination"),f(t)):i(t)?n(t):(e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationRawEscape(t){return 40===t||41===t||92===t?(e.consume(t),destinationRaw):destinationRaw(t)}},t.resolve=function resolveDefinition(e,t){var n,i=e.length,o=-1;for(;++o<i;)"enter"===e[o][0]&&"definitionLabelString"===e[o][1].type&&(n=c(t.sliceSerialize(e[o][1])),t.parser.defined.indexOf(n)<0&&t.parser.defined.push(n));return e};var i=n(1016),o=n(1073),a=n(4056),s=n(5009),c=n(1303),l=n(5635),p=n(4366),h={tokenize:function tokenizeTitle(e,t,n){var i;return function start(t){return a(t)?e.attempt(p,before)(t):n(t)};function before(t){return 34===t||39===t||40===t?(e.enter("definitionTitle"),e.enter("definitionTitleMarker"),e.consume(t),e.exit("definitionTitleMarker"),i=40===t?41:t,atFirstBreak):n(t)}function atFirstBreak(t){return t===i?atMarker(t):(e.enter("definitionTitleString"),atBreak(t))}function atBreak(t){return null===t?n(t):t===i?(e.exit("definitionTitleString"),atMarker(i)):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),atBreak):(e.enter("chunkString").contentType="string",e.consume(t),92===t?escape:data)}function data(t){return null===t||t===i||o(t)?(e.exit("chunkString"),atBreak(t)):(e.consume(t),92===t?escape:data)}function escape(t){return t===i||40===t||92===t?(e.consume(t),data):data(t)}function atMarker(t){return e.enter("definitionTitleMarker"),e.consume(t),e.exit("definitionTitleMarker"),e.exit("definitionTitle"),e.attempt(l("whitespace"),after)}function after(e){return null===e||o(e)?t(e):n(e)}},partial:!0}},8836(e,t,n){t.tokenize=function tokenizeHardBreakEscape(e,t,n){return function start(t){if(92!==t)return n(t);return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),open};function open(o){return i(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}};var i=n(1073)},8789(e,t,n){t.tokenize=function tokenizeAtxHeading(e,t,n){var c=this,l=0;return function start(t){if(35!==t)return n(t);return e.enter("atxHeading"),e.enter("atxHeadingSequence"),fenceOpenInside(t)};function fenceOpenInside(i){return l++<6&&35===i?(e.consume(i),fenceOpenInside):null===i||o(i)?(e.exit("atxHeadingSequence"),c.interrupt?t(i):headingBreak(i)):n(i)}function headingBreak(n){return 35===n?(e.enter("atxHeadingSequence"),sequence(n)):null===n||i(n)?(e.exit("atxHeading"),t(n)):a(n)?e.attempt(s("whitespace"),headingBreak)(n):(e.enter("atxHeadingText"),data(n))}function sequence(t){return 35!==t?(e.exit("atxHeadingSequence"),headingBreak(t)):(e.consume(t),sequence)}function data(t){return null===t||35===t||o(t)?(e.exit("atxHeadingText"),headingBreak(t)):(e.consume(t),data)}},t.resolve=function resolveAtxHeading(e,t){var n,i,o,a=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);a-2>s&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(s===a-1||a-4>s&&"whitespace"===e[a-2][1].type)&&(a-=s+1===a?2:4);o=e.slice(0,s),a>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[a][1].end},i={type:"chunkText",start:e[s][1].start,end:e[a][1].end,contentType:"text"},o=o.concat([["enter",n,t]],[["enter",i,t]],[["exit",i,t]],[["exit",n,t]]));return o.concat(e.slice(a+1))};var i=n(1073),o=n(4056),a=n(5009),s=n(5635)},3085(e,t,n){t.tokenize=function tokenizeHtml(e,t,n){var f,x,m,y,S,T=this;return function start(t){if(60!==t)return n(t);return e.enter("htmlFlow"),e.enter("data"),e.consume(t),open};function open(o){return 33===o?(e.consume(o),declarationStart):47===o?(e.consume(o),tagCloseStart):63===o?(e.consume(o),f=3,T.interrupt?t:continuationDeclarationInside):i(o)?(e.consume(o),m=l(d(o)),x=!0,tagName):n(o)}function declarationStart(o){return 45===o?(e.consume(o),f=2,commentOpenInside):91===o?(e.consume(o),f=5,m="CDATA[",y=0,cdataOpenInside):i(o)?(e.consume(o),f=4,T.interrupt?t:continuationDeclarationInside):n(o)}function commentOpenInside(i){return 45===i?(e.consume(i),T.interrupt?t:continuationDeclarationInside):n(i)}function cdataOpenInside(i){return i===m.charCodeAt(y++)?(e.consume(i),y===m.length?T.interrupt?t:continuation:cdataOpenInside):n(i)}function tagCloseStart(t){return i(t)?(e.consume(t),m=l(d(t)),tagName):n(t)}function tagName(i){var a,c;return null===i||62===i||47===i||s(i)?(a=h.indexOf(m)>-1,c=p.indexOf(m)>-1,a&&x&&47!==i?(f=1,T.interrupt?t(i):continuation(i)):c?(f=6,47===i?(e.consume(i),basicSelfClosing):T.interrupt?t(i):continuation(i)):T.interrupt?n(i):(f=7,completeAttributeNameBefore(i))):45===i||o(i)?(e.consume(i),m+=l(d(i)),tagName):n(i)}function basicSelfClosing(i){return 62===i?(e.consume(i),T.interrupt?t:continuation):n(i)}function completeAttributeNameBefore(t){if(x){if(47===t)return e.consume(t),completeSelfClosing;if(58===t||95===t||i(t))return e.consume(t),completeAttributeName}return 62===t?(e.consume(t),completeAfter):c(t)?(e.consume(t),completeAttributeNameBefore):n(t)}function completeAttributeName(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),completeAttributeName):completeAttributeNameAfter(t)}function completeAttributeNameAfter(t){return 61===t?(e.consume(t),completeAttributeValueBefore):c(t)?(e.consume(t),completeAttributeNameAfter):completeAttributeNameBefore(t)}function completeAttributeValueBefore(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),S=t,completeAttributeValueQuoted):c(t)?(e.consume(t),completeAttributeValueBefore):(S=void 0,completeAttributeValueUnquoted(t))}function completeAttributeValueQuoted(t){return t===S?(e.consume(t),completeAttributeValueQuotedAfter):null===t||a(t)?n(t):(e.consume(t),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||s(t)?completeAttributeNameAfter(t):(e.consume(t),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(e){return 47===e||62===e||c(e)?completeAttributeNameBefore(e):n(e)}function completeSelfClosing(t){return 62===t?(e.consume(t),completeAfter):n(t)}function completeAfter(e){return null===e||s(e)?continuation(e):n(e)}function continuation(t){return 1===f&&60===t?(e.consume(t),continuationRawTagOpen):2===f&&45===t?(e.consume(t),continuationCommentInside):3===f&&63===t?(e.consume(t),continuationDeclarationInside):4===f&&62===t?(e.consume(t),continuationClose):5===f&&93===t?(e.consume(t),continuationCharacterDataInside):6!==f&&7!==f||!a(t)?null===t||a(t)?continuationAtLineEnding(t):(e.consume(t),continuation):e.check(g,continuationClose,continuationAtLineEnding)}function continuationAtLineEnding(t){return e.exit("data"),htmlContinueStart(t)}function htmlContinueStart(t){return null===t?done(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),htmlContinueStart):(e.enter("data"),continuation(t))}function continuationCommentInside(t){return 45===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationRawTagOpen(t){return 47===t?(e.consume(t),m="",continuationRawEndTag):continuation(t)}function continuationRawEndTag(t){return 62===t&&h.indexOf(m)>-1?(e.consume(t),continuationClose):m.length<6&&i(t)?(e.consume(t),m+=l(d(t)),continuationRawEndTag):continuation(t)}function continuationCharacterDataInside(t){return 93===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationDeclarationInside(t){return 62===t?(e.consume(t),continuationClose):continuation(t)}function continuationClose(t){return null===t||a(t)?(e.exit("data"),done(t)):(e.consume(t),continuationClose)}function done(n){return e.exit("htmlFlow"),t(n)}},t.resolveTo=function resolveToHtml(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},t.concrete=!0;var i=n(8177),o=n(2778),a=n(1073),s=n(4056),c=n(5009),l=n(7325),p=n(105),h=n(4765),d=n(2801),f=n(7774),g={tokenize:function tokenizeNextBlank(e,t,n){return function start(i){return e.exit("data"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.check(f,t,n)}},partial:!0}},2678(e,t,n){t.tokenize=function tokenizeHtml(e,t,n){var p,h,d,f;return function start(t){return 60!==t?n(t):(e.enter("htmlText"),e.enter("data"),e.consume(t),open)};function open(t){return 33===t?(e.consume(t),declarationOpen):47===t?(e.consume(t),tagCloseStart):63===t?(e.consume(t),instruction):s(t)?(e.consume(t),tagOpen):n(t)}function declarationOpen(t){return 45===t?(e.consume(t),commentOpen):91===t?(e.consume(t),h="CDATA[",d=0,cdataOpen):s(t)?(e.consume(t),declaration):n(t)}function commentOpen(t){return 45===t?(e.consume(t),commentStart):n(t)}function commentStart(t){return null===t||62===t?n(t):45===t?(e.consume(t),commentStartDash):comment(t)}function commentStartDash(e){return null===e||62===e?n(e):comment(e)}function comment(t){return null===t?n(t):45===t?(e.consume(t),commentClose):i(t)?(f=comment,atLineEnding(t)):(e.consume(t),comment)}function commentClose(t){return 45===t?(e.consume(t),end):comment(t)}function cdataOpen(t){return t===h.charCodeAt(d++)?(e.consume(t),d===h.length?cdata:cdataOpen):n(t)}function cdata(t){return null===t?n(t):93===t?(e.consume(t),cdataClose):(e.consume(t),cdata)}function cdataClose(t){return 93===t?(e.consume(t),cdataEnd):cdata(t)}function cdataEnd(t){return 62===t?end(t):93===t?(e.consume(t),cdataEnd):cdata(t)}function declaration(t){return null===t||62===t?end(t):(e.consume(t),declaration)}function instruction(t){return null===t?n(t):63===t?(e.consume(t),instructionClose):(e.consume(t),instruction)}function instructionClose(e){return 62===e?end(e):instruction(e)}function tagCloseStart(t){return s(t)?(e.consume(t),tagClose):n(t)}function tagClose(t){return 45===t||c(t)?(e.consume(t),tagClose):tagCloseBetween(t)}function tagCloseBetween(t){return i(t)?(f=tagCloseBetween,atLineEnding(t)):a(t)?(e.consume(t),tagCloseBetween):end(t)}function tagOpen(t){return 47===t||62===t||o(t)?tagOpenBetween(t):45===t||c(t)?(e.consume(t),tagOpen):n(t)}function tagOpenBetween(t){return 47===t?(e.consume(t),end):58===t||95===t||s(t)?(e.consume(t),tagOpenAttributeName):i(t)?(f=tagOpenBetween,atLineEnding(t)):a(t)?(e.consume(t),tagOpenBetween):end(t)}function tagOpenAttributeName(t){return 45===t||46===t||58===t||95===t||c(t)?(e.consume(t),tagOpenAttributeName):tagOpenAttributeNameAfter(t)}function tagOpenAttributeNameAfter(t){return 61===t?(e.consume(t),tagOpenAttributeValueBefore):i(t)?(f=tagOpenAttributeNameAfter,atLineEnding(t)):a(t)?(e.consume(t),tagOpenAttributeNameAfter):tagOpenBetween(t)}function tagOpenAttributeValueBefore(t){return 34===t||39===t?(e.consume(t),p=t,tagOpenAttributeValueQuoted):60===t||61===t||62===t||96===t?n(t):i(t)?(f=tagOpenAttributeValueBefore,atLineEnding(t)):a(t)?(e.consume(t),tagOpenAttributeValueBefore):(e.consume(t),p=void 0,tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(t){return null===t?n(t):t===p?(e.consume(t),tagOpenAttributeValueQuotedAfter):i(t)?(f=tagOpenAttributeValueQuoted,atLineEnding(t)):(e.consume(t),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueQuotedAfter(e){return 62===e||47===e||o(e)?tagOpenBetween(e):n(e)}function tagOpenAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||o(t)?tagOpenBetween(t):(e.consume(t),tagOpenAttributeValueUnquoted)}function atLineEnding(t){return e.exit("data"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(l("linePrefix",4),function afterPrefix(t){return e.enter("data"),f(t)})}function end(i){return 62===i?(e.consume(i),e.exit("data"),e.exit("htmlText"),t):n(i)}};var i=n(1073),o=n(4056),a=n(5009),s=n(8177),c=n(2778),l=n(5635)},6611(e,t,n){t.tokenize=function tokenizeLabelEnd(e,t,n){var i,o,a=this;return function start(t){var c,l=a.events.length;for(;l--;)if(!a.events[l][1]._used&&("labelImage"===a.events[l][1].type||"labelLink"===a.events[l][1].type)){i=a.events[l][1];break}if(93!==t||!i)return n(t);if(i._inactive)return balancedButNok(t);return c=e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o=s(a.sliceSerialize({start:i.end,end:c.start})),afterLabelEnd};function afterLabelEnd(n){return 40===n?e.attempt(d,t,maybeShortcut)(n):91===n?e.attempt(f,t,maybeCollapsed)(n):maybeShortcut(n)}function maybeCollapsed(n){return a.parser.defined.indexOf(o)<0?balancedButNok(n):e.attempt(g,t,balancedButNok)(n)}function maybeShortcut(e){return a.parser.defined.indexOf(o)<0?balancedButNok(e):t(e)}function balancedButNok(e){return i.type="data",i._wasLabel=!0,n(e)}},t.resolveTo=function resolveToLabelEnd(e,t){var n,i,o,a,s,p,h,d,f=e.length;for(;f--;)a=e[f][1],"enter"===e[f][0]?p?"link"===s&&"labelLink"===a.type&&(a._inactive=!0):"labelImage"!==a.type&&"labelLink"!==a.type||a._inactive||a._used||(p=f,s="labelLink"===a.type?"link":"image",d="labelLink"===a.type?0:2):h||a._used||"labelEnd"!==a.type||(h=f);return n={type:s,start:c(e[p][1].start),end:c(e[e.length-1][1].end)},i={type:"label",start:c(e[p][1].start),end:c(e[h][1].end)},o={type:"labelText",start:c(e[p+d+2][1].end),end:c(e[h-2][1].start)},[].concat(e.slice(0,p),[["enter",n,t],["enter",i,t]],e.slice(p+1,p+d+3),[["enter",o,t]],l(e.slice(p+d+4,h-3),t),[["exit",o,t]],e.slice(h-2,h),[["exit",i,t]],e.slice(h+1),[["exit",n,t]])},t.resolveAll=function resolveAllLabelEnd(e){var t,n=e.length,i=-1;for(;++i<n;)t=e[i][1],"enter"===e[i][0]&&(!t._used&&("labelImage"===t.type||"labelLink"===t.type||"labelEnd"===t.type)||"data"===t.type&&t._wasLabel)&&(t.type="data",e.splice(i+1,2),n-=2);return e};var i=n(1016),o=n(4056),a=n(1073),s=n(1303),c=n(4896),l=n(6815).resolveAll,p=n(4366),h=n(5635),d={tokenize:function tokenizeResource(e,t,n){var s,c=0;return function start(t){return 40!==t?n(t):(e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),e.attempt(p,open))};function open(t){return 41===t||i(t)?end(t):(e.enter("resourceDestination"),60===t?(e.enter("resourceDestinationLiteral"),e.enter("resourceDestinationLiteralMarker"),e.consume(t),e.exit("resourceDestinationLiteralMarker"),destinationEnclosedBefore):(e.enter("resourceDestinationRaw"),e.enter("resourceDestinationString"),e.enter("chunkString").contentType="string",destinationRaw(t)))}function destinationEnclosedBefore(t){return 62===t?destinationEnclosedEnd(t):(e.enter("resourceDestinationString"),e.enter("chunkString").contentType="string",destinationEnclosed(t))}function destinationEnclosed(t){return null===t||60===t||a(t)?n(t):62===t?(e.exit("chunkString"),e.exit("resourceDestinationString"),destinationEnclosedEnd(t)):(e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosedEscape(t){return 60===t||62===t||92===t?(e.consume(t),destinationEnclosed):destinationEnclosed(t)}function destinationEnclosedEnd(t){return e.enter("resourceDestinationLiteralMarker"),e.consume(t),e.exit("resourceDestinationLiteralMarker"),e.exit("resourceDestinationLiteral"),e.exit("resourceDestination"),destinationEnclosedAfter}function destinationEnclosedAfter(t){return o(t)?e.attempt(p,between)(t):end(t)}function destinationRaw(t){return 40===t?++c>3?n(t):(e.consume(t),destinationRaw):41===t?c?(e.consume(t),c--,destinationRaw):(e.exit("chunkString"),e.exit("resourceDestinationString"),e.exit("resourceDestinationRaw"),e.exit("resourceDestination"),end(t)):o(t)?(e.exit("chunkString"),e.exit("resourceDestinationString"),e.exit("resourceDestinationRaw"),e.exit("resourceDestination"),e.attempt(p,between)(t)):i(t)?n(t):(e.consume(t),92===t?destinationRawEscape:destinationRaw)}function destinationRawEscape(t){return 40===t||41===t||92===t?(e.consume(t),destinationRaw):destinationRaw(t)}function between(t){return 34===t||39===t||40===t?(e.enter("resourceTitle"),e.enter("resourceTitleMarker"),e.consume(t),e.exit("resourceTitleMarker"),s=40===t?41:t,atFirstTitleBreak):end(t)}function atFirstTitleBreak(t){return t===s?atTitleMarker(t):(e.enter("resourceTitleString"),atTitleBreak(t))}function atTitleBreak(t){return null===t?n(t):t===s?(e.exit("resourceTitleString"),atTitleMarker(t)):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(h("linePrefix",4),atTitleBreak)):(e.enter("chunkString").contentType="string",title(t))}function title(t){return null===t||t===s||a(t)?(e.exit("chunkString"),atTitleBreak(t)):(e.consume(t),92===t?titleEscape:title)}function titleEscape(t){return t===s||92===t?(e.consume(t),title):title(t)}function atTitleMarker(t){return e.enter("resourceTitleMarker"),e.consume(t),e.exit("resourceTitleMarker"),e.exit("resourceTitle"),e.attempt(p,end)}function end(i){return 41!==i?n(i):(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t)}}},f={tokenize:function tokenizeFullReference(e,t,n){var i,a=this,c=0;return function start(t){return 91!==t?n(t):(e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),e.enter("referenceString"),e.enter("chunkString").contentType="string",referenceData)};function referenceData(l){var p;return null===l||91===l||c++>999?n(l):93===l?i?(e.exit("chunkString"),p=e.exit("referenceString"),a.parser.defined.indexOf(s(a.sliceSerialize(p)))<0?n(l):function end(n){return e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t}(l)):n(l):(e.consume(l),o(l)||(i=!0),92===l?referenceEscape:referenceData)}function referenceEscape(t){return 92===t||91===t||93===t?(e.consume(t),c++,referenceData):referenceData(t)}}},g={tokenize:function tokenizeCollapsedReference(e,t,n){return function start(t){return 91!==t?n(t):(e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),open)};function open(i){return 93!==i?n(i):(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t)}}}},2302(e,t,n){t.tokenize=function tokenizelabelImage(e,t,n){return function start(t){if(33!==t)return n(t);return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),open};function open(i){return 91===i?(e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelImage"),t):n(i)}},t.resolveAll=n(6611).resolveAll},7983(e,t,n){t.tokenize=function tokenizelabelLink(e,t,n){return function start(i){if(91!==i)return n(i);return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),t}},t.resolveAll=n(6611).resolveAll},9177(e,t,n){t.tokenize=function tokenizeListStart(e,t,n){var c,h,d=this;return function start(t){if(h=a(d.events),t===d.containerState.marker||!d.containerState.marker&&(42===t||43===t||45===t))return e.check(s,n,unordered)(t);if(o(t)&&(!d.containerState.marker||"listOrdered"===d.containerState.type))return function ordered(t){if(!d.containerState.marker&&d.interrupt&&49!==t)return n(t);d.containerState.marker||(d.containerState.type="listOrdered",e.enter(d.containerState.type));return c=e.enter("listItemPrefix"),e.enter("listItemValue"),e.consume(t),c._size=1,d.interrupt?afterValue:inside}(t);return n(t)};function unordered(t){return d.containerState.marker||(d.containerState.type="listUnordered",e.enter(d.containerState.type)),(c=e.enter("listItemPrefix"))._size=0,atMarker(t)}function inside(t){return c._size<9&&o(t)?(e.consume(t),c._size++,inside):afterValue(t)}function afterValue(t){return e.exit("listItemValue"),41===t||46===t?atMarker(t):n(t)}function atMarker(t){return d.containerState.marker||(d.containerState.marker=t),d.containerState.marker===t?(e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),c._size++,e.check(l,onBlank,e.attempt(p,endOfPrefix,otherPrefix))):n(t)}function onBlank(e){return d.interrupt?n(e):(d.containerState.initialBlankLine=!0,h++,endOfPrefix(e))}function otherPrefix(t){return i(t)?(e.enter("listItemPrefixWhitespace")._size=1,e.consume(t),e.exit("listItemPrefixWhitespace"),endOfPrefix):n(t)}function endOfPrefix(n){return c._size+=a(d.events,"listItemPrefixWhitespace"),d.containerState.size=h+c._size,e.exit("listItemPrefix"),t(n)}},t.continuation={tokenize:function tokenizeListContinuation(e,t,n){var o=this;return this.containerState._closeFlow=void 0,e.check(l,function onBlank(e){o.containerState.initialBlankLine&&(o.containerState.furtherBlankLines=!0);return t(e)},function notBlank(a){if(o.containerState.furtherBlankLines||!i(a))return o.containerState.initialBlankLine=void 0,o.containerState.furtherBlankLines=void 0,e.attempt(d,onItem,n)(a);return o.containerState.initialBlankLine=void 0,o.containerState.furtherBlankLines=void 0,e.attempt(h,t,e.attempt(d,onItem,n))(a)});function onItem(e){return o.containerState._closeFlow=!0,t(e)}}},t.exit=function tokenizeListEnd(e){e.exit(this.containerState.type)};var i=n(5009),o=n(1584),a=n(9790),s=n(4104),c=n(5635),l=n(7774),p={tokenize:function tokenizeListItemPrefixWhitespace(e,t,n){var o=this;return e.attempt(c("listItemPrefixWhitespace",5),function afterPrefix(e){return i(e)||!a(o.events,"listItemPrefixWhitespace")?n(e):t(e)})},partial:!0},h={tokenize:function tokenizeIndent(e,t,n){var i=this;return e.attempt(c("listItemIndent",i.containerState.size+1),function afterPrefix(e){return a(i.events,"listItemIndent")===i.containerState.size?t(e):n(e)})},partial:!0},d={tokenize:function tokenizeNextItem(e,n,i){return e.attempt(c("linePrefix",4),e.attempt(t,n,i))},partial:!0}},7774(e,t,n){t.tokenize=function tokenizeBlankLine(e,t,n){return e.attempt(o("linePrefix"),function afterWhitespace(e){return null===e||i(e)?t(e):n(e)})},t.partial=!0;var i=n(1073),o=n(5635)},4366(e,t,n){t.tokenize=function tokenizeSpaceOrLineEnding(e,t){var n;return start;function start(a){return i(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),start):o(a)?((n=e.enter("whitespace"))._size=0,whitespace(a)):t(a)}function whitespace(t){return o(t)?(e.consume(t),n._size++,whitespace):(e.exit("whitespace"),start(t))}},t.partial=!0;var i=n(1073),o=n(5009)},5635(e,t,n){e.exports=function createSpaceTokenizer(e,t){var n=(t||1/0)-1;return{tokenize:function tokenizeSpace(t,o){var a;return start;function start(n){return i(n)?((a=t.enter(e))._size=0,prefix(n)):o(n)}function prefix(s){return a._size<n&&i(s)?(a._size++,t.consume(s),prefix):(t.exit(e),o(s))}},partial:!0}};var i=n(5009)},823(e,t,n){t.tokenize=function tokenizeSetextUnderline(e,t,n){var o,s=this;return function start(t){var i,a,c=s.events.length;for(;c--;)if("lineEnding"!==(a=s.events[c][1]).type&&"linePrefix"!==a.type&&"content"!==a.type){i="paragraph"===a.type;break}if(s.lazy||!i&&!s.interrupt||45!==t&&61!==t)return n(t);return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,closingSequence(t)};function closingSequence(t){return t===o?(e.consume(t),closingSequence):(e.exit("setextHeadingLineSequence"),e.attempt(a("lineSuffix"),closingSequenceEnd)(t))}function closingSequenceEnd(o){return null===o||i(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},t.resolveTo=function resolveToSetextUnderline(e,t){var n,i,a,s,c,l,p,h=e.length;for(;h--;)if(l=e[h][1],"enter"===e[h][0]){if("content"===l.type){c=l,n=h;break}"paragraph"===l.type&&(i=h)}else"content"===l.type&&(a=h),s||"definition"!==l.type||(s=h);p={type:"setextHeading",start:o(e[i][1].start),end:o(e[e.length-1][1].end)},e[i][1].type="setextHeadingText",e.push(["exit",p,t]),e.splice(a,1),s?(e.splice(i,0,["enter",p,t]),e.splice(s+1,0,["exit",c,t]),c.end=o(e[s][1].end)):e[n][1]=p;return e};var i=n(1073),o=n(4896),a=n(5635)},4104(e,t,n){t.tokenize=function tokenizeThematicBreak(e,t,n){var s,c=0;return function start(t){if(42!==t&&45!==t&&95!==t)return n(t);return e.enter("thematicBreak"),s=t,atBreak(t)};function atBreak(l){return l===s?(e.enter("thematicBreakSequence"),sequence(l)):o(l)?e.attempt(a("whitespace"),atBreak)(l):c<3||null!==l&&!i(l)?n(l):(e.exit("thematicBreak"),t(l))}function sequence(t){return t===s?(e.consume(t),c++,sequence):(e.exit("thematicBreakSequence"),atBreak(t))}};var i=n(1073),o=n(5009),a=n(5635)},3664(e,t,n){t.tokenize=function tokenizeWhitespace(e,t,n){var a;return function start(c){if(o(c))return(a=e.enter("whitespace"))._size=0,whitespace(c);i(c)||n(c);return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(s("linePrefix"),t)};function whitespace(n){return null===n?(e.exit("whitespace"),t(n)):o(n)?(e.consume(n),a._size++,-2===n&&(a._tabs=!0),whitespace):i(n)?(e.exit("whitespace"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(s("linePrefix"),t)):(a.type="data",e.exit("data"),t(n))}},t.resolve=function resolveWhitespace(e,t){var n,i=e[0][1],o=e.length>2&&e[2][1],s=e;"whitespace"===i.type&&(!i._tabs&&o&&"lineEnding"===o.type&&i._size>=2?(n={type:"hardBreakTrailing",start:a(i.start),end:a(o.start)},s=[].concat([["enter",n,t]],e.slice(0,2),[["exit",n,t]],e.slice(2))):i.type="lineSuffix");return s};var i=n(1073),o=n(5009),a=n(4896),s=n(5635)},8914(e,t,n){e.exports=function classifyCharacter(e){if(null===e||i(e)||a(e))return 1;if(o(e))return 2};var i=n(4056),o=n(3061),a=n(4012)},8758(e,t,n){e.exports=function createTokenizer(e,t,n){var p,h=n?i({},n):{line:1,column:1,offset:0},d=[],f=[],g=[],x=0,m=-1,y=[],S={consume:function consume(e){o(e)?(h.line++,h.line in d?(h.column=d[h.line],h.offset+=d[h.line]-1):h.column=1):-1!==e&&h.column++;m<0?x++:m++;m>-1&&m===g[x].length&&(m=-1,x++);-1!==e&&(h.offset+=-3===e?2:1);h._bufferIndex=m,h._index=x,T.previous=e},enter:function enter(e){var t={type:e,start:now()};return T.events.push(["enter",t,T]),y.push(t),t},exit:function exit(e){var t=y.pop();return t.end=now(),T.events.push(["exit",t,T]),t},attempt:constructFactory(function onsuccessfulconstruct(e,t){addResult(e,t.from)}),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0}),lazy:constructFactory(onsuccessfulcheck,{lazy:!0})},T={previous:null,events:[],parser:e,sliceStream:function sliceStream(e){return l(g,e)},sliceSerialize:function sliceSerialize(e){return c(l(g,e))},now,defineSkip:function defineSkip(e){d[e.line]=e.column,1===h.column&&h.line===e.line&&(h.column=e.column,h.offset+=e.column-1)},write:function write(e){var n,i;if(g.push(e),main(),null!==e)return[];addResult(t,0),n=f.length,i=-1;for(;++i<n;)T.events=f[i](T.events,T);return T.events.push(e),T.events}},v=t.tokenize.call(T,S);return h._index=x,h._bufferIndex=m,T;function now(){return s(h)}function main(){for(var e,t;x<g.length;)if("string"==typeof(e=g[x]))for(t=x;x===t&&m<e.length;)m<0&&(m=0),p=e.charCodeAt(m),v=v(p);else v=v(p=e)}function onsuccessfulcheck(e,t){t.restore()}function constructFactory(e,t){return function hook(n,o,s){var c,l,p,f,g;return n.tokenize||"length"in n?handleConstructs(n):function handleHooks(e){if(a.call(n,e))return handleConstructs(n[e])(e);return s(e)};function handleConstructs(e){return p=0,handleConstruct(f=(l="length"in(c=e))?c[p]:c)}function handleConstruct(e){return function start(n){g=function store(){var e=now(),t=x,n=m,i=T.previous,o=T.currentConstruct,a=T.events.length,s=y.concat();return{restore,from:a};function restore(){x=t,(h=e).line in d&&1===h.column&&(h.column=d[h.line],h.offset+=d[h.line]-1),m=n,T.previous=i,T.currentConstruct=o,T.events.length=a,y=s}}(),e.partial||(T.currentConstruct=e);return e.tokenize.call(i({},T,t),S,ok,nok)(n)}}function ok(t){return e(f,g),o}function nok(e){return g.restore(),l&&++p<c.length?handleConstruct(f=c[p]):s}}}function addResult(e,t){e.resolveAll&&f.indexOf(e.resolveAll)<0&&f.push(e.resolveAll),e.resolve&&(T.events=T.events.slice(0,t).concat(e.resolve(T.events.slice(t),T))),e.resolveTo&&(T.events=e.resolveTo(T.events,T))}};var i=n(6891),o=n(1073),a=n(2519),s=n(4896),c=n(1129),l=n(2321)},3890(e){e.exports=function flatMap(e,t,n){var i=e.length,o=-1,a=[];for(;++o<i;)a=a.concat(t(e[o],n));return a}},2801(e){e.exports=function lowercase(e){return e>64&&e<91?e+32:e}},4728(e){e.exports=function movePoint(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},1303(e){e.exports=function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},9790(e){e.exports=function prefixSize(e,t){var n=t||"linePrefix",i=e[e.length-1];return i&&i[1].type===n?i[1]._size:0}},440(e,t,n){e.exports=function safeFromInt(e,t){var n=parseInt(e,t);if(n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111)return"�";return i(n)};var i=n(7325)},1129(e,t,n){e.exports=function serializeChunks(e){var t,n,o,a=e.length,s=-1,c=[];for(;++s<a;){if("string"==typeof(t=e[s]))n=t;else if(-3===t)n="\r\n";else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-2===t)n="\t";else if(-1===t){if(o)continue;n=" "}else n=i(t);o=-2===t,c.push(n)}return c.join("")};var i=n(7325)},4896(e,t,n){e.exports=function shallow(e){return i({},e)};var i=n(6891)},2321(e){e.exports=function sliceChunks(e,t){var n,i=t.start._index,o=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;i===a?n=[e[i].slice(o<0?0:o,s)]:(n=e.slice(i,a),o>-1&&(n[0]=n[0].slice(o)),s>-1&&n.push(e[a].slice(0,s)));return n}},7227(e,t,n){e.exports=function subtokenize(e){var t,n,o,s,c,l,p=-1;for(;++p<e.length&&null!==(n=e[p]);)if("enter"===n[0])(l=n[1]._subevents)?(i.apply(e,[p,2].concat(l)),p+=l.length-1,n[1]._subevents=void 0,t=!0):n[1].contentType&&!n[1]._contentTokenized&&(unravelLinkedTokens(n[1],n[2]),p--);else if("blockQuote"===n[1].type||"listOrdered"===n[1].type||"listUnordered"===n[1].type){for(o=p,s=void 0;o--&&("lineEnding"===(c=e[o])[1].type||"lineEndingBlank"===c[1].type);)"exit"!==c[0]&&(s&&(e[s][1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);if(s){for(o=s;o--&&e[o][1].end.offset>e[s][1].start.offset;)e[o][1].end=a(e[s][1].start);n[1].end=a(e[s][1].start),i.apply(e,[s,p-s+1,n].concat(e.slice(s,p))),p=s}}return{done:!t,events:e}};var i=n(9086),o=n(3890),a=n(4896);function unravelLinkedTokens(e,t){var n,i;e._tokenizer||(i=t.sliceStream(e),e.previous?(n=e.previous._tokenizer).defineSkip(e.start):n=t.parser[e.contentType](e.start),e._tokenizer=n,e.next||(i=i.concat(null)),o(i,n.write)),e._contentTokenized=!0,e.next?unravelLinkedTokens(e.next,t):function divideTokens(e){var t,n,i=e._tokenizer.events,o=(i.pop(),i.length);for(;o--;)"enter"===i[o][0]?n=!0:n&&("codeTextPaddingLineEnding"===i[o][1].type||"lineEnding"===i[o][1].type||"lineEndingBlank"===i[o][1].type||i[o][1]._break)&&(e._subevents=i.slice(o+1,t),e=e.previous,t=o+1);e._subevents=i.slice(0,t)}(e)}},6585(e){var t=1e3,n=60*t,i=60*n,o=24*i,a=7*o,s=365.25*o;function plural(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function parse(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var l=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function fmtLong(e){var a=Math.abs(e);if(a>=o)return plural(e,a,o,"day");if(a>=i)return plural(e,a,i,"hour");if(a>=n)return plural(e,a,n,"minute");if(a>=t)return plural(e,a,t,"second");return e+" ms"}(e):function fmtShort(e){var a=Math.abs(e);if(a>=o)return Math.round(e/o)+"d";if(a>=i)return Math.round(e/i)+"h";if(a>=n)return Math.round(e/n)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4360(e){"use strict";var t;e.exports=function decodeEntity(e){var n,i="&"+e+";";if((t=t||document.createElement("i")).innerHTML=i,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==i&&n}},9089(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuestVM=void 0;const i=n(7007),o=n(6902);class QuestVM extends o.VM{constructor(e,t,n){super({},Object.assign(Object.assign({},n||{}),{emit:t=>{const[n]=o.getStackParams("emit",["string | number"],t);this.eventBus.emit("emit",n),e(n)},response:(e,t,n)=>{const[i,a]=o.getStackParams("response",["number","string"],e),s={response:a,pc:i};this.eventBus.emit("response",s),this.responses.push(s)},getResponse:(e,n,i)=>{i.suspend();const o=this.responses.map((e,t)=>({title:e.response,programCounter:e.pc,id:t})),a=o.map(e=>({title:e.title,id:e.id}));for(;this.responses.length>0;)this.responses.pop();t(a).then(e=>{const t=o.find(t=>t.id===e);if(void 0===t)throw new Error(`Unknown choice ID: ${e}!`);i.stack.push(t.programCounter),i.run()}).catch(e=>{this.eventBus.emit("error",e),this.quit()})},optionEnabled:(e,t,n)=>{console.warn("optionEnabled opcode is deprecated! - do not use!");const[i]=o.getStackParams("optionEnabled",["string"],e),a=`optionEnabled_${i}`;let s=null;void 0===n.context[a]?(n.context[a]=1,s=1):s=n.context[a],e.push(s)},optionDisabled:(e,t,n)=>{console.warn("optionDisabled opcode is deprecated! - do not use!");const[i]=o.getStackParams("optionDisabled",["string"],e),a=`optionEnabled_${i}`;let s=null;void 0===n.context[a]?(n.context[a]=1,s=0):s=1===n.context[a]?0:1,e.push(s)},disableOption:(e,t,n)=>{console.warn("disableOption opcode is deprecated! - do not use!");const[i]=o.getStackParams("disableOption",["string"],e),a=`optionEnabled_${i}`;n.context[a]=0},enableOption:(e,t,n)=>{console.warn("enableOption opcode is deprecated! - do not use!");const[i]=o.getStackParams("enableOption",["string"],e),a=`optionEnabled_${i}`;n.context[a]=1}})),this.responses=[],this.eventBus=new i.EventEmitter}}t.QuestVM=QuestVM},7072(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseMarkdown=t.NoLinkBehaviour=void 0;const o=i(n(6064)),a=i(n(1200)),s=i(n(4460)),c=i(n(1666)),l=i(n(5300)),p=i(n(6311)),h=i(n(5223)),d=i(n(2076));n(160);const f=n(6902);var g,x;!function(e){e[e.EXIT=0]="EXIT",e[e.LOOPBACK_TO_OPTIONS=1]="LOOPBACK_TO_OPTIONS"}(g=t.NoLinkBehaviour||(t.NoLinkBehaviour={})),function(e){e[e.CLASSIC=0]="CLASSIC",e[e.END_OF_LINE=1]="END_OF_LINE"}(x||(x={})),t.parseMarkdown=function parseMarkdown(e){const t=o.default(e),n=new f.Tokenizer,i=d.default("questmarkDocument",{options:{}},[]);let m=0,y=g.LOOPBACK_TO_OPTIONS,S=!1,T=x.CLASSIC,v=0,C=!1;p.default(t,"heading",(e,n)=>{if(n.length>1)return;let o="";p.default(e,"text",e=>{o=`${o} ${e.value}`}),o=o.trim();const s=a.default(t,e,"heading"),f=null!==s?l.default(t,e,s):c.default(t,e);"QUESTMARK-OPTIONS-HEADER"===o?i.options=function getQuestmarkOptions(e){let t="";return h.default(d.default("bla",e),"code",e=>{t=`${t} ${e.value}`}),JSON.parse(t.trim())}(f):i.children.push(function createStateNode(e,t){const n=d.default("state",{name:e,options:[]},[]);let i=!1,o=[],a=[];t.forEach(e=>{"list"===e.type&&!1===e.ordered&&(i=!0),i?a.push(e):o.push(e)}),n.children=o,a=a.map(e=>"list"===e.type&&!1===e.ordered?e.children:e).flat(1);let s=null;a=a.map(e=>{if("listItem"===e.type)return s=e,e;s.children.push(e)}).filter(e=>void 0!==e);const c=a.map(e=>{const t=d.default("option",{preconditionChildren:null,effectChildren:null,text:null,link:null,directives:null});let n=[],i=[],o=[],a=[],s=[];return h.default(e,e=>{o.length>0&&"paragraph"!==e.type&&("text"===e.type&&e.value&&0===e.value.trim().length||n.push(e)),"text"===e.type&&e.value&&e.value.trim().length>0&&0===o.length&&o.push(e.value),"link"===e.type&&e.url&&0===a.length&&a.push(e.url),0===o.length&&"inlineCode"===e.type&&(e.value.startsWith("@")?e.value.split(/\s+/).forEach(e=>s.push(e)):i.push(e))}),t.preconditionChildren=i,t.effectChildren=n,t.directives=s,t.text=o.join(" ").trim(),t.link=a.join(" "),0===t.link.length&&(t.link=null),0===t.text.length&&(t.text=null),0===t.directives.length&&(t.directives=null),0===t.preconditionChildren.length&&(t.preconditionChildren=null),0===t.effectChildren.length&&(t.effectChildren=null),t});return n.options=c,n}(o,f))});const A=d.default("questmarkVMState",{stack:[],context:{},programList:[],labelMap:{},programCounter:0,exit:!1,pause:!1},[]),q=e=>{A.programList.push(e)},visitorFunc=(t,i,o)=>{let getText=t=>{let n="";return n=S?e.substring(t.position.start.offset,t.position.end.offset):t.value,n},fixText=e=>{let t=getText(e);return"paragraph"===o.type&&o.children.indexOf(e)===o.children.length-1&&(t+="\n\n"),t=t.replaceAll("\\*","*").replaceAll("\\[","[").replaceAll("\\]","]").replaceAll("\\#","#").replaceAll("\\`","`").replaceAll("\\(","(").replaceAll("\\)",")"),"emphasis"!==o.type&&"strong"!==o.type||(t=`*${t}*`),C&&(t=t.replace(/^[\r\n]+/,"")),t};if(void 0!==o||"questmarkDocument"===t.type)switch(t.type){case"questmarkDocument":if(t.options&&(t.options["initial-context"]&&Object.entries(t.options["initial-context"]).forEach(e=>{"string"==typeof e[1]?q(f.pushString(e[1])):"number"==typeof e[1]&&q(f.pushNumber(e[1])),q(f.pushString(e[0])),q(f.invokeFunction("setContext"))}),t.options["initial-state"]&&(q(f.pushString(t.options["initial-state"])),q(f.invokeFunction("goto"))),t.options.options)){if(t.options.options.no_link_behaviour)if("exit"===t.options.options.no_link_behaviour)y=g.EXIT;else{if("loopback_to_options"!==t.options.options.no_link_behaviour)throw new Error(`Unknown 'options.no_link_behaviour': ${t.options.options.no_link_behaviour}`);y=g.LOOPBACK_TO_OPTIONS}t.options.options.whitespace&&"retain"===t.options.options.whitespace&&(S=!0),t.options.options.emit_on&&"end_of_line"===t.options.options.emit_on&&(T=x.END_OF_LINE),t.options.options.strip_leading_newlines&&!0===t.options.options.strip_leading_newlines&&(C=!0)}break;case"state":const e=t.name,i=t.name+"__options";if(A.labelMap[e]=A.programList.length,h.default(t,visitorFunc),v>0){for(;v>1;)q(f.invokeFunction("rconcat")),v-=1;v=0,q(f.invokeFunction("emit"))}return A.labelMap[i]=A.programList.length,t.options.forEach(e=>{let t=!1,o=!1,a=null;if(null!==e.directives&&e.directives.includes("@once")&&(o=!0,a=`__once__${m}`,m+=1),o&&(q(f.pushString(a)),q(f.invokeFunction("hasContext")),q(f.invokeFunction("jz")),q(f.invokeFunction("{"))),null!==e.preconditionChildren&&(t=!0,e.preconditionChildren.forEach(e=>{if("inlineCode"!==e.type)throw new Error("preconditionChildren contain non-inlineCode elements. Aborting!");n.parse(e.value).forEach(e=>q(e))})),t&&(q(f.invokeFunction("jgz")),q(f.invokeFunction("{"))),null!==e.text&&(e.text.includes("`")&&console.warn("WARN: Option text contains a backtick. Inline code elements in option blocks is currently not supported!"),q(f.pushString(e.text))),q(f.invokeFunction("ppc")),q(f.pushNumber(4)),q(f.invokeFunction("+")),q(f.invokeFunction("{")),o&&(q(f.pushNumber(1)),q(f.pushString(a)),q(f.invokeFunction("setContext"))),null!==e.effectChildren&&e.effectChildren.forEach(e=>{if("inlineCode"===e.type)n.parse(e.value).forEach(e=>q(e));else if("code"===e.type){if("comment"===e.lang)return;n.parse(e.value).forEach(e=>q(e))}else{let t=getText(e);if(q(f.pushString(fixText(e),t)),T===x.CLASSIC||T===x.END_OF_LINE&&t.replace(/[\t\f\v ]+$/,"").endsWith("\n")){for(;v>0;)q(f.invokeFunction("rconcat")),v-=1;q(f.invokeFunction("emit"))}else v+=1}}),v>0){for(;v>1;)q(f.invokeFunction("rconcat")),v-=1;v=0,q(f.invokeFunction("emit"))}null!==e.link&&(q(f.pushString(e.link.substr(1))),q(f.invokeFunction("goto"))),y===g.LOOPBACK_TO_OPTIONS?(q(f.pushString(i)),q(f.invokeFunction("goto"))):y===g.EXIT&&q(f.invokeFunction("exit")),q(f.invokeFunction("}")),q(f.invokeFunction("response")),o&&q(f.invokeFunction("}")),t&&q(f.invokeFunction("}"))}),q(f.invokeFunction("getResponse")),q(f.invokeFunction("goto")),"skip";case"inlineCode":case"code":if("comment"===t.lang)break;n.parse(t.value).forEach(e=>q(e));break;case"text":let o=getText(t);if(q(f.pushString(fixText(t),o)),T===x.CLASSIC||T===x.END_OF_LINE&&o.replace(/[\t\f\v ]+$/,"").endsWith("\n")){for(;v>0;)q(f.invokeFunction("rconcat")),v-=1;q(f.invokeFunction("emit"))}else v+=1}};return h.default(i,visitorFunc),q(f.invokeFunction("exit")),{parsedMDFile:s.default(i,!0),qvmState:A}}},195(e,t,n){var i=n(6096),o=["悋Ꜫ脳맭䅼㯧瞆奤","|\b\t\t","\t\t\t\t","\b\t\b\t\t\t\n\t\n\v\t\v","\f\t\f\r\t\r\t\t","\t\t","","\b","\b\b\t\t\t\n\n\n\v","\v\v=\n\v\f\v\v@\v\v","\v\v\v\v\f\f\fH","\n\f\r\f\fI\f\fM\n\f\r\f\fN\f\f","\r\rT\n\r\r\rW\n\r\r\r\rX\r","\r\\\n\r\r\r_\n\r\f\r\rb\v\r","h\n\f","k\v","q\n\ft\v","y\n\rz>","\t\v\r","\b\t\n\v","\f\r!\f\f",'2;$$\v\f""%%','\v\f""ƒ\v',"\r","","","","","!#","%'\t*","\v-\r/","14","7:","ESc","nu","!x#$^$","%&$&","'(())\b","*++,,\n","-.1.\f","/0,012\v","23\v345","\v56\r6","78\r89\v9",":>\t;=\v<;","=@>?","><?A@>","AB\nBCCD\b\v","DEG\bFH\n","GFHIIG","IJJL","KM!LKMN","NLNOOP","PQ\b\fQRT","/SRSTTV","UW\tVU","WXXVXY","Y[Z\\0[Z","[\\\\`]","_\t^]_b","`^`aa","b`ci","dheh\tfh\n","gdgegf","hkigij","jlkilm","mnr\n","oq\npoqt","rprss","truv%v ","wy\txw","yzzxz{",'{">INSX[`girz\b',""].join(""),a=(new i.atn.ATNDeserializer).deserialize(o),s=a.decisionToState.map(function(e,t){return new i.dfa.DFA(e,t)});function ConciseTextLexer(e){return i.Lexer.call(this,e),this._interp=new i.atn.LexerATNSimulator(this,a,s,new i.PredictionContextCache),this}ConciseTextLexer.prototype=Object.create(i.Lexer.prototype),ConciseTextLexer.prototype.constructor=ConciseTextLexer,Object.defineProperty(ConciseTextLexer.prototype,"atn",{get:function(){return a}}),ConciseTextLexer.EOF=i.Token.EOF,ConciseTextLexer.SLASH=1,ConciseTextLexer.ASTERISK=2,ConciseTextLexer.COMMENT_START=3,ConciseTextLexer.ML_COMMENT_BEGIN=4,ConciseTextLexer.ML_COMMENT_END=5,ConciseTextLexer.MULTILINE_COMMENT=6,ConciseTextLexer.COMMENT=7,ConciseTextLexer.NUMBER=8,ConciseTextLexer.STRING=9,ConciseTextLexer.WORD=10,ConciseTextLexer.LABEL_START=11,ConciseTextLexer.WHITESPACE=12,ConciseTextLexer.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],ConciseTextLexer.prototype.modeNames=["DEFAULT_MODE"],ConciseTextLexer.prototype.literalNames=[null,"'/'","'*'",null,null,null,null,null,null,null,null,"'#'"],ConciseTextLexer.prototype.symbolicNames=[null,"SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],ConciseTextLexer.prototype.ruleNames=["BACKSLASH","QUOTE","ESCAPED_QUOTE","ESCAPED_BACKSLASH","SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],ConciseTextLexer.prototype.grammarFileName="ConciseText.g4",t.ConciseTextLexer=ConciseTextLexer},6521(e,t,n){var i=n(6096);function ConciseTextListener(){return i.tree.ParseTreeListener.call(this),this}ConciseTextListener.prototype=Object.create(i.tree.ParseTreeListener.prototype),ConciseTextListener.prototype.constructor=ConciseTextListener,ConciseTextListener.prototype.enterInstructions=function(e){},ConciseTextListener.prototype.exitInstructions=function(e){},ConciseTextListener.prototype.enterPushNumber=function(e){},ConciseTextListener.prototype.exitPushNumber=function(e){},ConciseTextListener.prototype.enterPushString=function(e){},ConciseTextListener.prototype.exitPushString=function(e){},ConciseTextListener.prototype.enterInvokeFunction=function(e){},ConciseTextListener.prototype.exitInvokeFunction=function(e){},t.ConciseTextListener=ConciseTextListener},6518(e,t,n){var i=n(6096),o=n(6521).ConciseTextListener,a=["悋Ꜫ脳맭䅼㯧瞆奤","(\t\t\t","\t","\n\f\v","","\n"," \n","&\n","\b\f\f*","","\b!\n","\v\f\b","\r\n","\v\f","\r","","","","\n","\r\f","","\v","\r"," \f "," !%\t",'"##$\r$&\f','%"%&&\t',"%"].join(""),s=(new i.atn.ATNDeserializer).deserialize(a),c=s.decisionToState.map(function(e,t){return new i.dfa.DFA(e,t)}),l=new i.PredictionContextCache,p=[null,"'/'","'*'",null,null,null,null,null,null,null,null,"'#'"],h=[null,"SLASH","ASTERISK","COMMENT_START","ML_COMMENT_BEGIN","ML_COMMENT_END","MULTILINE_COMMENT","COMMENT","NUMBER","STRING","WORD","LABEL_START","WHITESPACE"],d=["instructions","pushNumber","pushString","invokeFunction"];function ConciseTextParser(e){return i.Parser.call(this,e),this._interp=new i.atn.ParserATNSimulator(this,s,c,l),this.ruleNames=d,this.literalNames=p,this.symbolicNames=h,this}function InstructionsContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_instructions,this}function PushNumberContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_pushNumber,this.number=null,this.label=null,this}function PushStringContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_pushString,this.string=null,this.label=null,this}function InvokeFunctionContext(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),i.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=ConciseTextParser.RULE_invokeFunction,this.opcode=null,this.label=null,this}ConciseTextParser.prototype=Object.create(i.Parser.prototype),ConciseTextParser.prototype.constructor=ConciseTextParser,Object.defineProperty(ConciseTextParser.prototype,"atn",{get:function(){return s}}),ConciseTextParser.EOF=i.Token.EOF,ConciseTextParser.SLASH=1,ConciseTextParser.ASTERISK=2,ConciseTextParser.COMMENT_START=3,ConciseTextParser.ML_COMMENT_BEGIN=4,ConciseTextParser.ML_COMMENT_END=5,ConciseTextParser.MULTILINE_COMMENT=6,ConciseTextParser.COMMENT=7,ConciseTextParser.NUMBER=8,ConciseTextParser.STRING=9,ConciseTextParser.WORD=10,ConciseTextParser.LABEL_START=11,ConciseTextParser.WHITESPACE=12,ConciseTextParser.RULE_instructions=0,ConciseTextParser.RULE_pushNumber=1,ConciseTextParser.RULE_pushString=2,ConciseTextParser.RULE_invokeFunction=3,InstructionsContext.prototype=Object.create(i.ParserRuleContext.prototype),InstructionsContext.prototype.constructor=InstructionsContext,InstructionsContext.prototype.EOF=function(){return this.getToken(ConciseTextParser.EOF,0)},InstructionsContext.prototype.pushNumber=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(PushNumberContext):this.getTypedRuleContext(PushNumberContext,e)},InstructionsContext.prototype.pushString=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(PushStringContext):this.getTypedRuleContext(PushStringContext,e)},InstructionsContext.prototype.invokeFunction=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(InvokeFunctionContext):this.getTypedRuleContext(InvokeFunctionContext,e)},InstructionsContext.prototype.WHITESPACE=function(e){return void 0===e&&(e=null),null===e?this.getTokens(ConciseTextParser.WHITESPACE):this.getToken(ConciseTextParser.WHITESPACE,e)},InstructionsContext.prototype.enterRule=function(e){e instanceof o&&e.enterInstructions(this)},InstructionsContext.prototype.exitRule=function(e){e instanceof o&&e.exitInstructions(this)},ConciseTextParser.InstructionsContext=InstructionsContext,ConciseTextParser.prototype.instructions=function(){var e=new InstructionsContext(this,this._ctx,this.state);this.enterRule(e,0,ConciseTextParser.RULE_instructions);var t=0;try{for(this.enterOuterAlt(e,1),this.state=14,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&(1<<ConciseTextParser.ASTERISK|1<<ConciseTextParser.NUMBER|1<<ConciseTextParser.STRING|1<<ConciseTextParser.WORD|1<<ConciseTextParser.WHITESPACE);){switch(this.state=12,this._errHandler.sync(this),this._input.LA(1)){case ConciseTextParser.NUMBER:this.state=8,this.pushNumber();break;case ConciseTextParser.STRING:this.state=9,this.pushString();break;case ConciseTextParser.ASTERISK:case ConciseTextParser.WORD:this.state=10,this.invokeFunction();break;case ConciseTextParser.WHITESPACE:this.state=11,this.match(ConciseTextParser.WHITESPACE);break;default:throw new i.error.NoViableAltException(this)}this.state=16,this._errHandler.sync(this),t=this._input.LA(1)}this.state=17,this.match(ConciseTextParser.EOF)}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},PushNumberContext.prototype=Object.create(i.ParserRuleContext.prototype),PushNumberContext.prototype.constructor=PushNumberContext,PushNumberContext.prototype.NUMBER=function(){return this.getToken(ConciseTextParser.NUMBER,0)},PushNumberContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},PushNumberContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},PushNumberContext.prototype.WORD=function(){return this.getToken(ConciseTextParser.WORD,0)},PushNumberContext.prototype.enterRule=function(e){e instanceof o&&e.enterPushNumber(this)},PushNumberContext.prototype.exitRule=function(e){e instanceof o&&e.exitPushNumber(this)},ConciseTextParser.PushNumberContext=PushNumberContext,ConciseTextParser.prototype.pushNumber=function(){var e=new PushNumberContext(this,this._ctx,this.state);this.enterRule(e,2,ConciseTextParser.RULE_pushNumber);try{this.enterOuterAlt(e,1),this.state=19,e.number=this.match(ConciseTextParser.NUMBER),this.state=23,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,2,this._ctx)&&(this.state=20,this.match(ConciseTextParser.WHITESPACE),this.state=21,this.match(ConciseTextParser.LABEL_START),this.state=22,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},PushStringContext.prototype=Object.create(i.ParserRuleContext.prototype),PushStringContext.prototype.constructor=PushStringContext,PushStringContext.prototype.STRING=function(){return this.getToken(ConciseTextParser.STRING,0)},PushStringContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},PushStringContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},PushStringContext.prototype.WORD=function(){return this.getToken(ConciseTextParser.WORD,0)},PushStringContext.prototype.enterRule=function(e){e instanceof o&&e.enterPushString(this)},PushStringContext.prototype.exitRule=function(e){e instanceof o&&e.exitPushString(this)},ConciseTextParser.PushStringContext=PushStringContext,ConciseTextParser.prototype.pushString=function(){var e=new PushStringContext(this,this._ctx,this.state);this.enterRule(e,4,ConciseTextParser.RULE_pushString);try{this.enterOuterAlt(e,1),this.state=25,e.string=this.match(ConciseTextParser.STRING),this.state=29,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,3,this._ctx)&&(this.state=26,this.match(ConciseTextParser.WHITESPACE),this.state=27,this.match(ConciseTextParser.LABEL_START),this.state=28,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},InvokeFunctionContext.prototype=Object.create(i.ParserRuleContext.prototype),InvokeFunctionContext.prototype.constructor=InvokeFunctionContext,InvokeFunctionContext.prototype.WORD=function(e){return void 0===e&&(e=null),null===e?this.getTokens(ConciseTextParser.WORD):this.getToken(ConciseTextParser.WORD,e)},InvokeFunctionContext.prototype.ASTERISK=function(){return this.getToken(ConciseTextParser.ASTERISK,0)},InvokeFunctionContext.prototype.WHITESPACE=function(){return this.getToken(ConciseTextParser.WHITESPACE,0)},InvokeFunctionContext.prototype.LABEL_START=function(){return this.getToken(ConciseTextParser.LABEL_START,0)},InvokeFunctionContext.prototype.enterRule=function(e){e instanceof o&&e.enterInvokeFunction(this)},InvokeFunctionContext.prototype.exitRule=function(e){e instanceof o&&e.exitInvokeFunction(this)},ConciseTextParser.InvokeFunctionContext=InvokeFunctionContext,ConciseTextParser.prototype.invokeFunction=function(){var e=new InvokeFunctionContext(this,this._ctx,this.state);this.enterRule(e,6,ConciseTextParser.RULE_invokeFunction);var t=0;try{this.enterOuterAlt(e,1),this.state=31,e.opcode=this._input.LT(1),(t=this._input.LA(1))!==ConciseTextParser.ASTERISK&&t!==ConciseTextParser.WORD?e.opcode=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=35,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,4,this._ctx)&&(this.state=32,this.match(ConciseTextParser.WHITESPACE),this.state=33,this.match(ConciseTextParser.LABEL_START),this.state=34,e.label=this.match(ConciseTextParser.WORD))}catch(t){if(!(t instanceof i.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},t.ConciseTextParser=ConciseTextParser},5898(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStackParams=void 0,t.getStackParams=function getStackParams(e,t,n){return t.map((t,i)=>{const o=n.pop();if("string | number"===t){if("number"!=typeof o&&"string"!=typeof o)throw new Error(`${e}: stack param ${i+1} is not a string or number!`)}else if(typeof o!==t)throw new Error(`${e}: stack param ${i+1} is not a ${t}! Value: ${o}`);return o})}},6902(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7205),t),o(n(9356),t),o(n(8074),t),o(n(5898),t),o(n(9344),t)},9356(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6991(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("and",["number","number"],e);e.push(0!==n&&0!==o?1:0)}},9529(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t]=i.getStackParams("charCode",["number"],e),n=String.fromCharCode(t);e.push(n)}},4663(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function closeBrace(e){}},5828(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t,n]=i.getStackParams("concat",["string | number","string | number"],e);e.push(`${t}${n}`)}},1272(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n]=i.getStackParams("delContext",["string"],e);delete t[n]}},2451(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n]=i.getStackParams("dup",["string | number"],e);e.push(n),e.push(n)}},2486(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("eq",["string | number","string | number"],e),a=n===o?1:0;e.push(a)}},5884(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{n.quit()}},943(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n]=i.getStackParams("getContext",["string"],e),o=t[n];if(null==o)throw new Error(`getContext: null/undefined can not be pushed to the context! StackParam: ${n}`);e.push(o)}},1691(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t,n)=>{const[o]=i.getStackParams("goto",["string | number"],e);if("string"==typeof o){const e=n.labelMap[o];if(void 0===e)throw new Error(`goto: attempting to jump to undefined label ${o}`);n.logger(`goto: setting pC to ${e} (goto ${o}) `),n.programCounter=e}else"number"==typeof o&&(n.logger(`goto: setting pC to ${o} (goto ${o}) `),n.programCounter=o)}},6427(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("gt",["number","number"],e),a=n>o?1:0;e.push(a)}},9379(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n]=i.getStackParams("hasContext",["string"],e);t.hasOwnProperty(n)?e.push(1):e.push(0)}},8353(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t,n)=>{const[o]=i.getStackParams("jgz",["number"],e);o>0&&(n.programCounter+=2)}},6956(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t,n)=>{const[o]=i.getStackParams("jz",["number"],e);0===o&&(n.programCounter+=2)}},5476(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("lt",["number","number"],e),a=n<o?1:0;e.push(a)}},3130(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t,n]=i.getStackParams("-",["number","number"],e),o=t-n;e.push(o)}},9580(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t,n]=i.getStackParams("*",["number","number"],e),o=t*n;e.push(o)}},2427(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=()=>{}},9071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t]=i.getStackParams("not",["number"],e);0===t?e.push(1):e.push(0)}},3361(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function openBrace(e,t,n){let i=0,o=n.programCounter+1;for(;;){if("openBrace"===n.programList[o].name&&(i+=1),"closeBrace"===n.programList[o].name&&(i-=1,-1===i)){n.programCounter=o+1;break}o+=1}}},9561(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("or",["number","number"],e);e.push(0!==n||0!==o?1:0)}},5604(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{n.suspend()}},8936(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t,n]=i.getStackParams("+",["number","number"],e),o=t+n;e.push(o)}},7589(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{e.pop()}},9179(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=(e,t,n)=>{e.push(n.programCounter)}},6466(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t]=i.getStackParams("randInt",["number"],e),n=Math.floor(Math.random()*t);e.push(n)}},4612(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=e=>{const[t,n]=i.getStackParams("rconcat",["string | number","string | number"],e);e.push(`${n}${t}`)}},3259(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5898);t.default=(e,t)=>{const[n,o]=i.getStackParams("setContext",["string","string | number"],e);t[n]=o}},2439(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{e.push(e.length)}},7767(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=e=>{process.stdout.write(""+e.pop())}},9344(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;t.Builder=class Builder{constructor(){this.fakeLabelMap={},this.programList=[],this.context={}}withLabel(e,t){return this.fakeLabelMap[t]=e,e}add(e){e.forEach(e=>this.programList.push(e))}contextParam(e,t){this.context[e]=t}build(){const e=Object.entries(this.fakeLabelMap).reduce((e,t)=>(e[t[0]]=this.programList.findIndex(e=>e===t[1]),e),{});return{context:this.context,exit:!1,pause:!1,labelMap:e,programList:this.programList,programCounter:0,stack:[]}}}},8074(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=t.invokeFunction=t.pushString=t.pushNumber=void 0;const o=i(n(2076)),a=n(195),s=n(6518),c=n(6521),l=i(n(6096)),p=/^\"(.+)\"$/,h=/^(-?[0-9]+)$/,d=/^(\S+)$/,f=/^\#(\S+)$/;t.pushNumber=(e,t)=>o.default("push-number-instruction",{value:e,comment:t}),t.pushString=(e,t)=>o.default("push-string-instruction",{value:e,comment:t}),t.invokeFunction=(e,t)=>o.default("invoke-function-instruction",{functionName:e,comment:t});t.Tokenizer=class Tokenizer{parse(e){class Listener extends c.ConciseTextListener{constructor(){super(...arguments),this.instructions=[],this.lastInstruction=null}enterInstructions(e){this.lastInstruction={functionName:null,type:null,value:null,comment:null,label:null}}enterPushNumber(e){this.lastInstruction=t.pushNumber(parseInt(e.number.text)),this.lastInstruction.label=e.label?e.label.text:void 0}enterPushString(e){const n=e.string.text;this.lastInstruction=t.pushString(n.substr(1,n.length-2)),this.lastInstruction.label=e.label?e.label.text:void 0}enterInvokeFunction(e){this.lastInstruction=t.invokeFunction(e.opcode.text),this.lastInstruction.label=e.label?e.label.text:void 0}exitPushNumber(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}exitPushString(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}exitInvokeFunction(){this.instructions.push(this.lastInstruction),this.lastInstruction=null}getInstructions(){return this.instructions}}const n=new Listener;return l.default.tree.ParseTreeWalker.DEFAULT.walk(n,function getTree(e){let t=new l.default.InputStream(e),n=new a.ConciseTextLexer(t),i=new l.default.CommonTokenStream(n);return new s.ConciseTextParser(i).instructions()}(e)),n.getInstructions()}tokenize(e){let t=null,n="",i=0;const o=[];function addTokenMaybe(){n.length>0&&(o.push(n),n="")}for(;;){const o=e[i];if('"'===o){if("string"===t){t=null,n=`${n}${o}`,i+=1,addTokenMaybe();continue}if(null===t){t="string",n=`${n}${o}`,i+=1;continue}}if("string"!==t){if(void 0===o){addTokenMaybe();break}null===o.match(/\s/)?(n=`${n}${o}`,i+=1):(addTokenMaybe(),i+=1)}else n=`${n}${o}`,i+=1}return o}transform(e){const n={};let i=-1;const o=e.map(e=>{const o=e.match(f);if(null!==o){const e=o[1];return void(n[e]=i)}i+=1;const a=e.match(p);if(null!==a){const e=a[1];return t.pushString(e)}const s=e.match(h);if(null!==s){const e=parseInt(s[1]);return t.pushNumber(e)}const c=e.match(d);if(null!==c){const e=c[1];return t.invokeFunction(e)}throw new Error(`Could not parse token: \`${e}\``)}).filter(e=>void 0!==e);return Object.entries(n).forEach(e=>{o[e[1]].label=e[0]}),o}}},7205(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VM=t.std_functions=void 0;const o=i(n(7833)),a=i(n(6991)),s=i(n(9529)),c=i(n(4663)),l=i(n(5828)),p=i(n(1272)),h=i(n(2451)),d=i(n(2486)),f=i(n(5884)),g=i(n(943)),x=i(n(9379)),m=i(n(1691)),y=i(n(6427)),S=i(n(8353)),T=i(n(6956)),v=i(n(5476)),C=i(n(3130)),A=i(n(9580)),E=i(n(2427)),k=i(n(9071)),b=i(n(3361)),P=i(n(9561)),L=i(n(5604)),_=i(n(8936)),N=i(n(7589)),I=i(n(9179)),O=i(n(6466)),F=i(n(4612)),w=i(n(3259)),R=i(n(2439)),D=i(n(7767));t.std_functions={randInt:O.default,charCode:s.default,"+":_.default,plus:_.default,"-":C.default,min:C.default,"*":A.default,mul:A.default,not:k.default,concat:l.default,rconcat:F.default,getContext:g.default,hasContext:x.default,setContext:w.default,delContext:p.default,gt:y.default,lt:v.default,eq:d.default,jgz:S.default,jz:T.default,exit:f.default,pause:L.default,goto:m.default,"{":b.default,"}":c.default,ppc:I.default,nop:E.default,and:a.default,or:P.default,dup:h.default,pop:N.default,stacksize:R.default,stdout:D.default};t.VM=class VM{constructor(e,n={}){this.stack=[],this.context={},this.programList=[],this.labelMap={},this.programCounter=0,this.exit=!1,this.pause=!1,this.logger=o.default("tzo-vm"),this.context=e,this.functions=Object.assign(Object.assign({},t.std_functions),n)}quit(){this.exit=!0}suspend(){this.pause=!0}invoke(e){let t;return this.logger("invoking!"),e.forEach(e=>{this.logger(`stack (json): ${JSON.stringify(this.stack)}`),t=e(this.stack,this.context,this)}),this.logger(`done! return value: ${t}, final stack: ${JSON.stringify(this.stack)}, final context: ${JSON.stringify(this.context)}`),t}getVMInstructions(e,t){void 0===t&&(t={});return{vmInstructions:e.map((e,n)=>{if(void 0!==e.label){if(void 0!==t[e.label])throw new Error(`label already defined: ${e.label}!`);t[e.label]=n}switch(e.type){case"invoke-function-instruction":const t=e.functionName;let n=this.functions[t];if(void 0===n){if(!t.startsWith("_"))throw new Error(`Cannot find function in function table: ${t}`);n=()=>{this.logger(`Missing function got invoked: ${t}!`)}}return n;case"push-number-instruction":return t=>{const n=e.value;return this.logger(`pushNumber: ${n}`),t.push(n),e.value};case"push-string-instruction":return t=>{const n=e.value;return this.logger(`pushString: ${n}`),t.push(n),e.value};default:throw new Error("Unsupported instruction type!")}}),labelMap:t}}loadProgramList(e,t){const n=this.getVMInstructions(e,t);this.programList=n.vmInstructions,this.labelMap=n.labelMap}loadVMState(e){const t=this.getVMInstructions(e.programList,e.labelMap);this.programList=t.vmInstructions,this.labelMap=t.labelMap,this.stack=e.stack,this.context=e.context,this.programCounter=e.programCounter,this.pause=e.pause,this.exit=e.exit}setProgramCounter(e){this.programCounter=e}tick(){const e=this.programList[this.programCounter];if(void 0===e)return this.exit=!0,null;const t=this.programCounter;e(this.stack,this.context,this),this.programCounter===t&&(this.programCounter+=1)}run(){for(this.pause=!1;!0!==this.exit&&!0!==this.pause;)try{this.tick()}catch(e){const t=new Error(`An error occurred!\nStack: ${this.stack}\nPC: ${this.programCounter}\nContext: ${JSON.stringify(this.context)}\nerr: ${e}`);throw this.logger(t),t}}}},2076(e){"use strict";e.exports=function u(e,t,n){var i;null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!=n&&(i.value=String(n));return i}},1200(e,t,n){"use strict";var i=n(2143);e.exports=function findAfter(e,t,n){var o,a,s,c=i(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");o=e.children,s=o.length,t&&t.type&&(t=o.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<s;)if(c(a=o[t],t,e))return a;return null}},1666(e,t,n){"use strict";var i=n(2143);e.exports=function findAllAfter(e,t,n){var o=i(n),a=[];if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)o(e.children[t],t,e)&&a.push(e.children[t]);return a}},5300(e,t,n){"use strict";const i=n(392),o=n(9895);e.exports=function findAllBetween(e,t,n,a){if(!e||!e.type||!e.children)throw new Error("Expected parent node");const{children:s}=e,c=[];let l=check(t);const p=check(n);let h;for(;++l<p;)h=s[l],i(h,a,l,e)&&c.push(h);return c;function check(t){if(t&&t.type){e.type===t.type&&(e={type:e.type+"-root",children:e.children});const n=o(e,t);t=s.indexOf(n)}if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");return t>=s.length&&(t=s.length-1),t}}},9895(e,t,n){"use strict";var i=n(5581),o=n(7079);e.exports=function find(e,t){if(!e)throw new Error("unist-find requires a tree to search");if(!t)throw new Error("unist-find requires a condition");var n,a=o(t);return i(e,function(e){if(a(e))return n=e,!1}),n}},8250(e){"use strict";function convert(e){if("string"==typeof e)return function typeFactory(e){return type;function type(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return ok;if("object"==typeof e)return("length"in e?anyFactory:matchesFactory)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function matchesFactory(e){return function matches(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function anyFactory(e){var t=function convertAll(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=convert(e[i]);return t}(e),n=t.length;return function matches(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function ok(){return!0}e.exports=convert},161(e,t,n){"use strict";e.exports=visitParents;var i=n(8250),o=!0,a="skip",s=!1;function visitParents(e,t,n,o){var c;function one(e,i,l){var p,h=[];return(t&&!c(e,i,l[l.length-1]||null)||(h=toResult(n(e,l)))[0]!==s)&&e.children&&h[0]!==a?(p=toResult(function all(e,t){var n,i=-1,a=o?-1:1,c=(o?e.length:i)+a;for(;c>i&&c<e.length;){if((n=one(e[c],c,t))[0]===s)return n;c="number"==typeof n[1]?n[1]:c+a}}(e.children,l.concat(e))),p[0]===s?p:h):h}"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),c=i(t),one(e,null,[])}function toResult(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[o,e]:[e]}visitParents.CONTINUE=o,visitParents.SKIP=a,visitParents.EXIT=s},5581(e,t,n){"use strict";e.exports=visit;var i=n(161),o=i.CONTINUE,a=i.SKIP,s=i.EXIT;function visit(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),i(e,t,function overload(e,t){var i=t[t.length-1],o=i?i.children.indexOf(e):null;return n(e,o,i)},o)}visit.CONTINUE=o,visit.SKIP=a,visit.EXIT=s},2143(e){"use strict";function convert(e){if(null==e)return ok;if("string"==typeof e)return function typeFactory(e){return type;function type(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function anyFactory(e){var t=[],n=-1;for(;++n<e.length;)t[n]=convert(e[n]);return any;function any(){for(var e=-1;++e<t.length;)if(t[e].apply(this,arguments))return!0;return!1}}(e):function allFactory(e){return all;function all(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function ok(){return!0}e.exports=convert},392(e,t,n){"use strict";var i=n(2143);function is(e,t,n,o,a){var s=i(t);if(null!=n&&("number"!=typeof n||n<0||n===1/0))throw new Error("Expected positive finite index");if(!(null==o||is(o)&&o.children))throw new Error("Expected parent node");if(null==o!=(null==n))throw new Error("Expected both parent and index");return!(!e||!e.type||"string"!=typeof e.type)&&Boolean(s.call(a,e,n,o))}e.exports=is,is.convert=i},4460(e,t,n){"use strict";var i=n(5223);function hard(e){delete e.position}function soft(e){e.position=void 0}e.exports=function removePosition(e,t){return i(e,t?hard:soft),e}},4718(e){e.exports=function identity(e){return e}},6311(e,t,n){"use strict";e.exports=visitParents;var i=n(2143),o=n(4718),a=!0,s="skip",c=!1;function visitParents(e,t,n,l){var p,h;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),h=i(t),p=l?-1:1,function factory(e,i,d){var f,g="object"==typeof e&&null!==e?e:{};"string"==typeof g.type&&(f="string"==typeof g.tagName?g.tagName:"string"==typeof g.name?g.name:void 0,visit.displayName="node ("+o(g.type+(f?"<"+f+">":""))+")");return visit;function visit(){var o,f,g=d.concat(e),x=[];if((!t||h(e,i,d[d.length-1]||null))&&(x=function toResult(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[a,e];return[e]}(n(e,d)),x[0]===c))return x;if(e.children&&x[0]!==s)for(f=(l?e.children.length:-1)+p;f>-1&&f<e.children.length;){if((o=factory(e.children[f],f,g)())[0]===c)return o;f="number"==typeof o[1]?o[1]:f+p}return x}}(e,null,[])()}visitParents.CONTINUE=a,visitParents.SKIP=s,visitParents.EXIT=c},5223(e,t,n){"use strict";e.exports=visit;var i=n(6311),o=i.CONTINUE,a=i.SKIP,s=i.EXIT;function visit(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),i(e,t,function overload(e,t){var i=t[t.length-1],o=i?i.children.indexOf(e):null;return n(e,o,i)},o)}visit.CONTINUE=o,visit.SKIP=a,visit.EXIT=s},5843(){},160(){"use strict";Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function r(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,function(t,n){return Array.isArray(n)?t.push.apply(t,r.call(n,e-1)):t.push(n),t},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})}};const t={};function __webpack_require__(n){const i=t[n];if(void 0!==i)return i.exports;const o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,__webpack_require__),o.loaded=!0,o.exports}__webpack_require__.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=__webpack_require__.cw(function(e,t){var n=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),i(__webpack_require__(9089),t),i(parseMarkdown_namespaceFn(),t)}),parseMarkdown_namespaceFn=()=>__webpack_require__(7072);e();const t=new(e().QuestVM)(e=>{globalThis.emit(e)},e=>globalThis.choices(e),globalThis.extraForeignFunctions?globalThis.extraForeignFunctions:{}),n=(0,e().parseMarkdown)(document.body.textContent).qvmState;console.log(n),t.loadVMState(n);let i=!0;if(globalThis.preRun){!1===globalThis.preRun(t)&&(i=!1)}i&&t.run(),globalThis.vm=t})()})();